void ISDK.Login(LoginInfo logininfo) { DVRSDK.LPNET_SDK_DEVICEINFO deviceInfo = new DVRSDK.LPNET_SDK_DEVICEINFO(); loginUserId = SHCFNetSDK.NET_SDK_Login(logininfo.Ip, (ushort)logininfo.Port, logininfo.UserName, logininfo.Password, ref deviceInfo); if (loginUserId < 0) { throw new Exception("[上海诚丰]登录失败"); } }
public static extern Int32 NET_SDK_Login(string sDVRIP, ushort wDVRPort, string sUserName, string sPassword, ref LPNET_SDK_DEVICEINFO lpDeviceInfo);