DIEnumDevicesProc

The DIEnumDevicesProc function is an application-defined callback function that receives DirectInput devices as a result of a call to the IDirectInput::EnumDevices method.

BOOL CALLBACK DIEnumDevicesProc(
  LPDIDEVICEINSTANCE lpddi,  
  LPVOID pvRef               
);
 

Parameters

lpddi
Address of a DIDEVICEINSTANCE structure that describes the device instance.
pvRef
The application-defined value given in the IDirectInput::EnumDevices method.

Return Values

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

QuickInfo

  Windows NT: Use version 5.0 or later.
  Windows: Use Windows 95 or later. Available as a redistributable for Windows 95.
  Windows CE: Unsupported.
  Header: Declared in dinput.h.
  Import Library: User-defined.