(handle windows.Handle, length *uint32, buf uintptr)
| 157 | } |
| 158 | |
| 159 | func GetPackageID(handle windows.Handle, length *uint32, buf uintptr) (err error) { |
| 160 | r1, _, e1 := syscall.Syscall(procGetPackageId.Addr(), 3, uintptr(handle), uintptr(unsafe.Pointer(length)), uintptr(buf)) |
| 161 | if r1 == 0 { |
| 162 | err = errnoErr(e1) |
| 163 | } |
| 164 | return |
| 165 | } |
| 166 | |
| 167 | func GetProcessIdOfThread(handle windows.Handle) (pid uint32) { |
| 168 | r0, _, _ := syscall.Syscall(procGetProcessIdOfThread.Addr(), 1, uintptr(handle), 0, 0) |
no test coverage detected