using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Text;
using System;
namespace DemoUI.SDK
{
///
/// 人脸检测
///
public class NativeCWFaceVersion
{
private const string CloudWalkSDKDll = "CWFaceSDK.dll";
///
/// 功能:获取SDK版本信息
///
/// 版本信息,需事先分配内存
/// 输出buf分配字节长度>
/// 成功返回CW_OK,失败返回其他
[DllImport(CloudWalkSDKDll, EntryPoint = "cwGetSDKVersion", CallingConvention = CallingConvention.Cdecl)]
public static extern cw_errcode_t cwGetSDKVersion(StringBuilder pVersion, int iBuffLen);
///
/// 功能:获取设备码
///
/// 设备唯一码,需事先分配内存,不低于160字节
/// 输出buf分配字节长度,不低于160字节
/// 输出的设备码的长度
/// 成功返回CW_OK,失败返回其他
[DllImport(CloudWalkSDKDll, EntryPoint = "cwGetDeviceInfo", CallingConvention = CallingConvention.Cdecl)]
public static extern cw_errcode_t cwGetDeviceInfo(StringBuilder pDeviceInfo, int iBuffLen, ref int iUseLen);
///
/// 功能:安装授权
///
/// 授权AppKey,需从云从科技获取
/// 授权ProductId,需从云从科技获取
/// 授权sAppSecret,需从云从科技获取
/// 授权并发数
[DllImport(CloudWalkSDKDll, EntryPoint = "cwInstallLicence", CallingConvention = CallingConvention.Cdecl)]
public static extern cw_errcode_t cwInstallLicence(string sAppKey, string sAppSecret, string sProductId);
}
}