Using Win32 functions in Visual FoxPro Image Gallery
Raw Input
Code examples:
Capturing keyboard activity of another application with the Raw Input API (VFP9)
..msdn    Add comment     W32 Constants      Translate this page
Registers the devices that supply the raw input data.
Code examples:
Capturing keyboard activity of another application with the Raw Input API (VFP9)
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
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.
nResult = RegisterRawInputDevices(;
    @cDevices, m.nDeviceCount,;

        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:
  Spanish    Portuguese    German    French    Italian offers instant, free translations of text or web pages.
Created: 2011-01-05 20:17:52
Modified: 2011-01-05 20:21:50
Visited in last 7 days: 97
User Contributed Notes:
There are no notes on this subject.

Copyright 2001-2018 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.39), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (
22 sec.Function: 'ExitWindows'
47 sec.Function: 'FindNextVolumeMountPoint'
1.15 min.Function: 'WideCharToMultiByte'
1.57 min.Function: 'CLSIDFromString'
1.93 min.Function: 'ZeroMemory'
2.35 min.Function: 'AdjustTokenPrivileges'
2.72 min.Function: 'OpenInputDesktop'
3.1 min.Function: 'CryptGetKeyParam'
3.45 min.Function: 'LookupAccountName'
3.85 min.Function: 'waveInReset'
Advertise here!