[proc] do not export ThreadBasicInformation

This commit is contained in:
Alex Brainman 2016-02-10 15:35:34 +11:00
parent c61de7b0c1
commit 270ebbbb8c
2 changed files with 2 additions and 2 deletions

@ -124,7 +124,7 @@ func registers(thread *Thread) (Registers, error) {
}
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) {
return nil, fmt.Errorf("failed to get thread_basic_information")
}

@ -23,7 +23,7 @@ type _THREAD_BASIC_INFORMATION struct {
}
const (
ThreadBasicInformation = 0
_ThreadBasicInformation = 0
)
func _NT_SUCCESS(x _NTSTATUS) bool {