次の方法で共有


CeGetProcessorState (Compact 2013)

3/28/2014

This function obtains the state of the specified processor.

Syntax

DWORD WINAPI CeGetProcessorState
(DWORD  dwProcessor);

Parameters

  • dwProcessor
    [in] Specifies the processor.

Return Value

The following table lists possible values.

  • CE_PROCESSOR_STATE_IN_TRANSITION
    The processor is in the middle of a power cycle change.
  • CE_PROCESSOR_STATE_POWERED_OFF
    The processor is turned off.
  • CE_PROCESSOR_STATE_POWERED_ON
    The processor is running normally.

Zero indicates failure. Call GetLastError to obtain extended error information.

Requirements

Header

kfuncs.h,
winbase.h

Library

coredll.lib

See Also

Reference

Process and Thread Functions
Kernel Functions