Supporting KSPROPERTY_PIN_CONSTRAINEDDATARANGES under AVStream.
- From: yinmun <yinmun@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 13 May 2005 02:40:02 -0700
Hi all,
I am developing an AVStream driver, and need to support the
KSPROPERTY_PIN_CONSTRAINEDDATARANGES under the KSPROPSETID_Pin property set
to return different set of data ranges based on different internal states.
According to the MSDN documentation, this property returns a KSMULTIPLE_ITEM
structure, followed by a sequence of 64-bit aligned KSDATARANGE structures.
The difficulty that I'm facing now is during the first call to the property
handler, which has the following prototype:
NTSTATUS KStrGetPropertyHandler (
IN PIRP Irp,
IN PKSIDENTIFIER Request,
IN/OUT PVOID Data
);
The parameter Data that the function passes in is a NULL pointer. In such
situation, I return STATUS_BUFFER_TOO_SMALL. This will result the handler
function to be called for the second time with a valid Data pointer. I tried
to return the KSMULTIPLE_ITEM structure and a series of KSDATARANGE
structures through this Data pointer, it caused BSOD with error code
BAD_POOL_HEADER with parameter 1 equals to 0x20, which is not found in the
documentation.
Please advise what is the proper way to handle this property, and is there
any other properties that we need to support in order to get this works?
Thanks =)
.
- Follow-Ups:
- Re: Supporting KSPROPERTY_PIN_CONSTRAINEDDATARANGES under AVStream.
- From: Tim Roberts
- Re: Supporting KSPROPERTY_PIN_CONSTRAINEDDATARANGES under AVStream.
- Prev by Date: Re: about ZwSetInformationToken
- Next by Date: Re: How to queue Packets in NDIS Intermediate driver
- Previous by thread: Re: How to acess EFI system table
- Next by thread: Re: Supporting KSPROPERTY_PIN_CONSTRAINEDDATARANGES under AVStream.
- Index(es):
Relevant Pages
|
Loading