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

Public Member Functions

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

Public Attributes

 IMP_IPortDMus
 
 IMP_ISubdevice
 

Protected Attributes

BOOL m_bInitialized
 
IMiniportDMus * m_pMiniport
 
IMiniportMidi * m_pMiniportMidi
 
DEVICE_OBJECTm_pDeviceObject
 
PSERVICEGROUP m_ServiceGroup
 
PPINCOUNT m_pPinCount
 
PPOWERNOTIFY m_pPowerNotify
 
PPORTFILTERDMUS m_Filter
 
PPCFILTER_DESCRIPTOR m_pDescriptor
 
PSUBDEVICE_DESCRIPTOR m_SubDeviceDescriptor
 

Friends

VOID GetDMusMiniport (IN IPortDMus *iface, IN PMINIPORTDMUS *Miniport, IN PMINIPORTMIDI *MidiMiniport)
 

Additional Inherited Members

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

Detailed Description

Definition at line 14 of file port_dmus.cpp.

Constructor & Destructor Documentation

◆ CPortDMus()

CPortDMus::CPortDMus ( IUnknown OuterUnknown)
inline

Definition at line 21 of file port_dmus.cpp.

21{}

◆ ~CPortDMus()

virtual CPortDMus::~CPortDMus ( )
inlinevirtual

Definition at line 22 of file port_dmus.cpp.

22{}

Member Function Documentation

◆ QueryInterface()

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

Definition at line 85 of file port_dmus.cpp.

88{
90
91 if (IsEqualGUIDAligned(refiid, IID_IPortDMus) ||
92 IsEqualGUIDAligned(refiid, IID_IPortMidi) ||
93 IsEqualGUIDAligned(refiid, IID_IPort) ||
95 {
96 *Output = PVOID(PUNKNOWN((IPortDMus*)this));
97 PUNKNOWN(*Output)->AddRef();
98 return STATUS_SUCCESS;
99 }
100 else if (IsEqualGUIDAligned(refiid, IID_ISubdevice))
101 {
102 *Output = PVOID(PSUBDEVICE(this));
103 PUNKNOWN(*Output)->AddRef();
104 return STATUS_SUCCESS;
105 }
106 else if (IsEqualGUIDAligned(refiid, IID_IDrmPort) ||
107 IsEqualGUIDAligned(refiid, IID_IDrmPort2))
108 {
109 return NewIDrmPort((PDRMPORT2*)Output);
110 }
111 else if (IsEqualGUIDAligned(refiid, IID_IPortClsVersion))
112 {
114 }
115 else if (IsEqualGUIDAligned(refiid, IID_IUnregisterSubdevice))
116 {
118 }
119 else if (IsEqualGUIDAligned(refiid, IID_IUnregisterPhysicalConnection))
120 {
122 }
123
125 {
126 DPRINT("IPortMidi_fnQueryInterface no interface!!! iface %S\n", GuidString.Buffer);
128 }
129 return STATUS_UNSUCCESSFUL;
130}
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)
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: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

◆ GetDMusMiniport

VOID GetDMusMiniport ( IN IPortDMus *  iface,
IN PMINIPORTDMUS Miniport,
IN PMINIPORTMIDI MidiMiniport 
)
friend

Definition at line 503 of file port_dmus.cpp.

507{
508 CPortDMus * This = (CPortDMus*)iface;
509
510 *Miniport = This->m_pMiniport;
511 *MidiMiniport = This->m_pMiniportMidi;
512}

Member Data Documentation

◆ IMP_IPortDMus

CPortDMus::IMP_IPortDMus

Definition at line 19 of file port_dmus.cpp.

◆ IMP_ISubdevice

CPortDMus::IMP_ISubdevice

Definition at line 20 of file port_dmus.cpp.

◆ m_bInitialized

BOOL CPortDMus::m_bInitialized
protected

Definition at line 26 of file port_dmus.cpp.

◆ m_Filter

PPORTFILTERDMUS CPortDMus::m_Filter
protected

Definition at line 33 of file port_dmus.cpp.

◆ m_pDescriptor

PPCFILTER_DESCRIPTOR CPortDMus::m_pDescriptor
protected

Definition at line 35 of file port_dmus.cpp.

◆ m_pDeviceObject

DEVICE_OBJECT* CPortDMus::m_pDeviceObject
protected

Definition at line 29 of file port_dmus.cpp.

◆ m_pMiniport

IMiniportDMus* CPortDMus::m_pMiniport
protected

Definition at line 27 of file port_dmus.cpp.

◆ m_pMiniportMidi

IMiniportMidi* CPortDMus::m_pMiniportMidi
protected

Definition at line 28 of file port_dmus.cpp.

◆ m_pPinCount

PPINCOUNT CPortDMus::m_pPinCount
protected

Definition at line 31 of file port_dmus.cpp.

◆ m_pPowerNotify

PPOWERNOTIFY CPortDMus::m_pPowerNotify
protected

Definition at line 32 of file port_dmus.cpp.

◆ m_ServiceGroup

PSERVICEGROUP CPortDMus::m_ServiceGroup
protected

Definition at line 30 of file port_dmus.cpp.

◆ m_SubDeviceDescriptor

PSUBDEVICE_DESCRIPTOR CPortDMus::m_SubDeviceDescriptor
protected

Definition at line 36 of file port_dmus.cpp.


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