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