DirectX SDK

DirectInputDevice.RunControlPanel

The DirectInputDevice.RunControlPanel method opens the Control Panel property sheet associated with this device. If the device does not have a property sheet associated with it, the default device property sheet is displayed.

object.RunControlPanel(hwnd As Long)

Parameters

object
Object expression that resolves to a DirectInputDevice object.
hwnd
Handle to the parent window. If this parameter is 0, no parent window is used.

Error Codes

If the method fails, an error is raised and Err.Number may be one of the following error codes:

DIERR_INVALIDPARAM