// EXE
#include <windows.h>
#pragma comment(lib,"kernel32.lib")
#pragma comment(lib,"user32.lib")
#pragma comment(linker, "/SUBSYSTEM:windows")
#pragma comment(linker, "/ENTRY:main")
#pragma comment(linker, "/OPT:NOWIN98")
int main()
{
MessageBox(NULL, TEXT("www.dllhook.com"), TEXT("PiaoYun"), 0) ;
return 0 ;
}
// 3kb左右
// DLL
#include <Windows.h>
#pragma comment(lib,"msvcrt.lib")
#pragma comment(lib,"kernel32.lib")
#pragma comment(lib,"user32.lib")
//#pragma comment (linker, "/ALIGN:512")
#pragma comment(linker, "/OPT:NOWIN98")
//#pragma comment(linker, "/merge:.data=.PiaoYun")
//#pragma comment(linker, "/merge:.rdata=.PiaoYun")
BOOL __stdcall DllEntryPoint(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpReserved)
{
MessageBox(NULL, TEXT("www.dllhook.com"), TEXT("PiaoYun"), 0) ;
return TRUE;
}
// 3kb左右
发表评论