github.com/racerxdl/gonx@v0.0.0-20210103083128-c5afc43bcbd2/svc/hblauncher.go (about)

     1  package svc
     2  
     3  import _ "unsafe" // for go:linkname
     4  
     5  //go:linkname GetContextPtr runtime.getContextPtr
     6  func GetContextPtr() uintptr
     7  
     8  //go:linkname GetMainThreadHandle runtime.getMainThreadHandle
     9  func GetMainThreadHandle() uintptr
    10  
    11  //go:linkname GetHeapBase runtime.getHeapBase
    12  func GetHeapBase() uintptr