Platform SDK: DirectX

DIPROPGUIDANDPATH

The DIPROPGUIDANDPATH structure is used to access properties whose values represent a GUID and a path.

typedef struct DIPROPGUIDANDPATH {
    DIPROPHEADER diph;
    GUID         guidClass;
    WCHAR        wszPath[MAX_PATH];
} DIPROPGUIDANDPATH, *LPDIPROPGUIDANDPATH;

Members

diph
DIPROPHEADER structure that must be initialized as follows:
Member Value
dwSize sizeof(DIPROPGUIDANDPATH)
dwHeaderSize sizeof(DIPROPHEADER)
dwObj Identifier of the object. For devices, must be 0
dwHow How the dwObj member should be interpreted.

guidClass
Class GUID for the object.
wszPath
Returned path for the object. This is a Unicode string.

Remarks

The DIPROP_GUIDANDPATH property associated with the DIPROPGUIDANDPATH structure allows advanced applications to perform operations on a HID that are not supported by DirectInput.

The application calls the IDirectInputDevice7::GetProperty method with DIPROP_GUIDANDPATH as the rguidProp parameter. The class GUID of the device is returned in the guidClass member of the DIPROPGUIDANDPATH structure, and the device interface path is returned in the wszPath member. The application can then call the CreateFile function on this path to access the device directly.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 98.
  Header: Declared in dinput.h.