I am working on a project to generate a dummy DLL for offline testing. We have the real DLL and its header file, though they seem incompatible. The names in the DLL are unmangled but the function forward declarations declarations are called out as __stdcall
:
example.h
DWORD __stdcall DoSomething(byte aByte);
example.dll in Dependency Walker:
2 (0x0002) 2 (0x0002) DoSomething 0x000831C0
So far as I've read, if it is possible to export a function in the __stdcall
convention, its name should read in dependency walker as:
2 (0x0002) 2 (0x0002) _DoSomething@1 0x000831C0
Does this imply our header file does not correspond to the compiled DLL or am I missing something?
Ultimately, how do I form the export of the dummy function to behave the same way as the real DLL I am emulating?