imports.h 329 B

12345678910111213141516
  1. #ifndef IMPORTS_H
  2. #define IMPORTS_H
  3. typedef BOOL (WINAPI *AttachConsole_ptr)(DWORD);
  4. typedef struct {
  5. HMODULE kernel32;
  6. AttachConsole_ptr AttachConsole;
  7. } imports_t;
  8. HMODULE get_dll(const char *, unsigned long *);
  9. FARPROC get_import(HMODULE, const char *, unsigned long *);
  10. int get_imports();
  11. void free_imports();
  12. #endif