Link to home
Start Free TrialLog in
Avatar of moshe26
moshe26

asked on

Change thread context(address space)

Hello Everybody:

I am developing file system filter driver in Winnt.
Dispatch routines are called with any thread context.
I need to execute several routines in my driver in a specific user process address space, in order to access buffer/object that created in the specific
user process.

Does anyone know how it can be done ?

Thanks

Avatar of jkr
jkr
Flag of Germany image

You can do that by queuing a user APC routine - see 'QueueUserWorkItem()' (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/hh/winbase/prothred_1ar1.asp) or 'QueueUserAPC()' ( == 'ZwQueueAPCThread()' in KMode). Both have an equivalent in kernel mode, though I only can remember the latter one now...
ASKER CERTIFIED SOLUTION
Avatar of NickRepin
NickRepin

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial