A | B | C |  D | E | F |  G | H | I |  J | K | L |  M | N | O |  P | Q | R |  S | T | U |  V | W | X |  Y | Z



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

Library
Kernel32

Parameter Information
- 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.

Return Values
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.

Last update: 07 April 2006