Untitled Document
CApplicationAPI.InitApi Method (String, ApplicationHandler, Int32, Int32, Int32, Int32)
GPS NAVIGATION SDK
version 8.3 build 47035

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

public static int InitApi(
   string strPath,
   ApplicationHandler Handler,
   int nLeft,
   int nTop,
   int nWidth,
   int nHeight
);

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.

Return Value

1 if successful, other value otherwise.

Remarks

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.

See Also

CApplicationAPI Class | ApplicationAPI Namespace | CApplicationAPI.InitApi Overload List