ReactOS  0.4.15-dev-5097-g328cc41
CDrmPort2 Class Reference
Inheritance diagram for CDrmPort2:
Collaboration diagram for CDrmPort2:

Public Member Functions

STDMETHODIMP QueryInterface (REFIID InterfaceId, PVOID *Interface)
 
 CDrmPort2 (IUnknown *OuterUnknown)
 
virtual ~CDrmPort2 ()
 
- Public Member Functions inherited from CUnknownImpl< IDrmPort2 >
 STDMETHODIMP_ (ULONG) AddRef()
 
 STDMETHODIMP_ (ULONG) Release()
 

Public Attributes

 IMP_IDrmPort2
 

Additional Inherited Members

- Protected Member Functions inherited from CUnknownImpl< IDrmPort2 >
 CUnknownImpl ()
 
virtual ~CUnknownImpl ()
 

Detailed Description

Definition at line 17 of file drm_port.cpp.

Constructor & Destructor Documentation

◆ CDrmPort2()

CDrmPort2::CDrmPort2 ( IUnknown OuterUnknown)
inline

Definition at line 23 of file drm_port.cpp.

23 {}

◆ ~CDrmPort2()

virtual CDrmPort2::~CDrmPort2 ( )
inlinevirtual

Definition at line 24 of file drm_port.cpp.

24 {}

Member Function Documentation

◆ QueryInterface()

NTSTATUS NTAPI CDrmPort2::QueryInterface ( REFIID  InterfaceId,
PVOID Interface 
)

Definition at line 29 of file drm_port.cpp.

32 {
34 
35  if (IsEqualGUIDAligned(refiid, IID_IDrmPort) ||
36  IsEqualGUIDAligned(refiid, IID_IDrmPort2) ||
38  {
39  *Output = PVOID(PUNKNOWN(this));
40  PUNKNOWN(*Output)->AddRef();
41  return STATUS_SUCCESS;
42  }
43 
45  {
46  DPRINT("IDrmPort2_QueryInterface no interface!!! iface %S\n", GuidString.Buffer);
48  }
49  return STATUS_UNSUCCESSFUL;
50 }
static PWSTR GuidString
Definition: apphelp.c:93
IUnknown * PUNKNOWN
Definition: com_apitest.h:45
#define IsEqualGUIDAligned(guid1, guid2)
Definition: wdm.template.h:235
void * PVOID
Definition: retypes.h:9
const GUID IID_IUnknown
NTSYSAPI VOID NTAPI RtlFreeUnicodeString(PUNICODE_STRING UnicodeString)
ULONG AddRef()
#define STATUS_UNSUCCESSFUL
Definition: udferr_usr.h:132
Definition: arc.h:85
NTSYSAPI NTSTATUS WINAPI RtlStringFromGUID(REFGUID, PUNICODE_STRING)
#define STATUS_SUCCESS
Definition: shellext.h:65
#define DPRINT
Definition: sndvol32.h:71

Member Data Documentation

◆ IMP_IDrmPort2

CDrmPort2::IMP_IDrmPort2

Definition at line 22 of file drm_port.cpp.


The documentation for this class was generated from the following file: