Searched high and low but haven't been able to find an API call to retrieve the current size of the (File) System Cache on Windows.
GlobalMemoryStatusEx - retrieves the Total, Free, Used, and Swap stats.
GetSystemFileCacheSize - returns the Minimum and Maximum it could be, not very helpful.
I also tried the Windows extensions, which returned the unhelpful numbers below. Looks like it could be anywhere from 1mb to 2gb?
>>> import win32api
>>> win32api.GetSystemFileCacheSize()
(1048576L, 2143289344L, 0L)
What is the correct API call to get this information? I see it available in the task manager, so it must be in there somewhere? Here's a screen shot and the numbers I'm looking for:
Would prefer a python solution, but C/C++ would help a lot.