10 extern HINSTANCE hDllInstance
;
12 ULONG
DbgPrint(PCH Format
,...);
16 DeviceManager_ExecuteA(HWND hWndParent
,
23 DeviceManager_ExecuteW(HWND hWndParent
,
25 LPCWSTR lpMachineName
,
30 DeviceProperties_RunDLLA(HWND hWndParent
,
37 DeviceProperties_RunDLLW(HWND hWndParent
,
44 DevicePropertiesA(HWND hWndParent
,
52 DevicePropertiesW(HWND hWndParent
,
54 LPCWSTR lpMachineName
,
60 DeviceProblemTextA(IN HMACHINE hMachine OPTIONAL
,
68 DeviceProblemTextW(IN HMACHINE hMachine OPTIONAL
,
76 DeviceProblemWizardA(IN HWND hWndParent OPTIONAL
,
77 IN LPCSTR lpMachineName OPTIONAL
,
78 IN LPCSTR lpDeviceID
);
83 DeviceProblemWizardW(IN HWND hWndParent OPTIONAL
,
84 IN LPCWSTR lpMachineName OPTIONAL
,
85 IN LPCWSTR lpDeviceID
);
89 DeviceProblemWizard_RunDLLA(HWND hWndParent
,
96 DeviceProblemWizard_RunDLLW(HWND hWndParent
,
101 #define DEV_PRINT_ABSTRACT (0)
102 #define DEV_PRINT_SELECTED (1)
103 #define DEV_PRINT_ALL (2)
107 DeviceManagerPrintA(LPCSTR lpMachineName
,
115 DeviceManagerPrintW(LPCWSTR lpMachineName
,
123 DeviceAdvancedPropertiesA(IN HWND hWndParent OPTIONAL
,
124 IN LPCSTR lpMachineName OPTIONAL
,
125 IN LPCSTR lpDeviceID
);
129 DeviceAdvancedPropertiesW(IN HWND hWndParent OPTIONAL
,
130 IN LPCWSTR lpMachineName OPTIONAL
,
131 IN LPCWSTR lpDeviceID
);
135 HWPD_STANDARDLIST
= 0,
137 HWPD_MAX
= HWPD_LARGELIST
138 } HWPAGE_DISPLAYMODE
, *PHWPAGE_DISPLAYMODE
;
142 DeviceCreateHardwarePage(HWND hWndParent
,
147 DeviceCreateHardwarePageEx(IN HWND hWndParent
,
149 IN UINT uNumberOfGuids
,
150 IN HWPAGE_DISPLAYMODE DisplayMode
);
152 #define DPF_UNKNOWN (0x1)
153 #define DPF_DEVICE_STATUS_ACTION (0x2)
156 DevicePropertiesExA(IN HWND hWndParent OPTIONAL
,
157 IN LPCSTR lpMachineName OPTIONAL
,
158 IN LPCSTR lpDeviceID OPTIONAL
,
159 IN DWORD dwFlags OPTIONAL
,
160 IN BOOL bShowDevMgr
);
164 DevicePropertiesExW(IN HWND hWndParent OPTIONAL
,
165 IN LPCWSTR lpMachineName OPTIONAL
,
166 IN LPCWSTR lpDeviceID OPTIONAL
,
167 IN DWORD dwFlags OPTIONAL
,
168 IN BOOL bShowDevMgr
);
171 #define DeviceManager_Execute DeviceManager_ExecuteW
172 #define DeviceProperties_RunDLL DeviceProperties_RunDLLW
173 #define DeviceProperties DevicePropertiesW
174 #define DeviceProblemText DeviceProblemTextW
175 #define DeviceProblemWizard DeviceProblemWizardW
176 #define DeviceProblemWizard_RunDLL DeviceProblemWizard_RunDLLW
177 #define DeviceManagerPrint DeviceManagerPrintW
178 #define DeviceAdvancedProperties DeviceAdvancedPropertiesW
179 #define DevicePropertiesEx DevicePropertiesExW
181 #define DeviceManager_Execute DeviceManager_ExecuteA
182 #define DeviceProperties_RunDLL DeviceProperties_RunDLLA
183 #define DeviceProperties DevicePropertiesA
184 #define DeviceProblemText DeviceProblemTextA
185 #define DeviceProblemWizard DeviceProblemWizardA
186 #define DeviceProblemWizard_RunDLL DeviceProblemWizard_RunDLLA
187 #define DeviceManagerPrint DeviceManagerPrintA
188 #define DeviceAdvancedProperties DeviceAdvancedPropertiesA
189 #define DevicePropertiesEx DevicePropertiesExA
195 DisplayDeviceAdvancedProperties(IN HWND hWndParent
,
196 IN LPCWSTR lpDeviceID OPTIONAL
,
197 IN HDEVINFO DeviceInfoSet
,
198 IN PSP_DEVINFO_DATA DeviceInfoData
,
199 IN HINSTANCE hComCtl32
,
200 IN LPCWSTR lpMachineName
,
206 ShowDeviceProblemWizard(IN HWND hWndParent OPTIONAL
,
207 IN HDEVINFO hDevInfo
,
208 IN PSP_DEVINFO_DATA DevInfoData
,
209 IN HMACHINE hMachine OPTIONAL
);
215 LengthOfStrResource(IN HINSTANCE hInst
,
219 LoadAndFormatString(IN HINSTANCE hInstance
,
221 OUT LPWSTR
*lpTarget
,
225 LoadAndFormatStringsCat(IN HINSTANCE hInstance
,
228 OUT LPWSTR
*lpTarget
,
232 ListViewGetSelectedItemData(IN HWND hwnd
);
235 ConvertMultiByteToUnicode(IN LPCSTR lpMultiByteStr
,
239 LoadAndInitComctl32(VOID
);
242 GetDeviceManufacturerString(IN HDEVINFO DeviceInfoSet
,
243 IN PSP_DEVINFO_DATA DeviceInfoData
,
245 IN DWORD BufferSize
);
248 GetDeviceLocationString(IN DEVINST dnDevInst OPTIONAL
,
249 IN DEVINST dnParentDevInst OPTIONAL
,
251 IN DWORD BufferSize
);
254 GetDeviceStatusString(IN DEVINST DevInst
,
255 IN HMACHINE hMachine
,
257 IN DWORD BufferSize
);
260 IsDeviceHidden(IN DEVINST DevInst
,
261 IN HMACHINE hMachine
,
265 IsDriverInstalled(IN DEVINST DevInst
,
266 IN HMACHINE hMachine
,
267 OUT BOOL
*Installed
);
270 CanDisableDevice(IN DEVINST DevInst
,
271 IN HMACHINE hMachine
,
272 OUT BOOL
*CanDisable
);
275 IsDeviceStarted(IN DEVINST DevInst
,
276 IN HMACHINE hMachine
,
277 OUT BOOL
*IsStarted
);
280 EnableDevice(IN HDEVINFO DeviceInfoSet
,
281 IN PSP_DEVINFO_DATA DevInfoData OPTIONAL
,
283 IN DWORD HardwareProfile OPTIONAL
,
284 OUT BOOL
*bNeedReboot OPTIONAL
);
287 GetDeviceTypeString(IN PSP_DEVINFO_DATA DeviceInfoData
,
289 IN DWORD BufferSize
);
292 GetDeviceDescriptionString(IN HDEVINFO DeviceInfoSet
,
293 IN PSP_DEVINFO_DATA DeviceInfoData
,
295 IN DWORD BufferSize
);
297 #endif /* __DEVMGR_H */