Indicates that the system can be shut down and frees the reason string.
BOOL ShutdownBlockReasonDestroy( HWND hWnd );
A handle to the main window of the application.
If the call succeeds, the return value is nonzero.
If the call fails, the return value is zero. To get extended error information, call GetLastError.
This function can only be called from the thread that created the window specified by the hWnd parameter. Otherwise, the function fails and the last error code is ERROR_ACCESS_DENIED.
If system shutdown has been previously blocked by the ShutdownBlockReasonCreate function, this function frees the reason string. Otherwise, this function is a no-op.
|Minimum supported client||Windows Vista [desktop apps | UWP apps]|
|Minimum supported server||Windows Server 2008 [desktop apps | UWP apps]|
|Header||winuser.h (include Windows.h)|