Fixed some issues found by winapi_check.
[wine] / dlls / setupapi / devinst.c
1 /*
2  * SetupAPI device installer
3  *
4  */
5
6 #include "debugtools.h"
7 #include "windef.h"
8 #include "setupx16.h"
9 #include "heap.h"
10
11 DEFAULT_DEBUG_CHANNEL(setupapi);
12
13 /***********************************************************************
14  *              DiGetClassDevs (SETUPX.304)
15  * Return a list of installed system devices.
16  * Uses HKLM\\ENUM to list devices.
17  */
18 RETERR16 WINAPI DiGetClassDevs16(LPLPDEVICE_INFO16 lplpdi,
19                                  LPCSTR lpszClassName, HWND16 hwndParent, INT16 iFlags)
20 {
21     LPDEVICE_INFO16 lpdi;
22
23     FIXME("(%p, '%s', %04x, %04x), semi-stub.\n",
24           lplpdi, lpszClassName, hwndParent, iFlags);
25     lpdi = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(DEVICE_INFO16));
26     lpdi->cbSize = sizeof(DEVICE_INFO16);
27     *lplpdi = lpdi;
28     return OK;
29 }