/// <summary> /// Gets the license meter attribute allowed uses and total uses. /// </summary> /// <param name="name">name of the meter attribute</param> /// <returns>Returns the values of meter attribute allowed and total uses.</returns> public static LicenseMeterAttribute GetLicenseMeterAttribute(string name) { uint allowedUses = 0, totalUses = 0; int status; if (LexActivatorNative.IsWindows()) { status = IntPtr.Size == 4 ? LexActivatorNative.GetLicenseMeterAttribute_x86(name, ref allowedUses, ref totalUses) : LexActivatorNative.GetLicenseMeterAttribute(name, ref allowedUses, ref totalUses); } else { status = LexActivatorNative.GetLicenseMeterAttributeA(name, ref allowedUses, ref totalUses); } if (LexStatusCodes.LA_OK == status) { return(new LicenseMeterAttribute(name, allowedUses, totalUses)); } throw new LexActivatorException(status); }