diff --git a/README.md b/README.md index 13ead9e..8cd9206 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,9 @@ apt clean echo "dtoverlay=dwc2" >> /boot/config.txt +add "console=tty3" to /boot/cmdline.txt +(console=tty3 loglevel=3 vt.global_cursor_default=0 logo.nologo + copy everything to /opt/freezer/ add to /etc/rc.local: python3 /opt/freezer/display.py diff --git a/windows-snapshot-tool/bin/freeze.exe b/windows-snapshot-tool/bin/freeze.exe index 6d760b5..51cd4f1 100755 Binary files a/windows-snapshot-tool/bin/freeze.exe and b/windows-snapshot-tool/bin/freeze.exe differ diff --git a/windows-snapshot-tool/src/main.cpp b/windows-snapshot-tool/src/main.cpp index aee8bdc..77318c9 100644 --- a/windows-snapshot-tool/src/main.cpp +++ b/windows-snapshot-tool/src/main.cpp @@ -1,9 +1,6 @@ #include "resource.h" #include "LimitSingleInstance.h" - -CLimitSingleInstance g_SingleInstanceObj(TEXT("Global\\{38593226-AABB-1234-7592-D335AAB6F22A}")); - /*variables*/ UINT WM_TASKBAR = 0; HWND Hwnd; @@ -30,11 +27,11 @@ int WINAPI WinMain (HINSTANCE hThisInstance, LPSTR lpszArgument, int nCmdShow) { - if (g_SingleInstanceObj.IsAnotherInstanceRunning()) + + HWND existingApp = FindWindow(0, szClassName); + if (existingApp) { - HWND existingApp = FindWindow(0, szClassName); SendMessage(existingApp, WM_DESTROY, 0, 0); - //return FALSE; } /* This is the handle for our window */