RegisterOnDeviceRemovedHandler

Declaration

Delphi

procedure RegisterOnDeviceRemovedHandler(Handler: Pointer);

C/C++

SOPAD_API void SOPAD_registerOnDeviceRemovedHandler(LPVOID lpHandler);

Description

Registers a procedure to be called when device is disconnected.

The function  pointed by lpHandler has the signatue

  •   Delphi:  type TOnDeviceRemovedCallback = procedure(PadType: cardinal; Identifier:PAnsiChar; IdentLen: Cardinal);
  •  C/C++:  typedef void (*TOnDeviceRemovedCallback)(int PadType,  char* Identifier, int IdentLen);

Arguments

Handler

Pointer to a procedure of type TOnDeviceRemovedCallback.