PEP_WORK_POWER_CONTROL structure (pepfx.h)

The PEP_WORK_POWER_CONTROL structure contains the parameters for a power control request that the platform extension plug-in (PEP) sends directly to a processor driver.

Syntax

typedef struct _PEP_WORK_POWER_CONTROL {
       POHANDLE DeviceHandle;
  [in] LPCGUID  PowerControlCode;
       PVOID    RequestContext;
  [in] PVOID    InBuffer;
  [in] SIZE_T   InBufferSize;
  [in] PVOID    OutBuffer;
  [in] SIZE_T   OutBufferSize;
} PEP_WORK_POWER_CONTROL, *PPEP_WORK_POWER_CONTROL;

Members

DeviceHandle

A POHANDLE value that identifies the processor. The PEP received this handle in a previous PEP_DPM_REGISTER_DEVICE notification.

[in] PowerControlCode

A pointer to a GUID value that specifies the power control operation to perform.

RequestContext

A pointer to a PEP-defined context value. The PEP might use this value to uniquely identify a power control request message (in case the PEP issues multiple requests with the same control code to the same device).

[in] InBuffer

A pointer to a driver-allocated input buffer that contains the input parameters for this power control operation.

[in] InBufferSize

The size in bytes of the buffer pointed to by InBuffer.

[in] OutBuffer

A pointer to a driver-allocated output buffer to which the PEP writes the results of this power control operation.

[in] OutBufferSize

The size in bytes of the buffer pointed to by OutBuffer.

Remarks

The PowerControl member of the PEP_WORK_INFORMATION structure is a pointer to a PEP_WORK_POWER_CONTROL structure.

The PEP issues a power control request from a worker thread. The Windows power management framework (PoFx) forwards this request by calling the processor driver's PowerControlCallback routine, if the driver implements this routine.

Requirements

Requirement Value
Minimum supported client Supported starting with Windows 10.
Header pepfx.h (include Pep_x.h)

See also

GUID

PEP_DPM_REGISTER_DEVICE

PEP_WORK_INFORMATION

PoFxRegisterDevice

PowerControlCallback