IDirectInputJoyConfig8::GetConfig method (dinputd.h)
The IDirectInputJoyConfig8::GetConfig method obtains information about a joystick's configuration.
HRESULT GetConfig( UINT , LPDIJOYCONFIG , DWORD );
Indicates a joystick identification number. This is a nonnegative integer. To enumerate joysticks, begin with joystick zero and increment the joystick number by one until the function returns DIERR_NOMOREITEMS.
Points to a structure that receives information about the joystick configuration. The caller "must" initialize the dwSize member of the DIJOYCONFIG structure before calling this method.
Specifies the members of the structure pointed to by pjc that are to be filled in. This parameter can be zero, one, or more of the following:
Indicates that the instance GUID for the joystick is being requested. An application can pass the instance GUID to IDirectInput::CreateDevice to obtain an IDirectInputDevice interface to the joystick. Note that this flag is not a valid parameter for IDirectInputJoyConfig8::SetConfig.
Indicates that the hardware configuration for the joystick (the hwc member of the DIJOYCONFIG structure) and the joystick type name (the wszType member of the same structure) are being requested. Note that the hardware configuration and type name cannot be retrieved separately.
Indicates that the force-feedback gain for the joystick is being requested.
Indicates that the joystick polling callout is being requested.
Returns DI_OK if successful; otherwise, returns one of the following COM error values:
||One or more parameters was invalid.|
||The specified joystick has not yet been configured.|
||No more joysticks are available.|
|Header||dinputd.h (include Dinputd.h)|