• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 346
  • Last Modified:

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

0
moshe26
Asked:
moshe26
1 Solution
 
jkrCommented:
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...
0
 
NickRepinCommented:
KeAttachProces()

In www.google.com, search for "KeAttachProcess"
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now