Initialize callback function
In DirectX 5.0 and later, the Initialize callback signals the driver about the identity of the device. This callback replaces the joystick identification callback (see Joystick Identification Callback) used in previous versions of DirectX.
Syntax
HRESULT Initialize(
DWORD dwDeviceID,
LPDID_INITPARAMS lpInitParams
);
Parameters
dwDeviceID
Indicates the joystick ID number being used. The Windows joystick subsystem allocates external IDs.lpInitParams
Points to a DID_INITPARAMS structure that contains the initialization parameters.
Return value
When access is being started, returns S_OK on success; otherwise returns an error value if the driver cannot service this ID. The result is ignored if access is being stopped.