joy.cplShowJoyCPL
Microsoft DirectX 9.0 SDK Update (October 2004)

ShowJoyCPL Function


Invokes the joystick control panel directly, using the passed window handle as the parent of the dialog box.

Syntax

VOID WINAPI ShowJoyCPL(      

    HWND hWnd );

Parameters

hWnd
Window handle of the parent dialog box.

Return Value

None.

Remarks

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 );

Example

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


Function Information

Stock Implementationjoy.cpl
Custom ImplementationNo
Headerdinput.h
Import libraryNone
Minimum operating systems Windows XP SP1


© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.