Extended .NET SDK Documentation 2024 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
53 public virtual int CheckOutLicense() {
56 return ret;
57 }
58
59 public virtual int CheckInLicense() {
62 return ret;
63 }
64
65 public virtual bool IsLicenseCheckedOut() {
68 return ret;
69 }
70
71 public virtual bool IsTrialExpired() {
74 return ret;
75 }
76
77 public virtual bool IsLicenseHealthy() {
80 return ret;
81 }
82
83 public virtual bool IsNetworkConnectionLost() {
86 return ret;
87 }
88
89 public virtual int GetLicenseType() {
92 return ret;
93 }
94
95 public virtual bool IsFullVersion() {
98 return ret;
99 }
100
101 public virtual bool IsUnregisteredVersion() {
104 return ret;
105 }
106
107 public virtual bool IsTrialVersion() {
110 return ret;
111 }
112
113 public virtual int GetLicenseDays() {
116 return ret;
117 }
118
119 public virtual CFxString GetLicenseOptions() {
122 return ret;
123 }
124
125 public virtual CFxString GetHostID(bool bComputerHostID) {
126 CFxString ret = new CFxString(PCADGlobalsPINVOKE.CFxLicenseInfo_GetHostID(swigCPtr, bComputerHostID), true);
128 return ret;
129 }
130
131 public virtual CFxString GetLicenseHostId() {
134 return ret;
135 }
136
137 public virtual int IsProductKeyValid(CFxString productKey) {
140 return ret;
141 }
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
155 public virtual CFxString GetLicensePath() {
158 return ret;
159 }
160
161 public virtual int GetRoamingLicenseMaxDays() {
164 return ret;
165 }
166
167 public virtual int GetRoamingLicenseMaxShares() {
170 return ret;
171 }
172
173 public virtual int GetRoamingLicenseMaxCount() {
176 return ret;
177 }
178
179 public virtual int GetRoamingProductMaxCount() {
182 return ret;
183 }
184
185 public virtual int GetRoamingProductCurrentCount() {
188 return ret;
189 }
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
203 public virtual CFxString GetGde() {
206 return ret;
207 }
208
209 public virtual CFxString GetVersion() {
212 return ret;
213 }
214
215 public virtual bool IsPrerelease() {
218 return ret;
219 }
220
221 public virtual bool AllowsDongleActivation() {
224 return ret;
225 }
226
227 public virtual bool InAppleSandbox() {
230 return ret;
231 }
232
233 public virtual bool IsExtendedApiEnabled() {
236 return ret;
237 }
238
239 public virtual bool IsMFCUIEnabled() {
242 return ret;
243 }
244
245 public virtual bool IsLispEnabled() {
248 return ret;
249 }
250
251 public virtual void DisableLisp() {
254 }
255
256 public virtual void EnableLisp() {
259 }
260
261 public virtual bool IsFibersEnabled() {
264 return ret;
265 }
266
267 public virtual bool IsDWFEnabled() {
270 return ret;
271 }
272
273 public virtual void DisableDWF() {
276 }
277
278 public virtual bool IsDWFSaveEnabled() {
281 return ret;
282 }
283
284 public virtual bool IsSHPEnabled() {
287 return ret;
288 }
289
290 public virtual void CleanUp() {
293 }
294
295 public virtual bool ValidateDongle() {
298 return ret;
299 }
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 bool IsLicenseHealthy()
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)