joyConfigChanged

MMRESULT joyConfigChanged(DWORD dwFlags);

Notifies the joystick driver that the registry contains new joystick settings.

·Returns JOYERR_NOERROR if successful, or one of the following error values otherwise:

JOYERR_NOCANDO JOYERR_REGISTRYNOTVALID

dwFlags

This parameter is reserved and must be set to 0.

The joystick calibration property sheet in the control panel calls this function when the user calibrates or recalibrates a joystick, or when a different joystick device is selected.

If your application is designed to customize joystick performance, such as an OEM joystick calibration application, you can use this function to notify the joystick driver that the JOYSTICK_USER values in the registry for the currently selected joystick have changed. The JOYSTICK_USER values are located in the HKEY_LOCAL_MACHINE hive of the registry.