Initialize the necessary resource for WebAccess kernel communication and operation.
Syntax
viewdll.dll |
int VD_API VdBroadWinKrlInit(); |
Bwdllobj |
Public Function KrlInit() As Integer |
C# |
Integer KrlInit(); |
Parameters
None.
Return Value
Type: Integer
If the function failed, the return value will be 0. User should get further return code from the global attribute ‘Return Code’ for extra information.
If the function successes, the return value will be an integer represent the internal resource.
Remarks
The return value indicate the internal resource. User should not use the return value as any other meaning. If the function failed, user should check the kernel status and license status. The application may need to restart to get the function works properly.
C# Sample Code
private void BtnKrlInit_Click(object sender, EventArgs e) { int result = ViewDllWrap.KrlInit(); if (result == 0) { MessageLog("KrlInit Failed. Return Code: " + ViewDllWrap.ReturnCode.ToString()); return; } MessageLog("KrlInit() returns " + result.ToString()); } |