/// <summary> /// Initializes a new instance of the <see cref="MmException"/> class. /// </summary> /// <param name="result">The result returned by the Windows API call</param> /// <param name="function">The name of the Windows API that failed</param> public MmException(MmResult result, string function) : base(MmException.ErrorMessage(result, function)) { this.result = result; this.function = function; }