GetProcAddress The GetProcAddress function returns the address of the specified exported dynamic-link library (DLL) function.
VB4-32,5,6
Declare Function GetProcAddress Lib "kernel32" Alias "GetProcAddress" (ByVal hModule As Long, ByVal lpProcName As String) As Long |
Operating Systems Supported |
Requires Windows NT 3.1 or later; Requires Windows 95 or later |
- hModule
Identifies the DLL module that contains the function. The LoadLibrary or GetModuleHandle function returns this handle.
- lpProcName
Points to a null-terminated string containing the function name, or specifies the function’s ordinal value. If this parameter is an ordinal value, it must be in the low-order word; the high-order word must be zero. |
If the function succeeds, the return value is the address of the DLL’s exported function.
If the function fails, the return value is NULL. To get extended error information, call GetLastError. |
|