[shell-coding] Re: GetProcAddress() with callback functions
From: Kevin Schaffer <kschaffe@xxxxxxxx>
To: shell-coding@xxxxxxxxxxxxx
Date: Tue, 13 Aug 2002 13:37:41 -0400
Sounds like it might be a name-mangling issue related to how
you're exporting the function. First of all, don't use
__declspec(dllexport). Instead create a .def file for your project
and put the following into it:
EXPORTS
KeyProc
(...)
Where (...) is replaced by the names of any other functions
you want to export.
--
Maduin
Daniel Razafsky wrote:
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.