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