package com.ueky;
|
import com.softkey.Covert;
|
import com.softkey.jsyunew3;
|
public class CRunFunc {
|
|
private com.softkey.jsyunew3 mD8;
|
private int LastErr=0;
|
CRunFunc()
|
{
|
mD8=new com.softkey.jsyunew3();
|
}
|
|
public int GetLastErr()
|
{
|
return LastErr;
|
}
|
|
//@Func
|
|
|
public int RunFunc()
|
{
|
String KeyPath;
|
KeyPath= mD8.FindD8(0, "@VerfCode");
|
LastErr=(int)mD8.get_LastError();
|
if (LastErr != 0) return LastErr;
|
|
//@RunFunc
|
|
//release KeyPath
|
mD8.CloseUsbHandle(KeyPath);
|
return LastErr;
|
}
|
|
//Function:ApiCall only was used that Api was callled in Key's code#,
|
private int ApiCall(String KeyPath)
|
{
|
//@ApiCall
|
|
LastErr = mD8.ContinuRun(KeyPath);
|
if (LastErr == -7999) { ApiCall(KeyPath); }
|
return LastErr;
|
}
|
|
public int FindDogOnPnp()
|
{
|
String KeyPath;
|
KeyPath=mD8.FindD8(0, "@VerfCode");
|
int ret=(int)mD8.get_LastError();
|
//release KeyPath
|
mD8.CloseUsbHandle(KeyPath);
|
return ret;
|
}
|
}
|