I'm trying to write library with method that can be executed with I can't seem to force generation of proper export name:rundll32.exe
, but
on 32bit configuration I get DoStuff(x,x,x,x)
on 64bit configuration I get DoStuff
Why is that?
Tools: Visual Studio 2012; Windows 8
Code:
extern "C" __declspec(dllexport) void __stdcall DoStuff(HWND hwnd, HINSTANCE hinst, LPSTR lpszCmdLine, int nCmdShow)
{
MessageBoxA(NULL, lpszCmdLine, "Cookies", 0);
}