public static void ThrowIfFailed(this NTStatus status, string path = null)
 {
     if (status.Failed())
     {
         throw status.GetException(path);
     }
 }