46 0x6994AD04, 0x93EF, 0x11D0, {0xA3, 0xCC, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96}
50 0x65E8773E, 0x8F56, 0x11D0, {0xA3, 0xB9, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96}
54 0x65E8773D, 0x8F56, 0x11D0, {0xA3, 0xB9, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96}
65 sizeof(PortFilterDMusTopologySet) /
sizeof(KSPROPERTY_ITEM),
66 (
const KSPROPERTY_ITEM*)&PortFilterDMusTopologySet,
72 sizeof(PortFilterDMusPinSet) /
sizeof(KSPROPERTY_ITEM),
73 (
const KSPROPERTY_ITEM*)&PortFilterDMusPinSet,
126 DPRINT(
"IPortMidi_fnQueryInterface no interface!!! iface %S\n",
GuidString.Buffer);
138CPortDMus::GetDeviceProperty(
148 DPRINT(
"IPortDMus_fnNewRegistryKey called w/o initialized\n");
164 IMiniportDMus * Miniport =
NULL;
165 IMiniportMidi * MidiMiniport =
NULL;
175 DPRINT(
"IPortDMus_Init called again\n");
179 Status = UnknownMiniport->QueryInterface(IID_IMiniportDMus, (
PVOID*)&Miniport);
183 Status = UnknownMiniport->QueryInterface(IID_IMiniportMidi, (
PVOID*)&MidiMiniport);
186 DPRINT(
"IPortDMus_Init called with invalid IMiniport adapter\n");
212 DPRINT(
"failed to get description\n");
225 Status = MidiMiniport->Init(UnknownAdapter,
ResourceList, (IPortMidi*)
this, &ServiceGroup);
237 DPRINT(
"failed to get description\n");
265 DPRINT(
"Failed to create descriptor\n");
303CPortDMus::NewRegistryKey(
316 DPRINT(
"IPortDMus_fnNewRegistryKey called w/o initialized\n");
338 ServiceGroup->RequestService ();
356CPortDMus::RegisterServiceGroup(
371CPortDMus::NewIrpTarget(
372 OUT struct IIrpTarget **OutTarget,
378 IN KSOBJECT_CREATE *CreateObject)
383 DPRINT(
"ISubDevice_NewIrpTarget this %p\n",
this);
404 *OutTarget = (IIrpTarget*)
Filter;
410CPortDMus::ReleaseChildren()
418CPortDMus::GetDescriptor(
421 DPRINT(
"ISubDevice_GetDescriptor this %p\n",
this);
428CPortDMus::DataRangeIntersection(
436 DPRINT(
"ISubDevice_DataRangeIntersection this %p\n",
this);
448CPortDMus::PowerChangeNotify(
471 m_pPinCount->PinCount(PinId, FilterNecessary, FilterCurrent, FilterPossible, GlobalCurrent, GlobalPossible);
504 IN IPortDMus * iface,
510 *Miniport =
This->m_pMiniport;
511 *MidiMiniport =
This->m_pMiniportMidi;
IPortFilterDMus * PPORTFILTERDMUS
PSUBDEVICE_DESCRIPTOR m_SubDeviceDescriptor
DEVICE_OBJECT * m_pDeviceObject
IMiniportMidi * m_pMiniportMidi
STDMETHODIMP QueryInterface(REFIID InterfaceId, PVOID *Interface)
PSERVICEGROUP m_ServiceGroup
IMiniportDMus * m_pMiniport
PPCFILTER_DESCRIPTOR m_pDescriptor
CPortDMus(IUnknown *OuterUnknown)
PPOWERNOTIFY m_pPowerNotify
friend VOID GetDMusMiniport(IN IPortDMus *iface, IN PMINIPORTDMUS *Miniport, IN PMINIPORTMIDI *MidiMiniport)
NTSTATUS NTAPI NewIUnregisterPhysicalConnection(OUT PUNREGISTERPHYSICALCONNECTION *OutConnection)
IN PUNICODE_STRING IN POBJECT_ATTRIBUTES ObjectAttributes
#define NT_SUCCESS(StatCode)
IMiniportDMus * PMINIPORTDMUS
#define DEFINE_KSPROPERTY_PINPROPOSEDATAFORMAT(PinSet, PropGeneral, PropInstances, PropIntersection)
NTSTATUS NTAPI PcNewRegistryKey(OUT PREGISTRYKEY *OutRegistryKey, IN PUNKNOWN OuterUnknown OPTIONAL, IN ULONG RegistryKeyType, IN ACCESS_MASK DesiredAccess, IN PVOID DeviceObject OPTIONAL, IN PVOID SubDevice OPTIONAL, IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL, IN ULONG CreateOptions OPTIONAL, OUT PULONG Disposition OPTIONAL)
NTSTATUS NewIDrmPort(OUT PDRMPORT2 *OutPort)
IN CINT OUT PVOID IN ULONG OUT PULONG ReturnLength
NTSTATUS NewPortFilterDMus(OUT PPORTFILTERDMUS *OutFilter)
_Must_inspect_result_ _In_opt_ PFLT_FILTER Filter
NTSYSAPI NTSTATUS WINAPI RtlStringFromGUID(REFGUID, PUNICODE_STRING)
HRESULT QueryInterface([in] REFIID riid, [out, iid_is(riid)] void **ppvObject)
#define DEFINE_KSPROPERTY_TOPOLOGYSET(TopologySet, Handler)
#define KSPROPSETID_Topology
_In_ ACCESS_MASK _In_ POBJECT_ATTRIBUTES _Reserved_ ULONG _In_opt_ PUNICODE_STRING _In_ ULONG _Out_opt_ PULONG Disposition
NTSYSAPI VOID NTAPI RtlFreeUnicodeString(PUNICODE_STRING UnicodeString)
NTSTATUS NTAPI IoGetDeviceProperty(IN PDEVICE_OBJECT DeviceObject, IN DEVICE_REGISTRY_PROPERTY DeviceProperty, IN ULONG BufferLength, OUT PVOID PropertyBuffer, OUT PULONG ResultLength)
NTSTATUS NewPortDMus(OUT PPORT *OutPort)
KSPROPERTY_SET PortDMusPropertySet[]
static GUID InterfaceGuids[3]
VOID GetDMusMiniport(IN IPortDMus *iface, IN PMINIPORTDMUS *Miniport, IN PMINIPORTMIDI *MidiMiniport)
IRegistryKey * PREGISTRYKEY
IServiceSink * PSERVICESINK
IResourceList * PRESOURCELIST
IUnregisterSubdevice * PUNREGISTERSUBDEVICE
IPortClsVersion * PPORTCLSVERSION
IUnregisterPhysicalConnection * PUNREGISTERPHYSICALCONNECTION
IServiceGroup * PSERVICEGROUP
IMiniportMidi * PMINIPORTMIDI
IPowerNotify * PPOWERNOTIFY
NTSTATUS NTAPI PinPropertyHandler(IN PIRP Irp, IN PKSIDENTIFIER Request, IN OUT PVOID Data)
NTSTATUS NTAPI NewIUnregisterSubdevice(OUT PUNREGISTERSUBDEVICE *OutDevice)
NTSTATUS NTAPI PcCreateSubdeviceDescriptor(OUT SUBDEVICE_DESCRIPTOR **OutSubdeviceDescriptor, IN ULONG InterfaceCount, IN GUID *InterfaceGuids, IN ULONG IdentifierCount, IN KSIDENTIFIER *Identifier, IN ULONG FilterPropertiesCount, IN KSPROPERTY_SET *FilterProperties, IN ULONG Unknown1, IN ULONG Unknown2, IN ULONG PinPropertiesCount, IN KSPROPERTY_SET *PinProperties, IN ULONG EventSetCount, IN KSEVENT_SET *EventSet, IN PPCFILTER_DESCRIPTOR FilterDescription)
#define PC_ASSERT_IRQL_EQUAL(x)
NTSTATUS NewPortClsVersion(OUT PPORTCLSVERSION *OutVersion)
NTSTATUS NTAPI TopologyPropertyHandler(IN PIRP Irp, IN PKSIDENTIFIER Request, IN OUT PVOID Data)
PULONG MinorVersion OPTIONAL
_In_ const GUID _In_ ULONG PinCount
#define STATUS_INVALID_PARAMETER
#define STATUS_UNSUCCESSFUL
#define STATUS_INSUFFICIENT_RESOURCES
_In_ PDEVICE_OBJECT DeviceObject
_Must_inspect_result_ _In_ WDFDEVICE _In_ ULONG _In_ ACCESS_MASK DesiredAccess
_Must_inspect_result_ _In_ WDFDEVICE _In_ DEVICE_REGISTRY_PROPERTY _In_ _Strict_type_match_ POOL_TYPE PoolType
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ ULONG _Out_ PVOID PropertyBuffer
_Must_inspect_result_ _In_ WDFDEVICE _In_ DEVICE_REGISTRY_PROPERTY _In_ ULONG BufferLength
_Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_ WDF_DEVICE_POWER_STATE PowerState
_Must_inspect_result_ _In_ WDFDEVICE _In_ LPCGUID _Out_ PINTERFACE Interface
_In_ WDFREQUEST _In_ size_t OutputBufferLength
_Must_inspect_result_ _In_opt_ WDFKEY _In_ PCUNICODE_STRING _In_ ACCESS_MASK _In_ ULONG CreateOptions
_Must_inspect_result_ _In_ WDFIORESREQLIST _In_opt_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFIORESLIST * ResourceList
_Must_inspect_result_ _In_ WDFIORESLIST _In_ PIO_RESOURCE_DESCRIPTOR Descriptor
#define IsEqualGUIDAligned(guid1, guid2)