#include <windows.h>
#include <stdio.h>
LRESULT CALLBACK _HookWndProc(HWND hWnd, UINT nMsg, WPARAM wParam, LPARAM lParam)
{
return DefWindowProc(hWnd, nMsg, wParam, lParam);
}
int _stdcall WinMain(HINSTANCE g_hInstance, HINSTANCE v2, char *v3, int v4)
{
HANDLE h;
MSG msg;
MessageBox(0, "", "", 0);
h = CreateWindow("Dialog", "My First Button", 0x14ce0844, 75, 70, 140, 25, 0, 0, g_hInstance, NULL);
SetWindowLong(h, GWL_WNDPROC, (LONG)_HookWndProc);
ShowWindow(h, SW_SHOWNORMAL);
UpdateWindow(h);
while(GetMessage(&msg, 0, 0, 0))
{
TranslateMessage(&msg);
DispatchMessage(&msg, 0, 0, 0);
}
}
[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课