/// <summary> /// Gets the license type (node-locked or hosted-floating). /// </summary> /// <returns>Returns the license type.</returns> public static string GetLicenseType() { var builder = new StringBuilder(256); int status; if (LexActivatorNative.IsWindows()) { status = IntPtr.Size == 4 ? LexActivatorNative.GetLicenseType_x86(builder, builder.Capacity) : LexActivatorNative.GetLicenseType(builder, builder.Capacity); } else { status = LexActivatorNative.GetLicenseTypeA(builder, builder.Capacity); } if (LexStatusCodes.LA_OK == status) { return(builder.ToString()); } throw new LexActivatorException(status); }