ReactOS  0.4.13-dev-563-g0561610
port_dmus.cpp File Reference
#include "private.hpp"
#include <debug.h>
Include dependency graph for port_dmus.cpp:

Go to the source code of this file.

Classes

class  CPortDMus
 

Macros

#define NDEBUG
 

Functions

 DEFINE_KSPROPERTY_TOPOLOGYSET (PortFilterDMusTopologySet, TopologyPropertyHandler)
 
 DEFINE_KSPROPERTY_PINPROPOSEDATAFORMAT (PortFilterDMusPinSet, PinPropertyHandler, PinPropertyHandler, PinPropertyHandler)
 
NTSTATUS NewPortDMus (OUT PPORT *OutPort)
 
VOID GetDMusMiniport (IN IPortDMus *iface, IN PMINIPORTDMUS *Miniport, IN PMINIPORTMIDI *MidiMiniport)
 

Variables

static GUID InterfaceGuids [3]
 
KSPROPERTY_SET PortDMusPropertySet []
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 12 of file port_dmus.cpp.

Function Documentation

◆ DEFINE_KSPROPERTY_PINPROPOSEDATAFORMAT()

DEFINE_KSPROPERTY_PINPROPOSEDATAFORMAT ( PortFilterDMusPinSet  ,
PinPropertyHandler  ,
PinPropertyHandler  ,
PinPropertyHandler   
)

◆ DEFINE_KSPROPERTY_TOPOLOGYSET()

DEFINE_KSPROPERTY_TOPOLOGYSET ( PortFilterDMusTopologySet  ,
TopologyPropertyHandler   
)

◆ GetDMusMiniport()

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

Definition at line 533 of file port_dmus.cpp.

537 {
538  CPortDMus * This = (CPortDMus*)iface;
539 
540  *Miniport = This->m_pMiniport;
541  *MidiMiniport = This->m_pMiniportMidi;
542 }

◆ NewPortDMus()

NTSTATUS NewPortDMus ( OUT PPORT OutPort)

Definition at line 510 of file port_dmus.cpp.

512 {
515  if (!Port)
517 
518  Status = Port->QueryInterface(IID_IPort, (PVOID*)OutPort);
519 
520  if (!NT_SUCCESS(Status))
521  {
522  delete Port;
523  }
524 
525  DPRINT("NewPortDMus %p Status %u\n", Port, Status);
526  return Status;
527 
528 }
CPPORT Port[4]
Definition: headless.c:34
#define STATUS_INSUFFICIENT_RESOURCES
Definition: udferr_usr.h:158
#define TAG_PORTCLASS
Definition: private.hpp:24
LONG NTSTATUS
Definition: precomp.h:26
smooth NULL
Definition: ftsmooth.c:416
void DPRINT(...)
Definition: polytest.cpp:61
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
Status
Definition: gdiplustypes.h:24

Referenced by PcNewPort().

Variable Documentation

◆ InterfaceGuids

GUID InterfaceGuids[3]
static
Initial value:
=
{
{
0x6994AD04, 0x93EF, 0x11D0, {0xA3, 0xCC, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96}
},
{
0x65E8773E, 0x8F56, 0x11D0, {0xA3, 0xB9, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96}
},
{
0x65E8773D, 0x8F56, 0x11D0, {0xA3, 0xB9, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96}
}
}

Definition at line 64 of file port_dmus.cpp.

Referenced by PcCreateSubdeviceDescriptor().

◆ PortDMusPropertySet

KSPROPERTY_SET PortDMusPropertySet[]
Initial value:
=
{
{
sizeof(PortFilterDMusTopologySet) / sizeof(KSPROPERTY_ITEM),
(const KSPROPERTY_ITEM*)&PortFilterDMusTopologySet,
0,
},
{
sizeof(PortFilterDMusPinSet) / sizeof(KSPROPERTY_ITEM),
(const KSPROPERTY_ITEM*)&PortFilterDMusPinSet,
0,
}
}
smooth NULL
Definition: ftsmooth.c:416
#define KSPROPSETID_Topology
Definition: ks.h:872
#define KSPROPSETID_Pin
Definition: ks.h:647

Definition at line 83 of file port_dmus.cpp.