github.com/twelsh-aw/go/src@v0.0.0-20230516233729-a56fe86a7c81/runtime/testdata/testprogcgo/windows/win.go (about) 1 package windows 2 3 /* 4 #include <windows.h> 5 6 DWORD agetthread() { 7 return GetCurrentThreadId(); 8 } 9 */ 10 import "C" 11 12 func GetThread() uint32 { 13 return uint32(C.agetthread()) 14 }