/// <summary> /// Gets the license key used for activation. /// </summary> /// <returns>Returns the license key.</returns> public static string GetLicenseKey() { var builder = new StringBuilder(256); int status; if (LexActivatorNative.IsWindows()) { status = IntPtr.Size == 4 ? LexActivatorNative.GetLicenseKey_x86(builder, builder.Capacity) : LexActivatorNative.GetLicenseKey(builder, builder.Capacity); } else { status = LexActivatorNative.GetLicenseKeyA(builder, builder.Capacity); } if (LexStatusCodes.LA_OK == status) { return(builder.ToString()); } throw new LexActivatorException(status); }