Hi folks,
I am writing a custom kernel device driver that calls the
RtlCheckRegistryKey to check the registry for a value on every
keystroke.
Basically I created a call-back function thread using the
IoQueueWorkItem to get the RtlCheckRegistryKey to be ran at
PASSIVE_LEVEL.
I pass down a struct to the IoQueueWorkItem routine
(IN PDEVICE_OBJECT DeviceObject, IN OUT strQueuedWorkItem *Context)
That contains pIOWorkItem and certain flags etc.
When the RtlCheckRegistryKey value is called I need to set a flag in
the struct to say registryChecked.
My problem is that I cant seem to get access to this structure and the
set flag after it has been passed to the call-back routine even though
I am passing the struct by pointer?
Can anyone help me alleviate the problem or know of another way to
access a global driver flag that I can check in the calling function to
the IoQueueWorkItem
Thanks in advance for the help,
Cheers,
Con