Added static binary tools collection (originally in SVN archive)
This commit is contained in:
9
static/PEiD-0.95-20081103/pluginsdk/C++/defs.h
Normal file
9
static/PEiD-0.95-20081103/pluginsdk/C++/defs.h
Normal file
@ -0,0 +1,9 @@
|
||||
//#include <windows.h>
|
||||
#ifdef _DLLMACRO
|
||||
#define DllExport __declspec(dllexport)
|
||||
#else
|
||||
#define DllExport __declspec(dllimport)
|
||||
#endif
|
||||
|
||||
DllExport DWORD DoMyJob(HWND hMainDlg, char *szFname, DWORD lpReserved, LPVOID lpParam);
|
||||
DllExport LPSTR LoadDll();
|
||||
40
static/PEiD-0.95-20081103/pluginsdk/C++/null.c
Normal file
40
static/PEiD-0.95-20081103/pluginsdk/C++/null.c
Normal file
@ -0,0 +1,40 @@
|
||||
#include <windows.h>
|
||||
#include "defs.h"
|
||||
|
||||
DWORD DoMyJob(HWND hMainDlg, char *szFname, DWORD lpReserved, LPVOID lpParam)
|
||||
{
|
||||
//hMainDlg: HWND of PEiD window
|
||||
//szFname: Filename
|
||||
//lpReserved: PEiD passes 'PEiD' as the value
|
||||
//lpParam: NULL passed, for future use
|
||||
|
||||
// Write your main code here
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
LPSTR LoadDll()
|
||||
{
|
||||
return "Name of the plugin";
|
||||
}
|
||||
|
||||
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
||||
{
|
||||
switch(fdwReason)
|
||||
{
|
||||
case DLL_PROCESS_ATTACH:
|
||||
break;
|
||||
|
||||
case DLL_THREAD_ATTACH:
|
||||
break;
|
||||
|
||||
case DLL_THREAD_DETACH:
|
||||
break;
|
||||
|
||||
case DLL_PROCESS_DETACH:
|
||||
break;
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user