ReactOS 0.4.15-dev-8222-g9164419
CPortWaveRT Class Reference
Inheritance diagram for CPortWaveRT:
Collaboration diagram for CPortWaveRT:

Public Member Functions

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

Public Attributes

 IMP_IPortWaveRT
 
 IMP_ISubdevice
 
 IMP_IPortEvents
 

Protected Attributes

BOOL m_bInitialized
 
PDEVICE_OBJECT m_pDeviceObject
 
PMINIPORTWAVERT m_pMiniport
 
PRESOURCELIST m_pResourceList
 
PPINCOUNT m_pPinCount
 
PPOWERNOTIFY m_pPowerNotify
 
PPCFILTER_DESCRIPTOR m_pDescriptor
 
PSUBDEVICE_DESCRIPTOR m_SubDeviceDescriptor
 
IPortFilterWaveRT * m_Filter
 

Friends

PMINIPORTWAVERT GetWaveRTMiniport (IN IPortWaveRT *iface)
 
PDEVICE_OBJECT GetDeviceObjectFromPortWaveRT (PPORTWAVERT iface)
 

Additional Inherited Members

- Protected Member Functions inherited from CUnknownImpl< IPortWaveRT, IPortEvents, ISubdevice >
 CUnknownImpl ()
 
virtual ~CUnknownImpl ()
 

Detailed Description

Definition at line 14 of file port_wavert.cpp.

Constructor & Destructor Documentation

◆ CPortWaveRT()

CPortWaveRT::CPortWaveRT ( IUnknown OuterUnknown)
inline

Definition at line 22 of file port_wavert.cpp.

22{}

◆ ~CPortWaveRT()

virtual CPortWaveRT::~CPortWaveRT ( )
inlinevirtual

Definition at line 23 of file port_wavert.cpp.

23{}

Member Function Documentation

◆ QueryInterface()

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

Definition at line 112 of file port_wavert.cpp.

