RtCloseHandle
RtCloseHandle closes an open Process object handle.
Syntax
BOOL RtCloseHandle(
HANDLE hObject
);
Parameters
hObject
An open object handle.
Return Value
If the function succeeds, it returns TRUE. If the function fails, it returns FALSE.
To get extended error information, call GetLastError.
Remarks
RtCloseHandle closes handles to the following Process objects:
- Event
- Interrupts
- Mutex
- Semaphore
- Shared memory
- Shutdown handler
- Timers
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.
Requirements
| Minimum supported version | Header | Library |
|---|---|---|
|
eRTOS 1.0 SDK |
Rtapi.h | rtkrnl.lib |