RtOpenThread

RtOpenThread opens an existing thread object and returns a handle to that thread object.

Syntax

Copy
HANDLE RtOpenThread(
    DWORD dwDesiredAccess,
    BOOL bInheritHandle,
    DWORD dwThreadId
);

Parameters

dwDesiredAccess

Ignored.

bInheritHandle

Ignored.

dwThreadId

The identifier of the thread object to be opened. This must be an existing thread ID in the current process.

Return Value

If the function succeeds, it returns a handle to the thread object. If the function fails, it returns NULL.

Remarks

RtOpenThread can only be used to open a handle to a thread in the calling process. You cannot open a handle to a thread in a different process.

Requirements

Minimum supported version Header Library

eRTOS 1.0 SDK

RtssApi.h rtkrnl.lib