2 * SetupAPI device installer
4 * Copyright 2000 Andreas Mohr for Codeweavers
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 #include "wine/debug.h"
27 WINE_DEFAULT_DEBUG_CHANNEL(setupapi);
29 /***********************************************************************
30 * DiGetClassDevs (SETUPX.304)
31 * Return a list of installed system devices.
32 * Uses HKLM\\ENUM to list devices.
34 RETERR16 WINAPI DiGetClassDevs16(LPLPDEVICE_INFO16 lplpdi,
35 LPCSTR lpszClassName, HWND16 hwndParent, INT16 iFlags)
39 FIXME("(%p, '%s', %04x, %04x), semi-stub.\n",
40 lplpdi, lpszClassName, hwndParent, iFlags);
41 lpdi = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(DEVICE_INFO16));
42 lpdi->cbSize = sizeof(DEVICE_INFO16);
43 *lplpdi = (LPDEVICE_INFO16)MapLS(lpdi);
47 /***********************************************************************
48 * DiBuildCompatDrvList (SETUPX.300)
50 RETERR16 WINAPI DiBuildCompatDrvList16(LPDEVICE_INFO16 lpdi)
52 FIXME("(%p): stub\n", lpdi);
53 lpdi->lpCompatDrvList = NULL;
57 /***********************************************************************
58 * DiCallClassInstaller (SETUPX.308)
60 RETERR16 WINAPI DiCallClassInstaller16(/*DI_FUNCTIONS*/WORD diFctn, LPDEVICE_INFO16 lpdi)
62 FIXME("(%x, %p): stub\n", diFctn, lpdi);
66 /***********************************************************************
67 * DiCreateDevRegKey (SETUPX.318)
69 RETERR16 WINAPI DiCreateDevRegKey16(LPDEVICE_INFO16 lpdi,
73 FIXME("(%p, %p, %x, %s, %x): stub\n", lpdi, p2, w3, debugstr_a(s4), w5);
77 /***********************************************************************
78 * DiDeleteDevRegKey (SETUPX.344)
80 RETERR16 WINAPI DiDeleteDevRegKey16(LPDEVICE_INFO16 lpdi, INT16 iFlags)
82 FIXME("(%p, %x): stub\n", lpdi, iFlags);
86 /***********************************************************************
87 * DiCreateDeviceInfo (SETUPX.303)
89 RETERR16 WINAPI DiCreateDeviceInfo16(LPLPDEVICE_INFO16 lplpdi,
90 LPCSTR lpszDescription, DWORD dnDevnode,
91 HKEY16 hkey, LPCSTR lpszRegsubkey,
92 LPCSTR lpszClassName, HWND16 hwndParent)
95 FIXME("(%p %s %08lx %x %s %s %x): stub\n", lplpdi,
96 debugstr_a(lpszDescription), dnDevnode, hkey,
97 debugstr_a(lpszRegsubkey), debugstr_a(lpszClassName), hwndParent);
98 lpdi = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(DEVICE_INFO16));
99 lpdi->cbSize = sizeof(DEVICE_INFO16);
100 strcpy(lpdi->szClassName, lpszClassName);
101 lpdi->hwndParent = hwndParent;
102 *lplpdi = (LPDEVICE_INFO16)MapLS(lpdi);
106 /***********************************************************************
107 * DiDestroyDeviceInfoList (SETUPX.305)
109 RETERR16 WINAPI DiDestroyDeviceInfoList16(LPDEVICE_INFO16 lpdi)
111 FIXME("(%p): stub\n", lpdi);
115 /***********************************************************************
116 * DiOpenDevRegKey (SETUPX.319)
118 RETERR16 WINAPI DiOpenDevRegKey16(LPDEVICE_INFO16 lpdi,
119 LPHKEY16 lphk,INT16 iFlags)
121 FIXME("(%p %p %d): stub\n", lpdi, lphk, iFlags);
125 /***********************************************************************
126 * SetupDiGetDeviceInterfaceDetailA (SETUPAPI.@)
128 BOOL WINAPI SetupDiGetDeviceInterfaceDetailA(
129 HDEVINFO DeviceInfoSet,
130 PSP_DEVICE_INTERFACE_DATA DeviceInterfaceData,
131 PSP_DEVICE_INTERFACE_DETAIL_DATAA DeviceInterfaceDetailData,
132 DWORD DeviceInterfaceDetailDataSize,
134 PSP_DEVINFO_DATA DeviceInfoData )
140 /***********************************************************************
141 * SetupDiGetDeviceInterfaceDetailW (SETUPAPI.@)
143 BOOL WINAPI SetupDiGetDeviceInterfaceDetailW(
144 HDEVINFO DeviceInfoSet,
145 PSP_DEVICE_INTERFACE_DATA DeviceInterfaceData,
146 PSP_DEVICE_INTERFACE_DETAIL_DATAW DeviceInterfaceDetailData,
147 DWORD DeviceInterfaceDetailDataSize,
149 PSP_DEVINFO_DATA DeviceInfoData )
155 /***********************************************************************
156 * SetupDiEnumDeviceInterfaces (SETUPAPI.@)
158 BOOL WINAPI SetupDiEnumDeviceInterfaces(
159 HDEVINFO DeviceInfoSet,
160 PSP_DEVINFO_DATA DeviceInfoData,
161 CONST GUID * InterfaceClassGuid,
163 PSP_DEVICE_INTERFACE_DATA DeviceInterfaceData)
169 /***********************************************************************
170 * SetupDiGetClassDevsA (SETUPAPI.@)
172 HDEVINFO WINAPI SetupDiGetClassDevsA(
178 FIXME("%s %s %p %08lx\n",debugstr_guid(class),enumstr,parent,flags);
180 return (HDEVINFO) INVALID_HANDLE_VALUE;
183 /***********************************************************************
184 * SetupDiGetClassDevsW (SETUPAPI.@)
186 HDEVINFO WINAPI SetupDiGetClassDevsW(
192 FIXME("%s %s %p %08lx\n",debugstr_guid(class),debugstr_w(enumstr),parent,flags);
194 return (HDEVINFO) INVALID_HANDLE_VALUE;
196 /***********************************************************************
197 * SetupDiEnumDeviceInfo (SETUPAPI.@)
199 BOOL WINAPI SetupDiEnumDeviceInfo(
202 PSP_DEVINFO_DATA info)
204 FIXME("%p %ld %p\n", devinfo, index, info );
208 if(info->cbSize < sizeof *info)
214 /***********************************************************************
215 * SetupDiDestroyDeviceInfoList (SETUPAPI.@)
217 BOOL WINAPI SetupDiDestroyDeviceInfoList( HDEVINFO devinfo )
219 FIXME("%04lx\n", (DWORD)devinfo);
223 /***********************************************************************
224 * SetupDiGetDeviceRegistryPropertyA (SETUPAPI.@)
226 BOOL WINAPI SetupDiGetDeviceRegistryPropertyA(
228 PSP_DEVINFO_DATA DeviceInfoData,
230 PDWORD PropertyRegDataType,
231 PBYTE PropertyBuffer,
232 DWORD PropertyBufferSize,
235 FIXME("%04lx %p %ld %p %p %ld %p\n", (DWORD)devinfo, DeviceInfoData,
236 Property, PropertyRegDataType, PropertyBuffer, PropertyBufferSize,