INFO: Alternatives to Using GetProcAddress() With LoadLibrary() (92862)
The information in this article applies to:
- Microsoft Win32 Application Programming Interface (API), when used with:
- the operating system: Microsoft Windows NT
- the operating system: Microsoft Windows 95
- the operating system: Microsoft Windows 2000
- the operating system: Microsoft Windows XP
This article was previously published under Q92862 SUMMARY
When loading a DLL with LoadLibrary(), an alternative to calling
GetProcAddress() for each of your DLL entry points is to have the DLL
initialization function initialize a global structure or array containing
the addresses of these DLL entry points, then call a DLL function from your
executable which will return the address of this structure or array to your
executable. You can then call your DLL functions via the function pointers
in this structure or array.
Modification Type: | Minor | Last Reviewed: | 2/14/2005 |
---|
Keywords: | kbDLL kbinfo kbKernBase KB92862 |
---|
|