Boost logo

Boost Users :

Subject: Re: [Boost-users] [thread] Obtaining thread id on Windows
From: Rob Yull (ryull_at_[hidden])
Date: 2009-09-09 15:34:15


Cut and pasted the wrong function before

GetThreadId

DWORD GetThreadId(
  HANDLE Thread
);

-----Original Message-----
From: boost-users-bounces_at_[hidden]
[mailto:boost-users-bounces_at_[hidden]] On Behalf Of Rob Yull
Sent: Wednesday, September 09, 2009 3:33 PM
To: boost-users_at_[hidden]
Subject: Re: [Boost-users] [thread] Obtaining thread id on Windows

>From the MSDN library - Platform SDK: DLLs, Processes, and Threads

GetProcessIdOfThread

DWORD GetProcessIdOfThread(
  HANDLE Thread
);

-Rob Yull

-----Original Message-----
From: boost-users-bounces_at_[hidden]
[mailto:boost-users-bounces_at_[hidden]] On Behalf Of Agustín K-ballo
Bergé
Sent: Wednesday, September 09, 2009 3:08 PM
To: boost-users_at_[hidden]
Subject: [Boost-users] [thread] Obtaining thread id on Windows

I'm using Boost.Thread to create a thread that process the message queue
on Windows. In order to send it a message via PostThreadMessage I need a
thread id rather than a handle. Is there a way to obtain the native
thread id from a boost::thread ? If not, any help on how to patch my
local copy of the library? There is no documented way of getting a
thread id from a thread handle in Windows XP.

Thank you.

Agustín K-ballo Bergé.-
_______________________________________________
Boost-users mailing list
Boost-users_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/boost-users

_______________________________________________
Boost-users mailing list
Boost-users_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/boost-users


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net