mirror of
https://github.com/fancycode/MemoryModule
synced 2026-06-06 15:44:28 +00:00
22 lines
416 B
C++
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;
|
|
}
|
|
|
|
} |