Sign in
go
/
gofrontend
/
7ab229670f7dad1d79f33929f9a4f8e6e4a71526
/
.
/
libgo
/
go
/
runtime
/
testdata
/
testprogcgo
/
windows
/
win.go
blob: 12488aa6588b08c6ac9c13495a59401463b2bdfd [
file
] [
log
] [
blame
]
package windows
/*
#cgo amd64 386 CFLAGS: -mnop-fun-dllimport
#include <windows.h>
DWORD agetthread() {
return GetCurrentThreadId();
}
*/
import "C"
func GetThread() uint32 {
return uint32(C.agetthread())
}