int stdcall YW_TCPIPDisConnectByIP(
char *IPAddress
)
参数 |
类型 |
方向 |
含义 |
IPAddress |
char * |
IN |
目标读卡器的IP地址 |
int stdcall YW_TCPIPDisConnectByIP(char
*IPAddress)
function YW_TCPIPDisConnectByIP(IPAddress: PChar): Integer;stdcall;external 'YW60x.dll';
Public Declare Function YW_TCPIPDisConnectByIP Lib "YW60x.dll" (ByVal IPAddress As String) As Long
public int YW_TCPIPDisConnectByIP(Pointer IPAddress)
{
int ret;
try
{
JNative fuc = new JNative("YW60x.dll", "YW_TCPIPDisConnectByIP");
fuc.setRetVal(Type.INT);
fuc.setParameter(0, IPAddress);
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[] IPAddress);
public FUNCTION long YW_TCPIPDisConnectByIP(string IPAddress) library "YW60x.dll"