+ // the declared type of the first EnumModulesProc() parameter changed in
+ // recent SDK versions and is no PCSTR instead of old PSTR, we know that
+ // it's const in version 11 and non-const in version 8 included with VC8
+ // (and earlier), suppose that it's only changed in version 11
+ #if defined(API_VERSION_NUMBER) && API_VERSION_NUMBER >= 11
+ typedef PCSTR NameStr_t;
+ #else
+ typedef PSTR NameStr_t;
+ #endif
+
+ // TODO: fix EnumerateLoadedModules() to use EnumerateLoadedModules64()
+ #ifdef __WIN64__
+ typedef DWORD64 DWORD_32_64;
+ #else
+ typedef DWORD DWORD_32_64;
+ #endif
+