started writing PEB compatible code

This commit is contained in:
Joachim Bauch
2005-02-01 23:09:49 +00:00
parent e952dd3cfa
commit 9399210d23
6 changed files with 353 additions and 174 deletions
+12
View File
@@ -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;