Load system modules with full paths

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6647 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
anders_k 2015-11-29 13:54:35 +00:00
parent 3e416abd5c
commit 726bf760cd
5 changed files with 53 additions and 33 deletions

View file

@ -128,11 +128,14 @@ enum myGetProcAddressFunctions {
MGA_InitiateShutdown,
MGA_SHAutoComplete, // x64 can link to shlwapi directly but as long as MGA_SHGetFolderPath is used we can stick with myGetProcAddress
MGA_SHGetFolderPath, // TODO: This can probably call something else directly on x64
#ifdef NSIS_SUPPORT_GETDLLVERSION
MGA_GetFileVersionInfoSize, // Version.dll exists in all Windows versions, it is delay loaded to avoid DLL hijacking [bug #1125]
MGA_GetFileVersionInfo,
MGA_VerQueryValue
#endif
};
HMODULE NSISCALL LoadSystemLibrary(LPCSTR name);
void*NSISCALL myGetProcAddress(const enum myGetProcAddressFunctions func);
void NSISCALL MessageLoop(UINT uCheckedMsg);
@ -142,7 +145,7 @@ void NSISCALL MessageLoop(UINT uCheckedMsg);
* the windows call and does the appropriate translation when
* appropriate.
*
* @param dllHandle Handle to the DLL loaded by LoadLibraryEx.
* @param dllHandle Handle to the DLL loaded by LoadLibrary[Ex].
* @param funcName The name of the function to get the address of.
* @return The pointer to the function. Null if failure.
*/