Take a look to “Native API Reference” from Gary Nebbet
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Mircea Avram
Sent: Friday, March 30, 2001 6:28 PM
To: NT Developers Interest List
Subject: [ntdev] Native API
Hi guys,
I have some questions regarding Native API for NT4.0.
I have to get a thread handle from a thread id in user-mode and it seems
imposible.
(Even more than that, I have to control that thread, like
suspend/resume/terminate)
I’ve found in KB that yo can’t do such a thing on Win NT4.0 (altough you can
do it in
Win2000 with OpenThread)
So I ran into NtOpenThread:
NTKERNELAPI NTSTATUS NtOpenThread (
OUT PHANDLE ThreadHandle,
IN ACCESS_MASK DesiredAccess,
IN POBJECT_ATTRIBUTES ObjectAttributes,
IN PCLIENT_ID ClientId OPTIONAL
);
And also I’ve discovered NtResumeThread, NtSuspendThread, NtTerminateThread.
Here are the questions (first it’s a stupid one but I wanna be sure):
- Is any way to get in user-mode the handle for a thread from a given
thread id? - Can I pass the thread handle from kernel-mode driver to user-mode client
using an IOCTL? - Where I can find the signatures for those APIs ?
- How am I suppose to link to them? If I use ordinal number with a def file
is ok?
Any help is needed cause I’m in a pretty desperate situation.
Thanks in advance,
Mircea Avram (xxxxx@platform.com)
You are currently subscribed to ntdev as: xxxxx@trymedia.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com