Using Win32 functions in Visual FoxPro Image Gallery
Raw Input
GetRawInputData
GetRawInputDeviceInfo
GetRawInputDeviceList
RegisterRawInputDevices
Code examples:
Capturing keyboard activity of another application with the Raw Input API (VFP9)
GetRawInputData
..msdn    Add comment     W32 Constants      Translate this page
Retrieves the raw input from the specified device.
Code examples:
Capturing keyboard activity of another application with the Raw Input API (VFP9)
Declaration:
UINT WINAPI GetRawInputData(
  __in       HRAWINPUT hRawInput,
  __in       UINT uiCommand,
  __out_opt  LPVOID pData,
  __inout    PUINT pcbSize,
  __in       UINT cbSizeHeader
);
FoxPro declaration:
DECLARE INTEGER GetRawInputData IN user32;
    INTEGER hRawInput,;
    LONG uiCommand,;
    STRING @pData,;
    LONG @pcbSize,;
    LONG cbSizeHeader

Parameters:
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.
Return value:
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.
Usage:
nBufsize=0
GetRawInputData( m.hRawinput, RID_INPUT,;
    NULL, @nBufsize, RAWINPUTHEADER_SIZE )

cRawdata = REPLICATE(CHR(0), nBufsize)
GetRawInputData( m.hRawinput, RID_INPUT,;
        @cRawdata, @nBufsize, RAWINPUTHEADER_SIZE )
My comment:
See also: RegisterRawInputDevices
Word Index links for the GetRawInputData :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2011-01-05 20:22:11
Modified: 2011-01-05 20:25:40
Visited in last 7 days: 72
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.82.81.154)
7 sec.Function: 'HeapCompact'
15 sec.Function: 'GetNativeSystemInfo'
24 sec.Function: 'RegisterHotKey'
33 sec.All Functions
40 sec.Articles
49 sec.Login
57 sec.
Function group: 'System Shutdown'
1.08 min.
Function group: 'Simple MAPI'
1.22 min.Updates
1.37 min.
Function group: 'Power Management'
Google
Advertise here!