PAPPSTATE_CHANGE_ROUTINE callback function (appnotify.h)

Specifies an app-defined callback function that notifies the app when the app is entering or leaving a suspended state.

Syntax

PAPPSTATE_CHANGE_ROUTINE PappstateChangeRoutine;

void PappstateChangeRoutine(
       BOOLEAN Quiesced,
  [in] PVOID Context
)
{...}

Parameters

Quiesced

Type: BOOLEAN

TRUE if the app is entering the suspended state; FALSE if the app is leaving the suspended state.

[in] Context

Type: PVOID

A pointer to data that the app can save when suspending and use upon resuming. This value is supplied by the RegisterAppStateChangeNotification function. This is commonly a "this" pointer.

Return value

None

Requirements

Requirement Value
Minimum supported client Windows 8.1 [desktop apps only]
Minimum supported server Windows Server 2012 R2 [desktop apps only]
Target Platform Windows
Header appnotify.h