27.3.2.2.3 IsKrlRunning

 

Check the kernel is running or not.

 

Syntax

viewdll.dll

int VD_API VdIsKrlRunning();

Bwdllobj

Public Function IsKrlRunning() As Integer

C#

Integer IsKrlRunning();

 

Parameters

None.

 

Return Value

If the kernel is running, the function will return 1. If the kernel is not running, the function will return 0.

 

Remarks

 

 

C# Sample Code

private void BtnIsKrlRunning_Click(object sender, EventArgs e)

{

    int result = ViewDllWrap.IsKrlRunning();

    MessageLog("IsKrlRunning() returns " + result.ToString());

    tbKrlRunning.Text = (result == 0) ? "False" : "True";

}