go win 源码
golang win 代码
文件路径:/src/runtime/testdata/testprogcgo/windows/win.go
package windows
/*
#include <windows.h>
DWORD agetthread() {
return GetCurrentThreadId();
}
*/
import "C"
func GetThread() uint32 {
return uint32(C.agetthread())
}
相关信息
相关文章
0
赞