/// <summary> /// Gets the company associated with the license user. /// </summary> /// <returns>Returns the license user company.</returns> public static string GetLicenseUserCompany() { var builder = new StringBuilder(256); int status; if (LexActivatorNative.IsWindows()) { status = IntPtr.Size == 4 ? LexActivatorNative.GetLicenseUserCompany_x86(builder, builder.Capacity) : LexActivatorNative.GetLicenseUserCompany(builder, builder.Capacity); } else { status = LexActivatorNative.GetLicenseUserCompanyA(builder, builder.Capacity); } if (LexStatusCodes.LA_OK == status) { return(builder.ToString()); } throw new LexActivatorException(status); }