/WS (Aggressively Trim Process Memory)
Use this linker option to add the WS_AGGRESSIVE attribute to your application's image. The Windows NT 4.0 loader will recognize this attribute and aggressively trim the working set of the process when it is not active. Using this option is similar to adding the following call throughout your application.
SetProcessWorkingSetSize(hThisProcess, -1, -1)
/WS:AGGRESSIVE can be used for applications that must have a low impact on the system's memory pool.
If the speed of your application is important, do not use /WS:AGGRESSIVE without testing the resulting performance implications. Ideal candidates are processes that tend to operate in the background, such as services and screen savers.