From 190ff781eaee33e7a61aab44fc4133718cc0515b Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 13 Jun 2026 00:36:59 +0200 Subject: add .clang-format --- src/process.hpp | 46 ++++++++++++++++++++-------------------------- 1 file changed, 20 insertions(+), 26 deletions(-) (limited to 'src/process.hpp') diff --git a/src/process.hpp b/src/process.hpp index c27dc3e..9ad93d9 100644 --- a/src/process.hpp +++ b/src/process.hpp @@ -5,36 +5,30 @@ #pragma once -#include "error.hpp" #include "cmd_line.hpp" +#include "error.hpp" #include #include -namespace process -{ - inline HMODULE load_exe_module() - { - const auto module = GetModuleHandle(NULL); - if (module == NULL) - error::raise("GetModuleHandle"); - return module; - } - - std::wstring get_executable_path(); - - inline std::wstring get_command_line() - { - return GetCommandLine(); - } - - void runas( - const CommandLine& cmd_line, - HWND hwnd = NULL, - int nShow = SW_NORMAL); - - void runas_self( - HWND hwnd = NULL, - int nShow = SW_NORMAL); +namespace process { + +inline HMODULE load_exe_module() { + const auto module = GetModuleHandle(NULL); + if (module == NULL) + error::raise("GetModuleHandle"); + return module; } + +std::wstring get_executable_path(); + +inline std::wstring get_command_line() { + return GetCommandLine(); +} + +void runas(const CommandLine& cmd_line, HWND hwnd = NULL, int nShow = SW_NORMAL); + +void runas_self(HWND hwnd = NULL, int nShow = SW_NORMAL); + +} // namespace process -- cgit v1.3