Partager via


OALIoCtlHalGetDeviceId (Compact 2013)

10/16/2014

This function implements the IOCTL_HAL_GET_DEVICEID handler. OALIoCtlHalGetDeviceId fills in a DEVICE_ID structure.

OALIoCtlHalGetDeviceId has been replaced by IOCTL_HAL_GET_DEVICE_INFO.

Syntax

BOOL OALIoCtlHalGetDeviceId(
  UINT32 dwIoControlCode,
  VOID* lpInBuf,
  UINT32 nInBufSize,
  VOID* lpOutBuf,
  UINT32 nOutBufSize,
  UINT32* lpBytesReturned
);

Parameters

  • dwIoControlCode
    [in] Set to IOCTL_HAL_GET_DEVICEID to retrieve the DEVICE_ID structure.
  • lpInBuf
    [in] Unused. Must be set to NULL.
  • nInBufSize
    [in] Unused. Must be set to 0.
  • lpOutBuf
    [in] Set to the address of an allocated DEVICE_ID structure.
  • nOutBufSize
    [in] Set to the size of the DEVICE_ID structure.
  • lpBytesReturned
    [in] Address of a DWORD that receives the size, in bytes, of the data structure that contains the device identification information.

    This parameter is optional. If you do not need this value, set this parameter to NULL.

Return Value

TRUE indicates success.

FALSE indicates failure.

Requirements

Header

oal_ioctl.h

Library

Developer Implemented

See Also

Reference

IOCTL Functions