#if !defined(MOZ_ZUCCHINI)
using base::win::internal::ScopedHandleVerifier; #endif// !defined(MOZ_ZUCCHINI)
std::ostream& operator<<(std::ostream& os, HandleOperation operation) { switch (operation) { case HandleOperation::kHandleAlreadyTracked: return os << "Handle Already Tracked"; case HandleOperation::kCloseHandleNotTracked: return os << "Closing an untracked handle"; case HandleOperation::kCloseHandleNotOwner: return os << "Closing a handle owned by something else"; case HandleOperation::kCloseHandleHook: return os << "CloseHandleHook validation failure"; case HandleOperation::kDuplicateHandleHook: return os << "DuplicateHandleHook validation failure";
}
}
// Static. bool HandleTraits::CloseHandle(HANDLE handle) { #ifdefined(MOZ_ZUCCHINI) // Taken from scoped_handle_verifier.cc if (!::CloseHandle(handle))
CHECK(false) << "CloseHandle failed"; return true; #else return ScopedHandleVerifier::Get()->CloseHandle(handle); #endif// defined(MOZ_ZUCCHINI)
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.