1. NVR 和 BallCamera 添加 Status 功能
This commit is contained in:
@@ -58,6 +58,10 @@ func Login(Ip string, Port int, Username string, Password string) (LONG, NET_DVR
|
||||
return LONG(cUserId), DeviceInfo, nil
|
||||
}
|
||||
|
||||
func NET_DVR_RemoteControl(userId LONG) bool {
|
||||
return C.NET_DVR_RemoteControl(C.LONG(userId), C.DWORD(20005), nil, C.DWORD(0)) == C.TRUE
|
||||
}
|
||||
|
||||
func Logout(userId LONG) error {
|
||||
if userId > -1 {
|
||||
cResult := C.NET_DVR_Logout(C.LONG(userId))
|
||||
|
||||
Reference in New Issue
Block a user