C# SDK

◆ InitApi() [1/5]

static int InitApi ( string  strPath,
ApplicationHandler  Handler 
)
inlinestatic

The function initializes ApplicationAPI and must be called at the very first place.

Parameters
strPathFull path to application Drive.exe.
HandlerDelegate of ApplicationHandler type. Can be used to process events generated by Drive. Supported events are enumerated in ApplicationEvents enum.
Returns
1 if successful, other value otherwise.

The function initializes ApplicationAPI and starts Drive.exe.

This function should be called just once at the beginning. Before starting the Drive repeatedly use the CloseApi method first.

If Handler is set to null events will not be processed.

Referenced by CApplicationAPI.InitApi().