Solved

Change thread context(address space)

Posted on 2001-07-01
2
339 Views
Last Modified: 2013-12-03
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
Comment
Question by:moshe26
2 Comments
 
LVL 86

Expert Comment

by:jkr
ID: 6242659
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
 
LVL 15

Accepted Solution

by:
NickRepin earned 300 total points
ID: 6242995
KeAttachProces()

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

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Windows Standards for file storage. 3 36
What is Runtime?  What is Middleware?  Azure stack 1 536
Authentication of Web Services 3 97
Mobile apps - web/native or hybrid? 1 71
This article describes how to add a user-defined command button to the Windows 7 Explorer toolbar.  In the previous article (http://www.experts-exchange.com/A_2172.html), we saw how to put the Delete button back there where it belongs.  "Delete" is …
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question