github.com/ice-blockchain/go/src@v0.0.0-20240403114104-1564d284e521/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  }