日期:2014-05-17 浏览次数:21151 次
LONG TH_Layout(VARIANT* rcBoundTop);
public virtual int TH_Layout(ref object rcBoundTop);
/// <summary>
/// 创建格式转换模块
///
/// HRESULT __stdcall FMTCVT_Create(void **handle);
/// </summary>
/// <param name="handle">返回格式转换模块句柄</param>
/// <returns>返回状态码</returns>
[DllImport("HikFormatConvertDll.dll", EntryPoint = "FMTCVT_Create", CharSet = CharSet.Ansi,
CallingConvention = CallingConvention.StdCall)]
public static extern int FMTCVT_Create(ref IntPtr handle);
/// <summary>
/// 释放格式转换模块
///
/// HRESULT __stdcall FMTCVT_Release(void *handle);
/// </summary>
/// <param name="handle">格式转换模块句柄</param>
/// <returns>返回状态码</returns>
[DllImport("HikFormatConvertDll.dll", EntryPoint = "FMTCVT_Release", CharSet = CharSet.Ansi,
CallingConvention = CallingConvention.StdCall)]
public static extern int FMTCVT_Release(IntPtr handle);
public static IntPtr hFMCVT; //格式转换模块句柄
...
return HikFormatConvertDll.FMTCVT_Create(ref hFMCVT);
...
HikFormatConvertDll.FMTCVT_Release(hFMCVT);
/// <summary>
/// 设置转换参数
&nb