Partager via


IRDA_DEVICE_INFO

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This structure contains information about a device that has been discovered by the infrared transceiver.

Syntax

typedef struct IRDA_DEVICE_INFO {
  u_char irdaDeviceID[4];
  char irdaDeviceName[22];
  u_char Reserved[2];
} _IRDA_DEVICE_INFO;

Members

  • irdaDeviceID
    Identifier of the IrDA device. This member corresponds to the member of the same name in the SOCKADDR_IRDA structure.
  • irdaDeviceName
    Name of the IrDA device.
  • Reserved
    This member is reserved.

Remarks

To look up available services, an application must call the getsockopt function with the IRLMP_ENUMDEVICES option set. This call discovers devices within the infrared range for registered applications.

If services are found, they are returned in a DEVICELIST structure.

An IrSock-capable device has a device identifier associated with it, so a successful query returns one or more IRDA_DEVICE_INFO structures containing the device ID of each device discovered.

Requirements

Header af_irda.h
Windows Embedded CE Windows CE 1.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Concepts

IrDA Reference
IrDA Application Development

Other Resources

Infrared Communications