Fix header includes.
[reactos.git] / reactos / drivers / multimedia / portcls / portcls.c
1 /*
2 * ReactOS PortCls Driver
3 * Copyright (C) 2005 ReactOS Team
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA
18 *
19 * COPYRIGHT: See COPYING in the top level directory
20 * PROJECT: ReactOS Sound System
21 * PURPOSE: Audio Port Class Functions
22 * FILE: drivers/multimedia/portcls/portcls.c
23 * PROGRAMMERS:
24 *
25 * REVISION HISTORY:
26 * 21 November 2005 Created James Tabor
27 */
28 #include <ddk/ntddk.h>
29 #include <windows.h>
30 #include "portcls.h"
31
32
33 #define NDEBUG
34 #include <debug.h>
35
36
37 NTSTATUS STDCALL
38 DriverEntry(PDRIVER_OBJECT DriverObject,
39 PUNICODE_STRING RegistryPath)
40 {
41 return STATUS_SUCCESS;
42 }
43
44 /*
45 * @implemented
46 */
47 DWORD STDCALL
48 DllInitialize(DWORD Unknown)
49 {
50 return 0;
51 }
52
53 /*
54 * @implemented
55 */
56 DWORD STDCALL
57 DllUnload(VOID)
58 {
59 return 0;
60 }
61
62
63 /*
64 * @unimplemented
65 */
66 NTSTATUS STDCALL
67 PcAddAdapterDevice(
68 DWORD DriverObject,
69 DWORD PhysicalDeviceObject,
70 DWORD StartDevice,
71 DWORD MaxObjects,
72 DWORD DeviceExtensionSize
73 )
74 {
75 UNIMPLEMENTED;
76 return STATUS_UNSUCCESSFUL;
77 }
78
79 /*
80 * @unimplemented
81 */
82 NTSTATUS STDCALL
83 PcAddContentHandlers(
84 DWORD ContentId,
85 DWORD paHandlers,
86 DWORD NumHandlers
87 )
88 {
89 UNIMPLEMENTED;
90 return STATUS_UNSUCCESSFUL;
91 }
92
93 /*
94 * @unimplemented
95 */
96 NTSTATUS STDCALL
97 PcCompleteIrp(
98 DWORD DeviceObject,
99 DWORD Irp,
100 DWORD Status
101 )
102 {
103 UNIMPLEMENTED;
104 return STATUS_UNSUCCESSFUL;
105 }
106
107 /*
108 * @unimplemented
109 */
110 NTSTATUS STDCALL
111 PcCompletePendingPropertyRequest(
112 DWORD PropertyRequest,
113 DWORD NtStatus
114 )
115 {
116 UNIMPLEMENTED;
117 return STATUS_UNSUCCESSFUL;
118 }
119
120 /*
121 * @unimplemented
122 */
123 NTSTATUS STDCALL
124 PcCreateContentMixed(
125 DWORD paContentId,
126 DWORD cContentId,
127 DWORD pMixedContentId
128 )
129 {
130 UNIMPLEMENTED;
131 return STATUS_UNSUCCESSFUL;
132 }
133
134 /*
135 * @unimplemented
136 */
137 NTSTATUS STDCALL
138 PcDestroyContent(
139 DWORD ContentId
140 )
141 {
142 UNIMPLEMENTED;
143 return STATUS_UNSUCCESSFUL;
144 }
145
146 /*
147 * @unimplemented
148 */
149 NTSTATUS STDCALL
150 PcDispatchIrp(
151 DWORD DeviceObject,
152 DWORD Irp
153 )
154 {
155 UNIMPLEMENTED;
156 return STATUS_UNSUCCESSFUL;
157 }
158
159 /*
160 * @unimplemented
161 */
162 NTSTATUS STDCALL
163 PcForwardContentToDeviceObject(
164 DWORD ContentId,
165 DWORD Reserved,
166 DWORD DrmForward
167 )
168 {
169 UNIMPLEMENTED;
170 return STATUS_UNSUCCESSFUL;
171 }
172
173 /*
174 * @unimplemented
175 */
176 NTSTATUS STDCALL
177 PcForwardContentToFileObject(
178 DWORD ContentId,
179 DWORD FileObject
180 )
181 {
182 UNIMPLEMENTED;
183 return STATUS_UNSUCCESSFUL;
184 }
185
186 /*
187 * @unimplemented
188 */
189 NTSTATUS STDCALL
190 PcForwardContentToInterface(
191 DWORD ContentId,
192 DWORD Unknown,
193 DWORD NumMethods
194 )
195 {
196 UNIMPLEMENTED;
197 return STATUS_UNSUCCESSFUL;
198 }
199
200 /*
201 * @unimplemented
202 */
203 NTSTATUS STDCALL
204 PcForwardIrpSynchronous(
205 DWORD DeviceObject,
206 DWORD Irp
207 )
208 {
209 UNIMPLEMENTED;
210 return STATUS_UNSUCCESSFUL;
211 }
212
213 /*
214 * @unimplemented
215 */
216 NTSTATUS STDCALL
217 PcGetContentRights(
218 DWORD ContentId,
219 DWORD DrmRights
220 )
221 {
222 UNIMPLEMENTED;
223 return STATUS_UNSUCCESSFUL;
224 }
225
226 /*
227 * @unimplemented
228 */
229 NTSTATUS STDCALL
230 PcGetDeviceProperty(
231 DWORD DeviceObject,
232 DWORD DeviceProperty,
233 DWORD BufferLength,
234 DWORD PropertyBuffer,
235 DWORD ResultLength
236 )
237 {
238 UNIMPLEMENTED;
239 return STATUS_UNSUCCESSFUL;
240 }
241
242 /*
243 * @implemented
244 */
245 ULONGLONG STDCALL
246 PcGetTimeInterval(
247 ULONGLONG Timei
248 )
249 {
250 LARGE_INTEGER CurrentTime;
251
252 KeQuerySystemTime( &CurrentTime);
253
254 return (Timei - CurrentTime.QuadPart);
255 }
256
257 /*
258 * @unimplemented
259 */
260 NTSTATUS STDCALL
261 PcInitializeAdapterDriver(
262 DWORD DriverObject,
263 DWORD RegistryPathName,
264 DWORD AddDevice
265 )
266 {
267 UNIMPLEMENTED;
268 return STATUS_UNSUCCESSFUL;
269 }
270
271 /*
272 * @unimplemented
273 */
274 NTSTATUS STDCALL
275 PcNewDmaChannel(
276 DWORD OutDmaChannel,
277 DWORD Unknown,
278 DWORD PoolType,
279 DWORD DeviceDescription,
280 DWORD DeviceObject
281 )
282 {
283 UNIMPLEMENTED;
284 return STATUS_UNSUCCESSFUL;
285 }
286
287 /*
288 * @unimplemented
289 */
290 NTSTATUS STDCALL
291 PcNewInterruptSync(
292 DWORD OutInterruptSync,
293 DWORD Unknown,
294 DWORD ResourceList,
295 DWORD ResourceIndex,
296 DWORD Mode
297 )
298 {
299 UNIMPLEMENTED;
300 return STATUS_UNSUCCESSFUL;
301 }
302
303 /*
304 * @unimplemented
305 */
306 NTSTATUS STDCALL
307 PcNewMiniport(
308 DWORD OutMiniport,
309 DWORD ClassId
310 )
311 {
312 UNIMPLEMENTED;
313 return STATUS_UNSUCCESSFUL;
314 }
315
316 /*
317 * @unimplemented
318 */
319 NTSTATUS STDCALL
320 PcNewPort(
321 DWORD OutPort,
322 DWORD ClassId
323 )
324 {
325 UNIMPLEMENTED;
326 return STATUS_UNSUCCESSFUL;
327 }
328
329 /*
330 * @unimplemented
331 */
332 NTSTATUS STDCALL
333 PcNewRegistryKey(
334 DWORD OutRegistryKey,
335 DWORD Unknown,
336 DWORD RegistryKeyType,
337 DWORD DesiredAccess,
338 DWORD DeviceObject,
339 DWORD SubDevice,
340 DWORD ObjectAttributes,
341 DWORD CreateOptions,
342 DWORD Disposition
343 )
344 {
345 UNIMPLEMENTED;
346 return STATUS_UNSUCCESSFUL;
347 }
348
349 /*
350 * @unimplemented
351 */
352 NTSTATUS STDCALL
353 PcNewResourceList(
354 DWORD OutResourceList,
355 DWORD Unknown,
356 DWORD PoolType,
357 DWORD TranslatedResources,
358 DWORD UntranslatedResources
359 )
360 {
361 UNIMPLEMENTED;
362 return STATUS_UNSUCCESSFUL;
363 }
364
365 /*
366 * @unimplemented
367 */
368 NTSTATUS STDCALL
369 PcNewResourceSublist(
370 DWORD OutResourceList,
371 DWORD Unknown,
372 DWORD PoolType,
373 DWORD ParentList,
374 DWORD MaximumEntries
375 )
376 {
377 UNIMPLEMENTED;
378 return STATUS_UNSUCCESSFUL;
379 }
380
381 /*
382 * @unimplemented
383 */
384 NTSTATUS STDCALL
385 PcNewServiceGroup(
386 DWORD OutServiceGroup,
387 DWORD Unknown
388 )
389 {
390 UNIMPLEMENTED;
391 return STATUS_UNSUCCESSFUL;
392 }
393
394 /*
395 * @unimplemented
396 */
397 NTSTATUS STDCALL
398 PcRegisterAdapterPowerManagement(
399 DWORD Unknown,
400 DWORD pvContext
401 )
402 {
403 UNIMPLEMENTED;
404 return STATUS_UNSUCCESSFUL;
405 }
406
407 /*
408 * @unimplemented
409 */
410 NTSTATUS STDCALL
411 PcRegisterIoTimeout(
412 DWORD pDeviceObject,
413 DWORD pTimerRoutine,
414 DWORD pContext
415 )
416 {
417 UNIMPLEMENTED;
418 return STATUS_UNSUCCESSFUL;
419 }
420
421 /*
422 * @unimplemented
423 */
424 NTSTATUS STDCALL
425 PcRegisterPhysicalConnection(
426 DWORD DeviceObject,
427 DWORD FromUnknown,
428 DWORD FromPin,
429 DWORD ToUnknown,
430 DWORD ToPin
431 )
432 {
433 UNIMPLEMENTED;
434 return STATUS_UNSUCCESSFUL;
435 }
436
437 /*
438 * @unimplemented
439 */
440 NTSTATUS STDCALL
441 PcRegisterPhysicalConnectionFromExternal(
442 DWORD DeviceObject,
443 DWORD FromString,
444 DWORD FromPin,
445 DWORD ToUnknown,
446 DWORD ToPin
447 )
448 {
449 UNIMPLEMENTED;
450 return STATUS_UNSUCCESSFUL;
451 }
452
453 /*
454 * @unimplemented
455 */
456 NTSTATUS STDCALL
457 PcRegisterPhysicalConnectionToExternal(
458 DWORD DeviceObject,
459 DWORD FromUnknown,
460 DWORD FromPin,
461 DWORD ToString,
462 DWORD ToPin
463 )
464 {
465 UNIMPLEMENTED;
466 return STATUS_UNSUCCESSFUL;
467 }
468
469 /*
470 * @unimplemented
471 */
472 NTSTATUS STDCALL
473 PcRegisterSubdevice(
474 DWORD DeviceObject,
475 DWORD SubdevName,
476 DWORD Unknown
477 )
478 {
479 UNIMPLEMENTED;
480 return STATUS_UNSUCCESSFUL;
481 }
482
483 /*
484 * @unimplemented
485 */
486 NTSTATUS STDCALL
487 PcRequestNewPowerState(
488 DWORD pDeviceObject,
489 DWORD RequestedNewState
490 )
491 {
492 UNIMPLEMENTED;
493 return STATUS_UNSUCCESSFUL;
494 }
495
496 /*
497 * @unimplemented
498 */
499 NTSTATUS STDCALL
500 PcUnregisterIoTimeout(
501 DWORD pDeviceObject,
502 DWORD pTimerRoutine,
503 DWORD pContext
504 )
505 {
506 UNIMPLEMENTED;
507 return STATUS_UNSUCCESSFUL;
508 }
509