/// <summary> /// 获取模块错误信息 /// <summary> /// <param name="module">许可模块枚举</param> /// <param name="value">模块字符串表示 /// 如果许可模块为自定义,则value有效,用作判断 /// 反之,value无效。</param> /// <returns>最后一次错误描述</returns> public string GetModuleError(EarthView.World.License.EVLICENSEMODULE module, string value) { IntPtr __ptr = EarthView_World_License_CLicense_getModuleError_EVString_EVLicenseModule_EVString(this.NativeObject, module, value); string ret = Marshal.PtrToStringAnsi(__ptr); ClassFactory.FreeString(ref __ptr); return(ret); }
private static extern int EarthView_World_License_CLicense_initialize_EVLicenseResult_EVLicenseModule_EVString(IntPtr pNativeObject, EarthView.World.License.EVLICENSEMODULE module, string value);
private static extern IntPtr EarthView_World_License_CLicense_getModuleError_EVString_EVLicenseModule_EVString(IntPtr pNativeObject, EarthView.World.License.EVLICENSEMODULE module, string value);
/// <summary> /// 是否正式版 /// <summary> /// <param name="module">许可模块枚举</param> /// <param name="value">模块字符串表示 /// 如果许可模块为自定义,则value有效,用作判断 /// 反之,value无效。</param> /// <returns>正式版,true;试用版,false</returns> public bool IsOffical(EarthView.World.License.EVLICENSEMODULE module, string value) { byte ret = EarthView_World_License_CLicense_isOffical_ev_bool_EVLicenseModule_EVString(this.NativeObject, module, value); return(Convert.ToBoolean(ret)); }
private static extern byte EarthView_World_License_CLicense_isOffical_ev_bool_EVLicenseModule_EVString(IntPtr pNativeObject, EarthView.World.License.EVLICENSEMODULE module, string value);
/// <summary> /// 获取模块初始化状态 /// <summary> /// <param name="module">许可模块枚举</param> /// <param name="value">模块字符串表示 /// 如果许可模块为自定义,则value有效,用作判断 /// 反之,value无效。</param> /// <returns>模块状态</returns> public EarthView.World.License.EVLICENSESTATUSTYPE GetModuleStatus(EarthView.World.License.EVLICENSEMODULE module, string value) { int ret = EarthView_World_License_CLicense_getModuleStatus_EVLicenseStatusType_EVLicenseModule_EVString(this.NativeObject, module, value); return((EarthView.World.License.EVLICENSESTATUSTYPE)ret); }
private static extern int EarthView_World_License_CLicense_getModuleStatus_EVLicenseStatusType_EVLicenseModule_EVString(IntPtr pNativeObject, EarthView.World.License.EVLICENSEMODULE module, string value);
/// <summary> /// 反注册模块许可 /// <summary> /// <param name="module">许可模块枚举</param> /// <param name="value">模块字符串表示 /// 如果许可模块为自定义,则value有效,用作判断 /// 反之,value无效。</param> /// <returns>许可结果枚举</returns> public EarthView.World.License.EVLICENSERESULT Uninitialize(EarthView.World.License.EVLICENSEMODULE module, string value) { int ret = EarthView_World_License_CLicense_uninitialize_EVLicenseResult_EVLicenseModule_EVString(this.NativeObject, module, value); return((EarthView.World.License.EVLICENSERESULT)ret); }