网站首页  词典首页

请输入您要查询的函数:

 

术语 wow64getthreadcontext
释义 Wow64GetThreadContext
语法:
C++
BOOL WINAPI Wow64GetThreadContext(
__in HANDLE hThread,
__inout PWOW64_CONTEXT lpContext
);
Wow64GetThreadContext功能
检索范围内指定的WOW64线程。
参数
hThread [in]
句柄到线程的上下文要检索。句柄必须THREAD_GET_CONTEXT访问线程。有关更多信息,请参见线程安全和访问权限。
lpContext [ in , out ]
阿WOW64_CONTEXT结构。调用者必须初始化该结构ContextFlags成员。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
这个函数用于检索指定线程的线程上下文。该函数检索的选择性方面对上下文的结构ContextFlags成员的值为基础。由hThread参数确定的线程通常是进行调试,但功能也可以当线程操作不被调试。
您不能让一个正在运行的线程一个有效的范围内。使用Wow64SuspendThread函数之前调用Wow64GetThreadContext暂停线程。
如果您要求在当前线程Wow64GetThreadContext,该函数返回成功,但返回的背景是无效的。
此功能是为64位应用程序。它不支持32位Windows,如调用失败,并设置最后一个错误代码ERROR_INVALID_FUNCTION。一个32位应用程序可以调用线程在WOW64的这个函数,结果是作为调用GetThreadContext函数相同。
要求:
client最低支持Vista
server最低支持 Windows Server 2008
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
调试功能
WOW64_CONTEXT
Wow64SetThreadContext
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月30日
==英文原文==Wow64GetThreadContext Function
Retrieves the context of the specified WOW64 thread.
Syntax
C++
BOOL WINAPI Wow64GetThreadContext(
__in HANDLE hThread,
__inout PWOW64_CONTEXT lpContext
);
Parameters
hThread [in]
A handle to the thread whose context is to be retrieved. The handle must have THREAD_GET_CONTEXT access to the thread. For more information, see Thread Security and Access Rights .
lpContext [in, out]
A WOW64_CONTEXT structure. The caller must initialize the ContextFlags member of this structure.
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError .
Remarks
This function is used to retrieve the thread context of the specified thread. The function retrieves a selective context based on the value of the ContextFlags member of the context structure. The thread identified by the hThread parameter is typically being debugged, but the function can also operate when the thread is not being debugged.
You cannot get a valid context for a running thread. Use the Wow64SuspendThread function to suspend the thread before calling Wow64GetThreadContext.
If you call Wow64GetThreadContext for the current thread, the function returns successfully; however, the context returned is not valid.
This function is intended for 64-bit applications. It is not supported on 32-bit Windows; such calls fail and set the last error code to ERROR_INVALID_FUNCTION. A 32-bit application can call this function on a WOW64 thread; the result is the same as calling the GetThreadContext function.
Requirements
Minimum supported clientWindows Vista
Minimum supported serverWindows Server 2008
HeaderWinbase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
See Also
Debugging Functions
WOW64_CONTEXT
Wow64SetThreadContext
Send comments about this topic to Microsoft
Build date: 7/30/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms681665(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:30:15