Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
CFxLicenseInfo.cs
Go to the documentation of this file.
1//------------------------------------------------------------------------------
2// <auto-generated />
3//
4// This file was automatically generated by SWIG (http://www.swig.org).
5// Version 4.0.2
6//
7// Do not make changes to this file unless you know what you are doing--modify
8// the SWIG interface file instead.
9//------------------------------------------------------------------------------
10
11namespace PCAD_DOT_NET {
12
13using System;
14using System.Runtime.InteropServices;
15using Teigha.Core;
16using Teigha.TD;
17
18public class CFxLicenseInfo : global::System.IDisposable {
19 private Object locker = new Object();
20 private HandleRef swigCPtr;
21 protected bool swigCMemOwn;
22 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
23 public CFxLicenseInfo(IntPtr cPtr, bool cMemoryOwn) {
24 swigCMemOwn = cMemoryOwn;
25 swigCPtr = new HandleRef(this, cPtr);
26 }
27 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
28 public static HandleRef getCPtr(CFxLicenseInfo obj) {
29 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
30 }
31
33 Dispose(false);
34 }
35
36 public void Dispose() {
37 Dispose(true);
38 global::System.GC.SuppressFinalize(this);
39 }
40
41 protected virtual void Dispose(bool disposing) {
42 lock(this) {
43 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
44 if (swigCMemOwn) {
45 swigCMemOwn = false;
47 }
48 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
49 }
50 }
51 }
52
58
64
70
76
82
88
94
100
106
112
118
124
125 public virtual CFxString GetHostID(bool bComputerHostID) {
126 CFxString ret = new CFxString(PCADGlobalsPINVOKE.CFxLicenseInfo_GetHostID(swigCPtr, bComputerHostID), true);
128 return ret;
129 }
130
136
142
143 public virtual int IsActivationCodeValid(CFxString sActivationCode) {
144 int ret = PCADGlobalsPINVOKE.CFxLicenseInfo_IsActivationCodeValid(swigCPtr, CFxString.getCPtr(sActivationCode));
146 return ret;
147 }
148
149 public virtual int SaveActivationCode(CFxString sActivationCode) {
150 int ret = PCADGlobalsPINVOKE.CFxLicenseInfo_SaveActivationCode(swigCPtr, CFxString.getCPtr(sActivationCode));
152 return ret;
153 }
154
160
166
172
178
184
190
191 public virtual bool IsRoaming() {
192 bool ret = PCADGlobalsPINVOKE.CFxLicenseInfo_IsRoaming(swigCPtr);
194 return ret;
195 }
196
197 public virtual int GetError() {
200 return ret;
201 }
202
208
214
220
226
232
238
244
250
255
260
266
272
277
283
289
294
300
301 public const int Unknown_Version = 0;
302 public const int Unregistered_Version = 1;
303 public const int Trial_Version = 2;
304 public const int Full_Version = 3;
305 public const int Floating_Version = 4;
306 public const int Roaming_Version = 5;
307 public const int Dongle_Version = 6;
308 public const int LicenseToGo_Version = 7;
309 public const int Unregistered_Was_Network = 8;
310 public const int Offline_Version = 9;
311
312}
313
314}
virtual CFxString GetLicensePath()
virtual int GetRoamingProductCurrentCount()
virtual CFxString GetGde()
virtual int GetRoamingLicenseMaxDays()
virtual bool IsLicenseCheckedOut()
virtual CFxString GetLicenseHostId()
virtual int GetRoamingLicenseMaxShares()
virtual CFxString GetVersion()
virtual bool IsExtendedApiEnabled()
virtual int IsActivationCodeValid(CFxString sActivationCode)
CFxLicenseInfo(IntPtr cPtr, bool cMemoryOwn)
virtual int GetRoamingLicenseMaxCount()
virtual int IsProductKeyValid(CFxString productKey)
virtual int SaveActivationCode(CFxString sActivationCode)
virtual CFxString GetHostID(bool bComputerHostID)
virtual bool IsUnregisteredVersion()
virtual void Dispose(bool disposing)
virtual bool AllowsDongleActivation()
static HandleRef getCPtr(CFxLicenseInfo obj)
virtual CFxString GetLicenseOptions()
virtual bool IsNetworkConnectionLost()
virtual int GetRoamingProductMaxCount()
static HandleRef getCPtr(CFxString obj)
Definition CFxString.cs:28
static int CFxLicenseInfo_GetRoamingLicenseMaxCount(global::System.Runtime.InteropServices.HandleRef jarg1)
static int CFxLicenseInfo_SaveActivationCode(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static int CFxLicenseInfo_GetLicenseDays(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr CFxLicenseInfo_GetLicenseOptions(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxLicenseInfo_IsTrialVersion(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxLicenseInfo_CleanUp(global::System.Runtime.InteropServices.HandleRef jarg1)
static int CFxLicenseInfo_GetLicenseType(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxLicenseInfo_IsFibersEnabled(global::System.Runtime.InteropServices.HandleRef jarg1)
static int CFxLicenseInfo_GetRoamingLicenseMaxShares(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxLicenseInfo_DisableDWF(global::System.Runtime.InteropServices.HandleRef jarg1)
static int CFxLicenseInfo_GetRoamingProductCurrentCount(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxLicenseInfo_IsFullVersion(global::System.Runtime.InteropServices.HandleRef jarg1)
static int CFxLicenseInfo_CheckInLicense(global::System.Runtime.InteropServices.HandleRef jarg1)
static int CFxLicenseInfo_IsProductKeyValid(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr CFxLicenseInfo_GetHostID(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static global::System.IntPtr CFxLicenseInfo_GetLicensePath(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxLicenseInfo_IsDWFSaveEnabled(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxLicenseInfo_IsNetworkConnectionLost(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr CFxLicenseInfo_GetVersion(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxLicenseInfo_IsDWFEnabled(global::System.Runtime.InteropServices.HandleRef jarg1)
static int CFxLicenseInfo_CheckOutLicense(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxLicenseInfo_DisableLisp(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr CFxLicenseInfo_GetLicenseHostId(global::System.Runtime.InteropServices.HandleRef jarg1)
static int CFxLicenseInfo_IsActivationCodeValid(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr CFxLicenseInfo_GetGde(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxLicenseInfo_AllowsDongleActivation(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_CFxLicenseInfo(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxLicenseInfo_IsTrialExpired(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxLicenseInfo_IsUnregisteredVersion(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxLicenseInfo_IsMFCUIEnabled(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxLicenseInfo_IsLicenseHealthy(global::System.Runtime.InteropServices.HandleRef jarg1)
static int CFxLicenseInfo_GetRoamingProductMaxCount(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxLicenseInfo_IsExtendedApiEnabled(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxLicenseInfo_IsLicenseCheckedOut(global::System.Runtime.InteropServices.HandleRef jarg1)
static int CFxLicenseInfo_GetError(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxLicenseInfo_IsPrerelease(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxLicenseInfo_InAppleSandbox(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxLicenseInfo_ValidateDongle(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxLicenseInfo_IsLispEnabled(global::System.Runtime.InteropServices.HandleRef jarg1)
static int CFxLicenseInfo_GetRoamingLicenseMaxDays(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxLicenseInfo_IsRoaming(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxLicenseInfo_IsSHPEnabled(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxLicenseInfo_EnableLisp(global::System.Runtime.InteropServices.HandleRef jarg1)