Platform SDK: DLLs, Processes, and Threads

GetProcAddress32W

Use the GetProcAddress32W in 16-bit code retrieve a value that represents a function in a Win32 DLL.

DWORD FAR PASCAL GetProcAddress32W(
  DWORD hModule,   // handle to loaded library module
  LPCSTR lpszProc  // name of function
);

Parameters

hModule
[in] Handle to the loaded library module that contains the function. The LoadLibraryEx32W function returns this handle.
lpszProc
[in] Pointer to a null-terminated string containing the function name.

Return Values

Returns a 32-bit value if successful. This value must be passed as a parameter to the CallProcEx32W function rather than being used directly.

Remarks

Windows 95/98: This function releases the Win16Mutex. If this function is called from a 16-bit DLL, it can be reentered as soon as the 32-bit DLL entry-point function is called. This happens when another 32-bit process thunks to the 16-bit DLL or when another 16-bit DLL calls this 16-bit DLL. However, if this function is called in a 16-bit application and the 32-bit DLL entry-point function does not yield, the function is not reentered.

Requirements

  Windows NT/2000: Requires Windows NT 3.1 or later.
  Windows 95/98: Requires Windows 95 or later.
  Header: Declared in Wownt16.h.

See Also

Generic Thunks Overview, 16-bit Generic Thunk Functions, CallProcEx32W, LoadLibraryEx32W