Platform SDK: Group Policy |
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 );
If the message was displayed successfully, return ERROR_SUCCESS. Otherwise, return a Win32 error code.
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
Windows NT/2000: Requires Windows 2000.
Header: Declared in Userenv.h.
Group Policy Overview, Group Policy Functions, ProcessGroupPolicyProc