Hacker News new | ask | show | jobs
by Const-me 1794 days ago
See this answer for slightly more info https://stackoverflow.com/a/54855964/126995

Just don’t use `LoadLibraryA` like the OP, that API is only there for compatibility with software written for Windows 95/98/Me. Use UTF-16 encoding for the path instead, and `LoadLibraryW` function for the remote thread address.

2 comments

This is all fantastic info and I will likely fold this into the next post in the series about maldev with Nim. Thank you for linking to the StackOverflow page!
Yes, that makes perfect sense.

With ANSI/OEM encoding you will have problems eventually.

Also thanks for the link, some good tips in there too.