Поделиться через


IOCTL_SD_BUS_DRIVER_GET_SLOT_POWER_CONTROL (Compact 2013)

3/26/2014

This I/O control message returns the slot power control information for a given slot or the function power data for a given slot and function. Send this message with DeviceIoControl.

Syntax

BOOL DeviceIoControl(
    HANDLE hDevice,           // handle to device
    DWORD dwIoControlCode,    // use IOCTL_SD_BUS_DRIVER_GET_SLOT_POWER_CONTROL
    LPVOID lpInBuffer,        // pointer to input buffer
    DWORD nInBufferSize,      // input buffer size
    LPVOID lpOutBuffer,       // pointer to output buffer
    DWORD nOutBufferSize,     // output buffer size
    LPDWORD lpBytesReturned,  // number of bytes returned
    OVERLAPPED lpOverlapped   // pointer to OVERLAPPED structure
);

Parameters

  • hDevice
    The handle to the bus driver.
  • dwIoControlCode
    [in] Control code for the operation. Use IOCTL_SD_BUS_DRIVER_GET_SLOT_POWER_CONTROL for this operation.
  • lpInBuffer
    [in] Pointer to a DWORD variable that indicates the slot index or a pointer to a BUS_DRIVER_IN_SLOT_FUNCTION_POWER structure that indicates the slot and function index.
  • nInBufferSize
    [in] Size of the value pointed to by lpInBuffer.
  • nOutBufferSize
    [in] Size of a SLOT_POWER_DATA structure or FUNCTION_POWER_DATA structure depending on the contents of lpInBuffer.
  • lpBytesReturned
    [out] Pointer to a DWORD variable to return the length of returned data. If there is no error, set to the size of the SLOT_POWER_DATA structure or FUNCTION_POWER_DATA structure depending on the contents of lpInBuffer.
  • lpOverlapped
    Ignored.

Return Values

Returns TRUE if successful; otherwise, returns FALSE.

Remarks

To get extended error information, call GetLastError. GetLastError may return other standard error messages as appropriate.

Requirements

Header

sdcardddk.h

See Also

Reference

Secure Digital (SD) Card Driver IOCTLs