MCPcopy Create free account
hub / github.com/rabbitstack/fibratus / GetPackageID

Function GetPackageID

pkg/sys/zsyscall_windows.go:159–165  ·  view source on GitHub ↗
(handle windows.Handle, length *uint32, buf uintptr)

Source from the content-addressed store, hash-verified

157}
158
159func 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
167func GetProcessIdOfThread(handle windows.Handle) (pid uint32) {
168 r0, _, _ := syscall.Syscall(procGetProcessIdOfThread.Addr(), 1, uintptr(handle), 0, 0)

Callers 1

IsProcessPackagedFunction · 0.85

Calls 1

errnoErrFunction · 0.70

Tested by

no test coverage detected