Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- BOOL __stdcall hitlerizeProc(HWND hwnd,LPVOID)
- {
- WINDOWINFO wi;
- wi.cbSize = sizeof(WINDOWINFO);
- GetWindowInfo(hwnd,&wi);
- if(wi.atomWindowType == 0xc017)//button
- {
- SetWindowText(hwnd,L"Hitler!");
- InvalidateRect(hwnd,NULL,TRUE);
- }
- EnumChildWindows(hwnd,(WNDENUMPROC) hitlerizeProc,NULL);
- return TRUE;
- }
- int main()
- {
- EnumWindows((WNDENUMPROC) hitlerizeProc,NULL);
- return 0;
- }
Add Comment
Please, Sign In to add comment