Group: Raw Input - Library: user32
Capturing keyboard activity of another application with the Raw Input API (VFP9)
UINT WINAPI GetRawInputData(
__in HRAWINPUT hRawInput,
__in UINT uiCommand,
__out_opt LPVOID pData,
__inout PUINT pcbSize,
__in UINT cbSizeHeader
); DECLARE INTEGER GetRawInputData IN user32;
INTEGER hRawInput,;
LONG uiCommand,;
STRING @pData,;
LONG @pcbSize,;
LONG cbSizeHeader
hRawInput [in] A handle to the RAWINPUT structure. This comes from the lParam in WM_INPUT.
uiCommand [in] The command flag: RID_HEADER, RID_INPUT
pData [out, optional] A pointer to the data that comes from the RAWINPUT structure. This depends on the value of uiCommand.
pcbSize [in, out] The size, in bytes, of the data in pData.
cbSizeHeader [in] The size, in bytes, of the RAWINPUTHEADER structure.
If pData is NULL and the function is successful, the return value is 0. If pData is not NULL and the function is successful, the return value is the number of bytes copied into pData.
See also: RegisterRawInputDevices.
Home