For example at:
|
if (!strcmp(ImportDLLName, DLLName)) |
As some program imports using "KERNEL32.dll" naming while some use "KERNEL32.DLL", and so on.
I'm replacing it with strcasecmp by declaring this:
#ifdef _MSC_VER
//not #if defined(_WIN32) || defined(_WIN64) because we have strncasecmp in mingw
#define strncasecmp _strnicmp
#define strcasecmp _stricmp
#endif
PS: Not sure whether imported function names can be case-insensitive too or not
For example at:
DInput8HookingExample/MinimalDInput8Hook/Hook.cpp
Line 39 in b9b7e79
As some program imports using "KERNEL32.dll" naming while some use "KERNEL32.DLL", and so on.
I'm replacing it with
strcasecmpby declaring this:PS: Not sure whether imported function names can be case-insensitive too or not