pastebin - collaborative debugging tool
nrubsig.kpaste.net RSS


getsystemfilecachesize1.c - simple wrapper around |GetSystemFileCacheSize()|
Posted by Anonymous on Tue 16th Apr 2024 15:45
raw | new post

  1. /*
  2.  * getsystemfilecachesize1.c - simple wrapper around |GetSystemFileCacheSize()|
  3.  */
  4.  
  5. #include <Windows.h>
  6. #include <memoryapi.h>
  7. #include <stdlib.h>
  8. #include <stdio.h>
  9.  
  10. int main(int ac, char *av[])
  11. {
  12.     SIZE_T minimumFileCacheSize = 0;
  13.     SIZE_T maximumFileCacheSize = 0;
  14.     DWORD flags = 0;
  15.    
  16.     (void)GetSystemFileCacheSize(&minimumFileCacheSize,
  17.         &maximumFileCacheSize,
  18.         &flags);
  19.        
  20.     (void)printf("minimumFileCacheSize=%lld\n"
  21.         "maximumFileCacheSize=%lld\n"
  22.         "flags=0x%x\n",
  23.         (long long)minimumFileCacheSize,
  24.         (long long)maximumFileCacheSize,
  25.         flags);
  26.  
  27.     return EXIT_SUCCESS;
  28. }

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.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at