DIEnumDevicesCallback

Application-defined callback function that receives DirectInput devices as a result of a call to the IDirectInput8::EnumDevices method.

Syntax

BOOL DIEnumDevicesCallback(
         LPCDIDEVICEINSTANCE lpddi,
         LPVOID pvRef
)

Parameters

Return Value

Returns DIENUM_CONTINUE to continue the enumeration or DIENUM_STOP to stop the enumeration.

Remarks

If a single hardware device can function as more than one DirectInput device type, it is enumerated as each device type that it supports. For example, a keyboard with a built-in mouse is enumerated twice: once as a keyboard and once as a mouse. The product globally unique identifier (GUID) is the same for each device, however.

Requirements

Header: Declared in dinput.h.

See Also

DIEnumDevicesBySemanticsCallback