IPortClsRuntimePower::SendPowerControl method

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

DeviceObject [in]

The device object.

PowerControlCode [in]

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

InBuffer [in, optional]

The input buffer.

InBufferSize [in]

The size of the input buffer.

OutBuffer [out, optional]

The output buffer.

OutBufferSize [in]

The size of the output buffer.

BytesReturned [out, optional]

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

Minimum supported client

Windows 7

Minimum supported server

Windows Server 2003

Header

Portcls.h

See also

IPortClsRuntimePower

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft