runtime.h 560 B

1234567891011121314151617
  1. #pragma once
  2. namespace sunrise::client::hooks::egress {
  3. /** @return True only after the owning module is pinned and every lifetime guard is attached. */
  4. [[nodiscard]] bool install() noexcept;
  5. /** @return True when every required guard detour is attached. */
  6. [[nodiscard]] bool is_installed() noexcept;
  7. /**
  8. * Reports the guard's attach result per export. The guard installs from DllMain, before Core
  9. * logging exists, so the result is recorded there and logged here.
  10. */
  11. void report_installation() noexcept;
  12. } // namespace sunrise::client::hooks::egress