Ejemplo n.º 1
0
 /// <summary>
 /// Convert the result of Win32 GetLastError() into a raised exception.
 /// </summary>
 public static void ThrowLastError()
 {
     ((HRESULT)Win32Error.GetLastError()).ThrowIfFailed();
     // Only expecting to call this when we're expecting a failed GetLastError()
     Assert.Fail();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Convert the result of Win32 GetLastError() into a raised exception.
 /// </summary>
 public static void ThrowLastError()
 {
     ((HRESULT)Win32Error.GetLastError()).ThrowIfFailed();
 }