osOpenByHandle Function
Declaration:
BOOL osOpenByHandle(
  HANDLE Handle
);
Parameters:
Handle

The handle of the object to be opened.

Return value:

TRUE on success or FALSE on failure. Call the osGetLastError function to obtain extended error information.

Description:

This function opens an object using its handle rather than its name (unlike other osOpen* functions). It is typically used when the object's handle is already known and the calling task needs to increment the object's reference count to protect it from being deleted by other tasks.

This function is available only when the OS_OPEN_BY_HANDLE_FUNC constant is set to 1.

Version:1.0
Header file:OS_API.h
See also: BOOL, FALSE, HANDLE, OS_OPEN_BY_HANDLE_FUNC, osGetLastError, system objects management, TRUE
SpaceShadow documentation