Alex Ionescu wrote:
Shouldn't kernel not use unicode_strings + rtl, and just stay within the domain of normal string functions and kernel32 stuff?
there's nothing wrong with using UNICODE_STRINGs and RTl in kernel32, it's used in many places for system calls
Also, shouldn't the DllDirectory be in the registry, and not some local var that gets erased every time you reboot?
No. It is a global variable that stores a path (not even verifies it) that is used with priority in LoadLibrary(Ex)(). It doesn't query/store anything. The implementation works fine, I wrote a small test application before I committed it.
Best Regards Thomas