海康摄像头增加了云台控制等

This commit is contained in:
2025-12-28 13:14:40 +08:00
parent 2ee25a4f7c
commit 231247c80f
12 changed files with 774 additions and 107 deletions

View File

@@ -252,6 +252,9 @@ public static partial class HikNativeMethods
/// <summary> 命令常量:获取时间配置 </summary>
public const uint NET_DVR_GET_TIMECFG = 118;
/// <summary> 命令常量:设置时间 </summary>
public const int NET_DVR_SET_TIMECFG = 119;
#endregion
#region --- PTZ (PTZ Control) ---
@@ -492,4 +495,16 @@ public static partial class HikNativeMethods
ref uint lpBytesReturned);
#endregion
[DllImport(DllName)]
public static extern bool NET_DVR_SetDVRConfig(int lUserID, uint dwCommand, int lChannel, System.IntPtr lpInBuffer, uint dwInBufferSize);
/// <summary>
/// 设备重启
/// </summary>
/// <param name="lUserID"></param>
/// <returns></returns>
[DllImport(DllName)]
public static extern bool NET_DVR_RebootDVR(int lUserID);
}