115{
117
118 if (IsEqualGUIDAligned(refiid, IID_IPortWaveRT) ||
120 {
121 *Output = PVOID(PPORTWAVERT(this));
122 PUNKNOWN(*Output)->AddRef();
123 return STATUS_SUCCESS;
124 }
125 else if (IsEqualGUIDAligned(refiid, IID_IPortEvents))
126 {
127 *Output = PVOID(PPORTEVENTS(this));
128 PUNKNOWN(*Output)->AddRef();
129 return STATUS_SUCCESS;
130 }
131 else if (IsEqualGUIDAligned(refiid, IID_ISubdevice))
132 {
133 *Output = PVOID(PSUBDEVICE(this));
134 PUNKNOWN(*Output)->AddRef();
135 return STATUS_SUCCESS;
136 }
137 else if (IsEqualGUIDAligned(refiid, IID_IPortClsVersion))
138 {
140 }
141 else if (IsEqualGUIDAligned(refiid, IID_IDrmPort) ||
142 IsEqualGUIDAligned(refiid, IID_IDrmPort2))
143 {
144 return NewIDrmPort((PDRMPORT2*)Output);
145 }
146 else if (IsEqualGUIDAligned(refiid, IID_IUnregisterSubdevice))
147 {
149 }
150 else if (IsEqualGUIDAligned(refiid, IID_IUnregisterPhysicalConnection))
151 {
153 }
154
156 {
157 DPRINT("IPortWaveRT_fnQueryInterface no interface!!! iface %S\n", GuidString.Buffer);
159 }
160
161 return STATUS_UNSUCCESSFUL;
162}
IPortWaveRT * PPORTWAVERT
Definition: interfaces.hpp:681
ISubdevice * PSUBDEVICE
Definition: interfaces.hpp:307
const GUID IID_IUnknown
IUnknown * PUNKNOWN
Definition: com_apitest.h:45
NTSTATUS NTAPI NewIUnregisterPhysicalConnection(OUT PUNREGISTERPHYSICALCONNECTION *OutConnection)
Definition: connection.cpp:124
NTSTATUS NewIDrmPort(OUT PDRMPORT2 *OutPort)
Definition: drm_port.cpp:122
NTSYSAPI NTSTATUS WINAPI RtlStringFromGUID(REFGUID, PUNICODE_STRING)
ULONG AddRef()
static PWSTR GuidString
Definition: apphelp.c:93
NTSYSAPI VOID NTAPI RtlFreeUnicodeString(PUNICODE_STRING UnicodeString)
IPortEvents * PPORTEVENTS
Definition: portcls.h:2121
IUnregisterSubdevice * PUNREGISTERSUBDEVICE
Definition: portcls.h:635
IPortClsVersion * PPORTCLSVERSION
Definition: portcls.h:2263
IUnregisterPhysicalConnection * PUNREGISTERPHYSICALCONNECTION
Definition: portcls.h:677
IDrmPort2 * PDRMPORT2
Definition: portcls.h:2228
NTSTATUS NTAPI NewIUnregisterSubdevice(OUT PUNREGISTERSUBDEVICE *OutDevice)
Definition: unregister.cpp:119
NTSTATUS NewPortClsVersion(OUT PPORTCLSVERSION *OutVersion)
Definition: version.cpp:66
@ Output
Definition: arc.h:85
#define STATUS_SUCCESS
Definition: shellext.h:65
#define DPRINT
Definition: sndvol32.h:73
void * PVOID
Definition: typedefs.h:50
#define STATUS_UNSUCCESSFUL
Definition: udferr_usr.h:132
#define IsEqualGUIDAligned(guid1, guid2)
Definition: wdm.template.h:235

Friends And Related Function Documentation

◆ GetDeviceObjectFromPortWaveRT

PDEVICE_OBJECT GetDeviceObjectFromPortWaveRT ( PPORTWAVERT  iface)
friend

Definition at line 441 of file port_wavert.cpp.

443{
444 CPortWaveRT * This = (CPortWaveRT *)iface;
445 return This->m_pDeviceObject;
446}

◆ GetWaveRTMiniport

PMINIPORTWAVERT GetWaveRTMiniport ( IN IPortWaveRT *  iface)
friend

Definition at line 433 of file port_wavert.cpp.

435{
436 CPortWaveRT * This = (CPortWaveRT *)iface;
437 return This->m_pMiniport;
438}

Member Data Documentation

◆ IMP_IPortEvents

CPortWaveRT::IMP_IPortEvents

Definition at line 21 of file port_wavert.cpp.

◆ IMP_IPortWaveRT

CPortWaveRT::IMP_IPortWaveRT

Definition at line 19 of file port_wavert.cpp.

◆ IMP_ISubdevice

CPortWaveRT::IMP_ISubdevice

Definition at line 20 of file port_wavert.cpp.

◆ m_bInitialized

BOOL CPortWaveRT::m_bInitialized
protected

Definition at line 27 of file port_wavert.cpp.

◆ m_Filter

IPortFilterWaveRT* CPortWaveRT::m_Filter
protected

Definition at line 35 of file port_wavert.cpp.

◆ m_pDescriptor

PPCFILTER_DESCRIPTOR CPortWaveRT::m_pDescriptor
protected

Definition at line 33 of file port_wavert.cpp.

◆ m_pDeviceObject

PDEVICE_OBJECT CPortWaveRT::m_pDeviceObject
protected

Definition at line 28 of file port_wavert.cpp.

◆ m_pMiniport

PMINIPORTWAVERT CPortWaveRT::m_pMiniport
protected

Definition at line 29 of file port_wavert.cpp.

◆ m_pPinCount

PPINCOUNT CPortWaveRT::m_pPinCount
protected

Definition at line 31 of file port_wavert.cpp.

◆ m_pPowerNotify

PPOWERNOTIFY CPortWaveRT::m_pPowerNotify
protected

Definition at line 32 of file port_wavert.cpp.

◆ m_pResourceList

PRESOURCELIST CPortWaveRT::m_pResourceList
protected

Definition at line 30 of file port_wavert.cpp.

◆ m_SubDeviceDescriptor

PSUBDEVICE_DESCRIPTOR CPortWaveRT::m_SubDeviceDescriptor
protected

Definition at line 34 of file port_wavert.cpp.


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