CtrlMsg routine
The CtrlMsg callback sends specific messages to a minidriver.
Syntax
HRESULT CtrlMsg(
DWORD dwDeviceID,
DWORD dwMsgId,
DWORD dwParam
);
Parameters
dwDeviceID
Indicates the joystick ID number being used.dwMsgId
Indicates the message being sent to the minidriver. A value of VJCM_PASSDRIVERDATA indicates that the dwParam parameter contains a DWORD to pass to the driver. A value of VJCM_CONFIGCHANGED indicates that the dwParam parameter informs the minidriver of a change in configuration.dwParam
Specifies one of the following:If the dwMsgId parameter is set to VJCM_PASSDRIVERDATA, this parameter contains a DWORD to pass to the driver. This allows the JOY_OEMPOLL_PASSDRIVERDATA poll type that was used to pass driver data to a DirectX 3.0 driver to still be used for a driver designed for DirectX 5.0 and later versions.
If the dwMsgId parameter is set to VJCM_CONFIGCHANGED, this parameter contains a pointer to a VJCFGCHG structure that informs the minidriver of a change in configuration.
Return value
Returns S_OK if successful, otherwise returns S_FALSE.