Using Win32 functions in Visual FoxPro Image Gallery
Raw Input
GetRawInputData
GetRawInputDeviceInfo
GetRawInputDeviceList
RegisterRawInputDevices
Code examples:
Enumerating raw input devices attached to the system (keyboard, mouse, human interface device)
GetRawInputDeviceList
..msdn    Add comment     W32 Constants      Translate this page
Enumerates the raw input devices attached to the system.
Code examples:
Enumerating raw input devices attached to the system (keyboard, mouse, human interface device)
Declaration:
UINT WINAPI GetRawInputDeviceList(
  __out_opt PRAWINPUTDEVICELIST pRawInputDeviceList,
  __inout PUINT puiNumDevices,
  __in UINT cbSize
);

FoxPro declaration:
DECLARE INTEGER GetRawInputDeviceList IN user32;
    STRING @pRawInputDeviceList,;
    LONG @puiNumDevices,;
    LONG cbSize
Parameters:
pRawInputDeviceList [out, optional]
An array of RAWINPUTDEVICELIST structures for the devices attached to the system. If NULL, the number of devices are returned in *puiNumDevices.

puiNumDevices [in, out]
If pRawInputDeviceList is NULL, the function populates this variable with the number of devices attached to the system; otherwise, this variable specifies the number of RAWINPUTDEVICELIST structures that can be contained in the buffer to which pRawInputDeviceList points.

cbSize [in]
The size of a RAWINPUTDEVICELIST structure, in bytes.
Return value:
If the function is successful, the return value is the number of devices stored in the buffer pointed to by pRawInputDeviceList.
Usage:
nDeviceCount=0
= GetRawInputDeviceList(NULL, @nDeviceCount,;
    RAWINPUTDEVICELIST_SIZE)

cBuffer = REPLICATE(CHR(0),;
    RAWINPUTDEVICELIST_SIZE * nDeviceCount)

= GetRawInputDeviceList(@cBuffer, @nDeviceCount,;
    RAWINPUTDEVICELIST_SIZE)
My comment:
See also: GetRawInputDeviceInfo
Word Index links for the GetRawInputDeviceList :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2011-01-04 20:00:56
Modified: 2011-01-04 20:13:14
Visited in last 7 days: 76
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.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.224.197.86)
12 sec.Function: 'GetPrinterData'
24 sec.Function: 'SetCurrentDirectory'
37 sec.Function: 'EndTask'
48 sec.Function: 'CeOidGetInfoEx'
1 min.Function: 'SetGraphicsMode'
1.2 min.Function: 'SQLConfigDataSource'
1.4 min.Function: 'ExitProcess'
1.62 min.Function: 'GetMonitorContrast'
1.83 min.
Function group: 'GDI+ Font'
2.03 min.Function: 'GetKeyboardType'
Google
Advertise here!