ReactOS 0.4.15-dev-5664-g3bf4ef6
CPortTopology Class Reference
Inheritance diagram for CPortTopology:
Collaboration diagram for CPortTopology:

Public Member Functions

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

Public Attributes

 IMP_IPortTopology
 
 IMP_ISubdevice
 
 IMP_IPortEvents
 

Protected Attributes

BOOL m_bInitialized
 
PMINIPORTTOPOLOGY m_pMiniport
 
PDEVICE_OBJECT m_pDeviceObject
 
PPINCOUNT m_pPinCount
 
PPOWERNOTIFY m_pPowerNotify
 
PPCFILTER_DESCRIPTOR m_pDescriptor
 
PSUBDEVICE_DESCRIPTOR m_SubDeviceDescriptor
 
IPortFilterTopology * m_Filter
 

Friends

PMINIPORTTOPOLOGY GetTopologyMiniport (PPORTTOPOLOGY Port)
 

Additional Inherited Members

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

Detailed Description

Definition at line 17 of file port_topology.cpp.

Constructor & Destructor Documentation

◆ CPortTopology()

CPortTopology::CPortTopology ( IUnknown OuterUnknown)
inline

Definition at line 25 of file port_topology.cpp.

25{}

◆ ~CPortTopology()

virtual CPortTopology::~CPortTopology ( )
inlinevirtual

Definition at line 26 of file port_topology.cpp.

26{}

Member Function Documentation

◆ QueryInterface()

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

Definition at line 110 of file port_topology.cpp.

113{
115
116 DPRINT("IPortTopology_fnQueryInterface\n");
117
118 if (IsEqualGUIDAligned(refiid, IID_IPortTopology) ||
119 IsEqualGUIDAligned(refiid, IID_IPort) ||
121 {
122 *Output = PVOID(PUNKNOWN((IPortTopology*)this));
123 PUNKNOWN(*Output)->AddRef();
124 return STATUS_SUCCESS;
125 }
126 else if (IsEqualGUIDAligned(refiid, IID_IPortEvents))
127 {
128 *Output = PVOID(PPORTEVENTS(this));
129 PUNKNOWN(*Output)->AddRef();
130 return STATUS_SUCCESS;
131 }
132 else if (IsEqualGUIDAligned(refiid, IID_ISubdevice))
133 {
134 *Output = PVOID(PSUBDEVICE(this));
135 PUNKNOWN(*Output)->AddRef();
136 return STATUS_SUCCESS;
137 }
138 else if (IsEqualGUIDAligned(refiid, IID_IPortClsVersion))
139 {
141 }
142 else if (IsEqualGUIDAligned(refiid, IID_IDrmPort) ||
143 IsEqualGUIDAligned(refiid, IID_IDrmPort2))
144 {
145 return NewIDrmPort((PDRMPORT2*)Output);
146 }
147 else if (IsEqualGUIDAligned(refiid, IID_IUnregisterSubdevice))
148 {
150 }
151 else if (IsEqualGUIDAligned(refiid, IID_IUnregisterPhysicalConnection))
152 {
154 }
155
157 {
158 DPRINT1("IPortTopology_fnQueryInterface no interface!!! iface %S\n", GuidString.Buffer);
160 }
161 return STATUS_UNSUCCESSFUL;
162}
ISubdevice * PSUBDEVICE
Definition: interfaces.hpp:307
#define DPRINT1
Definition: precomp.h:8
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()
void * PVOID
Definition: retypes.h:9
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: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
#define STATUS_UNSUCCESSFUL
Definition: udferr_usr.h:132
#define IsEqualGUIDAligned(guid1, guid2)
Definition: wdm.template.h:235

Friends And Related Function Documentation

◆ GetTopologyMiniport

PMINIPORTTOPOLOGY GetTopologyMiniport ( PPORTTOPOLOGY  Port)
friend

Definition at line 599 of file port_topology.cpp.

601{
603 return This->m_pMiniport;
604}
CPPORT Port[4]
Definition: headless.c:35

Member Data Documentation

◆ IMP_IPortEvents

CPortTopology::IMP_IPortEvents

Definition at line 24 of file port_topology.cpp.

◆ IMP_IPortTopology

CPortTopology::IMP_IPortTopology

Definition at line 22 of file port_topology.cpp.

◆ IMP_ISubdevice

CPortTopology::IMP_ISubdevice

Definition at line 23 of file port_topology.cpp.

◆ m_bInitialized

BOOL CPortTopology::m_bInitialized
protected

Definition at line 29 of file port_topology.cpp.

◆ m_Filter

IPortFilterTopology* CPortTopology::m_Filter
protected

Definition at line 38 of file port_topology.cpp.

◆ m_pDescriptor

PPCFILTER_DESCRIPTOR CPortTopology::m_pDescriptor
protected

Definition at line 36 of file port_topology.cpp.

◆ m_pDeviceObject

PDEVICE_OBJECT CPortTopology::m_pDeviceObject
protected

Definition at line 32 of file port_topology.cpp.

◆ m_pMiniport

PMINIPORTTOPOLOGY CPortTopology::m_pMiniport
protected

Definition at line 31 of file port_topology.cpp.

◆ m_pPinCount

PPINCOUNT CPortTopology::m_pPinCount
protected

Definition at line 33 of file port_topology.cpp.

◆ m_pPowerNotify

PPOWERNOTIFY CPortTopology::m_pPowerNotify
protected

Definition at line 34 of file port_topology.cpp.

◆ m_SubDeviceDescriptor

PSUBDEVICE_DESCRIPTOR CPortTopology::m_SubDeviceDescriptor
protected

Definition at line 37 of file port_topology.cpp.


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