SHCloseApps (Compact 7)

3/12/2014

This function tries to free up memory for an application. If necessary, the shell closes down other applications by sending WM_CLOSE messages.

Syntax

BOOL SHCloseApps(
  DWORD dwMemSought
);

Parameters

  • dwMemSought
    [in] Specifies, in bytes, the amount of memory to be freed.

Return Value

This function returns TRUE if it is successful and FALSE if it fails.

Remarks

If a large memory allocation fails in your application, call SHCloseApps and attempt to allocate memory again.

OEM Support Requirements

This function call is handled by OEM code added to the shell's public source code. This is where an OEM either uses the default implementation or modifies it for a specific device.

Requirements

Header

aygshell.h

Library

aygshell.lib

See Also

Reference

AYGShell Functions
WM_CLOSE