2019-09-07 15:51:30 +00:00
|
|
|
#ifndef GENERALLOADLIBRARY_H
|
|
|
|
#define GENERALLOADLIBRARY_H
|
|
|
|
|
|
|
|
#include <windows.h>
|
|
|
|
|
2019-09-25 18:08:44 +00:00
|
|
|
#ifndef CALLBACK
|
|
|
|
#define CALLBACK WINAPI
|
|
|
|
#endif
|
|
|
|
|
2019-09-07 15:51:30 +00:00
|
|
|
HMODULE MyLoadLibrary(LPCSTR, void *, void *);
|
2019-09-26 12:02:43 +00:00
|
|
|
HMODULE MyLoadLibraryEx(LPCSTR, const PVOID, PVOID, PVOID, DWORD);
|
2019-09-25 11:29:54 +00:00
|
|
|
|
2019-09-25 18:08:44 +00:00
|
|
|
HMODULE CALLBACK MyLoadLibraryA(LPCSTR);
|
|
|
|
HMODULE CALLBACK MyLoadLibraryW(LPCWSTR);
|
|
|
|
HMODULE CALLBACK MyLoadLibraryExA(LPCSTR name, HANDLE hFile, DWORD dwFlags);
|
|
|
|
HMODULE CALLBACK MyLoadLibraryExW(LPCWSTR name, HANDLE hFile, DWORD dwFlags);
|
|
|
|
HMODULE CALLBACK MyGetModuleHandleA(LPCSTR name);
|
|
|
|
HMODULE CALLBACK MyGetModuleHandleW(LPCWSTR name);
|
2019-09-26 12:02:43 +00:00
|
|
|
DWORD CALLBACK MyGetModuleFileNameW(HMODULE, LPWSTR, DWORD);
|
|
|
|
DWORD CALLBACK MyGetModuleFileNameA(HMODULE, LPSTR, DWORD);
|
2019-09-25 18:08:44 +00:00
|
|
|
FARPROC CALLBACK MyGetProcAddress(HMODULE, LPCSTR);
|
|
|
|
BOOL CALLBACK MyFreeLibrary(HMODULE module);
|
2019-09-24 18:27:23 +00:00
|
|
|
|
2019-09-26 12:02:43 +00:00
|
|
|
HRSRC CALLBACK MyFindResourceA(HMODULE module, LPCSTR name, LPCSTR type);
|
|
|
|
HRSRC CALLBACK MyFindResourceW(HMODULE module, LPCWSTR name, LPCWSTR type);
|
|
|
|
HRSRC CALLBACK MyFindResourceExA(HMODULE hModule, LPCSTR name, LPCSTR type, WORD language);
|
|
|
|
HRSRC CALLBACK MyFindResourceExW(HMODULE hModule, LPCWSTR name, LPCWSTR type, WORD language);
|
|
|
|
DWORD CALLBACK MySizeofResource(HMODULE module, HRSRC resource);
|
|
|
|
LPVOID CALLBACK MyLoadResource(HMODULE module, HRSRC resource);
|
|
|
|
int CALLBACK MyLoadStringA(HMODULE module, UINT id, LPSTR buffer, int maxsize);
|
|
|
|
int CALLBACK MyLoadStringW(HMODULE module, UINT id, LPWSTR buffer, int maxsize);
|
|
|
|
|
2019-09-07 15:51:30 +00:00
|
|
|
FARPROC MyFindProcAddress(LPCSTR modulename, LPCSTR procname);
|
|
|
|
|
|
|
|
VOID MySetLibraries(PVOID pLibraries);
|
|
|
|
PVOID MyGetLibraries();
|
|
|
|
|
|
|
|
#ifndef DLL_QUERY_HMODULE
|
|
|
|
#define DLL_QUERY_HMODULE 6
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|