RtGetProcessIdealProcessor

RtGetProcessIdealProcessor retrieves the ideal processor for a given RTSS process handle.

Syntax

BOOL RtGetProcessIdealProcessor(
    HANDLE hProcess,
    PULONG pIdealProcessor,
);

Parameters

hProcess

A handle to the RTSS process that you want to get the ideal processor for.

pIdealProcessor

A pointer to a variable that receives the ideal processor value.

Return Value

Returns TRUE if the function succeeds. Returns FALSE is the function fails.

To get extended error information, call GetLastError.

Possible error codes:

Code Meaning
ERROR_INVALID_HANDLE The process handle cannot be found.
ERROR_INVALID_PARAMETER The specified parameter is invalid.

Requirements

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

See Also:

RtGetProcessorInfo

RtCreateProcess

RtOpenProcess