e7b2d9ecfee015928723b1a6fa27711e63080717
3 * COPYRIGHT: See COPYING in the top level directory
4 * PROJECT: ReactOS devmgr.dll
5 * FILE: lib/devmgr/stubs.c
6 * PURPOSE: devmgr.dll stubs
7 * PROGRAMMER: Thomas Weidenmueller (w3seek@users.sourceforge.net)
8 * NOTES: If you implement a function, remove it from this file
10 * Some helpful resources:
11 * http://support.microsoft.com/default.aspx?scid=kb;%5BLN%5D;815320
12 * http://www.jsiinc.com/SUBO/tip7400/rh7482.htm
13 * http://www.jsiinc.com/SUBM/tip6400/rh6490.htm
23 /***************************************************************************
25 * DeviceManager_ExecuteA
28 * Starts the Device Manager
31 * hWndParent: Handle to the parent window
32 * hInst: Handle to the application instance
33 * lpMachineName: Machine Name, NULL is the local machine
34 * nCmdShow: Specifies how the window should be shown
37 * TRUE: if no errors occured
38 * FALSE: if the device manager could not be executed
43 * - Win runs the device manager in a separate process, so hWndParent is somehow
50 DeviceManager_ExecuteA(HWND hWndParent
,
60 /***************************************************************************
62 * DeviceManager_ExecuteW
65 * Starts the Device Manager
68 * hWndParent: Handle to the parent window
69 * hInst: Handle to the application instance
70 * lpMachineName: Machine Name, NULL is the local machine
71 * nCmdShow: Specifies how the window should be shown
74 * TRUE: if no errors occured
75 * FALSE: if the device manager could not be executed
80 * - Win runs the device manager in a separate process, so hWndParent is somehow
87 DeviceManager_ExecuteW(HWND hWndParent
,
89 LPCWSTR lpMachineName
,
97 /***************************************************************************
99 * DeviceProperties_RunDLLA
102 * Invokes the device properties dialog
105 * hWndParent: Handle to the parent window
106 * hInst: Handle to the application instance
107 * lpDeviceCmd: A command that includes the DeviceID of the properties to be shown,
109 * nCmdShow: Specifies how the window should be shown
116 * - lpDeviceCmd is a string in the form of "/MachineName MACHINE /DeviceID DEVICEPATH"
117 * (/MachineName is optional). This function only parses this string and eventually
118 * calls DeviceProperties().
124 DeviceProperties_RunDLLA(HWND hWndParent
,
133 /***************************************************************************
135 * DeviceProperties_RunDLLW
138 * Invokes the device properties dialog
141 * hWndParent: Handle to the parent window
142 * hInst: Handle to the application instance
143 * lpDeviceCmd: A command that includes the DeviceID of the properties to be shown,
145 * nCmdShow: Specifies how the window should be shown
152 * - lpDeviceCmd is a string in the form of "/MachineName MACHINE /DeviceID DEVICEPATH"
153 * (/MachineName is optional). This function only parses this string and eventually
154 * calls DeviceProperties().
160 DeviceProperties_RunDLLW(HWND hWndParent
,
169 /***************************************************************************
174 * Invokes the device properties dialog directly
177 * hWndParent: Handle to the parent window
178 * hInst: Handle to the application instance
179 * lpMachineName: Machine Name, NULL is the local machine
180 * lpDeviceID: Specifies the device whose properties are to be shown
181 * Unknown: Unknown parameter, see NOTEs
184 * >=0: if no errors occured
185 * -1: if errors occured
190 * Unknown seems to be a BOOL, not sure what it does
196 DevicePropertiesA(HWND hWndParent
,
198 LPCSTR lpMachineName
,
207 /***************************************************************************
212 * Invokes the device properties dialog directly
215 * hWndParent: Handle to the parent window
216 * hInst: Handle to the application instance
217 * lpMachineName: Machine Name, NULL is the local machine
218 * lpDeviceID: Specifies the device whose properties are to be shown
219 * Unknown: Unknown parameter, see NOTEs
222 * >=0: if no errors occured
223 * -1: if errors occured
228 * Unknown seems to be a BOOL, not sure what it does
234 DevicePropertiesW(HWND hWndParent
,
236 LPCWSTR lpMachineName
,
245 /***************************************************************************
247 * DeviceProblemWizard_RunDLLA
250 * Calls the device problem wizard
253 * hWndParent: Handle to the parent window
254 * hInst: Handle to the application instance
255 * lpDeviceCmd: A command that includes the DeviceID of the properties to be shown,
257 * nCmdShow: Specifies how the window should be shown
264 * - Win XP exports this function as DeviceProblenWizard_RunDLLA, apparently it's
265 * a typo so we additionally export an alias function
266 * - lpDeviceCmd is a string in the form of "/MachineName MACHINE /DeviceID DEVICEPATH"
267 * (/MachineName is optional). This function only parses this string and eventually
268 * calls DeviceProperties().
274 DeviceProblemWizard_RunDLLA(HWND hWndParent
,
283 /***************************************************************************
285 * DeviceProblemWizard_RunDLLW
288 * Calls the device problem wizard
291 * hWndParent: Handle to the parent window
292 * hInst: Handle to the application instance
293 * lpDeviceCmd: A command that includes the DeviceID of the properties to be shown,
295 * nCmdShow: Specifies how the window should be shown
302 * - Win XP exports this function as DeviceProblenWizard_RunDLLA, apparently it's
303 * a typo so we additionally export an alias function
304 * - lpDeviceCmd is a string in the form of "/MachineName MACHINE /DeviceID DEVICEPATH"
305 * (/MachineName is optional). This function only parses this string and eventually
306 * calls DeviceProperties().
312 DeviceProblemWizard_RunDLLW(HWND hWndParent
,
321 /***************************************************************************
323 * DeviceManagerPrintA
326 * Calls the device problem wizard
329 * lpMachineName: Machine Name, NULL is the local machine
330 * lpPrinter: Filename of the printer where it should be printed on
331 * nPrintMode: Specifies what kind of information is to be printed
332 * DEV_PRINT_ABSTRACT: Prints an abstract of system information, the parameters
333 * uNumberOfGuids, Guids are ignored
334 * DEV_PRINT_SELECTED: Prints information about the devices listed in Guids
335 * DEV_PRINT_ALL: Prints an abstract of system information and all
337 * uNumberOfGuids: Numbers of guids in the Guids array, this parameter is ignored unless
338 * nPrintMode is DEV_PRINT_SELECTED
339 * lpGuids: Array of device guids, this parameter is ignored unless
340 * nPrintMode is DEV_PRINT_SELECTED
343 * TRUE: if no errors occured
344 * FALSE: if errors occured
354 DeviceManagerPrintA(LPCSTR lpMachineName
,
365 /***************************************************************************
367 * DeviceManagerPrintW
370 * Calls the device problem wizard
373 * lpMachineName: Machine Name, NULL is the local machine
374 * lpPrinter: Filename of the printer where it should be printed on
375 * nPrintMode: Specifies what kind of information is to be printed
376 * DEV_PRINT_ABSTRACT: Prints an abstract of system information, the parameters
377 * uNumberOfGuids, Guids are ignored
378 * DEV_PRINT_SELECTED: Prints information about the devices listed in Guids
379 * DEV_PRINT_ALL: Prints an abstract of system information and all
381 * uNumberOfGuids: Numbers of guids in the Guids array, this parameter is ignored unless
382 * nPrintMode is DEV_PRINT_SELECTED
383 * lpGuids: Array of device guids, this parameter is ignored unless
384 * nPrintMode is DEV_PRINT_SELECTED
387 * TRUE: if no errors occured
388 * FALSE: if errors occured
398 DeviceManagerPrintW(LPCWSTR lpMachineName
,