提交 270ebbbb 编写于 作者: A Alex Brainman

[proc] do not export ThreadBasicInformation

上级 c61de7b0
...@@ -124,7 +124,7 @@ func registers(thread *Thread) (Registers, error) { ...@@ -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 { ...@@ -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 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册