Hello!

I want to modify some static structures. This has to be done within the
DriverEntry function before KsInitializeDriver() is called. KsEdit wants as
parameter an objectbag. Unfortunately I don't have at this point any
objectbag or any KSDEVICE, KSPIN... structures. Calling KsEdit with a
Null-objectbug seems not to work properly. So i don't really know how to use
KsEdit and modify my static structures before KsInitializeDriver() is called
and certain values are saved within the registry.

Thanks very much for any help!

Best regards,
Norbert Druml

Re: Using KsEdit by Max

Max
Mon Jan 09 14:56:24 CST 2006

You can't.
The whole purpose of KsEdit is to allocate a resource and attach it to an
object so that it automatically goes away when owning object is deleted.
If there is no object to begin with then KsEdit is wrong API to use.
Write your own. There is nothing to it aside from a call to dynamic memory
allocator and then insertion to a list associated with KS object.

-- Max.


"Norbert Druml" <n.druml@pionsys.REMOVEME.com> wrote in message
news:9BC27A7C-5044-4EBF-89B6-C43F35A51DE5@microsoft.com...
> Hello!
>
> I want to modify some static structures. This has to be done within the
> DriverEntry function before KsInitializeDriver() is called. KsEdit wants
> as
> parameter an objectbag. Unfortunately I don't have at this point any
> objectbag or any KSDEVICE, KSPIN... structures. Calling KsEdit with a
> Null-objectbug seems not to work properly. So i don't really know how to
> use
> KsEdit and modify my static structures before KsInitializeDriver() is
> called
> and certain values are saved within the registry.
>
> Thanks very much for any help!
>
> Best regards,
> Norbert Druml