コード例 #1
0
                /// <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);
                }
コード例 #2
0
 private static extern int EarthView_World_License_CLicense_initialize_EVLicenseResult_EVLicenseModule_EVString(IntPtr pNativeObject, EarthView.World.License.EVLICENSEMODULE module, string value);
コード例 #3
0
 private static extern IntPtr EarthView_World_License_CLicense_getModuleError_EVString_EVLicenseModule_EVString(IntPtr pNativeObject, EarthView.World.License.EVLICENSEMODULE module, string value);
コード例 #4
0
                /// <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));
                }
コード例 #5
0
 private static extern byte EarthView_World_License_CLicense_isOffical_ev_bool_EVLicenseModule_EVString(IntPtr pNativeObject, EarthView.World.License.EVLICENSEMODULE module, string value);
コード例 #6
0
                /// <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);
                }
コード例 #7
0
 private static extern int EarthView_World_License_CLicense_getModuleStatus_EVLicenseStatusType_EVLicenseModule_EVString(IntPtr pNativeObject, EarthView.World.License.EVLICENSEMODULE module, string value);
コード例 #8
0
                /// <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);
                }