Importing a DllMain winapi .dll into Visual Studio project C++
- by Bad Man
I have the .def file, .lib file, the .dll, the source files.
It's using WINAPI DllMain, all its functions follow that.
It's like this:
BOOL APIENTRY DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
return TRUE;
}
extern "C"
{
int WINAPI DoSomething() { return…