mirror of
https://github.com/fancycode/MemoryModule
synced 2026-06-06 15:44:28 +00:00
started writing PEB compatible code
This commit is contained in:
@@ -1,7 +1,19 @@
|
||||
#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;
|
||||
|
||||
Reference in New Issue
Block a user