...

Source file src/runtime/testdata/testprogcgo/windows/win.go

Documentation: runtime/testdata/testprogcgo/windows

     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  }
    15  

View as plain text