Solved

Change thread context(address space)

Posted on 2001-07-01
2
336 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This article describes a technique for converting RTF (Rich Text Format) data to HTML and provides C++ source that does it all in just a few lines of code. Although RTF is coming to be considered a "legacy" format, it is still in common use... po…
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

760 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now