Share via


SHCloseApps (Windows Embedded CE 6.0)

1/6/2010

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
Windows Embedded CE Windows CE 3.0 and later

See Also

Reference

AYGShell Functions
WM_CLOSE