RtGetProcessIdealProcessor

RtGetProcessIdealProcessor retrieves the ideal processor for a given process handle.

Syntax

Copy
BOOL RtGetProcessIdealProcessor(
    HANDLE hProcess,
    PULONG pIdealProcessor,
);

Parameters

hProcess

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

pIdealProcessor

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

Return Value

If the function succeeds, it returns TRUE. If the function fails, it returns FALSE.

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 Header Library

eRTOS 1.0 SDK

Rtapi.h rtkrnl.lib

See Also: