次の方法で共有


IOCTL_HAL_QUERY_DEVICE_SETTINGS (Compact 2013)

10/16/2014

This I/O control message is obsolete. It obtains information about the system parameters information (SPI) codes supported by the SystemParametersInfo function. Send this message with OEMIoControl.

Syntax

BOOL OEMIoControl(
    DWORD dwIoControlCode,    // use IOCTL_HAL_QUERY_DEVICE_SETTINGS
    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
);

Parameters

  • dwIoControlCode
    [in] Control code for the operation. Use IOCTL_HAL_QUERY_DEVICE_SETTINGS for this operation.
  • lpInBuffer
    [in] Input buffer; this is vendor-specific.
  • nInBufferSize
    [in] Size of lpInBuffer, in bytes. The size must equal 4.
  • lpOutBuffer
    [out] Output buffer; this is vendor-specific.
  • nOutBufferSize
    [out] Specifies the maximum number of bytes that can be returned in lpOutBuffer. The caller sets this value.
  • lpBytesReturned
    [in] Number of bytes returned in lpOutBuffer.

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.

Remarks

The SPI parameters are specific to your platform and can be defined in header files. You can define additional device specific SPI parameters if required.

Requirements

Header

pkfuncs.h

See Also

Reference

Device Information IOCTLs
OEMIoControl