Fix missed files. Svn problem?
[reactos.git] / reactos / drivers / multimedia / portcls / portcls.h
1 /*
2
3 Move to w32api when it is ready.
4
5 */
6 #ifndef _PORTCLS_H
7 #define _PORTCLS_H
8 #if __GNUC__ >=3
9 #pragma GCC system_header
10 #endif
11
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15
16 #include <windef.h>
17 #include <ddk/ntddk.h>
18
19 #define PORTCLASSAPI extern
20
21 PORTCLASSAPI NTSTATUS STDCALL
22 PcAddAdapterDevice(
23 DWORD DriverObject,
24 DWORD PhysicalDeviceObject,
25 DWORD StartDevice,
26 DWORD MaxObjects,
27 DWORD DeviceExtensionSize
28 );
29
30 PORTCLASSAPI NTSTATUS STDCALL
31 PcAddContentHandlers(
32 DWORD ContentId,
33 DWORD paHandlers,
34 DWORD NumHandlers
35 );
36
37 PORTCLASSAPI NTSTATUS STDCALL
38 PcCompleteIrp(
39 DWORD DeviceObject,
40 DWORD Irp,
41 DWORD Status
42 );
43
44 PORTCLASSAPI NTSTATUS STDCALL
45 PcCompletePendingPropertyRequest(
46 DWORD PropertyRequest,
47 DWORD NtStatus
48 );
49
50 PORTCLASSAPI NTSTATUS STDCALL
51 PcCreateContentMixed(
52 DWORD paContentId,
53 DWORD cContentId,
54 DWORD pMixedContentId
55 );
56
57 PORTCLASSAPI NTSTATUS STDCALL
58 PcDestroyContent(
59 DWORD ContentId
60 );
61
62 PORTCLASSAPI NTSTATUS STDCALL
63 PcDispatchIrp(
64 DWORD DeviceObject,
65 DWORD Irp
66 );
67
68 PORTCLASSAPI NTSTATUS STDCALL
69 PcForwardContentToDeviceObject(
70 DWORD ContentId,
71 DWORD Reserved,
72 DWORD DrmForward
73 );
74
75 PORTCLASSAPI NTSTATUS STDCALL
76 PcForwardContentToFileObject(
77 DWORD ContentId,
78 DWORD FileObject
79 );
80
81 PORTCLASSAPI NTSTATUS STDCALL
82 PcForwardContentToInterface(
83 DWORD ContentId,
84 DWORD Unknown,
85 DWORD NumMethods
86 );
87
88 PORTCLASSAPI NTSTATUS STDCALL
89 PcForwardIrpSynchronous(
90 DWORD DeviceObject,
91 DWORD Irp
92 );
93
94 PORTCLASSAPI NTSTATUS STDCALL
95 PcGetContentRights(
96 DWORD ContentId,
97 DWORD DrmRights
98 );
99
100 PORTCLASSAPI NTSTATUS STDCALL
101 PcGetDeviceProperty(
102 DWORD DeviceObject,
103 DWORD DeviceProperty,
104 DWORD BufferLength,
105 DWORD PropertyBuffer,
106 DWORD ResultLength
107 );
108
109 PORTCLASSAPI ULONGLONG STDCALL
110 PcGetTimeInterval(
111 ULONGLONG Timei
112 );
113
114 PORTCLASSAPI NTSTATUS STDCALL
115 PcInitializeAdapterDriver(
116 DWORD DriverObject,
117 DWORD RegistryPathName,
118 DWORD AddDevice
119 );
120
121 PORTCLASSAPI NTSTATUS STDCALL
122 PcNewDmaChannel(
123 DWORD OutDmaChannel,
124 DWORD Unknown,
125 DWORD PoolType,
126 DWORD DeviceDescription,
127 DWORD DeviceObject
128 );
129
130 PORTCLASSAPI NTSTATUS STDCALL
131 PcNewInterruptSync(
132 DWORD OutInterruptSync,
133 DWORD Unknown,
134 DWORD ResourceList,
135 DWORD ResourceIndex,
136 DWORD Mode
137 );
138
139 PORTCLASSAPI NTSTATUS STDCALL
140 PcNewMiniport(
141 DWORD OutMiniport,
142 DWORD ClassId
143 );
144
145 PORTCLASSAPI NTSTATUS STDCALL
146 PcNewPort(
147 DWORD OutPort,
148 DWORD ClassId
149 );
150
151 PORTCLASSAPI NTSTATUS STDCALL
152 PcNewRegistryKey(
153 DWORD OutRegistryKey,
154 DWORD Unknown,
155 DWORD RegistryKeyType,
156 DWORD DesiredAccess,
157 DWORD DeviceObject,
158 DWORD SubDevice,
159 DWORD ObjectAttributes,
160 DWORD CreateOptions,
161 DWORD Disposition
162 );
163
164 PORTCLASSAPI NTSTATUS STDCALL
165 PcNewResourceList(
166 DWORD OutResourceList,
167 DWORD Unknown,
168 DWORD PoolType,
169 DWORD TranslatedResources,
170 DWORD UntranslatedResources
171 );
172
173 PORTCLASSAPI NTSTATUS STDCALL
174 PcNewResourceSublist(
175 DWORD OutResourceList,
176 DWORD Unknown,
177 DWORD PoolType,
178 DWORD ParentList,
179 DWORD MaximumEntries
180 );
181
182 PORTCLASSAPI NTSTATUS STDCALL
183 PcNewServiceGroup(
184 DWORD OutServiceGroup,
185 DWORD Unknown
186 );
187
188 PORTCLASSAPI NTSTATUS STDCALL
189 PcRegisterAdapterPowerManagement(
190 DWORD Unknown,
191 DWORD pvContext
192 );
193
194 PORTCLASSAPI NTSTATUS STDCALL
195 PcRegisterIoTimeout(
196 DWORD pDeviceObject,
197 DWORD pTimerRoutine,
198 DWORD pContext
199 );
200
201 PORTCLASSAPI NTSTATUS STDCALL
202 PcRegisterPhysicalConnection(
203 DWORD DeviceObject,
204 DWORD FromUnknown,
205 DWORD FromPin,
206 DWORD ToUnknown,
207 DWORD ToPin
208 );
209
210 PORTCLASSAPI NTSTATUS STDCALL
211 PcRegisterPhysicalConnectionFromExternal(
212 DWORD DeviceObject,
213 DWORD FromString,
214 DWORD FromPin,
215 DWORD ToUnknown,
216 DWORD ToPin
217 );
218
219 PORTCLASSAPI NTSTATUS STDCALL
220 PcRegisterPhysicalConnectionToExternal(
221 DWORD DeviceObject,
222 DWORD FromUnknown,
223 DWORD FromPin,
224 DWORD ToString,
225 DWORD ToPin
226 );
227
228 PORTCLASSAPI NTSTATUS STDCALL
229 PcRegisterSubdevice(
230 DWORD DeviceObject,
231 DWORD SubdevName,
232 DWORD Unknown
233 );
234
235 PORTCLASSAPI NTSTATUS STDCALL
236 PcRequestNewPowerState(
237 DWORD pDeviceObject,
238 DWORD RequestedNewState
239 );
240
241 PORTCLASSAPI NTSTATUS STDCALL
242 PcUnregisterIoTimeout(
243 DWORD pDeviceObject,
244 DWORD pTimerRoutine,
245 DWORD pContext
246 );
247
248 #ifdef __cplusplus
249 }
250 #endif
251
252 #endif