RegisterOnDeviceErrorHandler

Declaration

Delphi

procedure RegisterOnDeviceErrorHandler(Handler: Pointer);

C/C++

SOPAD_API void SOPAD_registerOnDeviceErrorHandler(LPVOID lpHandler);

Description

Registers a procedure to be called when operation on device is corrupted.  .

The function  pointed by lpHandler has the signatue

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

Arguments

Handler

Pointer to a procedure of type TOnDeviceErrorHandleCallback.