Plan 9 from Bell Labs’s /usr/web/sources/contrib/stallion/root/arm/go/src/runtime/testdata/testprogcgo/windows/win.go
package windows /* #cgo CFLAGS: -mnop-fun-dllimport #include <windows.h> DWORD agetthread() { return GetCurrentThreadId(); } */ import "C" func GetThread() uint32 { return uint32(C.agetthread()) }