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