IPortClsRuntimePower::SendPowerControl method (portcls.h)

The port class driver (PortCls) uses the SendPowerControl method to send power control codes to the audio adapter.

Syntax

NTSTATUS SendPowerControl(
  [in]            PDEVICE_OBJECT _DeviceObject,
  [in]            LPCGUID        _PowerControlCode,
  [in, optional]  PVOID          _InBuffer,
  [in]            SIZE_T         _InBufferSize,
  [out, optional] PVOID          _OutBuffer,
  [in]            SIZE_T         _OutBufferSize,
  [out, optional] PSIZE_T        _BytesReturned
);

Parameters

[in] _DeviceObject

The device object.

[in] _PowerControlCode

The power control code to be sent to the audio adapter.

[in, optional] _InBuffer

The input buffer.

[in] _InBufferSize

The size of the input buffer.

[out, optional] _OutBuffer

The output buffer.

[in] _OutBufferSize

The size of the output buffer.

[out, optional] _BytesReturned

The number of bytes returned.

Return value

The SendPowerControl method returns STATUS_SUCCESS, if the call is successful. Otherwise, it returns the appropriate error code.

Requirements

Requirement Value
Minimum supported client Windows 7
Minimum supported server Windows Server 2003
Target Platform Universal
Header portcls.h

See also

IPortClsRuntimePower