?/TD>
Microsoft DirectX 9.0

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

Headerdinput.h
Import libraryNone
Minimum operating systems Windows XP SP1


© 2002 Microsoft Corporation. All rights reserved.