All pastes #774770 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-11-15 11:53 UTC
rendered paste body
static const FARPROC origPMA =(FARPROC)((DWORD)GetProcAddress(GetModuleHandle("user32.dll"), "PostMessageA")+5);

_declspec(naked) BOOL WINAPI _postMsg(HWND hWnd, INT Msg, WPARAM wParam, LPARAM lParam)
{ 
	__asm 
	{ 
		mov edi,edi
		push ebp
		mov ebp,esp
		jmp origPMA
	 }
}