From: Roddy, Mark [Mark_Roddy@stratus.com]
Sent: Thursday, November 02, 2000 9:01 AM
To: NT Developers Interest List
Subject: [ntdev] RE: thread context of native apis
If I interpret your question literally, and I have a healthy suspicion that I shouldn't, then you would send an IOCTL to a driver of your own design. This IOCTL would request the API. Your driver would hand the request off to a system worker thread, either one of its own creation (preferred in this case) or one of the standard system worker threads. The worker thread would execute the api and return the results (via some event signaling mechanism) to the driver. I have no clue what benefit you expect to gain from such a convoluted series of operations. You would have to deal with all issues regarding things like input/output buffers etc.

Mark Roddy
markr@hollistech.com
www.hollistech.com
WindowsNT Windows 2000 Consulting Services

-----Original Message-----
From: Matteo Pelati [mailto:matteo@dolce.it]
Sent: Thursday, November 02, 2000 8:23 AM
To: NT Developers Interest List
Subject: [ntdev] RE: thread context of native apis

How can I request the execution of a Native API in System Thread Context from User mode?
 
Thanks
-Matt
----- Original Message -----
From: Sivaselvam C N
To: NT Developers Interest List
Sent: Thursday, November 02, 2000 1:00 PM
Subject: [ntdev] RE: thread context of native apis

Caller Thread Context!
-----Original Message-----
From: bounce-ntdev-3595@lists.osr.com [mailto:bounce-ntdev-3595@lists.osr.com]On Behalf Of Matteo Pelati
Sent: Monday, October 30, 2000 3:55 PM
To: NT Developers Interest List
Subject: [ntdev] thread context of native apis

Hi!
 
When a NT Native API is executed from User Mode by calling an INT 2E in which thread context is the Native API is executed? System thread context or Caller thread context?
 
Thanks
-Matt