30111113a3bbc311e69b0cb6762652b1f6645396
[reactos.git] / reactos / dll / win32 / devmgr / precomp.h
1 #ifndef __DEVMGR_H
2 #define __DEVMGR_H
3
4 #include <windows.h>
5 #include <regstr.h>
6 #include <setupapi.h>
7 #include <cfgmgr32.h>
8 #include <commctrl.h>
9 #include <stdio.h>
10 #include <dll/devmgr/devmgr.h>
11 #include "resource.h"
12
13 extern HINSTANCE hDllInstance;
14
15 ULONG DbgPrint(PCCH Format,...);
16
17 /* ADVPROP.C */
18
19 INT_PTR
20 DisplayDeviceAdvancedProperties(IN HWND hWndParent,
21 IN LPCWSTR lpDeviceID OPTIONAL,
22 IN HDEVINFO DeviceInfoSet,
23 IN PSP_DEVINFO_DATA DeviceInfoData,
24 IN HINSTANCE hComCtl32,
25 IN LPCWSTR lpMachineName,
26 IN DWORD dwFlags);
27
28 /* DEVPRBLM.C */
29
30 BOOL
31 ShowDeviceProblemWizard(IN HWND hWndParent OPTIONAL,
32 IN HDEVINFO hDevInfo,
33 IN PSP_DEVINFO_DATA DevInfoData,
34 IN HMACHINE hMachine OPTIONAL);
35
36 /* MISC.C */
37
38
39 INT
40 LengthOfStrResource(IN HINSTANCE hInst,
41 IN UINT uID);
42
43 DWORD
44 LoadAndFormatString(IN HINSTANCE hInstance,
45 IN UINT uID,
46 OUT LPWSTR *lpTarget,
47 ...);
48
49 DWORD
50 LoadAndFormatStringsCat(IN HINSTANCE hInstance,
51 IN UINT *uID,
52 IN UINT nIDs,
53 OUT LPWSTR *lpTarget,
54 ...);
55
56 LPARAM
57 ListViewGetSelectedItemData(IN HWND hwnd);
58
59 LPWSTR
60 ConvertMultiByteToUnicode(IN LPCSTR lpMultiByteStr,
61 IN UINT uCodePage);
62
63 HINSTANCE
64 LoadAndInitComctl32(VOID);
65
66 BOOL
67 GetDeviceManufacturerString(IN HDEVINFO DeviceInfoSet,
68 IN PSP_DEVINFO_DATA DeviceInfoData,
69 OUT LPWSTR szBuffer,
70 IN DWORD BufferSize);
71
72 BOOL
73 GetDeviceLocationString(IN DEVINST dnDevInst OPTIONAL,
74 IN DEVINST dnParentDevInst OPTIONAL,
75 OUT LPWSTR szBuffer,
76 IN DWORD BufferSize);
77
78 BOOL
79 GetDeviceStatusString(IN DEVINST DevInst,
80 IN HMACHINE hMachine,
81 OUT LPWSTR szBuffer,
82 IN DWORD BufferSize);
83
84 BOOL
85 GetDriverProviderString(IN HDEVINFO DeviceInfoSet,
86 IN PSP_DEVINFO_DATA DeviceInfoData,
87 OUT LPWSTR szBuffer,
88 IN DWORD BufferSize);
89
90 BOOL
91 GetDriverVersionString(IN HDEVINFO DeviceInfoSet,
92 IN PSP_DEVINFO_DATA DeviceInfoData,
93 OUT LPWSTR szBuffer,
94 IN DWORD BufferSize);
95
96 BOOL
97 GetDriverDateString(IN HDEVINFO DeviceInfoSet,
98 IN PSP_DEVINFO_DATA DeviceInfoData,
99 OUT LPWSTR szBuffer,
100 IN DWORD BufferSize);
101
102 BOOL
103 IsDeviceHidden(IN DEVINST DevInst,
104 IN HMACHINE hMachine,
105 OUT BOOL *IsHidden);
106
107 BOOL
108 IsDriverInstalled(IN DEVINST DevInst,
109 IN HMACHINE hMachine,
110 OUT BOOL *Installed);
111
112 BOOL
113 CanDisableDevice(IN DEVINST DevInst,
114 IN HMACHINE hMachine,
115 OUT BOOL *CanDisable);
116
117 BOOL
118 IsDeviceStarted(IN DEVINST DevInst,
119 IN HMACHINE hMachine,
120 OUT BOOL *IsStarted);
121
122 BOOL
123 EnableDevice(IN HDEVINFO DeviceInfoSet,
124 IN PSP_DEVINFO_DATA DevInfoData OPTIONAL,
125 IN BOOL bEnable,
126 IN DWORD HardwareProfile OPTIONAL,
127 OUT BOOL *bNeedReboot OPTIONAL);
128
129 BOOL
130 GetDeviceTypeString(IN PSP_DEVINFO_DATA DeviceInfoData,
131 OUT LPWSTR szBuffer,
132 IN DWORD BufferSize);
133
134 BOOL
135 GetDeviceDescriptionString(IN HDEVINFO DeviceInfoSet,
136 IN PSP_DEVINFO_DATA DeviceInfoData,
137 OUT LPWSTR szBuffer,
138 IN DWORD BufferSize);
139
140 BOOL
141 FindCurrentDriver(IN HDEVINFO DeviceInfoSet,
142 IN PSP_DEVINFO_DATA DeviceInfoData,
143 OUT PSP_DRVINFO_DATA DriverInfoData);
144
145 #endif /* __DEVMGR_H */
146
147 /* EOF */