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
A DIPROPHEADER structure that must be initialized as follows:
dwSize | sizeof(DIPROPGUIDANDPATH) |
dwHeaderSize | sizeof(DIPROPHEADER) |
dwObj | Identifier of the object. For devices, must be zero |
dwHow | How the dwObj member should be interpreted. |
guidClass
The class GUID for the object.
wszPath
The 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 the device that are not supported by DirectInput.
The application calls the IDirectInputDevice::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 in order to access the device directly.
Most applications should have no need for this property structure.
QuickInfo
Windows NT: Use version 5.0 or later.
Windows: Use Windows 95 OSR2 or later. Available as a redistributable for Windows 95.
Windows CE: Unsupported.
Header: Declared in dinput.h.