int stdcall YW_TCPIPDisConnectByIP(
char *ipadsdress
)
|
参数 |
类型 |
方向 |
含义 |
|
ipadsdress |
char * |
IN |
目标读卡器的IP地址 |
int stdcall YW_TCPIPDisConnectByIP(char
*ipadsdress)
function YW_TCPIPDisConnectByIP(ipadsdress: PChar): Integer;stdcall;external 'YW60x.dll';
Public Declare Function YW_TCPIPDisConnectByIP Lib "YW60x.dll" (ByVal ipadsdress As String) As Long
public int YW_TCPIPDisConnectByIP(Pointer ipadsdress)
{
int ret;
try
{
JNative fuc = new JNative("YW60x.dll", "YW_TCPIPDisConnectByIP");
fuc.setRetVal(Type.INT);
fuc.setParameter(0, ipadsdress);
fuc.invoke();
ret = fuc.getRetValAsInt();
}
catch(NativeException e)
{
ret = -1;
}
catch(IllegalAccessException e)
{
ret = -2;
}
return ret;
}
[DllImport("YW60x.dll")]
public static extern int YW_TCPIPDisConnectByIP(char[] ipadsdress);
public FUNCTION long YW_TCPIPDisConnectByIP(string ipadsdress) library "YW60x.dll"
