RtGetProcessorInfo
RtGetProcessorInfo retrieves the system-wide processor numbers for the lowest and highest RTSS processors.
Syntax
BOOL RtGetProcessorInfo(
[in] PDWORD lpLowestSystemProcessor,
[in] PDWORD lpHighestSystemProcessor
);
Parameters
[in] lpLowestSystemProcessor
A pointer to a DWORD whose value will be changed to the lowest RTSS processor upon a success.
[in] lpHighestSystemProcessor
A pointer to a DWORD whose value will be changed to the highest RTSS processor upon a success.
Return Value
If the function succeeds, it returns TRUE. If the function fails, it returns FALSE. Call GetLastError to obtain an error code.
Remarks
If either parameter is NULL, this function returns ERROR_INVALID_PARAMETER.
Processors are identified by their 0-based system-wide processor number when using an affinity mask within an RTAPI call.
For example, three processors are dedicated to Windows and five are dedicated to RTSS. Physically, this configuration translates into dedicating Processors 0, 1, and 2 to Windows and Processors 3 through 7 to RTSS.
Requirements
| Minimum supported version | Header | Library |
|---|---|---|
|
wRTOS 1.0 SDK |
RtApi.h |
RtApi.lib (Windows), Startup.lib (RTSS) |
See Also: