Browse Source

remove cmdline prompt

main
Hendrik Langer 6 years ago
parent
commit
0b1b381bb3
  1. 1
      windows-snapshot-tool/CMakeLists.txt
  2. 2
      windows-snapshot-tool/src/main.cpp

1
windows-snapshot-tool/CMakeLists.txt

@ -6,6 +6,7 @@ set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR})
set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}) set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR})
add_definitions(-DUNICODE -D_UNICODE) add_definitions(-DUNICODE -D_UNICODE)
SET( CMAKE_EXE_LINKER_FLAGS "-mwindows" )
include_directories("${PROJECT_SOURCE_DIR}") include_directories("${PROJECT_SOURCE_DIR}")

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

@ -215,6 +215,8 @@ void minimize()
void restore() void restore()
{ {
ShowWindow(Hwnd, SW_SHOW); ShowWindow(Hwnd, SW_SHOW);
WCHAR path[12];
getRaspiStorage(path);
CaptureImage(Hwnd, L"file.bmp"); CaptureImage(Hwnd, L"file.bmp");
} }

Loading…
Cancel
Save