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)
RegisterRawInputDevices
..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)
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:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com 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: 61
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.92.141.211)
4 sec.Function: 'ReportEvent'
8 sec.Function: 'FtpRenameFile'
12 sec.Function: 'ChooseFont'
22 sec.Function: 'ChangeClipboardChain'
28 sec.Function: 'SetSuspendState'
34 sec.Function: 'SHGetFileInfo'
39 sec.Function: 'SetupDiGetClassImageListEx'
43 sec.Function: 'InternetTimeToSystemTime'
48 sec.Function: 'FillMemory'
53 sec.Function: 'setsockopt'
Google
Advertise here!