You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 satır
769B

  1. #ifndef MISC_H
  2. #define MISC_H
  3. /**
  4. \brief Checks if the page at addr is executable
  5. */
  6. BOOL is_executable(LPVOID addr);
  7. /**
  8. \brief Checks if the process is running on WOW64 by examing Heaven's Gate
  9. */
  10. BOOL is_WOW64();
  11. /**
  12. \brief Computes the djb2 hash of the input string
  13. \param str The data to be hashed
  14. \return The value.
  15. */
  16. DWORD hash(const char* str);
  17. /**
  18. \brief Computes the djb2 hash of the input
  19. \param buf The data to be hashed
  20. \param sz The size of the data
  21. \return The value.
  22. */
  23. DWORD hash(const unsigned char* buf, const size_t sz);
  24. /**
  25. \brief Prints a small summarization of the current OS
  26. */
  27. VOID print_os_info();
  28. BOOL is_Win8();
  29. #define GET_KUSER_SHARED_DATA() ((_KUSER_SHARED_DATA*)0x7FFE0000)
  30. #endif