Supporting KSPROPERTY_PIN_CONSTRAINEDDATARANGES under AVStream.



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 =)
.



Relevant Pages

  • Re: Modify AD Property Sets
    ... It is possible but you will want to check with your support group to see if they support it. ... There could be multiple paths that info could possibly be retrieved from AD via apps that run say in the security context of Exchange or other apps and not as normal users. ... From what I can see, when you install Exchange, it add all "extensionAttributes" into the "Public Information" property set, which "Authenticated Users" can read by default. ...
    (microsoft.public.windows.server.active_directory)
  • Re: developing IE Plug-ins
    ... >> Correct me if I was wrong, VB doesn?t support this methods right? ... Try Implementing IPersistFile, ... Don't you need a Property Set to ... Property Let [propput] ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)

Loading