Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "EmptyWorkingSet" in [All]

psapi

.
Summary
EmptyWorkingSet wherever possible moves an applications pages from RAM to the page file, therefore freeing physical RAM. Good for giving you a bit more memory for the programs you need when Windows doesn't free up memory from something that has been sitting idle for hours.
.

public static extern bool EmptyWorkingSet(IntPtr hProcess);

.

Public Declare Function EmptyWorkingSet Lib "psapi.dll" (hwProc As IntPtr) As Int32

.

                _result = PsapiHelper.EmptyWorkingSet(process.Handle);

.

            Call EmptyWorkingSet(Process.GetCurrentProcess().Handle)

.
Documentation
[EmptyWorkingSet] on MSDN

 
Access PInvoke.net directly from VS: