int size = Marshal.SizeOf(typeof(HaiKangSDK.NET_DVR_TIME));
IntPtr pointer = Marshal.AllocHGlobal(size);
Marshal.StructureToPtr(timecfg, pointer, true);
Marshal.FreeHGlobal(pointer);
int size = Marshal.SizeOf(typeof(HaiKangSDK.NET_DVR_TIME));
IntPtr pointer = Marshal.AllocHGlobal(size);
Marshal.StructureToPtr(timecfg, pointer, true);
Marshal.FreeHGlobal(pointer);