RtReleaseShutdownHandler

RtReleaseShutdownHandler destroys the shutdown handler object created by RtAttachShutdownHandler.

NOTE: This function is only supported in the RTSS environment. It cannot be called from a Windows application linked to RTX64.

Syntax

BOOL RtReleaseShutdownHandler(
    HANDLE hShutdown
);

Parameters

hShutdown

A handle returned by RtAttachShutdownHandler.

Return Value

TRUE when hShutdown specifies a valid shutdown handler object and the object has been successfully destroyed, FALSE otherwise

To get extended error information, call GetLastError.

Remarks

The shutdown handler should not call ExitThread or ExitProcess, nor should it attempt to create or close any objects. The process will exit after the shutdown handler returns.

Requirements

Minimum Supported Version RTX64 2013
Header Rtapi.h
Library Rtx_Rtss.lib

See Also:

ExitThread

RtAttachShutdownHandler