Platform SDK: Group Policy

StatusMessageCallback

The StatusMessageCallback function is an application-defined callback function used to display status messages when applying policy. The PFNSTATUSMESSAGECALLBACK type defines a pointer to this callback function. StatusMessageCallback is a placeholder for the application-defined function name.

DWORD StatusMessageCallback(
  BOOL bVerbose,
  LPWSTR lpMessage
);

Parameters

bVerbose
[in] Specifies whether the message is verbose. If this parameter is TRUE, the message is verbose. If this parameter is FALSE, the message is not verbose.
lpMessage
[in] Pointer to a buffer that contains the message string.

Return Values

If the message was displayed successfully, return ERROR_SUCCESS. Otherwise, return a Win32 error code.

Remarks

The status user interface has two modes: standard and verbose. Verbose messages are displayed only when the computer is in verbose mode. To enable verbose mode, set the following registry value to 1, log out, and log on (no need to restart the computer).

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\VerboseStatus

Requirements

  Windows NT/2000: Requires Windows 2000.
  Header: Declared in Userenv.h.

See Also

Group Policy Overview, Group Policy Functions, ProcessGroupPolicyProc