It looks like GetThreadId is what I need, but I can't find that in any of the win32* modules.&nbsp; I do see CreateThread in&nbsp;CVS in Pythonwin/win32thread.cpp, but I don't have a&nbsp;win32thread in my installation.<br><br>
<div><span class="gmail_quote">On 8/1/05, <b class="gmail_sendername">Justin Johnson</b> &lt;<a href="mailto:justinjohnson@gmail.com">justinjohnson@gmail.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>MSDN says PostThreadMessage takes the thread ID as a parameter.&nbsp; >From reading the doc I see that handle and ID are different and that both should be returned when creating a new thread with CreateThread.&nbsp; I am creating a new thread with the threading module and do not see a way to get the ID back.&nbsp; I searched the source to see if CreateThread is being called and&nbsp;didn't find anything.&nbsp; Does anyone know how to get a thread's ID if the thread was created with 
threading.Thread?</div>
<div>&nbsp;</div>
<div>Thanks.</div><span class="sg">
<div>Justin</div></span></blockquote></div><br>