2010-03-29 05:17:15 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#if (NTDDI_VERSION >= NTDDI_WINXP)
|
|
|
|
|
2009-08-07 12:04:50 +00:00
|
|
|
#if defined(__cplusplus)
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define STDMETHODCALLTYPE __stdcall
|
2010-03-29 05:03:20 +00:00
|
|
|
|
|
|
|
#ifndef _WDMDDK_
|
2009-08-07 12:04:50 +00:00
|
|
|
typedef GUID *PGUID;
|
2010-03-29 05:03:20 +00:00
|
|
|
#endif
|
2009-08-07 12:04:50 +00:00
|
|
|
|
|
|
|
/* Types */
|
|
|
|
|
2010-03-29 05:17:15 +00:00
|
|
|
typedef ULONG BDA_TOPOLOGY_JOINT, *PBDA_TOPOLOGY_JOINT;
|
|
|
|
|
|
|
|
typedef struct _BDA_PIN_PAIRING {
|
2010-03-29 05:03:20 +00:00
|
|
|
ULONG ulInputPin;
|
|
|
|
ULONG ulOutputPin;
|
|
|
|
ULONG ulcMaxInputsPerOutput;
|
|
|
|
ULONG ulcMinInputsPerOutput;
|
|
|
|
ULONG ulcMaxOutputsPerInput;
|
|
|
|
ULONG ulcMinOutputsPerInput;
|
|
|
|
ULONG ulcTopologyJoints;
|
|
|
|
const ULONG *pTopologyJoints;
|
2009-08-07 12:04:50 +00:00
|
|
|
} BDA_PIN_PAIRING, *PBDA_PIN_PAIRING;
|
|
|
|
|
2010-03-29 05:17:15 +00:00
|
|
|
typedef struct _BDA_FILTER_TEMPLATE {
|
2010-03-29 05:03:20 +00:00
|
|
|
const KSFILTER_DESCRIPTOR *pFilterDescriptor;
|
|
|
|
ULONG ulcPinPairs;
|
|
|
|
const BDA_PIN_PAIRING *pPinPairs;
|
2009-08-07 12:04:50 +00:00
|
|
|
} BDA_FILTER_TEMPLATE, *PBDA_FILTER_TEMPLATE;
|
|
|
|
|
2010-03-29 05:17:15 +00:00
|
|
|
typedef struct _KSM_PIN_PAIR {
|
|
|
|
KSMETHOD Method;
|
|
|
|
ULONG InputPinId;
|
|
|
|
ULONG OutputPinId;
|
|
|
|
ULONG Reserved;
|
|
|
|
} KSM_PIN_PAIR, * PKSM_PIN_PAIR;
|
2010-03-29 04:14:34 +00:00
|
|
|
|
2010-03-29 05:17:15 +00:00
|
|
|
typedef struct _KSM_PIN {
|
2010-03-29 05:03:20 +00:00
|
|
|
KSMETHOD Method;
|
2010-03-29 05:17:15 +00:00
|
|
|
__GNU_EXTENSION union {
|
2010-03-29 05:03:20 +00:00
|
|
|
ULONG PinId;
|
|
|
|
ULONG PinType;
|
|
|
|
};
|
|
|
|
ULONG Reserved;
|
2010-02-18 15:04:54 +00:00
|
|
|
} KSM_PIN, * PKSM_PIN;
|
|
|
|
|
2009-08-07 12:04:50 +00:00
|
|
|
/* Functions */
|
|
|
|
|
2012-01-26 15:22:08 +00:00
|
|
|
_Must_inspect_result_
|
|
|
|
_IRQL_requires_(PASSIVE_LEVEL)
|
2010-03-29 05:17:15 +00:00
|
|
|
STDMETHODIMP_(NTSTATUS)
|
|
|
|
BdaCheckChanges(
|
2012-01-26 15:22:08 +00:00
|
|
|
_In_ PIRP Irp);
|
2010-03-29 05:17:15 +00:00
|
|
|
|
2012-01-26 15:22:08 +00:00
|
|
|
_Must_inspect_result_
|
|
|
|
_IRQL_requires_(PASSIVE_LEVEL)
|
2010-03-29 05:17:15 +00:00
|
|
|
STDMETHODIMP_(NTSTATUS)
|
|
|
|
BdaCommitChanges(
|
2012-01-26 15:22:08 +00:00
|
|
|
_In_ PIRP Irp);
|
2010-03-29 04:14:34 +00:00
|
|
|
|
2012-01-26 15:22:08 +00:00
|
|
|
_Must_inspect_result_
|
|
|
|
_IRQL_requires_(PASSIVE_LEVEL)
|
2010-03-29 05:17:15 +00:00
|
|
|
STDMETHODIMP_(NTSTATUS)
|
|
|
|
BdaCreateFilterFactory(
|
2012-01-26 15:22:08 +00:00
|
|
|
_In_ PKSDEVICE pKSDevice,
|
|
|
|
_In_ const KSFILTER_DESCRIPTOR *pFilterDescriptor,
|
|
|
|
_In_ const BDA_FILTER_TEMPLATE *pBdaFilterTemplate);
|
2010-03-29 04:14:34 +00:00
|
|
|
|
2012-01-26 15:22:08 +00:00
|
|
|
_Must_inspect_result_
|
|
|
|
_IRQL_requires_(PASSIVE_LEVEL)
|
2010-03-29 05:17:15 +00:00
|
|
|
STDMETHODIMP_(NTSTATUS)
|
|
|
|
BdaCreateFilterFactoryEx(
|
2012-01-26 15:22:08 +00:00
|
|
|
_In_ PKSDEVICE pKSDevice,
|
|
|
|
_In_ const KSFILTER_DESCRIPTOR *pFilterDescriptor,
|
|
|
|
_In_ const BDA_FILTER_TEMPLATE *pBdaFilterTemplate,
|
|
|
|
_Out_opt_ PKSFILTERFACTORY *ppKSFilterFactory);
|
2010-03-29 04:14:34 +00:00
|
|
|
|
2012-01-26 15:22:08 +00:00
|
|
|
_Must_inspect_result_
|
|
|
|
_IRQL_requires_(PASSIVE_LEVEL)
|
2010-03-29 05:17:15 +00:00
|
|
|
STDMETHODIMP_(NTSTATUS)
|
|
|
|
BdaCreatePin(
|
2012-01-26 15:22:08 +00:00
|
|
|
_In_ PKSFILTER pKSFilter,
|
|
|
|
_In_ ULONG ulPinType,
|
|
|
|
_Out_opt_ ULONG *pulPinId);
|
2010-03-29 04:14:34 +00:00
|
|
|
|
2012-01-26 15:22:08 +00:00
|
|
|
_Must_inspect_result_
|
|
|
|
_IRQL_requires_(PASSIVE_LEVEL)
|
2010-03-29 05:17:15 +00:00
|
|
|
STDMETHODIMP_(NTSTATUS)
|
|
|
|
BdaCreateTopology(
|
2012-01-26 15:22:08 +00:00
|
|
|
_In_ PKSFILTER pKSFilter,
|
|
|
|
_In_ ULONG InputPinId,
|
|
|
|
_In_ ULONG OutputPinId);
|
2010-03-29 04:14:34 +00:00
|
|
|
|
2012-01-26 15:22:08 +00:00
|
|
|
_Must_inspect_result_
|
|
|
|
_IRQL_requires_(PASSIVE_LEVEL)
|
2010-03-29 05:17:15 +00:00
|
|
|
STDMETHODIMP_(NTSTATUS)
|
|
|
|
BdaDeletePin(
|
2012-01-26 15:22:08 +00:00
|
|
|
_In_ PKSFILTER pKSFilter,
|
|
|
|
_Out_opt_ ULONG *pulPinId);
|
2010-03-29 04:14:34 +00:00
|
|
|
|
2012-01-26 15:22:08 +00:00
|
|
|
_Must_inspect_result_
|
|
|
|
_IRQL_requires_(PASSIVE_LEVEL)
|
2010-03-29 05:17:15 +00:00
|
|
|
STDMETHODIMP_(NTSTATUS)
|
|
|
|
BdaFilterFactoryUpdateCacheData(
|
2012-01-26 15:22:08 +00:00
|
|
|
_In_ PKSFILTERFACTORY pFilterFactory,
|
|
|
|
_In_opt_ const KSFILTER_DESCRIPTOR *pFilterDescriptor);
|
2010-03-29 04:14:34 +00:00
|
|
|
|
2012-01-26 15:22:08 +00:00
|
|
|
_Must_inspect_result_
|
|
|
|
_IRQL_requires_(PASSIVE_LEVEL)
|
2010-03-29 05:17:15 +00:00
|
|
|
STDMETHODIMP_(NTSTATUS)
|
|
|
|
BdaGetChangeState(
|
2012-01-26 15:22:08 +00:00
|
|
|
_In_ PIRP Irp,
|
|
|
|
_Out_opt_ BDA_CHANGE_STATE *pChangeState);
|
2010-03-29 04:14:34 +00:00
|
|
|
|
2012-01-26 15:22:08 +00:00
|
|
|
_Must_inspect_result_
|
|
|
|
_IRQL_requires_(PASSIVE_LEVEL)
|
2010-03-29 05:17:15 +00:00
|
|
|
STDMETHODIMP_(NTSTATUS)
|
|
|
|
BdaInitFilter(
|
2012-01-26 15:22:08 +00:00
|
|
|
_In_ PKSFILTER pKSFilter,
|
|
|
|
_In_ const BDA_FILTER_TEMPLATE *pBdaFilterTemplate);
|
2010-03-29 04:14:34 +00:00
|
|
|
|
2012-01-26 15:22:08 +00:00
|
|
|
_Must_inspect_result_
|
|
|
|
_IRQL_requires_(PASSIVE_LEVEL)
|
2010-03-29 05:17:15 +00:00
|
|
|
STDMETHODIMP_(NTSTATUS)
|
|
|
|
BdaMethodCreatePin(
|
2012-01-26 15:22:08 +00:00
|
|
|
_In_ PIRP Irp,
|
|
|
|
_In_ KSMETHOD *pKSMethod,
|
|
|
|
_Out_opt_ ULONG *pulPinFactoryID);
|
2010-03-29 04:14:34 +00:00
|
|
|
|
2012-01-26 15:22:08 +00:00
|
|
|
_Must_inspect_result_
|
|
|
|
_IRQL_requires_(PASSIVE_LEVEL)
|
2010-03-29 05:17:15 +00:00
|
|
|
STDMETHODIMP_(NTSTATUS)
|
|
|
|
BdaMethodCreateTopology(
|
2012-01-26 15:22:08 +00:00
|
|
|
_In_ PIRP Irp,
|
|
|
|
_In_ KSMETHOD *pKSMethod,
|
|
|
|
PVOID pvIgnored);
|
2010-03-29 04:14:34 +00:00
|
|
|
|
2012-01-26 15:22:08 +00:00
|
|
|
_Must_inspect_result_
|
|
|
|
_IRQL_requires_(PASSIVE_LEVEL)
|
2010-03-29 05:17:15 +00:00
|
|
|
STDMETHODIMP_(NTSTATUS)
|
|
|
|
BdaMethodDeletePin(
|
2012-01-26 15:22:08 +00:00
|
|
|
_In_ PIRP Irp,
|
|
|
|
_In_ KSMETHOD *pKSMethod,
|
|
|
|
PVOID pvIgnored);
|
2010-03-29 04:14:34 +00:00
|
|
|
|
2012-01-26 15:22:08 +00:00
|
|
|
_Must_inspect_result_
|
|
|
|
_IRQL_requires_(PASSIVE_LEVEL)
|
2010-03-29 05:17:15 +00:00
|
|
|
STDMETHODIMP_(NTSTATUS)
|
|
|
|
BdaPropertyGetControllingPinId(
|
2012-01-26 15:22:08 +00:00
|
|
|
_In_ PIRP Irp,
|
|
|
|
_In_ KSP_BDA_NODE_PIN *pProperty,
|
|
|
|
_Out_opt_ ULONG *pulControllingPinId);
|
2010-03-29 04:14:34 +00:00
|
|
|
|
2012-01-26 15:22:08 +00:00
|
|
|
_Must_inspect_result_
|
|
|
|
_IRQL_requires_(PASSIVE_LEVEL)
|
2010-03-29 05:17:15 +00:00
|
|
|
STDMETHODIMP_(NTSTATUS)
|
|
|
|
BdaPropertyGetPinControl(
|
2012-01-26 15:22:08 +00:00
|
|
|
_In_ PIRP Irp,
|
|
|
|
_In_ KSPROPERTY *pKSProperty,
|
|
|
|
_Out_opt_ ULONG *pulProperty);
|
2010-03-29 04:14:34 +00:00
|
|
|
|
2012-01-26 15:22:08 +00:00
|
|
|
_Must_inspect_result_
|
|
|
|
_IRQL_requires_(PASSIVE_LEVEL)
|
2010-03-29 05:17:15 +00:00
|
|
|
STDMETHODIMP_(NTSTATUS)
|
|
|
|
BdaPropertyNodeDescriptors(
|
2012-01-26 15:22:08 +00:00
|
|
|
_In_ PIRP Irp,
|
|
|
|
_In_ KSPROPERTY *pKSProperty,
|
|
|
|
_Out_opt_ BDANODE_DESCRIPTOR *pNodeDescriptorProperty);
|
2010-03-29 04:14:34 +00:00
|
|
|
|
2012-01-26 15:22:08 +00:00
|
|
|
_Must_inspect_result_
|
|
|
|
_IRQL_requires_(PASSIVE_LEVEL)
|
2010-03-29 05:17:15 +00:00
|
|
|
STDMETHODIMP_(NTSTATUS)
|
|
|
|
BdaPropertyNodeEvents(
|
2012-01-26 15:22:08 +00:00
|
|
|
_In_ PIRP Irp,
|
|
|
|
_In_ KSP_NODE *pKSProperty,
|
|
|
|
_Out_opt_ GUID *pguidProperty);
|
2010-03-29 04:14:34 +00:00
|
|
|
|
2012-01-26 15:22:08 +00:00
|
|
|
_Must_inspect_result_
|
|
|
|
_IRQL_requires_(PASSIVE_LEVEL)
|
2010-03-29 05:17:15 +00:00
|
|
|
STDMETHODIMP_(NTSTATUS)
|
|
|
|
BdaPropertyNodeMethods(
|
2012-01-26 15:22:08 +00:00
|
|
|
_In_ PIRP Irp,
|
|
|
|
_In_ KSP_NODE *pKSProperty,
|
|
|
|
_Out_opt_ GUID *pguidProperty);
|
2010-03-29 04:14:34 +00:00
|
|
|
|
2012-01-26 15:22:08 +00:00
|
|
|
_Must_inspect_result_
|
|
|
|
_IRQL_requires_(PASSIVE_LEVEL)
|
2010-03-29 05:17:15 +00:00
|
|
|
STDMETHODIMP_(NTSTATUS)
|
|
|
|
BdaPropertyNodeProperties(
|
2012-01-26 15:22:08 +00:00
|
|
|
_In_ PIRP Irp,
|
|
|
|
_In_ KSP_NODE *pKSProperty,
|
|
|
|
_Out_opt_ GUID *pguidProperty);
|
2010-03-29 04:14:34 +00:00
|
|
|
|
2012-01-26 15:22:08 +00:00
|
|
|
_Must_inspect_result_
|
|
|
|
_IRQL_requires_(PASSIVE_LEVEL)
|
2010-03-29 05:17:15 +00:00
|
|
|
STDMETHODIMP_(NTSTATUS)
|
|
|
|
BdaPropertyNodeTypes(
|
2012-01-26 15:22:08 +00:00
|
|
|
_In_ PIRP Irp,
|
|
|
|
_In_ KSPROPERTY *pKSProperty,
|
|
|
|
_Out_writes_bytes_(OutputBufferLenFromIrp(Irp)) ULONG *pulProperty);
|
2010-03-29 04:14:34 +00:00
|
|
|
|
2012-01-26 15:22:08 +00:00
|
|
|
_Must_inspect_result_
|
|
|
|
_IRQL_requires_(PASSIVE_LEVEL)
|
2010-03-29 05:17:15 +00:00
|
|
|
STDMETHODIMP_(NTSTATUS)
|
|
|
|
BdaPropertyPinTypes(
|
2012-01-26 15:22:08 +00:00
|
|
|
_In_ PIRP Irp,
|
|
|
|
_In_ KSPROPERTY *pKSProperty,
|
|
|
|
_Out_writes_bytes_(OutputBufferLenFromIrp(Irp)) ULONG *pulProperty);
|
2010-03-29 04:14:34 +00:00
|
|
|
|
2012-01-26 15:22:08 +00:00
|
|
|
_Must_inspect_result_
|
|
|
|
_IRQL_requires_(PASSIVE_LEVEL)
|
2010-03-29 05:17:15 +00:00
|
|
|
STDMETHODIMP_(NTSTATUS)
|
|
|
|
BdaPropertyTemplateConnections(
|
2012-01-26 15:22:08 +00:00
|
|
|
_In_ PIRP Irp,
|
|
|
|
_In_ KSPROPERTY *pKSProperty,
|
|
|
|
_Out_opt_ KSTOPOLOGY_CONNECTION *pConnectionProperty);
|
2010-03-29 04:14:34 +00:00
|
|
|
|
2012-01-26 15:22:08 +00:00
|
|
|
_Must_inspect_result_
|
|
|
|
_IRQL_requires_(PASSIVE_LEVEL)
|
2010-03-29 05:17:15 +00:00
|
|
|
STDMETHODIMP_(NTSTATUS)
|
|
|
|
BdaStartChanges(
|
2012-01-26 15:22:08 +00:00
|
|
|
_In_ PIRP Irp);
|
2010-03-29 04:14:34 +00:00
|
|
|
|
2012-01-26 15:22:08 +00:00
|
|
|
_Must_inspect_result_
|
|
|
|
_IRQL_requires_(PASSIVE_LEVEL)
|
2010-03-29 05:17:15 +00:00
|
|
|
STDMETHODIMP_(NTSTATUS)
|
|
|
|
BdaUninitFilter(
|
2012-01-26 15:22:08 +00:00
|
|
|
_In_ PKSFILTER pKSFilter);
|
2010-03-29 05:17:15 +00:00
|
|
|
|
2012-01-26 15:22:08 +00:00
|
|
|
_Must_inspect_result_
|
|
|
|
_IRQL_requires_(PASSIVE_LEVEL)
|
2010-03-29 05:17:15 +00:00
|
|
|
STDMETHODIMP_(NTSTATUS)
|
|
|
|
BdaValidateNodeProperty(
|
2012-01-26 15:22:08 +00:00
|
|
|
_In_ PIRP Irp,
|
|
|
|
_In_ KSPROPERTY *pKSProperty);
|
2009-08-07 12:04:50 +00:00
|
|
|
|
|
|
|
#if defined(__cplusplus)
|
|
|
|
}
|
2009-08-07 13:23:35 +00:00
|
|
|
#endif
|
2010-03-29 05:17:15 +00:00
|
|
|
|
|
|
|
#endif /* (NTDDI_VERSION >= NTDDI_WINXP) */
|