- Merge from trunk up to r45543
[reactos.git] / 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 HDEVINFO DeviceInfoSet,
74 IN PSP_DEVINFO_DATA DeviceInfoData,
75 IN DEVINST dnParentDevInst OPTIONAL,
76 OUT LPWSTR szBuffer,
77 IN DWORD BufferSize);
78
79 BOOL
80 GetDeviceStatusString(IN DEVINST DevInst,
81 IN HMACHINE hMachine,
82 OUT LPWSTR szBuffer,
83 IN DWORD BufferSize);
84
85 BOOL
86 GetDriverProviderString(IN HDEVINFO DeviceInfoSet,
87 IN PSP_DEVINFO_DATA DeviceInfoData,
88 OUT LPWSTR szBuffer,
89 IN DWORD BufferSize);
90
91 BOOL
92 GetDriverVersionString(IN HDEVINFO DeviceInfoSet,
93 IN PSP_DEVINFO_DATA DeviceInfoData,
94 OUT LPWSTR szBuffer,
95 IN DWORD BufferSize);
96
97 BOOL
98 GetDriverDateString(IN HDEVINFO DeviceInfoSet,
99 IN PSP_DEVINFO_DATA DeviceInfoData,
100 OUT LPWSTR szBuffer,
101 IN DWORD BufferSize);
102
103 BOOL
104 IsDeviceHidden(IN DEVINST DevInst,
105 IN HMACHINE hMachine,
106 OUT BOOL *IsHidden);
107
108 BOOL
109 IsDriverInstalled(IN DEVINST DevInst,
110 IN HMACHINE hMachine,
111 OUT BOOL *Installed);
112
113 BOOL
114 CanDisableDevice(IN DEVINST DevInst,
115 IN HMACHINE hMachine,
116 OUT BOOL *CanDisable);
117
118 BOOL
119 IsDeviceStarted(IN DEVINST DevInst,
120 IN HMACHINE hMachine,
121 OUT BOOL *IsStarted);
122
123 BOOL
124 EnableDevice(IN HDEVINFO DeviceInfoSet,
125 IN PSP_DEVINFO_DATA DevInfoData OPTIONAL,
126 IN BOOL bEnable,
127 IN DWORD HardwareProfile OPTIONAL,
128 OUT BOOL *bNeedReboot OPTIONAL);
129
130 BOOL
131 GetDeviceTypeString(IN PSP_DEVINFO_DATA DeviceInfoData,
132 OUT LPWSTR szBuffer,
133 IN DWORD BufferSize);
134
135 BOOL
136 GetDeviceDescriptionString(IN HDEVINFO DeviceInfoSet,
137 IN PSP_DEVINFO_DATA DeviceInfoData,
138 OUT LPWSTR szBuffer,
139 IN DWORD BufferSize);
140
141 BOOL
142 FindCurrentDriver(IN HDEVINFO DeviceInfoSet,
143 IN PSP_DEVINFO_DATA DeviceInfoData,
144 OUT PSP_DRVINFO_DATA DriverInfoData);
145
146 #endif /* __DEVMGR_H */
147
148 /* EOF */