Skip to content

Instantly share code, notes, and snippets.

@pkrumins
Created January 18, 2014 01:09
Show Gist options
  • Save pkrumins/8484697 to your computer and use it in GitHub Desktop.
Save pkrumins/8484697 to your computer and use it in GitHub Desktop.
#include <windows.h>
#include <cstdio>
int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE, PWSTR pCmdLine, int nCmdShow) {
while (1) {
HWND dialog = FindWindow("MozillaDialogClass", "FireFox Update");
if (dialog) {
printf("Found dialog: %x\n", dialog);
HWND dialogItem = NULL;
SendMessage(dialog, WM_CLOSE, 0, 0);
}
Sleep(2000);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment