网站首页  词典首页

请输入您要查询的函数:

 

术语 wow64setthreadcontext
释义 Wow64SetThreadContext
语法:
C++
BOOL WINAPI Wow64SetThreadContext(
__in HANDLE hThread,
__in const WOW64_CONTEXT *lpContext
);
Wow64SetThreadContext功能
设置指定的WOW64线程上下文。
参数
hThread [in]
句柄到线程的上下文被设置。
lpContext [in]
阿WOW64_CONTEXT结构。调用者必须初始化该结构ContextFlags成员。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
该功能可以允许的范围内选择设置根据上下文结构ContextFlags成员的值。该线程处理一些由hThread参数通常是进行调试,但功能也可以操作,即使它不被调试。
此功能是为64位应用程序。它不支持32位Windows,如调用失败,并设置最后一个错误代码ERROR_INVALID_FUNCTION。一个32位应用程序可以调用线程在WOW64的这个函数,结果是作为调用SetThreadContext函数相同。
不要试图为正在运行的线程上下文,结果难以预料。使用Wow64SuspendThread函数之前调用Wow64SetThreadContext暂停线程。
要求:
client最低支持Vista
server最低支持 Windows Server 2008
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
调试功能
WOW64_CONTEXT
Wow64GetThreadContext
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月30日
==英文原文==Wow64SetThreadContext Function
Sets the context of the specified WOW64 thread.
Syntax
C++
BOOL WINAPI Wow64SetThreadContext(
__in HANDLE hThread,
__in const WOW64_CONTEXT *lpContext
);
Parameters
hThread [in]
A handle to the thread whose context is to be set.
lpContext [in]
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 allows the selective context to be set based on the value of the ContextFlags member of the context structure. The thread handle identified by the hThread parameter is typically being debugged, but the function can also operate even when it is not being debugged.
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 SetThreadContext function.
Do not try to set the context for a running thread; the results are unpredictable. Use the Wow64SuspendThread function to suspend the thread before calling Wow64SetThreadContext.
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
Wow64GetThreadContext
Send comments about this topic to Microsoft
Build date: 7/30/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms681668(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:31:59