Files
2005-02-01 23:09:49 +00:00

22 lines
416 B
C++

#include <windows.h>
#include <stdio.h>
#include "SampleDLL.h"
extern "C" {
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
printf("DllMain called:\n");
printf("Instance: %x\n", (DWORD)hinstDLL);
printf("Reason: %d\n", fdwReason);
printf("Reserved: %x\n", (DWORD)lpvReserved);
return 1;
}
SAMPLEDLL_API int addNumbers(int a, int b)
{
return a + b;
}
}