[shell-coding] GetProcAddress() with callback functions
- From: "Daniel Razafsky" <draz_01@xxxxxxxxxxx>
- To: shell-coding@xxxxxxxxxxxxx
- Date: Mon, 12 Aug 2002 22:16:43 -0500
Hello all. None of you have ever heard from me before but I've been lurking on the mail list for quite some time now and am beginning to teach myself Win32 programming. While attempting to create a hotkey application using windows hooks I came across a problem I was hoping someone could help me with.
After successfully loading the dll using LoadLibrary, I'm attempting to get a pointer to a CALLBACK function like so
FARPROC pFunc = GetProcAddress(hDll, "KeyProc");
for some reason, this is returning NULL. If I change the name of the function to something that isn't a CALLBACK function it works fine though. Is there something special about CALLBACK functions that I'm missing? All help is appreciated.
Dan
Send and receive Hotmail on your mobile device: Click Here
__________________________________________________
Subscription options and archive:
http://www.freelists.org/list/shell-coding
- Follow-Ups:
- [shell-coding] how to 'load' shell32
- From: e-sushi
- [shell-coding] Re: GetProcAddress() with callback functions
- From: Kevin Schaffer
Other related posts:
- » [shell-coding] GetProcAddress() with callback functions
- » [shell-coding] Re: GetProcAddress() with callback functions
Hello all. None of you have ever heard from me before but I've been lurking on the mail list for quite some time now and am beginning to teach myself Win32 programming. While attempting to create a hotkey application using windows hooks I came across a problem I was hoping someone could help me with.
After successfully loading the dll using LoadLibrary, I'm attempting to get a pointer to a CALLBACK function like so
FARPROC pFunc = GetProcAddress(hDll, "KeyProc");
for some reason, this is returning NULL. If I change the name of the function to something that isn't a CALLBACK function it works fine though. Is there something special about CALLBACK functions that I'm missing? All help is appreciated.
Dan
- [shell-coding] how to 'load' shell32
- From: e-sushi
- [shell-coding] Re: GetProcAddress() with callback functions
- From: Kevin Schaffer