[proc] do not export ThreadBasicInformation
This commit is contained in:
parent
c61de7b0c1
commit
270ebbbb8c
@ -124,7 +124,7 @@ func registers(thread *Thread) (Registers, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var threadInfo _THREAD_BASIC_INFORMATION
|
var threadInfo _THREAD_BASIC_INFORMATION
|
||||||
status := _NtQueryInformationThread(syscall.Handle(thread.os.hThread), ThreadBasicInformation, uintptr(unsafe.Pointer(&threadInfo)), uint32(unsafe.Sizeof(threadInfo)), nil)
|
status := _NtQueryInformationThread(syscall.Handle(thread.os.hThread), _ThreadBasicInformation, uintptr(unsafe.Pointer(&threadInfo)), uint32(unsafe.Sizeof(threadInfo)), nil)
|
||||||
if !_NT_SUCCESS(status) {
|
if !_NT_SUCCESS(status) {
|
||||||
return nil, fmt.Errorf("failed to get thread_basic_information")
|
return nil, fmt.Errorf("failed to get thread_basic_information")
|
||||||
}
|
}
|
||||||
|
|||||||
@ -23,7 +23,7 @@ type _THREAD_BASIC_INFORMATION struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
ThreadBasicInformation = 0
|
_ThreadBasicInformation = 0
|
||||||
)
|
)
|
||||||
|
|
||||||
func _NT_SUCCESS(x _NTSTATUS) bool {
|
func _NT_SUCCESS(x _NTSTATUS) bool {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user