RtfwGetEnabledProcessors

RtfwGetEnabledProcessors returns the total number of processors that are enabled on the system.

Syntax

bool RtfwGetEnabledProcessors(
    DWORD * pEnabledProcessors,
);

Parameters

pEnabledProcessors

A pointer to a value that is set to the total number of processors that are enabled on the system.

NOTE: The value of this parameter is only meaningful after the real-time Subsystem has been started at least once. If the real-time Subsystem has never been started, this parameter's value is 0.

Return Value

The function returns true if it succeeds. Otherwise, it returns false and sets the last error value. Call GetLastError for additional error information.

Remarks

The value that pEnabledProcessors is set to by this function can be smaller than the total number of processors on the machine in the case where the Activation and Configuration Utility was configured to use less processors than the total number on the machine.

Requirements

Minimum Required Version RTX64 4.4
Header RtfwAPI.h
Library RtfwAPI.lib

See Also:

RtfwSetProcessorConfiguration