11 extern HINSTANCE hDllInstance
;
13 ULONG
DbgPrint(PCH Format
,...);
17 DeviceManager_ExecuteA(HWND hWndParent
,
24 DeviceManager_ExecuteW(HWND hWndParent
,
26 LPCWSTR lpMachineName
,
31 DeviceProperties_RunDLLA(HWND hWndParent
,
38 DeviceProperties_RunDLLW(HWND hWndParent
,
45 DevicePropertiesA(HWND hWndParent
,
53 DevicePropertiesW(HWND hWndParent
,
55 LPCWSTR lpMachineName
,
61 DeviceProblemTextA(IN HMACHINE hMachine OPTIONAL
,
69 DeviceProblemTextW(IN HMACHINE hMachine OPTIONAL
,
77 DeviceProblemWizardA(IN HWND hWndParent OPTIONAL
,
78 IN LPCSTR lpMachineName OPTIONAL
,
79 IN LPCSTR lpDeviceID
);
84 DeviceProblemWizardW(IN HWND hWndParent OPTIONAL
,
85 IN LPCWSTR lpMachineName OPTIONAL
,
86 IN LPCWSTR lpDeviceID
);
90 DeviceProblemWizard_RunDLLA(HWND hWndParent
,
97 DeviceProblemWizard_RunDLLW(HWND hWndParent
,
102 #define DEV_PRINT_ABSTRACT (0)
103 #define DEV_PRINT_SELECTED (1)
104 #define DEV_PRINT_ALL (2)
108 DeviceManagerPrintA(LPCSTR lpMachineName
,
116 DeviceManagerPrintW(LPCWSTR lpMachineName
,
124 DeviceAdvancedPropertiesA(IN HWND hWndParent OPTIONAL
,
125 IN LPCSTR lpMachineName OPTIONAL
,
126 IN LPCSTR lpDeviceID
);
130 DeviceAdvancedPropertiesW(IN HWND hWndParent OPTIONAL
,
131 IN LPCWSTR lpMachineName OPTIONAL
,
132 IN LPCWSTR lpDeviceID
);
136 HWPD_STANDARDLIST
= 0,
138 HWPD_MAX
= HWPD_LARGELIST
139 } HWPAGE_DISPLAYMODE
, *PHWPAGE_DISPLAYMODE
;
143 DeviceCreateHardwarePage(HWND hWndParent
,
148 DeviceCreateHardwarePageEx(IN HWND hWndParent
,
150 IN UINT uNumberOfGuids
,
151 IN HWPAGE_DISPLAYMODE DisplayMode
);
153 #define DPF_UNKNOWN (0x1)
154 #define DPF_DEVICE_STATUS_ACTION (0x2)
157 DevicePropertiesExA(IN HWND hWndParent OPTIONAL
,
158 IN LPCSTR lpMachineName OPTIONAL
,
159 IN LPCSTR lpDeviceID OPTIONAL
,
160 IN DWORD dwFlags OPTIONAL
,
161 IN BOOL bShowDevMgr
);
165 DevicePropertiesExW(IN HWND hWndParent OPTIONAL
,
166 IN LPCWSTR lpMachineName OPTIONAL
,
167 IN LPCWSTR lpDeviceID OPTIONAL
,
168 IN DWORD dwFlags OPTIONAL
,
169 IN BOOL bShowDevMgr
);
172 #define DeviceManager_Execute DeviceManager_ExecuteW
173 #define DeviceProperties_RunDLL DeviceProperties_RunDLLW
174 #define DeviceProperties DevicePropertiesW
175 #define DeviceProblemText DeviceProblemTextW
176 #define DeviceProblemWizard DeviceProblemWizardW
177 #define DeviceProblemWizard_RunDLL DeviceProblemWizard_RunDLLW
178 #define DeviceManagerPrint DeviceManagerPrintW
179 #define DeviceAdvancedProperties DeviceAdvancedPropertiesW
180 #define DevicePropertiesEx DevicePropertiesExW
182 #define DeviceManager_Execute DeviceManager_ExecuteA
183 #define DeviceProperties_RunDLL DeviceProperties_RunDLLA
184 #define DeviceProperties DevicePropertiesA
185 #define DeviceProblemText DeviceProblemTextA
186 #define DeviceProblemWizard DeviceProblemWizardA
187 #define DeviceProblemWizard_RunDLL DeviceProblemWizard_RunDLLA
188 #define DeviceManagerPrint DeviceManagerPrintA
189 #define DeviceAdvancedProperties DeviceAdvancedPropertiesA
190 #define DevicePropertiesEx DevicePropertiesExA
196 DisplayDeviceAdvancedProperties(IN HWND hWndParent
,
197 IN LPCWSTR lpDeviceID OPTIONAL
,
198 IN HDEVINFO DeviceInfoSet
,
199 IN PSP_DEVINFO_DATA DeviceInfoData
,
200 IN HINSTANCE hComCtl32
,
201 IN LPCWSTR lpMachineName
,
207 ShowDeviceProblemWizard(IN HWND hWndParent OPTIONAL
,
208 IN HDEVINFO hDevInfo
,
209 IN PSP_DEVINFO_DATA DevInfoData
,
210 IN HMACHINE hMachine OPTIONAL
);
216 LengthOfStrResource(IN HINSTANCE hInst
,
220 LoadAndFormatString(IN HINSTANCE hInstance
,
222 OUT LPWSTR
*lpTarget
,
226 LoadAndFormatStringsCat(IN HINSTANCE hInstance
,
229 OUT LPWSTR
*lpTarget
,
233 ListViewGetSelectedItemData(IN HWND hwnd
);
236 ConvertMultiByteToUnicode(IN LPCSTR lpMultiByteStr
,
240 LoadAndInitComctl32(VOID
);
243 GetDeviceManufacturerString(IN HDEVINFO DeviceInfoSet
,
244 IN PSP_DEVINFO_DATA DeviceInfoData
,
246 IN DWORD BufferSize
);
249 GetDeviceLocationString(IN DEVINST dnDevInst OPTIONAL
,
250 IN DEVINST dnParentDevInst OPTIONAL
,
252 IN DWORD BufferSize
);
255 GetDeviceStatusString(IN DEVINST DevInst
,
256 IN HMACHINE hMachine
,
258 IN DWORD BufferSize
);
261 GetDriverProviderString(IN HDEVINFO DeviceInfoSet
,
262 IN PSP_DEVINFO_DATA DeviceInfoData
,
264 IN DWORD BufferSize
);
267 GetDriverVersionString(IN HDEVINFO DeviceInfoSet
,
268 IN PSP_DEVINFO_DATA DeviceInfoData
,
270 IN DWORD BufferSize
);
273 GetDriverDateString(IN HDEVINFO DeviceInfoSet
,
274 IN PSP_DEVINFO_DATA DeviceInfoData
,
276 IN DWORD BufferSize
);
279 IsDeviceHidden(IN DEVINST DevInst
,
280 IN HMACHINE hMachine
,
284 IsDriverInstalled(IN DEVINST DevInst
,
285 IN HMACHINE hMachine
,
286 OUT BOOL
*Installed
);
289 CanDisableDevice(IN DEVINST DevInst
,
290 IN HMACHINE hMachine
,
291 OUT BOOL
*CanDisable
);
294 IsDeviceStarted(IN DEVINST DevInst
,
295 IN HMACHINE hMachine
,
296 OUT BOOL
*IsStarted
);
299 EnableDevice(IN HDEVINFO DeviceInfoSet
,
300 IN PSP_DEVINFO_DATA DevInfoData OPTIONAL
,
302 IN DWORD HardwareProfile OPTIONAL
,
303 OUT BOOL
*bNeedReboot OPTIONAL
);
306 GetDeviceTypeString(IN PSP_DEVINFO_DATA DeviceInfoData
,
308 IN DWORD BufferSize
);
311 GetDeviceDescriptionString(IN HDEVINFO DeviceInfoSet
,
312 IN PSP_DEVINFO_DATA DeviceInfoData
,
314 IN DWORD BufferSize
);
317 FindCurrentDriver(IN HDEVINFO DeviceInfoSet
,
318 IN PSP_DEVINFO_DATA DeviceInfoData
,
319 OUT PSP_DRVINFO_DATA DriverInfoData
);
321 #endif /* __DEVMGR_H */