Using Win32 functions in Visual FoxPro Image Gallery
Raw Input
Code examples:
Enumerating raw input devices attached to the system (keyboard, mouse, human interface device)
..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)
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
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.
= GetRawInputDeviceList(NULL, @nDeviceCount,;

cBuffer = REPLICATE(CHR(0),;

= GetRawInputDeviceList(@cBuffer, @nDeviceCount,;
My comment:
See also: GetRawInputDeviceInfo
Word Index links for the GetRawInputDeviceList :
Translate this page:
  Spanish    Portuguese    German    French    Italian 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: 99
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 (
11 sec.Function: 'GdipReleaseDC'
24 sec.Function: 'AVIStreamTimeToSample'
36 sec.Function: 'NetShareDel'
Function group: 'Network Management'
47 sec.Function: 'waveOutReset'
58 sec.Function: 'GdipGetPageScale'
1.1 min.
Function group: 'Icon'
1.27 min.Example: 'GDI+: reading and writing metadata in JPEG and TIFF files'
1.52 min.Function: 'WinHttpCloseHandle'
1.7 min.Function: 'StretchDIBits'
1.9 min.Function: 'JetGotoBookmark'
Advertise here!