ReactOS  0.4.13-dev-544-gede3fdd
CPortWaveRTStreamInit Class Reference
Inheritance diagram for CPortWaveRTStreamInit:
Collaboration diagram for CPortWaveRTStreamInit:

Public Member Functions

STDMETHODIMP QueryInterface (REFIID InterfaceId, PVOID *Interface)
 
 STDMETHODIMP_ (ULONG) AddRef()
 
 STDMETHODIMP_ (ULONG) Release()
 
 CPortWaveRTStreamInit (IUnknown *OuterUnknown)
 
virtual ~CPortWaveRTStreamInit ()
 

Public Attributes

 IMP_IPortWaveRTStreamInit
 

Protected Attributes

LONG m_Ref
 

Detailed Description

Definition at line 17 of file port_wavertstream.cpp.

Constructor & Destructor Documentation

◆ CPortWaveRTStreamInit()

CPortWaveRTStreamInit::CPortWaveRTStreamInit ( IUnknown OuterUnknown)
inline

Definition at line 39 of file port_wavertstream.cpp.

39 {}

◆ ~CPortWaveRTStreamInit()

virtual CPortWaveRTStreamInit::~CPortWaveRTStreamInit ( )
inlinevirtual

Definition at line 40 of file port_wavertstream.cpp.

40 {}

Member Function Documentation

◆ QueryInterface()

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

Definition at line 49 of file port_wavertstream.cpp.

52 {
53 
54  DPRINT("IPortWaveRTStream_fnQueryInterface entered\n");
55 
56  if (IsEqualGUIDAligned(refiid, IID_IPortWaveRTStream) ||
58  {
59  *Output = PVOID(PPORTWAVERTSTREAM(this));
60  PUNKNOWN(*Output)->AddRef();
61  return STATUS_SUCCESS;
62  }
63  return STATUS_UNSUCCESSFUL;
64 }
IPortWaveRTStream * PPORTWAVERTSTREAM
Definition: portcls.h:1791
IUnknown * PUNKNOWN
Definition: com_apitest.h:45
#define IsEqualGUIDAligned(guid1, guid2)
Definition: wdm.template.h:233
void DPRINT(...)
Definition: polytest.cpp:61
void * PVOID
Definition: retypes.h:9
const GUID IID_IUnknown
ULONG AddRef()
#define STATUS_UNSUCCESSFUL
Definition: udferr_usr.h:132
Definition: arc.h:85
return STATUS_SUCCESS
Definition: btrfs.c:2777

◆ STDMETHODIMP_() [1/2]

CPortWaveRTStreamInit::STDMETHODIMP_ ( ULONG  )
inline

Definition at line 22 of file port_wavertstream.cpp.

23  {
25  return m_Ref;
26  }
#define InterlockedIncrement
Definition: armddk.h:53

◆ STDMETHODIMP_() [2/2]

CPortWaveRTStreamInit::STDMETHODIMP_ ( ULONG  )
inline

Definition at line 27 of file port_wavertstream.cpp.

28  {
30 
31  if (!m_Ref)
32  {
33  delete this;
34  return 0;
35  }
36  return m_Ref;
37  }
#define InterlockedDecrement
Definition: armddk.h:52

Member Data Documentation

◆ IMP_IPortWaveRTStreamInit

CPortWaveRTStreamInit::IMP_IPortWaveRTStreamInit

Definition at line 38 of file port_wavertstream.cpp.

◆ m_Ref

LONG CPortWaveRTStreamInit::m_Ref
protected

Definition at line 43 of file port_wavertstream.cpp.

Referenced by STDMETHODIMP_().


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