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(PVOID Unknown1
,
68 DeviceProblemTextW(PVOID Unknown1
,
76 DeviceProblemWizardA(HWND hWndParent
,
83 DeviceProblemWizardW(HWND hWndParent
,
84 LPCWSTR lpMachineName
,
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(HWND hWndParent
,
124 LPCSTR lpMachineName
,
129 DeviceAdvancedPropertiesW(HWND hWndParent
,
130 LPCWSTR lpMachineName
,
135 DeviceCreateHardwarePage(HWND hWndParent
,
140 DeviceCreateHardwarePageEx(HWND hWndParent
,
147 DevicePropertiesExA(HWND hWndParent
,
148 LPCSTR lpMachineName
,
155 DevicePropertiesExW(HWND hWndParent
,
156 LPCWSTR lpMachineName
,
162 #define DeviceManager_Execute DeviceManager_ExecuteW
163 #define DeviceProperties_RunDLL DeviceProperties_RunDLLW
164 #define DeviceProperties DevicePropertiesW
165 #define DeviceProblemText DeviceProblemTextW
166 #define DeviceProblemWizard DeviceProblemWizardW
167 #define DeviceProblemWizard_RunDLL DeviceProblemWizard_RunDLLW
168 #define DeviceManagerPrint DeviceManagerPrintW
169 #define DeviceAdvancedProperties DeviceAdvancedPropertiesW
170 #define DevicePropertiesEx DevicePropertiesExW
172 #define DeviceManager_Execute DeviceManager_ExecuteA
173 #define DeviceProperties_RunDLL DeviceProperties_RunDLLA
174 #define DeviceProperties DevicePropertiesA
175 #define DeviceProblemText DeviceProblemTextA
176 #define DeviceProblemWizard DeviceProblemWizardA
177 #define DeviceProblemWizard_RunDLL DeviceProblemWizard_RunDLLA
178 #define DeviceManagerPrint DeviceManagerPrintA
179 #define DeviceAdvancedProperties DeviceAdvancedPropertiesA
180 #define DevicePropertiesEx DevicePropertiesExA
186 DisplayDeviceAdvancedProperties(IN HWND hWndParent
,
187 IN LPCWSTR lpDeviceID OPTIONAL
,
188 IN HDEVINFO DeviceInfoSet
,
189 IN PSP_DEVINFO_DATA DeviceInfoData
,
190 IN HINSTANCE hComCtl32
,
191 IN LPCWSTR lpMachineName
);
196 LoadAndFormatString(IN HINSTANCE hInstance
,
198 OUT LPWSTR
*lpTarget
,
202 LoadAndFormatStringsCat(IN HINSTANCE hInstance
,
205 OUT LPWSTR
*lpTarget
,
209 ListViewGetSelectedItemData(IN HWND hwnd
);
212 ConvertMultiByteToUnicode(IN LPCSTR lpMultiByteStr
,
216 LoadAndInitComctl32(VOID
);
219 GetDeviceManufacturerString(IN HDEVINFO DeviceInfoSet
,
220 IN PSP_DEVINFO_DATA DeviceInfoData
,
222 IN DWORD BufferSize
);
225 GetDeviceLocationString(IN DEVINST dnDevInst OPTIONAL
,
226 IN DEVINST dnParentDevInst OPTIONAL
,
228 IN DWORD BufferSize
);
231 GetDeviceStatusString(IN DEVINST DevInst
,
232 IN HMACHINE hMachine
,
234 IN DWORD BufferSize
);
237 IsDeviceHidden(IN DEVINST DevInst
,
238 IN HMACHINE hMachine
,
242 CanDisableDevice(IN DEVINST DevInst
,
243 IN HMACHINE hMachine
,
244 OUT BOOL
*CanDisable
);
247 IsDeviceEnabled(IN DEVINST DevInst
,
248 IN HMACHINE hMachine
,
249 OUT BOOL
*IsEnabled
);
252 GetDeviceTypeString(IN PSP_DEVINFO_DATA DeviceInfoData
,
254 IN DWORD BufferSize
);
257 GetDeviceDescriptionString(IN HDEVINFO DeviceInfoSet
,
258 IN PSP_DEVINFO_DATA DeviceInfoData
,
260 IN DWORD BufferSize
);
262 #endif /* __DEVMGR_H */