Microsoft DirectX 8.1 (C++)

DIPROPGUIDANDPATH

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;
 
typedef const DIPROPGUIDANDPATH *LPCDIPROPGUIDANDPATH;

Members

diph
DIPROPHEADER structure that must be initialized as follows:
Member Value
dwSize sizeof(DIPROPGUIDANDPATH).
dwHeaderSize sizeof(DIPROPHEADER).
dwObj For this structure, this member must be set to 0.
dwHow Specifies how the dwObj member should be interpreted. For this structure, dwHow should be DIPH_DEVICE.

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 enables advanced applications to perform operations on a Human Interface Device (HID) that are not supported by Microsoft® DirectInput®.

The application calls the IDirectInputDevice8::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/XP: Requires Windows 2000.
  Windows 98/Me: Requires Windows 98.
  Header: Declared in Dinput.h.