ReactOS  0.4.14-dev-50-g13bb5e2
drm.cpp
Go to the documentation of this file.
1 /*
2  * COPYRIGHT: See COPYING in the top level directory
3  * PROJECT: ReactOS Kernel Streaming
4  * FILE: drivers/wdm/audio/backpln/portcls/drm.cpp
5  * PURPOSE: portcls drm functions
6  * PROGRAMMER: Andrew Greenwood
7  */
8 
9 #include "private.hpp"
10 
11 #ifndef YDEBUG
12 #define NDEBUG
13 #endif
14 
15 #include <debug.h>
16 
18 NTAPI
20  IN ULONG ContentId,
21  IN PVOID *paHandlers,
23 {
25  return DrmAddContentHandlers(ContentId, paHandlers, NumHandlers);
26 }
27 
29 NTAPI
31  IN PULONG paContentId,
34 {
36  return DrmCreateContentMixed(paContentId, cContentId, pMixedContentId);
37 }
38 
40 NTAPI
42  IN ULONG ContentId)
43 {
45  return DrmDestroyContent(ContentId);
46 }
47 
49 NTAPI
51  IN ULONG ContentId,
53  IN PCDRMFORWARD DrmForward)
54 {
56  return DrmForwardContentToDeviceObject(ContentId, Reserved, DrmForward);
57 }
58 
60 NTAPI
62  IN ULONG ContentId,
64 {
66  return DrmForwardContentToFileObject(ContentId, FileObject);
67 }
68 
70 NTAPI
72  IN ULONG ContentId,
75 {
77 }
78 
80 NTAPI
82  IN ULONG ContentId,
84 {
86  return DrmGetContentRights(ContentId, DrmRights);
87 }
#define IN
Definition: typedefs.h:38
Definition: drmk.h:18
NTSTATUS NTAPI DrmGetContentRights(IN ULONG ContentId, OUT PDRMRIGHTS DrmRights)
Definition: stubs.cpp:133
NTSTATUS NTAPI DrmDestroyContent(IN ULONG ContentId)
Definition: stubs.cpp:64
LONG NTSTATUS
Definition: precomp.h:26
NTSTATUS NTAPI PcCreateContentMixed(IN PULONG paContentId, IN ULONG cContentId, OUT PULONG pMixedContentId)
Definition: drm.cpp:30
NTSTATUS NTAPI DrmForwardContentToFileObject(IN ULONG ContentId, IN PFILE_OBJECT FileObject)
Definition: stubs.cpp:99
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
NTSTATUS NTAPI DrmForwardContentToInterface(IN ULONG ContentId, IN PUNKNOWN pUnknown, IN ULONG NumMethods)
Definition: stubs.cpp:116
NTSTATUS NTAPI DrmForwardContentToDeviceObject(IN ULONG ContentId, IN PVOID Reserved, IN PCDRMFORWARD DrmForward)
Definition: stubs.cpp:80
NTSTATUS NTAPI PcForwardContentToFileObject(IN ULONG ContentId, IN PFILE_OBJECT FileObject)
Definition: drm.cpp:61
_Reserved_ PVOID Reserved
Definition: winddi.h:3974
_Inout_ PFILE_OBJECT FileObject
Definition: cdprocs.h:593
_In_ PUNKNOWN pUnknown
Definition: drmk.h:76
NTSTATUS NTAPI PcForwardContentToDeviceObject(IN ULONG ContentId, IN PVOID Reserved, IN PCDRMFORWARD DrmForward)
Definition: drm.cpp:50
NTSTATUS NTAPI DrmAddContentHandlers(IN ULONG ContentId, IN PVOID *paHandlers, IN ULONG NumHandlers)
Definition: stubs.cpp:29
NTSTATUS NTAPI PcGetContentRights(IN ULONG ContentId, OUT PDRMRIGHTS DrmRights)
Definition: drm.cpp:81
#define PC_ASSERT_IRQL_EQUAL(x)
Definition: private.hpp:31
* PFILE_OBJECT
Definition: iotypes.h:1955
NTSTATUS NTAPI PcForwardContentToInterface(IN ULONG ContentId, IN PUNKNOWN pUnknown, IN ULONG NumMethods)
Definition: drm.cpp:71
NTSTATUS NTAPI PcAddContentHandlers(IN ULONG ContentId, IN PVOID *paHandlers, IN ULONG NumHandlers)
Definition: drm.cpp:19
#define PASSIVE_LEVEL
Definition: env_spec_w32.h:693
_In_ ULONG cContentId
Definition: drmk.h:48
NTSTATUS NTAPI DrmCreateContentMixed(IN PULONG paContentId, IN ULONG cContentId, OUT PULONG pMixedContentId)
Definition: stubs.cpp:47
unsigned int * PULONG
Definition: retypes.h:1
_In_ ULONG _Out_ PULONG pMixedContentId
Definition: drmk.h:48
#define OUT
Definition: typedefs.h:39
unsigned int ULONG
Definition: retypes.h:1
NTSTATUS NTAPI PcDestroyContent(IN ULONG ContentId)
Definition: drm.cpp:41
_Out_ PDRMRIGHTS DrmRights
Definition: drmk.h:84
_In_ ULONG NumHandlers
Definition: drmk.h:41