Invokes the joystick control panel directly, using the passed window handle as the parent of the dialog box.
VOID ShowJoyCPL( HWND hWnd );
None.
It is recommended that applications use IDirectInputDevice8::RunControlPanel instead of ShowJoyCPL.
The following typedef is provided to allow declaration and casting of an appropriately typed variable.
typedef void (WINAPI* LPFNSHOWJOYCPL)( HWND hWnd );
ShowJoyCPL can be called using the function pointer returned by GetProcAddress, where hCPL is an HMODULE returned by LoadLibrary.
HMODULE hCPL; LPFNSHOWJOYCPL pShowJoyCPL; . . . hCPL = LoadLibrary(TEXT("joy.cpl")); pShowJoyCPL = (LPFNSHOWJOYCPL)GetProcAddress(hCPL, TEXT("ShowJoyCPL")); pShowJoyCPL(NULL); //Invoke Joystick Control Panel
Header: Declared in Dinput.h.