Added all os windows the includes temporarily to the sub process class.

This commit is contained in:
Relintai 2023-09-10 14:45:12 +02:00
parent 3214cac8a6
commit 33c1b9c50f
2 changed files with 15 additions and 1 deletions

View File

@ -30,6 +30,14 @@
#include "sub_process_windows.h"
// TODO clean these up
#include <avrt.h>
#include <direct.h>
#include <knownfolders.h>
#include <process.h>
#include <regstr.h>
#include <shlobj.h>
Error SubProcessWindows::start() {
if (_executable_path.empty()) {
return ERR_FILE_BAD_PATH;

View File

@ -33,9 +33,15 @@
#include "core/os/sub_process.h"
#include <process.h>
// TODO clean these up
#include <dwmapi.h>
#include <fcntl.h>
#include <io.h>
#include <shellapi.h>
#include <stdio.h>
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <windowsx.h>
typedef HANDLE(WINAPI *WTOpenPtr)(HWND p_window, LOGCONTEXTW *p_ctx, BOOL p_enable);