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 * DeviceProblemWizard_RunDLLA
102 * Calls the device problem wizard
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 * - Win XP exports this function as DeviceProblenWizard_RunDLLA, apparently it's
117 * a typo so we additionally export an alias function
118 * - lpDeviceCmd is a string in the form of "/MachineName MACHINE /DeviceID DEVICEPATH"
119 * (/MachineName is optional). This function only parses this string and eventually
120 * calls DeviceProperties().
126 DeviceProblemWizard_RunDLLA(HWND hWndParent
,
135 /***************************************************************************
137 * DeviceProblemWizard_RunDLLW
140 * Calls the device problem wizard
143 * hWndParent: Handle to the parent window
144 * hInst: Handle to the application instance
145 * lpDeviceCmd: A command that includes the DeviceID of the properties to be shown,
147 * nCmdShow: Specifies how the window should be shown
154 * - Win XP exports this function as DeviceProblenWizard_RunDLLA, apparently it's
155 * a typo so we additionally export an alias function
156 * - lpDeviceCmd is a string in the form of "/MachineName MACHINE /DeviceID DEVICEPATH"
157 * (/MachineName is optional). This function only parses this string and eventually
158 * calls DeviceProperties().
164 DeviceProblemWizard_RunDLLW(HWND hWndParent
,
173 /***************************************************************************
175 * DeviceManagerPrintA
178 * Calls the device problem wizard
181 * lpMachineName: Machine Name, NULL is the local machine
182 * lpPrinter: Filename of the printer where it should be printed on
183 * nPrintMode: Specifies what kind of information is to be printed
184 * DEV_PRINT_ABSTRACT: Prints an abstract of system information, the parameters
185 * uNumberOfGuids, Guids are ignored
186 * DEV_PRINT_SELECTED: Prints information about the devices listed in Guids
187 * DEV_PRINT_ALL: Prints an abstract of system information and all
189 * uNumberOfGuids: Numbers of guids in the Guids array, this parameter is ignored unless
190 * nPrintMode is DEV_PRINT_SELECTED
191 * lpGuids: Array of device guids, this parameter is ignored unless
192 * nPrintMode is DEV_PRINT_SELECTED
195 * TRUE: if no errors occured
196 * FALSE: if errors occured
206 DeviceManagerPrintA(LPCSTR lpMachineName
,
217 /***************************************************************************
219 * DeviceManagerPrintW
222 * Calls the device problem wizard
225 * lpMachineName: Machine Name, NULL is the local machine
226 * lpPrinter: Filename of the printer where it should be printed on
227 * nPrintMode: Specifies what kind of information is to be printed
228 * DEV_PRINT_ABSTRACT: Prints an abstract of system information, the parameters
229 * uNumberOfGuids, Guids are ignored
230 * DEV_PRINT_SELECTED: Prints information about the devices listed in Guids
231 * DEV_PRINT_ALL: Prints an abstract of system information and all
233 * uNumberOfGuids: Numbers of guids in the Guids array, this parameter is ignored unless
234 * nPrintMode is DEV_PRINT_SELECTED
235 * lpGuids: Array of device guids, this parameter is ignored unless
236 * nPrintMode is DEV_PRINT_SELECTED
239 * TRUE: if no errors occured
240 * FALSE: if errors occured
250 DeviceManagerPrintW(LPCWSTR lpMachineName
,