Visual Basic .NET


Start the app in normal size for device "AIO000" and perform the app startup and termination processing.

Dim Ret As Integer               ' Return value

Dim AppId As Short

Dim CloseStatus As Integer

 

'----------------------------------------

' Start the application and allow access.

'----------------------------------------

Ret = GenOpenApplication( "AIO000" , AppId , 1 )

If Ret <> 0 Then

    System.Diagnostics.Debug.WriteLine("Error occurred in GenOpenApplication " & Ret)

End If

 

'----------------------------------------

' Close the application and disable access.

'----------------------------------------

Ret = GenCloseApplication( AppId , CloseStatus )

If Ret <> 0 Then

    System.Diagnostics.Debug.WriteLine("Error occurred in GenCloseApplication " & Ret)

End If