ReactOS 0.4.15-dev-7918-g2a2556c
CPortWavePci Class Reference
Inheritance diagram for CPortWavePci:
Collaboration diagram for CPortWavePci:

Public Member Functions

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

Public Attributes

 IMP_IPortWavePci
 
 IMP_ISubdevice
 
 IMP_IPortEvents
 
 IMP_IServiceSink
 

Protected Attributes

PMINIPORTWAVEPCI m_Miniport
 
PDEVICE_OBJECT m_pDeviceObject
 
PSERVICEGROUP m_ServiceGroup
 
PPINCOUNT m_pPinCount
 
PPOWERNOTIFY m_pPowerNotify
 
PPCFILTER_DESCRIPTOR m_pDescriptor
 
PSUBDEVICE_DESCRIPTOR m_SubDeviceDescriptor
 
IPortFilterWavePci * m_Filter
 
LIST_ENTRY m_EventList
 
KSPIN_LOCK m_EventListLock
 

Friends

PDEVICE_OBJECT GetDeviceObjectFromPortWavePci (IPortWavePci *iface)
 
PMINIPORTWAVEPCI GetWavePciMiniport (PPORTWAVEPCI iface)
 

Additional Inherited Members

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

Detailed Description

Definition at line 14 of file port_wavepci.cpp.

Constructor & Destructor Documentation

◆ CPortWavePci()

CPortWavePci::CPortWavePci ( IUnknown OuterUnknown)
inline

Definition at line 23 of file port_wavepci.cpp.

23{}

◆ ~CPortWavePci()

virtual CPortWavePci::~CPortWavePci ( )
inlinevirtual

Definition at line 24 of file port_wavepci.cpp.

24{}

Member Function Documentation

◆ QueryInterface()

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

Definition at line 133 of file port_wavepci.cpp.

136{
138
139 DPRINT("IPortWavePci_fnQueryInterface entered\n");
140
141 if (IsEqualGUIDAligned(refiid, IID_IPortWavePci) ||
143 IsEqualGUIDAligned(refiid, IID_IPort))
144 {
145 *Output = PVOID(PPORTWAVEPCI(this));
146 PUNKNOWN(*Output)->AddRef();
147 return STATUS_SUCCESS;
148 }
149 else if (IsEqualGUIDAligned(refiid, IID_IServiceSink))
150 {
151 *Output = PVOID(PSERVICESINK(this));
152 PUNKNOWN(*Output)->AddRef();
153 return STATUS_SUCCESS;
154 }
155 else if (IsEqualGUIDAligned(refiid, IID_IPortEvents))
156 {
157 *Output = PVOID(PPORTEVENTS(this));
158 PUNKNOWN(*Output)->AddRef();
159 return STATUS_SUCCESS;
160 }
161 else if (IsEqualGUIDAligned(refiid, IID_ISubdevice))
162 {
163 *Output = PVOID(PSUBDEVICE(this));
164 PUNKNOWN(*Output)->AddRef();
165 return STATUS_SUCCESS;
166 }
167 else if (IsEqualGUIDAligned(refiid, IID_IDrmPort) ||
168 IsEqualGUIDAligned(refiid, IID_IDrmPort2))
169 {
170 return NewIDrmPort((PDRMPORT2*)Output);
171 }
172 else if (IsEqualGUIDAligned(refiid, IID_IPortClsVersion))
173 {
175 }
176 else if (IsEqualGUIDAligned(refiid, IID_IUnregisterSubdevice))
177 {
179 }
180 else if (IsEqualGUIDAligned(refiid, IID_IUnregisterPhysicalConnection))
181 {
183 }
184
186 {
187 DPRINT("IPortWavePci_fnQueryInterface no interface!!! iface %S\n", GuidString.Buffer);
189 }
190
191 return STATUS_UNSUCCESSFUL;
192}
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)
IServiceSink * PSERVICESINK
Definition: portcls.h:569
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
IPortWavePci * PPORTWAVEPCI
Definition: portcls.h:1248
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:71
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

◆ GetDeviceObjectFromPortWavePci

PDEVICE_OBJECT GetDeviceObjectFromPortWavePci ( IPortWavePci *  iface)
friend

Definition at line 532 of file port_wavepci.cpp.

534{
535 CPortWavePci * This = (CPortWavePci*)iface;
536 return This->m_pDeviceObject;
537}

◆ GetWavePciMiniport

PMINIPORTWAVEPCI GetWavePciMiniport ( PPORTWAVEPCI  iface)
friend

Definition at line 540 of file port_wavepci.cpp.

542{
543 CPortWavePci * This = (CPortWavePci*)iface;
544 return This->m_Miniport;
545}

Member Data Documentation

◆ IMP_IPortEvents

CPortWavePci::IMP_IPortEvents

Definition at line 21 of file port_wavepci.cpp.

◆ IMP_IPortWavePci

CPortWavePci::IMP_IPortWavePci

Definition at line 19 of file port_wavepci.cpp.

◆ IMP_IServiceSink

CPortWavePci::IMP_IServiceSink

Definition at line 22 of file port_wavepci.cpp.

◆ IMP_ISubdevice

CPortWavePci::IMP_ISubdevice

Definition at line 20 of file port_wavepci.cpp.

◆ m_EventList

LIST_ENTRY CPortWavePci::m_EventList
protected

Definition at line 37 of file port_wavepci.cpp.

◆ m_EventListLock

KSPIN_LOCK CPortWavePci::m_EventListLock
protected

Definition at line 38 of file port_wavepci.cpp.

◆ m_Filter

IPortFilterWavePci* CPortWavePci::m_Filter
protected

Definition at line 35 of file port_wavepci.cpp.

◆ m_Miniport

PMINIPORTWAVEPCI CPortWavePci::m_Miniport
protected

Definition at line 28 of file port_wavepci.cpp.

◆ m_pDescriptor

PPCFILTER_DESCRIPTOR CPortWavePci::m_pDescriptor
protected

Definition at line 33 of file port_wavepci.cpp.

◆ m_pDeviceObject

PDEVICE_OBJECT CPortWavePci::m_pDeviceObject
protected

Definition at line 29 of file port_wavepci.cpp.

◆ m_pPinCount

PPINCOUNT CPortWavePci::m_pPinCount
protected

Definition at line 31 of file port_wavepci.cpp.

◆ m_pPowerNotify

PPOWERNOTIFY CPortWavePci::m_pPowerNotify
protected

Definition at line 32 of file port_wavepci.cpp.

◆ m_ServiceGroup

PSERVICEGROUP CPortWavePci::m_ServiceGroup
protected

Definition at line 30 of file port_wavepci.cpp.

◆ m_SubDeviceDescriptor

PSUBDEVICE_DESCRIPTOR CPortWavePci::m_SubDeviceDescriptor
protected

Definition at line 34 of file port_wavepci.cpp.


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