RtCloseHandle

RtCloseHandle closes an open RTSS object handle.

Syntax

BOOL RtCloseHandle(
    HANDLE hObject
);

Parameters

hObject

An open object handle.

Return Value

TRUE if the function succeeds, FALSE if the function fails

To get extended error information, call GetLastError.

Remarks

RtCloseHandle closes handles to the following RTSS objects:

RtCloseHandle invalidates the specified object handle, decrements the object's handle count, and performs object retention checks. Once the last handle to an object is closed, the object is removed from the operating system.

Threads must be closed with RtCloseHandle.

Requirements

Minimum Supported Version RTX64 2013
Header Rtapi.h
Library RtApi.lib (Windows), Rtx_Rtss.lib (RTSS)

See Also:

CloseHandle