Browse Source

handle multiple instances

main
Hendrik Langer 6 years ago
parent
commit
f4a33af9ea
  1. BIN
      windows-snapshot-tool/bin/freeze.exe
  2. 1
      windows-snapshot-tool/src/main.cpp

BIN
windows-snapshot-tool/bin/freeze.exe

Binary file not shown.

1
windows-snapshot-tool/src/main.cpp

@ -32,6 +32,7 @@ int WINAPI WinMain (HINSTANCE hThisInstance,
if (existingApp)
{
SendMessage(existingApp, WM_DESTROY, 0, 0);
Sleep(2000); // give the other App some time to clean up and close
}
/* This is the handle for our window */

Loading…
Cancel
Save