ReactOS 0.4.15-dev-5874-gc762234
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 17 of file port_wavepci.cpp.

Constructor & Destructor Documentation

◆ CPortWavePci()

CPortWavePci::CPortWavePci ( IUnknown OuterUnknown)
inline

Definition at line 26 of file port_wavepci.cpp.

26{}

◆ ~CPortWavePci()

virtual CPortWavePci::~CPortWavePci ( )
inlinevirtual

Definition at line 27 of file port_wavepci.cpp.

27{}

Member Function Documentation

◆ QueryInterface()

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

Definition at line 139 of file port_wavepci.cpp.

142{
144
145 DPRINT("IPortWavePci_fnQueryInterface entered\n");
146
147 if (IsEqualGUIDAligned(refiid, IID_IPortWavePci) ||
149 IsEqualGUIDAligned(refiid, IID_IPort))
150 {
151 *Output = PVOID(PPORTWAVEPCI(this));
152 PUNKNOWN(*Output)->AddRef();
153 return STATUS_SUCCESS;
154 }
155 else if (IsEqualGUIDAligned(refiid, IID_IServiceSink))
156 {
157 *Output = PVOID(PSERVICESINK(this));
158 PUNKNOWN(*Output)->AddRef();
159 return STATUS_SUCCESS;
160 }
161 else if (IsEqualGUIDAligned(refiid, IID_IPortEvents))
162 {
163 *Output = PVOID(PPORTEVENTS(this));
164 PUNKNOWN(*Output)->AddRef();
165 return STATUS_SUCCESS;
166 }
167 else if (IsEqualGUIDAligned(refiid, IID_ISubdevice))
168 {
169 *Output = PVOID(PSUBDEVICE(this));
170 PUNKNOWN(*Output)->AddRef();
171 return STATUS_SUCCESS;
172 }
173 else if (IsEqualGUIDAligned(refiid, IID_IDrmPort) ||
174 IsEqualGUIDAligned(refiid, IID_IDrmPort2))
175 {
176 return NewIDrmPort((PDRMPORT2*)Output);
177 }
178 else if (IsEqualGUIDAligned(refiid, IID_IPortClsVersion))
179 {
181 }
182 else if (IsEqualGUIDAligned(refiid, IID_IUnregisterSubdevice))
183 {
185 }
186 else if (IsEqualGUIDAligned(refiid, IID_IUnregisterPhysicalConnection))
187 {
189 }
190
192 {
193 DPRINT("IPortWavePci_fnQueryInterface no interface!!! iface %S\n", GuidString.Buffer);
195 }
196
197 return STATUS_UNSUCCESSFUL;
198}
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:128
NTSTATUS NewIDrmPort(OUT PDRMPORT2 *OutPort)
Definition: drm_port.cpp:125
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:122
NTSTATUS NewPortClsVersion(OUT PPORTCLSVERSION *OutVersion)
Definition: version.cpp:71
@ 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 541 of file port_wavepci.cpp.

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

◆ GetWavePciMiniport

PMINIPORTWAVEPCI GetWavePciMiniport ( PPORTWAVEPCI  iface)
friend

Definition at line 549 of file port_wavepci.cpp.

551{
552 CPortWavePci * This = (CPortWavePci*)iface;
553 return This->m_Miniport;
554}

Member Data Documentation

◆ IMP_IPortEvents

CPortWavePci::IMP_IPortEvents

Definition at line 24 of file port_wavepci.cpp.

◆ IMP_IPortWavePci

CPortWavePci::IMP_IPortWavePci

Definition at line 22 of file port_wavepci.cpp.

◆ IMP_IServiceSink

CPortWavePci::IMP_IServiceSink

Definition at line 25 of file port_wavepci.cpp.

◆ IMP_ISubdevice

CPortWavePci::IMP_ISubdevice

Definition at line 23 of file port_wavepci.cpp.

◆ m_EventList

LIST_ENTRY CPortWavePci::m_EventList
protected

Definition at line 40 of file port_wavepci.cpp.

◆ m_EventListLock

KSPIN_LOCK CPortWavePci::m_EventListLock
protected

Definition at line 41 of file port_wavepci.cpp.

◆ m_Filter

IPortFilterWavePci* CPortWavePci::m_Filter
protected

Definition at line 38 of file port_wavepci.cpp.

◆ m_Miniport

PMINIPORTWAVEPCI CPortWavePci::m_Miniport
protected

Definition at line 31 of file port_wavepci.cpp.

◆ m_pDescriptor

PPCFILTER_DESCRIPTOR CPortWavePci::m_pDescriptor
protected

Definition at line 36 of file port_wavepci.cpp.

◆ m_pDeviceObject

PDEVICE_OBJECT CPortWavePci::m_pDeviceObject
protected

Definition at line 32 of file port_wavepci.cpp.

◆ m_pPinCount

PPINCOUNT CPortWavePci::m_pPinCount
protected

Definition at line 34 of file port_wavepci.cpp.

◆ m_pPowerNotify

PPOWERNOTIFY CPortWavePci::m_pPowerNotify
protected

Definition at line 35 of file port_wavepci.cpp.

◆ m_ServiceGroup

PSERVICEGROUP CPortWavePci::m_ServiceGroup
protected

Definition at line 33 of file port_wavepci.cpp.

◆ m_SubDeviceDescriptor

PSUBDEVICE_DESCRIPTOR CPortWavePci::m_SubDeviceDescriptor
protected

Definition at line 37 of file port_wavepci.cpp.


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