summaryrefslogtreecommitdiffstats
path: root/src/runtime/testdata/testprogcgo/windows/win.go
blob: 9d9f86c9beacb5e6ca73bd58510708db90326af0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package windows

/*
#include <windows.h>

DWORD agetthread() {
	return GetCurrentThreadId();
}
*/
import "C"

func GetThread() uint32 {
	return uint32(C.agetthread())
}