From the MSDN library - Platform SDK: DLLs, Processes, and Threads
GetProcessIdOfThread DWORD GetProcessIdOfThread( HANDLE Thread ); -Rob Yull -----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Agustín K-ballo Bergé Sent: Wednesday, September 09, 2009 3:08 PM To: boost-users@lists.boost.org 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@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users