The GetProcAddress function returns the address of the specified exported dynamic-link library (DLL) function. FARPROC GetProcAddress( HMODULE hModule, // handle to DLL module LPCSTR lpProcName // name of function ); ParametershModuleIdentifies the DLL module that contains the function. The LoadLibrary or GetModuleHandle function returns this handle. lpProcNamePoints 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 ValuesIf 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. If this parameter is an ordinal value, it must be in the low-order word; the high-order word must be zero. 如果参数是序数值,必须在低2字节上,高2字节必须为0.也就是序数范围0~65535.
LPCSTR lpProcName // name of function
);
ParametershModuleIdentifies the DLL module that contains the function. The LoadLibrary or GetModuleHandle function returns this handle. lpProcNamePoints 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 ValuesIf 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. If this parameter is an ordinal value, it must be in the low-order word; the high-order word must be zero.
如果参数是序数值,必须在低2字节上,高2字节必须为0.也就是序数范围0~65535.