ID Number: Q78327
3.00
WINDOWS
Summary:
The GetModuleHandle and LoadLibrary functions each return a HANDLE
datatype as documented; however, these two functions have distinct
purposes.
GetModuleHandle returns a module handle [the handle to the PSP
(program segment prefix)].
LoadLibrary calls the LoadModule function with a null lpParameterBlock
parameter. If the name of a library is specified in a call to
LoadLibrary, a module handle is returned. If the name of an executable
file is specified in the call to LoadLibrary, an instance handle is
returned.
In either case, functions that require a HANDLE-type parameter, such
as GetProcAddress, will recognize both types of handles.