/WS

Syntax:

/WS:AGGRESSIVE

Adds the WS_AGGRESSIVE property to your application's image. The Windows NT 4 or Windows 2000 loader will recognize this property 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.