-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathLoadC.c
More file actions
27 lines (22 loc) · 809 Bytes
/
Copy pathLoadC.c
File metadata and controls
27 lines (22 loc) · 809 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include <windows.h>
#include <stdio.h>
typedef void (*MyMessageBox)(void*,char*);
typedef void (*MyMessageBoxConfig)();
void INITCDLL(char* file,char* INITNAME,void* FuncName,void* MapList){
HMODULE hModule=LoadLibrary(file);
MyMessageBox NewMessageBox=(MyMessageBox)GetProcAddress(hModule,INITNAME);
return NewMessageBox(MapList,FuncName);
}
void READCONFIG(char* file,char* INITNAME){
HMODULE hModule=LoadLibrary(file);
MyMessageBoxConfig NewMessageBox=(MyMessageBox)GetProcAddress(hModule,INITNAME);
return NewMessageBox();
}
/*
typedef void (*MyMessageBox)(void*);
void Test(char file[],char FuncName[],void *MapList){
HMODULE hModule=LoadLibrary(file);
MyMessageBox NewMessageBox=(MyMessageBox)GetProcAddress(hModule,FuncName);
return NewMessageBox(MapList);
}
*/