#include <windows.h> #include <stdio.h> int main() { printf("%ld\n",GetCurrentThreadId()); getchar(); return 0; }