To
read the system info i used...
Code:
; Constant
SYSTEM_INFO_CLASS = 0x15
; Set buffer size
SystemInfoLength = 36
VarSetCapacity(SystemCacheInfo, SystemInfoLength, 0)
; DLL call
DllCall("C:\Windows\system32\ntdll.dll\NtQuerySystemInformation", "UInt",SYSTEM_INFO_CLASS, "UInt",&SystemCacheInfo, "UInt",SystemInfoLength)
; Read values
CurrentSize := NumGet(SystemCacheInfo, 0, "UInt")
PeakSize := NumGet(SystemCacheInfo, 4, "UInt")
PageFaultCount := NumGet(SystemCacheInfo, 8, "UInt")
MinimumWorkingSet := NumGet(SystemCacheInfo, 12, "UInt")
MaximumWorkingSet := NumGet(SystemCacheInfo, 16, "UInt")
TransitionSharedPages := NumGet(SystemCacheInfo, 20, "UInt")
PeakTransitionSharedPages := NumGet(SystemCacheInfo, 24, "UInt")
As for
writing...
Did the test with CacheSet .. and no unfortunately it did not act like the "Clear" button (what i saw before must have been just a random drop in memory)
