mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
- Implement BdaPropertyGetPinControl
svn path=/trunk/; revision=42599
This commit is contained in:
parent
dd5e13f449
commit
da8d2f0bd8
1 changed files with 30 additions and 3 deletions
|
@ -532,7 +532,7 @@ BdaPropertyGetControllingPinId(
|
|||
}
|
||||
|
||||
/*
|
||||
@unimplemented
|
||||
@implemented
|
||||
*/
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
|
@ -541,8 +541,35 @@ BdaPropertyGetPinControl(
|
|||
IN KSPROPERTY *pKSProperty,
|
||||
OUT ULONG *pulProperty)
|
||||
{
|
||||
UNIMPLEMENTED
|
||||
return STATUS_NOT_IMPLEMENTED;
|
||||
PKSPIN Pin;
|
||||
PKSFILTER Filter;
|
||||
PKSFILTERFACTORY FilterFactory;
|
||||
PBDA_FILTER_INSTANCE_ENTRY InstanceEntry;
|
||||
|
||||
/* first get the pin */
|
||||
Pin = KsGetPinFromIrp(Irp);
|
||||
ASSERT(Pin);
|
||||
|
||||
/* now get the parent filter */
|
||||
Filter = KsPinGetParentFilter(Pin);
|
||||
ASSERT(Filter);
|
||||
|
||||
/* get parent filter factory */
|
||||
FilterFactory = KsFilterGetParentFilterFactory(Filter);
|
||||
ASSERT(FilterFactory);
|
||||
|
||||
/* find instance entry */
|
||||
InstanceEntry = GetFilterInstanceEntry(FilterFactory);
|
||||
ASSERT(InstanceEntry);
|
||||
|
||||
/* sanity check */
|
||||
pKSProperty++;
|
||||
ASSERT(pKSProperty->Id == KSPROPERTY_BDA_PIN_TYPE);
|
||||
|
||||
/* store pin id */
|
||||
*pulProperty = Pin->Id;
|
||||
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue