Hi,
is there a way of retrieving thread id to thread handle (and vice versa) in
kernel or user mode ?
kutty
Hi,
is there a way of retrieving thread id to thread handle (and vice versa) in
kernel or user mode ?
kutty
In user space OpenThread gives you a handle from an id, and GetThreadId does
the inverse. For the kernel the functions are undocumented.
–
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Remove StopSpam from the email to reply
“Kutty Banerjee” wrote in message news:xxxxx@ntdev…
> Hi,
> is there a way of retrieving thread id to thread handle (and vice versa)
in
> kernel or user mode ?
>
> kutty
>
>
>
Hi,
surprisingly for GetThreadId i get message “function not exported” from
kernel32.dll. winxp sp1.
kutty
“Don Burn” wrote in message news:xxxxx@ntdev…
> In user space OpenThread gives you a handle from an id, and GetThreadId
does
> the inverse. For the kernel the functions are undocumented.
>
>
> –
> Don Burn (MVP, Windows DDK)
> Windows 2k/XP/2k3 Filesystem and Driver Consulting
> Remove StopSpam from the email to reply
>
> “Kutty Banerjee” wrote in message news:xxxxx@ntdev…
> > Hi,
> > is there a way of retrieving thread id to thread handle (and vice
versa)
> in
> > kernel or user mode ?
> >
> > kutty
> >
> >
> >
>
>
>
Requires server 2003. See
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc
/base/getthreadid.asp
d
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Kutty Banerjee
Sent: Saturday, July 17, 2004 3:49 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] thread id and thread handle
Hi,
surprisingly for GetThreadId i get message “function not exported” from
kernel32.dll. winxp sp1.
kutty
“Don Burn” wrote in message news:xxxxx@ntdev…
> In user space OpenThread gives you a handle from an id, and
GetThreadId
does
> the inverse. For the kernel the functions are undocumented.
>
>
> –
> Don Burn (MVP, Windows DDK)
> Windows 2k/XP/2k3 Filesystem and Driver Consulting
> Remove StopSpam from the email to reply
>
> “Kutty Banerjee” wrote in message news:xxxxx@ntdev…
> > Hi,
> > is there a way of retrieving thread id to thread handle (and vice
versa)
> in
> > kernel or user mode ?
> >
> > kutty
> >
> >
> >
>
>
>
—
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
So is there no other way through however indirect procedures i could convert
thread handle to thread id?
kutty
“Doron Holan” wrote in message
news:xxxxx@ntdev…
Requires server 2003. See
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc
/base/getthreadid.asp
d
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Kutty Banerjee
Sent: Saturday, July 17, 2004 3:49 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] thread id and thread handle
Hi,
surprisingly for GetThreadId i get message “function not exported” from
kernel32.dll. winxp sp1.
kutty
“Don Burn” wrote in message news:xxxxx@ntdev…
> In user space OpenThread gives you a handle from an id, and
GetThreadId
does
> the inverse. For the kernel the functions are undocumented.
>
>
> –
> Don Burn (MVP, Windows DDK)
> Windows 2k/XP/2k3 Filesystem and Driver Consulting
> Remove StopSpam from the email to reply
>
> “Kutty Banerjee” wrote in message news:xxxxx@ntdev…
> > Hi,
> > is there a way of retrieving thread id to thread handle (and vice
versa)
> in
> > kernel or user mode ?
> >
> > kutty
> >
> >
> >
>
>
>
—
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
ok this is outside this group topic but toolhelp32 library seems to do the
trick.
kutty
“Kutty Banerjee” wrote in message news:xxxxx@ntdev…
> So is there no other way through however indirect procedures i could
convert
> thread handle to thread id?
>
> kutty
> “Doron Holan” wrote in message
> news:xxxxx@ntdev…
> Requires server 2003. See
>
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc
> /base/getthreadid.asp
>
> d
>
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Kutty Banerjee
> Sent: Saturday, July 17, 2004 3:49 PM
> To: Windows System Software Devs Interest List
> Subject: Re:[ntdev] thread id and thread handle
>
> Hi,
> surprisingly for GetThreadId i get message “function not exported” from
> kernel32.dll. winxp sp1.
>
> kutty
>
> “Don Burn” wrote in message news:xxxxx@ntdev…
> > In user space OpenThread gives you a handle from an id, and
> GetThreadId
> does
> > the inverse. For the kernel the functions are undocumented.
> >
> >
> > –
> > Don Burn (MVP, Windows DDK)
> > Windows 2k/XP/2k3 Filesystem and Driver Consulting
> > Remove StopSpam from the email to reply
> >
> > “Kutty Banerjee” wrote in message news:xxxxx@ntdev…
> > > Hi,
> > > is there a way of retrieving thread id to thread handle (and vice
> versa)
> > in
> > > kernel or user mode ?
> > >
> > > kutty
> > >
> > >
> > >
> >
> >
> >
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>