GetProcAddress is a function in the Windows API for getting addresses of functions in dynamically loaded libraries
Questions tagged [getprocaddress]
106 questions
3
votes
1 answer
GetProcAddress fails to run when compiled under Delphi XE6 x64
The following GetProcAddress code fails when compiled under Delphi XE6 x64. It runs fine when compiled under Delphi x86. Could you help to comment what is done wrong ?
program Project11;
{$APPTYPE CONSOLE}
{$R *.res}
uses
SysUtils;
var
…

SOUser
- 3,802
- 5
- 33
- 63
3
votes
2 answers
Build and override a simple Winelib DLL
I have a Windows executable that load a library and I want to create a Winelib DLL that will overide the Windows DLL. It's been 2 days that I search and try but it won't work ! Please help me !
Basically I create mydll.c and mydll.spec to build the…

HiryuuTRT
- 31
- 3
3
votes
1 answer
Get procedure/function address of another processe
I'm writing a program that show the thread list of all opened process.
With a similiar program (Process Explorer), I can see the thread list, with some informations, like Thread ID, Priority, Start address, etc.
I'm able to retrieve all these…

paulohr
- 576
- 1
- 9
- 24
2
votes
2 answers
C++ how to dynamically load a 3rd party DLL file
I need to integrate a 3rd party DLL file with my application, I have only the .DLL and the .pdf documentation of the DLL.
This is the pdf of the dll: http://www.whiteboxrobotics.com/Support/pdf/PC-BOT_dotNet_v1.0_documentation.pdf
I can load the DLL…

Matekk
- 683
- 2
- 8
- 21
2
votes
1 answer
Using OpenMP and Intel Visual Fortran with Windows GetProcAddress
I am using the Intel Fortran Compiler 15.0 via the Microsoft Visual Studio 2015 IDE. I am learning OpenMP to (eventually) run sections of my code in parallel. My code will necessitate loading subroutines from .dlls. I have the following program that…

A_Weiss
- 21
- 2
2
votes
1 answer
How to Get Remote Proc address of injected DLL into another process
This application is created
1) Console Application
2) InjectedDLL - DLL Project for inject into the process
1) the console application i have taken notepad.exe process id and inject my DLL into the notepad.
2) I have Created one exported method in…

ginoyaha
- 51
- 2
2
votes
1 answer
'dll_file' could be '0': This does not adhere to the specification for the function 'GetProcAddress'
So I would like to use the DLL that I created, and I have this really weird warning I didn't see anyone has this one. I checked if LoadLibray returns "NULL", and this is not the case.
typedef DATA_BLOB(*encryption_decryption)(DATA_BLOB,…

Patch
- 694
- 1
- 10
- 29
2
votes
1 answer
Loading symbols from a DLL loaded with a non-standard path that forward to another DLL
I'm trying to dynamically load a DLL (python3.dll) which isn't on the normal search path. I can load it with an altered search path, but when I do GetProcAddress, it's failing (because the function I'm loading forwards to another DLL,…

Paul Moore
- 6,569
- 6
- 40
- 47
2
votes
1 answer
Addresses of Delphi and C++ WinAPI functions differ when they shouldn't
In C++, if you try to get a function pointer of a Windows API function, that pointer points to the same address you would get if you used GetProcAddress on the name of that function and it's respective module. For example:
&MessageBoxA ==…

みっつ
- 23
- 2
2
votes
2 answers
How to load dll dynamically and pass/get value to it?
In DllImport I can do this:
[DllImport(".../Desktop/Calculate.dll", CallingConvention = CallingConvention.Cdecl)]
private static extern int Sub(int a, int b);
But I want to decide which dll to load at run time.
So I'm not using DllImport but try…

DaveG
- 491
- 1
- 6
- 19
2
votes
2 answers
clean way to explicitly load library
I am looking for a clean way to explicitly load library. Most often, I have a LIB and DLL pair so the LIB will handle all the "load stuff" and I can directly call the function in the dll. When doing this explicitly, I need to do sort of the…

Ronald Ku
- 319
- 2
- 14
2
votes
1 answer
c++ WINAPI call exported function via GetProcAddress
Im trying to call an exported function from a DLL by grabbing its function pointer through GetProcAddress but upon calling the function the application crashes.
I used dependencywalker to see if the exported functions have the correct name. The…

MircoProgram
- 295
- 1
- 20
2
votes
1 answer
C++ GetProcAddress 64bit returns 32bit address
I have been searching for a while and didnt find an appropriate answer for the following problem:
I'm injecting a dll into a target process while inside the dll, I try to call an exported function which address I want to receive my calling…

Trickzter
- 471
- 3
- 14
2
votes
2 answers
How to resolve access violation writing location when calling dll method
I'm using GetProcAddress to gain access to a standard Isapi Filter DLL method - the GetFilterVersion method which takes a pointer to a HTTP_FILTER_VERSION structure.…

user3390835
- 21
- 3
2
votes
2 answers
GetProcAddress for importing a decorated C++ function into C++
In Visual C++ 2013, I'm trying to export a function from a 'plugin' project:
void registerFactories(FactoryRegister & factoryRegister);
Which is compliled into a dynamic dll which will be linked at runtime by an 'application' project.…

Elliot Woods
- 834
- 11
- 20