From caa2d8c63b6887daf17372d4bb3a53cafc5af801 Mon Sep 17 00:00:00 2001 From: Hendrik Langer Date: Tue, 24 Jul 2018 00:36:10 +0200 Subject: [PATCH] seems working --- windows-snapshot-tool/bin/freeze.exe | Bin 399425 -> 400113 bytes windows-snapshot-tool/src/main.cpp | 18 ++++++++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/windows-snapshot-tool/bin/freeze.exe b/windows-snapshot-tool/bin/freeze.exe index 932074e4ac07f7ab6167dd2d9292334892c0251b..d386f61f1120393f4138c95c5d1425f94159a589 100755 GIT binary patch delta 16413 zcmcIr3tUxI*5CWwbL6Th$XgJ&z~!N$@)EGjt_q6gD5;~U7`|Vrp<o8NDat+V(3um4(m z?f1Ty+v}A<-yRPt-xxeBXWS&VLSe%_7;`WW-jPdTERHcYWXrx()68IxEuVI8f3YKg z3J}DiO-i7e9p6p0@gOB`F=M+mXiI`D!d5G0X>6>zmXGX^ZiYcNq=WhiAJSQ~&qvV{ zlCJiaVtIx-PKs4ulzi24$)9Jb2Z0S&&*ME(y^Xi08fJ>+N$L>1C#nnao~G`=d!Bj* z@8#-OrsX|$MKkt}Y;DHVIJzrirT!ad+t~gZde!2!_ts(?EAeg&2v9f57AZSgJuFY~ zuywbwMr)ATLCNL2)Y(c5e^%YBOyyN-lQNTURL8Zm#_tQ#JXiFxv1b2DcqzUv?=OQ( zRL8twza@&X#(M#b?QK*KwtHUsWu%(vkrsI`g0W5cyd=fi*d>y&lEL>%N8Kwau$oI` zYsm{CRbRIYN3oLVdy4+)bY8Ab?cnEM=46{oGHa-* zc=l?V&{moY?_^kIR;cxm#@MKC?GWde;&NP)d3ICgAq2X2r+U7_>Mm29P80T9r=aUb zE9&Hqk$ksW)G;3K-*$`-E^wNf_Y$M@mwqKJ-+o(iQ#QTs6H@PoAUB=+qtW&7FqxBkISU5_}6>KD3I+%MrC( z=K&b|Nu7J}L+Xak$?@4OUMLu9t0ZG6!L4>_TwSwG{Ssy~RBx|-|39;(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;#y7xzpy-zqXJK zo}X9Xu@VfUNC+Z0mqjcR=0+;<)kao&6~gi=mB;MSvbRG*Y4!4y3I~en8R< zoOmFz!O`tN`omDsjggK9Qf06z01{%bTJBqfjxa!5Kq@pKdw|f>7SLfJ1h(yNA9Ubc z20}Bo&FWVmb0BShZ0PF8(pa)#|LB9yruojO^YZ9Wz@HBcqcy5|jfUNT z_!=6W0%W(LXT}3@{P~EQ$=HJ({5%Szo<^^&A9i#g?dyP?=zx3<2O(l~&ZRU%2xYK9W5&OYiiyfbIY(*Wf4{i18vh9SA*bUAqEElOdodI&fan zk)n2HM*!IjX6J!a8<1~-q&Wl1TUfYY&a`>#x?vE12dCa(<%4fkhYYKNp)I%-yo91zZhz-G45Y!} z;VgN8S=;)&2xO}v+Ur273`l4Eqa@?D8v$gvVWlQp0o5A@bO4YNL-l#$LW>gBrvM6i g+PZorkU0kG4j_TfC|;>a`CVDzRddwCrHAML0XCp|`2YX_ diff --git a/windows-snapshot-tool/src/main.cpp b/windows-snapshot-tool/src/main.cpp index a8f0c70..e2a935c 100644 --- a/windows-snapshot-tool/src/main.cpp +++ b/windows-snapshot-tool/src/main.cpp @@ -255,8 +255,16 @@ void doScreenshot() { WCHAR path[12]; getRaspiStorage(path); - MessageBox(Hwnd, path, L"Storage path", MB_OK); - CaptureImage(Hwnd, L"file.bmp"); + if (wcslen(path) != 3) { + MessageBox(Hwnd, L"Couldn't find Raspberry USB-Storage\nSaving in current directory!", L"Failure", MB_OK); + CaptureImage(Hwnd, L"screenshot.png"); + } else { + WCHAR filename[128]; + wcsncpy(filename, path, sizeof(filename)); + wcsncpy(filename, L"screenshot.png", sizeof(filename)); + CaptureImage(Hwnd, filename); + } + } void InitNotifyIconData() @@ -274,9 +282,7 @@ void InitNotifyIconData() void getRaspiStorage(LPWSTR out) { - // GetLogicalDrives() - // for result - // if result.GetDriveType() == DRIVE_REMOVABLE + out[0] = L'\0'; out[1] = L'\0'; WCHAR myDrives[105]; WCHAR volumeName[MAX_PATH]; @@ -300,7 +306,7 @@ void getRaspiStorage(LPWSTR out) { { if (GetVolumeInformationW(drive, volumeName, ARRAYSIZE(volumeName), &serialNumber, &maxComponentLen, &fileSystemFlags, fileSystemName, ARRAYSIZE(fileSystemName))) { - if (wcscmp(volumeName, L"SCREENSHOTS")) { + if (wcscmp(L"SCREENSHOTS", volumeName)==0) { // ToDo wcsncpy(out, drive, sizeof(out)); } }