Go to the source code of this file.
|
INT_PTR WINAPI | DeviceAdvancedPropertiesW (IN HWND hWndParent OPTIONAL, IN LPCWSTR lpMachineName OPTIONAL, IN LPCWSTR lpDeviceID) |
|
INT_PTR WINAPI | DeviceAdvancedPropertiesA (IN HWND hWndParent OPTIONAL, IN LPCSTR lpMachineName OPTIONAL, IN LPCSTR lpDeviceID) |
|
INT_PTR WINAPI | DevicePropertiesExA (IN HWND hWndParent OPTIONAL, IN LPCSTR lpMachineName OPTIONAL, IN LPCSTR lpDeviceID OPTIONAL, IN DWORD dwFlags OPTIONAL, IN BOOL bShowDevMgr) |
|
INT_PTR WINAPI | DevicePropertiesExW (IN HWND hWndParent OPTIONAL, IN LPCWSTR lpMachineName OPTIONAL, IN LPCWSTR lpDeviceID OPTIONAL, IN DWORD dwFlags OPTIONAL, IN BOOL bShowDevMgr) |
|
int WINAPI | DevicePropertiesA (HWND hWndParent, LPCSTR lpMachineName, LPCSTR lpDeviceID, BOOL bShowDevMgr) |
|
int WINAPI | DevicePropertiesW (HWND hWndParent, LPCWSTR lpMachineName, LPCWSTR lpDeviceID, BOOL bShowDevMgr) |
|
VOID WINAPI | DeviceProperties_RunDLLA (HWND hWndParent, HINSTANCE hInst, LPCSTR lpDeviceCmd, int nCmdShow) |
|
VOID WINAPI | DeviceProperties_RunDLLW (HWND hWndParent, HINSTANCE hInst, LPCWSTR lpDeviceCmd, int nCmdShow) |
|
BOOL WINAPI | DeviceManager_ExecuteA (HWND hWndParent, HINSTANCE hInst, LPCSTR lpMachineName, int nCmdShow) |
|
BOOL WINAPI | DeviceManager_ExecuteW (HWND hWndParent, HINSTANCE hInst, LPCWSTR lpMachineName, int nCmdShow) |
|
VOID WINAPI | DeviceProblemWizard_RunDLLA (HWND hWndParent, HINSTANCE hInst, LPCSTR lpDeviceCmd, int nCmdShow) |
|
VOID WINAPI | DeviceProblemWizard_RunDLLW (HWND hWndParent, HINSTANCE hInst, LPCWSTR lpDeviceCmd, int nCmdShow) |
|
BOOL WINAPI | DeviceManagerPrintA (LPCSTR lpMachineName, LPCSTR lpPrinter, int nPrintMode, UINT uNumberOfGuids, LPGUID lpGuids) |
|
BOOL WINAPI | DeviceManagerPrintW (LPCWSTR lpMachineName, LPCWSTR lpPrinter, int nPrintMode, UINT uNumberOfGuids, LPGUID lpGuids) |
|
STDAPI | DllCanUnloadNow () |
|
STDAPI | DllGetClassObject (REFCLSID rclsid, REFIID riid, LPVOID *ppv) |
|
STDAPI | DllRegisterServer () |
|
STDAPI | DllUnregisterServer () |
|
BOOL WINAPI | DllMain (_In_ HINSTANCE hinstDLL, _In_ DWORD dwReason, _In_ LPVOID lpvReserved) |
|
◆ DeviceAdvancedPropertiesA()
Definition at line 118 of file api.cpp.
121{
125
126 if (lpMachineName !=
NULL)
127 {
130 {
132 }
133 }
134 if (lpDeviceID !=
NULL)
135 {
138 {
140 }
141 }
142
144 lpMachineNameW,
145 lpDeviceIDW);
146
148 if (lpMachineNameW !=
NULL)
149 {
151 0,
152 lpMachineNameW);
153 }
154 if (lpDeviceIDW !=
NULL)
155 {
157 0,
158 lpDeviceIDW);
159 }
160
161 return Ret;
162}
#define HeapFree(x, y, z)
INT_PTR WINAPI DeviceAdvancedPropertiesW(IN HWND hWndParent OPTIONAL, IN LPCWSTR lpMachineName OPTIONAL, IN LPCWSTR lpDeviceID)
LPWSTR ConvertMultiByteToUnicode(IN LPCSTR lpMultiByteStr, IN UINT uCodePage)
static const WCHAR Cleanup[]
◆ DeviceAdvancedPropertiesW()
Definition at line 47 of file api.cpp.
50{
55
56 if (lpDeviceID ==
NULL)
57 {
60 }
61
62
64 if (hComCtl32 !=
NULL)
65 {
68 lpMachineName,
71 {
74 lpDeviceID,
76 0,
77 &DevInfoData))
78 {
80 lpDeviceID,
81 hDevInfo,
82 &DevInfoData,
83 hComCtl32,
84 lpMachineName,
85 0);
86 }
87
89 }
90
92 }
93
94 return Ret;
95}
INT_PTR DisplayDeviceAdvancedProperties(IN HWND hWndParent, IN LPCWSTR lpDeviceID OPTIONAL, IN HDEVINFO DeviceInfoSet, IN PSP_DEVINFO_DATA DeviceInfoData, IN HINSTANCE hComCtl32, IN LPCWSTR lpMachineName, IN DWORD dwFlags)
#define ERROR_INVALID_PARAMETER
#define INVALID_HANDLE_VALUE
HINSTANCE LoadAndInitComctl32(VOID)
BOOL WINAPI SetupDiDestroyDeviceInfoList(HDEVINFO devinfo)
#define SetupDiOpenDeviceInfo
#define SetupDiCreateDeviceInfoListEx
struct _SP_DEVINFO_DATA SP_DEVINFO_DATA
Referenced by DeviceAdvancedPropertiesA().
◆ DeviceManager_ExecuteA()
Definition at line 550 of file api.cpp.
554{
557
558 if (lpMachineName !=
NULL)
559 {
562 {
564 }
565 }
566
569 lpMachineNameW,
570 nCmdShow);
571
572 if (lpMachineNameW !=
NULL)
573 {
575 0,
576 lpMachineNameW);
577 }
578
579
580 return Ret;
581}
BOOL WINAPI DeviceManager_ExecuteW(HWND hWndParent, HINSTANCE hInst, LPCWSTR lpMachineName, int nCmdShow)
◆ DeviceManager_ExecuteW()
Definition at line 611 of file api.cpp.
615{
616
617
620}
bool Create(_In_ HWND hWndParent, _In_ HINSTANCE hInst, _In_opt_z_ LPCWSTR lpMachineName, _In_ int nCmdShow)
Referenced by DeviceManager_ExecuteA(), and wWinMain().
◆ DeviceManagerPrintA()
◆ DeviceManagerPrintW()
◆ DeviceProblemWizard_RunDLLA()
◆ DeviceProblemWizard_RunDLLW()
◆ DeviceProperties_RunDLLA()
Definition at line 443 of file api.cpp.
447{
449
450 if (lpDeviceCmd !=
NULL)
451 {
454 {
457 lpDeviceCmdW,
458 nCmdShow);
459 }
460 }
461
462 if (lpDeviceCmdW !=
NULL)
463 {
465 0,
466 lpDeviceCmdW);
467 }
468}
VOID WINAPI DeviceProperties_RunDLLW(HWND hWndParent, HINSTANCE hInst, LPCWSTR lpDeviceCmd, int nCmdShow)
◆ DeviceProperties_RunDLLW()
Definition at line 498 of file api.cpp.
502{
506
508 szDeviceID,
509 szMachineName))
510 {
511 ERR(
"DeviceProperties_RunDLLW DeviceID: %S, MachineName: %S\n", szDeviceID, szMachineName);
512 return;
513 }
514
516 szMachineName,
517 szDeviceID,
519}
#define MAX_DEVICE_ID_LEN
int WINAPI DevicePropertiesW(HWND hWndParent, LPCWSTR lpMachineName, LPCWSTR lpDeviceID, BOOL bShowDevMgr)
BOOL GetDeviceAndComputerName(LPWSTR lpString, WCHAR szDeviceID[], WCHAR szMachineName[])
#define MAX_COMPUTERNAME_LENGTH
Referenced by DeviceProperties_RunDLLA().
◆ DevicePropertiesA()
Definition at line 366 of file api.cpp.
370{
372 lpMachineName,
373 lpDeviceID,
375 bShowDevMgr);
376}
INT_PTR WINAPI DevicePropertiesExA(IN HWND hWndParent OPTIONAL, IN LPCSTR lpMachineName OPTIONAL, IN LPCSTR lpDeviceID OPTIONAL, IN DWORD dwFlags OPTIONAL, IN BOOL bShowDevMgr)
◆ DevicePropertiesExA()
Definition at line 193 of file api.cpp.
198{
202
203 if (lpMachineName !=
NULL)
204 {
207 {
209 }
210 }
211 if (lpDeviceID !=
NULL)
212 {
215 {
217 }
218 }
219
221 lpMachineNameW,
222 lpDeviceIDW,
224 bShowDevMgr);
225
227 if (lpMachineNameW !=
NULL)
228 {
230 0,
231 lpMachineNameW);
232 }
233 if (lpDeviceIDW !=
NULL)
234 {
236 0,
237 lpDeviceIDW);
238 }
239
240 return Ret;
241}
INT_PTR WINAPI DevicePropertiesExW(IN HWND hWndParent OPTIONAL, IN LPCWSTR lpMachineName OPTIONAL, IN LPCWSTR lpDeviceID OPTIONAL, IN DWORD dwFlags OPTIONAL, IN BOOL bShowDevMgr)
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
Referenced by DevicePropertiesA().
◆ DevicePropertiesExW()
Definition at line 272 of file api.cpp.
277{
279
281 {
282 FIXME(
"DevPropertiesExW: Invalid flags: 0x%x\n",
285 return -1;
286 }
287
288 if (bShowDevMgr)
289 {
290 FIXME(
"DevPropertiesExW doesn't support bShowDevMgr!\n");
292 }
293 else
294 {
298
299 if (lpDeviceID ==
NULL)
300 {
302 return -1;
303 }
304
305
307 if (hComCtl32 !=
NULL)
308 {
311 lpMachineName,
314 {
317 lpDeviceID,
319 0,
320 &DevInfoData))
321 {
323 lpDeviceID,
324 hDevInfo,
325 &DevInfoData,
326 hComCtl32,
327 lpMachineName,
329 }
330
332 }
333
335 }
336 }
337
338 return Ret;
339}
#define ERROR_CALL_NOT_IMPLEMENTED
#define DPF_DEVICE_STATUS_ACTION
#define ERROR_INVALID_FLAGS
Referenced by DevicePropertiesExA(), DevicePropertiesW(), and CDeviceView::DisplayPropertySheet().
◆ DevicePropertiesW()
◆ DllCanUnloadNow()
Definition at line 793 of file api.cpp.
794{
796}
HRESULT DllCanUnloadNow()
◆ DllGetClassObject()
Definition at line 798 of file api.cpp.
799{
801}
HRESULT DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
◆ DllMain()
Definition at line 817 of file api.cpp.
820{
822 {
826 break;
827 }
828
830}
#define DLL_PROCESS_ATTACH
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
◆ DllRegisterServer()
Definition at line 803 of file api.cpp.
804{
806}
HRESULT DllRegisterServer(BOOL bRegTypeLib=TRUE)
◆ DllUnregisterServer()
Definition at line 808 of file api.cpp.
809{
811}
HRESULT DllUnregisterServer(BOOL bUnRegTypeLib=TRUE)
◆ gModule
◆ hDllInstance