- /*
- * getsystemfilecachesize1.c - simple wrapper around |GetSystemFileCacheSize()|
- */
- #include <Windows.h>
- #include <memoryapi.h>
- #include <stdlib.h>
- #include <stdio.h>
- int main(int ac, char *av[])
- {
- SIZE_T minimumFileCacheSize = 0;
- SIZE_T maximumFileCacheSize = 0;
- DWORD flags = 0;
- (void)GetSystemFileCacheSize(&minimumFileCacheSize,
- &maximumFileCacheSize,
- &flags);
- "maximumFileCacheSize=%lld\n"
- "flags=0x%x\n",
- (long long)minimumFileCacheSize,
- (long long)maximumFileCacheSize,
- flags);
- return EXIT_SUCCESS;
- }
getsystemfilecachesize1.c - simple wrapper around |GetSystemFileCacheSize()|
Posted by Anonymous on Tue 16th Apr 2024 15:45
raw | new post
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.