RtfwGetProcessorConfiguration
RtfwGetProcessorConfiguration returns the processor configuration of the wRTOS Subsystem that will be used the next time the Subsystem starts.
Syntax
bool RtfwGetProcessorConfiguration(
[out] DWORD * pRequestedWindowsProcessorCount,
[out] DWORD * pRequestedRTSSProcessorCount
);
Parameters
[out] pRequestedWindowsProcessorCount
A pointer to a value that is set to the number of Windows processors configured either by using the wRTOS Activation and Configuration utility or function RtfwSetProcessorConfiguration.
[out] pRequestedRTSSProcessorCount
A pointer to a value that is set to the number of RTSS processors requested either by using the wRTOS Activation and Configuration utility or function RtfwSetProcessorConfiguration.
Return Value
If the function succeeds, it returns TRUE. If the function fails, it returns FALSE, sets the last error value, and leaves the values pointed to by all parameters invalid. Call GetLastError to obtain an error code.
Possible error codes:
| Error code | Meaning |
|---|---|
|
RT_ERROR_SUBSYSTEM_NOT_CONFIGURED |
Processors have not yet been configured. |
Remarks
If the Subsystem is running when this API is called, the values returned by this function may differ from the values currently in use by the Subsystem.
If the Subsystem is running when the RtfwGetLocalMemoryConfiguration API is called, the values returned by this function may differ from the values currently in use by the Subsystem.
Requirements
| Minimum supported version | Header | Library |
|---|---|---|
|
wRTOS 1.0 SDK |
RtfwApi.h |
RtfwApi.lib |
See Also: