网站首页  词典首页

请输入您要查询的函数:

 

术语 flushinstructioncache
释义 FlushInstructionCache
语法:
C++
BOOL WINAPI FlushInstructionCache(
__in HANDLE hProcess,
__in LPCVOID lpBaseAddress,
__in SIZE_T dwSize
);
FlushInstructionCache功能
为刷新指定的进程指令缓存。
参数
hProcess [in]
句柄的进程,其指令缓存被刷新。
lpBaseAddress [in]
一个该地区的基地指针被刷新。此参数可以为NULL。
dwSize [in]
该区域的大小被刷新,如果lpBaseAddress参数不为NULL以字节为单位。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
应用程序应该调用FlushInstructionCache如果它们产生或修改在内存中的代码。 CPU可以检测不到的变化,并可能执行它的旧代码缓存。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
调试功能
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月30日
==英文原文==FlushInstructionCache Function
Flushes the instruction cache for the specified process.
Syntax
C++
BOOL WINAPI FlushInstructionCache(
__in HANDLE hProcess,
__in LPCVOID lpBaseAddress,
__in SIZE_T dwSize
);
Parameters
hProcess [in]
A handle to a process whose instruction cache is to be flushed.
lpBaseAddress [in]
A pointer to the base of the region to be flushed. This parameter can be NULL.
dwSize [in]
The size of the region to be flushed if the lpBaseAddress parameter is not NULL, in bytes.
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
Applications should call FlushInstructionCache if they generate or modify code in memory. The CPU cannot detect the change, and may execute the old code it cached.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinbase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
See Also
Debugging Functions
Send comments about this topic to Microsoft
Build date: 7/30/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms679350(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:26