From a864099ba77157090c4cd12817245122c163ec24 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 24 Oct 2020 21:33:44 +0300 Subject: rework Process API & tests * Add separate classes ProcessParameters & ShellParameters for Process::create() and Process::shell() methods. * Add a separate "worker" executable. It's used in tests via a fairly complicated scheme, receiving orders to execute via a shared memory region. * Add tests that utilize the Console API, reading console window's screen buffer directly, making for more reliable tests & broader coverage. --- include/winapi/window_style.hpp | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 include/winapi/window_style.hpp (limited to 'include/winapi/window_style.hpp') diff --git a/include/winapi/window_style.hpp b/include/winapi/window_style.hpp new file mode 100644 index 0000000..dd12a56 --- /dev/null +++ b/include/winapi/window_style.hpp @@ -0,0 +1,27 @@ +// Copyright (c) 2020 Egor Tensin +// This file is part of the "winapi-common" project. +// For details, see https://github.com/egor-tensin/winapi-common. +// Distributed under the MIT License. + +#pragma once + +namespace winapi { + +enum class WindowStyle { + // https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-showwindow + ForceMinimize = 11, + Hide = 0, + Maximize = 3, + Minimize = 6, + Restore = 9, + Show = 5, + ShowDefault = 10, + ShowMaximized = 3, + ShowMinimized = 2, + ShowMinNoActive = 7, + ShowNA = 8, + ShowNoActivate = 4, + ShowNormal = 1, +}; + +} // namespace winapi -- cgit v1.2.3