Hi Jan
Thanks for your reply.
cmdGetInputReportInterrupt_Click is the call which host initiates whenever "Get Input Report" button is clicked.
What I'm looking for is say:
1. Whenever the button in the device is toggled, how can I make the device to inform it to the host? I mean to receive the WM_INPUT message in the host, what the device firmware should do? How the device firmware has to inform the OS about there is a change in the button state.I don't want my host to poll for the report continuously and listen for the states. Whenever there is a change in the device, how the device firmware can notify the host about the changes to host.
I have registered for WM_INPUT message in my host app like
RAWINPUTDEVICE rid;
rid.usUsagePage = 65280;
rid.usUsage = 1;
rid.dwFlags = 0;
rid.hwndTarget = this->GetSafeHwnd();
BOOL bFlag = ::RegisterRawInputDevices( &rid,1,sizeof(RAWINPUTDEVICE) );
But still I'm not getting the WM_INPUT message in my host app when there is button toggle in the device.
So I would like to know to receive this message in the host, what should be done from the device side?
Am I Clear?