The function initializes ApplicationAPI and must be called at the very first place.
- Parameters
-
strPath | Full path to application Drive.exe. |
Handler | Delegate of ApplicationHandler type. Can by used to process events generated by Drive. Supported events are enumerated in ApplicationEvents enum. |
nLeft | x-coordinate of Drive top left corner. |
nTop | y-coordinate of Drive top left corner. |
nWidth | Width of Drive in pixels. |
nHeight | Height of Drive in pixels. |
bRunInForeground | Indicates whether Drive shall be brought to foreground after initialization |
bNoCaption | Border of drive window is removed |
- 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 start Drive repeatedly use CloseApi metod.
If Handler is set to null events will not be processed.