Questions tagged [createprocess]
Refers to programmatically running an application from another.
createprocess
619
questions
0
votes
0
answers
22
views
Issue compilation mingw32-g++ error: CreateProcess: No such file or directory
^~~~~~~
COLLECT_GCC_OPTIONS='-save-temps' '-v' '-std=c++11' '-Wall' '-march=i386' '-I' 'C:\nat\IP_TRAIN\Components\piscontrol\inc' '-I' 'C:\Qt\4.7.3\include\QtCore' '-I' 'C:\nat\IP_TRAIN\Tools\xbinder\...
1
vote
0
answers
55
views
How to create a console process with a given window size and position?
I am using startup information to specify the size and position of a window I wish to open, but WinApi uses instead the default values for those parameters.
Here is a (Component Pascal) call to create ...
0
votes
1
answer
159
views
C++ SOEM EtherCAT; No adapter found - Windows11, Visual Studio+Vcpkg installed Simple Open EtherCAT Master
I have installed SOEM using Vcpkg+VS2022
I have spawned a processes (I assume SOEM would then run headless in it's own process?)
I am able to start the "simple SOEM example", but I cannot ...
0
votes
0
answers
34
views
How to Execute Commands in C++ (Including “cd”) from Command Prompt using CreateProcess?
I’m working on a C++ program where I need to execute various commands, including the “cd” command, from within my code. I’ve tried using the CreateProcess function to run these commands, but I keep ...
-1
votes
2
answers
119
views
CreateProcess throws error "The filename or extension is too long" [closed]
How to execute a BAT file that is in a folder beyond 300 characters in length? The parameter to CreateProcess throws the error:
The filename or extension is too long
I successfully manage long file ...
0
votes
1
answer
241
views
CreateProcessAsUser results in process exit and error 0xc0000142 when the process starts
I am creating a simple console application to learn the usage of CreateProcessAsUser().
I have followed what little code examples I can find online. I have also completed a similar example application ...
1
vote
0
answers
119
views
Windows Service running as a specific user (not Local System) cannot use msiexec
I am creating a Windows Service in C++.
I want to allow the Windows Service to update itself (upon a certain trigger) by running msiexec /p patch.msp /quiet /qn.
I am currently using the Windows ...
2
votes
0
answers
76
views
thirdparty DLL with /Fixed header option
I have a program A.exe which is linked dynamically with a.dll.
a.dll is a 3rd party DLL that is linked with the /FIXED option. I know this because its DLL Characteristics is 0 when I see it with ...
1
vote
1
answer
171
views
Using Pipes for Input / Output for CreateProcess; ReadFile blocks Program
I want to write a program that executes a cmd or powershell command.
To achive this I create a process with CreateProcessA and use pipes for Input / Output.
My code works fine but after the command (...
0
votes
0
answers
130
views
EXCEL VBA CreateProcessA not starting process under Windows 11
I have macros in a .XLAM file that is loaded when EXCEL starts. They work fine on my current laptop running Windows 10. The CreateProcessA call/function starts a BAT file on the computer just fine. ...
0
votes
0
answers
112
views
exe not reporting on stdout - but working through bat file
When I run an exe file through a bat file as intermediary for stdin and stdout pipes then it works, but not when I run it directly
I have an exe file: p.exe.
It is supposed to receive input on stdin ...
0
votes
2
answers
121
views
How to close dumpcap.exe using WinAPI? Dumpcap.exe is work by cmd.exe
I'm capturing packets with dumpcap.exe in a cmd.exe window:
dumpcap.exe -i 5 -w:\\Users\\xyz.abc\\Desktop\\allPacketTMC.pcapng
This capturing method works in a QT GUI. When I click the "Start LOG&...
0
votes
0
answers
80
views
How to Execute bat file using CreateProcess and Simultaneously Print/Read Its Output in C++?
So I've tried to execute a bat file that install a software for windows. The code works, however it only outputs the once the process is done. Is there a way to synchronize execution and redirecting/...
0
votes
1
answer
149
views
Process id returned by CreateProcess is not there in task manager
I create a process with Windows API CreateProcess(). Process Id returned by this function is not there in task manager.
When I try to terminate this process using TerminateProcess(). GetLastError() ...
0
votes
0
answers
155
views
Create a process with `CreateProcess()` and output wide characters
I use CreateProcess() to open the cmd. It works fine if I use ascii, but when I try to use wide characters it doesnt work
int res;
HANDLE Entrada_Rd = nullptr;
HANDLE Entrada_Wr = nullptr;
HANDLE ...