DIPROPHEADER Structure

Serves as a header for all property structures.

Syntax

typedef struct DIPROPHEADER {
    DWORD dwSize;
    DWORD dwHeaderSize;
    DWORD dwObj;
    DWORD dwHow;
} DIPROPHEADER, *LPDIPROPHEADER;

Members

  • dwSize
    Size of the enclosing structure. This member must be initialized before the structure is used.
  • dwHeaderSize
    Size of the DIPROPHEADER structure.
  • dwObj
    Object for which the property is to be accessed. The value set for this member depends on the value specified in the dwHow member.
  • dwHow
    Value that specifies how the dwObj member should be interpreted. This value can be one of the following:
    • DIPH_DEVICE
      The dwObj member must be 0.
    • DIPH_BYOFFSET
      The dwObj member is the offset into the current data format of the object whose property is being accessed.
    • DIPH_BYUSAGE
      The dwObj member is the human interface device usage page and usage values in packed form.
    • DIPH_BYID
      The dwObj member is the object type/instance identifier. This identifier is returned in the dwType member of the DIDEVICEOBJECTINSTANCE structure returned from a previous call to the IDirectInputDevice8::EnumObjects member.