 |
RegisterRawInputDevices ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
Registers the devices that supply the raw input data. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
BOOL WINAPI RegisterRawInputDevices(
__in PCRAWINPUTDEVICE pRawInputDevices,
__in UINT uiNumDevices,
__in UINT cbSize
)
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER RegisterRawInputDevices IN user32;
STRING @pRawInputDevices,;
LONG uiNumDevices,;
LONG cbSize
|
 |
 |
 |
| Parameters: |
 |
pRawInputDevices [in]
An array of RAWINPUTDEVICE structures that represent the devices that supply the raw input.
uiNumDevices [in]
The number of RAWINPUTDEVICE structures pointed to by pRawInputDevices.
cbSize [in]
The size, in bytes, of a RAWINPUTDEVICE structure. |
 |
 |
| Return value: |
 |
| TRUE if the function succeeds; otherwise, FALSE. If the function fails, call GetLastError for more information. |
 |
 |
| Usage: |
 |
nResult = RegisterRawInputDevices(;
@cDevices, m.nDeviceCount,;
RAWINPUTDEVICE_SIZE )
= BINDEVENT( THIS.hWindow, WM_INPUT,;
THIS, "WindowProc" )
|
 |
 |
| My comment: |
 |
To receive WM_INPUT messages, an application must first register the raw input devices using RegisterRawInputDevices.
By default, an application does not receive raw input.
See also: GetRawInputData, GetRawInputDeviceList |
 |
 |
| Word Index links for the RegisterRawInputDevices : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2011-01-05 20:17:52 | | Modified: | 2011-01-05 20:21:50 | Visited in last 7 days: 21 |