I want to create a dll that loads an ini file DLL_PROCESS_ATTACH. The is in the same directory as the executable loading the dll. Can this be done safely with respect to the loader lock?
regards Tobias
According to Microsoft's best practices for DLLs, it is safe to open, read and write files.
Do's and don'ts reproduced in summary below
EDIT following on from your clarification in comments, yes it is safe to call GetModuleFileName
because, as MSDN says (at the bottom of the page) that function is implemented in kernel32.dll
(see above "safe" section).