网站首页  词典首页

请输入您要查询的函数:

 

术语 getthreadselectorentry
释义 GetThreadSelectorEntry
语法:
C++
BOOL WINAPI GetThreadSelectorEntry(
__in HANDLE hThread,
__in DWORD dwSelector,
__out LPLDT_ENTRY lpSelectorEntry
);
GetThreadSelectorEntry功能
检索一个描述符指定的选择和线程表项。
参数
hThread [in]
阿线程句柄包含指定选择。句柄必须THREAD_QUERY_INFORMATION访问。有关更多信息,请参见线程安全和访问权限。
dwSelector [in]
全球或地区选择器的值来查找在线程的描述符表。
lpSelectorEntry [out]
对一个LDT_ENTRY结构,也能收到描述符表项的副本指针指定的选择,如果有一个在指定线程的描述符表项。这些信息可用于转换技术领域的相对地址为线性虚拟地址。
返回值
如果函数成功,返回值为非零。在这种情况下,所指出的结构参数的lpSelectorEntry收到指定的描述符表项的副本。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
GetThreadSelectorEntry只是功能在基于x86的系统。对于系统是不是基于x86,函数返回FALSE。
调试器使用此函数将部分相对虚拟地址到线性地址。在ReadProcessMemory的使用功能和WriteProcessMemory的线性虚拟地址。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
调试功能
LDT_ENTRY
ReadProcessMemory的
WriteProcessMemory的
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月30日
==英文原文==GetThreadSelectorEntry Function
Retrieves a descriptor table entry for the specified selector and thread.
Syntax
C++
BOOL WINAPI GetThreadSelectorEntry(
__in HANDLE hThread,
__in DWORD dwSelector,
__out LPLDT_ENTRY lpSelectorEntry
);
Parameters
hThread [in]
A handle to the thread containing the specified selector. The handle must have THREAD_QUERY_INFORMATION access. For more information, see Thread Security and Access Rights .
dwSelector [in]
The global or local selector value to look up in the thread's descriptor tables.
lpSelectorEntry [out]
A pointer to an LDT_ENTRY structure that receives a copy of the descriptor table entry if the specified selector has an entry in the specified thread's descriptor table. This information can be used to convert a segment-relative address to a linear virtual address.
Return Value
If the function succeeds, the return value is nonzero. In that case, the structure pointed to by the lpSelectorEntry parameter receives a copy of the specified descriptor table entry.
If the function fails, the return value is zero. To get extended error information, call GetLastError .
Remarks
GetThreadSelectorEntry is only functional on x86-based systems. For systems that are not x86-based, the function returns FALSE.
Debuggers use this function to convert segment-relative addresses to linear virtual addresses. The ReadProcessMemory and WriteProcessMemory functions use linear virtual addresses.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinbase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
See Also
Debugging Functions
LDT_ENTRY
ReadProcessMemory
WriteProcessMemory
Send comments about this topic to Microsoft
Build date: 7/30/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms679363(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 11:23:06