网站首页  词典首页

请输入您要查询的函数:

 

术语 getsystemfilecachesize
释义 GetSystemFileCacheSize
语法:
C++
BOOL WINAPI GetSystemFileCacheSize(
__out PSIZE_T lpMinimumFileCacheSize,
__out PSIZE_T lpMaximumFileCacheSize,
__out PDWORD lpFlags
);
GetSystemFileCacheSize功能
为检索系统的工作电流设置缓存大小限制。
参数
lpMinimumFileCacheSize [out]
一个变量,它接收的文件缓存的最小大小,以字节的指针。虚拟内存管理器试图将至少这在系统文件缓存的内存居民,如果有以前的调用与FILE_CACHE_MIN_HARD_ENABLE标志的SetSystemFileCacheSize功能。
lpMaximumFileCacheSize [out]
一个变量,它接收的文件缓存的最大大小,以字节的指针。虚拟内存管理器在实行这一限制只有当以前调用与FILE_CACHE_MAX_HARD_ENABLE标志SetSystemFileCacheSize。
lpFlags [out]
该标志的说明哪些文件缓存的限制启用。
ValueMeaning
FILE_CACHE_MAX_HARD_ENABLE
0x1The最大大小限制已启用。如果此标志不存在,这个限制被禁用。
FILE_CACHE_MIN_HARD_ENABLE
0x4The最小尺寸限制启用。如果此标志不存在,这个限制被禁用。
返回值
如果函数成功,返回值是一个非零值。
如果函数失败,返回值为0(零)。为了获得更多错误信息,调用GetLastError。
备注
要编译的应用程序使用此功能,定义_WIN32_WINNT为0x0502或更高版本。有关详细信息,请参阅使用Windows头。
该FILE_CACHE常量将被定义在Windows头文件与Windows Server 2008的Windows SDK的开始。如果您使用的是从一个早期版本的SDK头文件,添加SetSystemFileCacheSize显示您的代码的定义。
要求:
最低支持clientWindows Vista中,Windows XP Professional x64版本
最低支持serverWindows Server 2008中时,Windows Server 2003 SP1的
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
内存管理功能
SetSystemFileCacheSize
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==GetSystemFileCacheSize Function
Retrieves the current size limits for the working set of the system cache.
Syntax
C++
BOOL WINAPI GetSystemFileCacheSize(
__out PSIZE_T lpMinimumFileCacheSize,
__out PSIZE_T lpMaximumFileCacheSize,
__out PDWORD lpFlags
);
Parameters
lpMinimumFileCacheSize [out]
A pointer to a variable that receives the minimum size of the file cache, in bytes. The virtual memory manager attempts to keep at least this much memory resident in the system file cache, if there is a previous call to the SetSystemFileCacheSize function with the FILE_CACHE_MIN_HARD_ENABLE flag.
lpMaximumFileCacheSize [out]
A pointer to a variable that receives the maximum size of the file cache, in bytes. The virtual memory manager enforces this limit only if there is a previous call to SetSystemFileCacheSize with the FILE_CACHE_MAX_HARD_ENABLE flag.
lpFlags [out]
The flags that indicate which of the file cache limits are enabled.
ValueMeaning
FILE_CACHE_MAX_HARD_ENABLE
0x1The maximum size limit is enabled. If this flag is not present, this limit is disabled.
FILE_CACHE_MIN_HARD_ENABLE
0x4The minimum size limit is enabled. If this flag is not present, this limit is disabled.

Return Value
If the function succeeds, the return value is a nonzero value.
If the function fails, the return value is 0 (zero). To get extended error information, call GetLastError .
Remarks
To compile an application that uses this function, define _WIN32_WINNT as 0x0502 or later. For more information, see Using the Windows Headers .
The FILE_CACHE constants will be defined in the Windows header files starting with the Windows SDK for Windows Server 2008. If you are using header files from an earlier version of the SDK, add the definitions shown in SetSystemFileCacheSize to your code.
Requirements
Minimum supported clientWindows Vista, Windows XP Professional x64 Edition
Minimum supported serverWindows Server 2008, Windows Server 2003 with SP1
HeaderWinbase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
See Also
Memory Management Functions
SetSystemFileCacheSize
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa965224(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 13:25:11