Jump to content

WM SAVEAPPLICATION

From EDM2
Revision as of 04:16, 18 April 2025 by Martini (talk | contribs) (Created page with "This message is sent by the system to notify an application to save its current state. ==Syntax== <pre> param1 ULONG ulReserved; Reserved value, should be 0.: param2 ULONG ulReserved; Reserved value, should be 0.: </pre> ==Parameters== ;''ulReserved'' (ULONG) - input: Reserved value, should be 0. ;''ulReserved'' (ULONG) - input: Reserved value, should be 0. ==Returns== ;''ulReserved'' (ULONG) - returns: Reserved value, should be 0. ==Remarks== When...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This message is sent by the system to notify an application to save its current state.

Syntax

param1
    ULONG ulReserved; /* Reserved value, should be 0. */

param2
    ULONG ulReserved; /* Reserved value, should be 0. */

Parameters

ulReserved (ULONG) - input
Reserved value, should be 0.
ulReserved (ULONG) - input
Reserved value, should be 0.

Returns

ulReserved (ULONG) - returns
Reserved value, should be 0.

Remarks

When an application receives this message, it is expected to save its current state by any convenient method, for example, in a profile or in an auxiliary file.

It is the responsibility of the application to use the saved information, as appropriate, when it is resumed.

Even if the application processes this message, it should also pass it to the default window procedure, by using the WinDefWindowProc call.

Default Processing

The default window procedure takes no action on this message, other than to set ulReserved to 0.