2000-12-13 22:31:37 +01:00
|
|
|
/*
|
|
|
|
* SetupAPI device installer
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "windef.h"
|
2001-07-25 02:43:29 +02:00
|
|
|
#include "winbase.h"
|
2000-12-13 22:31:37 +01:00
|
|
|
#include "setupx16.h"
|
2001-07-25 02:43:29 +02:00
|
|
|
#include "debugtools.h"
|
2000-12-13 22:31:37 +01:00
|
|
|
|
|
|
|
DEFAULT_DEBUG_CHANNEL(setupapi);
|
|
|
|
|
2000-12-16 22:55:05 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* DiGetClassDevs (SETUPX.304)
|
2000-12-13 22:31:37 +01:00
|
|
|
* Return a list of installed system devices.
|
|
|
|
* Uses HKLM\\ENUM to list devices.
|
|
|
|
*/
|
|
|
|
RETERR16 WINAPI DiGetClassDevs16(LPLPDEVICE_INFO16 lplpdi,
|
|
|
|
LPCSTR lpszClassName, HWND16 hwndParent, INT16 iFlags)
|
|
|
|
{
|
|
|
|
LPDEVICE_INFO16 lpdi;
|
|
|
|
|
|
|
|
FIXME("(%p, '%s', %04x, %04x), semi-stub.\n",
|
|
|
|
lplpdi, lpszClassName, hwndParent, iFlags);
|
|
|
|
lpdi = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(DEVICE_INFO16));
|
|
|
|
lpdi->cbSize = sizeof(DEVICE_INFO16);
|
|
|
|
*lplpdi = lpdi;
|
|
|
|
return OK;
|
|
|
|
}
|