createprocess Questions

2

tl;dr I'm trying to understand the difference of running a program directly via double clicking the executable vs running it through a terminal or programatically via CreateProcess in windows 10. ...
Gleanings asked 30/3, 2019 at 17:36

3

I have an NT service that calls a console program written in Delphi 7, let's call it failover.exe that in turn calls NETSH using a procedure I found: procedure ExecConsoleApp(CommandLine: ansistri...
Hazy asked 17/11, 2011 at 12:7

3

Solved

I have two processes, A and B. At some point A creates B. After B is created, if A's process tree is killed, I want B to still be around. I am using CreateProcess() to create B, and I can't seem t...
Epiphyte asked 28/6, 2010 at 21:11

2

I am developing an application in which a number of instances of a process, A, depend on a single instance of a process, B. The idea is that one of the instances of process A starts process B so th...
Tamica asked 22/8, 2012 at 7:56

6

Solved

I am getting the below exception when building the app from Android Studio It says CreateProcess error=206, The filename or extension is too long at I had tried enabling longer paths in Wind...
Pyoid asked 23/4, 2018 at 12:30

2

Solved

So I have been trying to make a program that can interact with a webpage to input data. I ideally wanted to use Chrome so I tried to set up Selenium WebDriver and ChromeDriver. import org.openqa.s...

2

Solved

I'm doing some poking around in Windows internals for my general edification, and I'm trying to understand the mechanism behind Image File Execution Options. Specifically, I've set a Debugger entry...
Horsepower asked 31/1, 2019 at 4:24

0

I'd like to understand how subprocess.Popen works on windows when shell=False. In particular, how is the environment or variable expansion taken into consideration by the underlying algorithm? Con...
Careful asked 26/3, 2020 at 18:33

3

Solved

Are forking() and CreateProcess(with all required arguments), the same thing for Linux and WinXP, respectively? If they are different, then could someone explain the difference in terms of what ha...
Salvage asked 12/12, 2012 at 12:35

0

Is there a way to programmatically launch a background (i.e. non-windowed) executable without launching an associated conhost.exe process? I have tried code such as this in the launcher process th...
Repatriate asked 15/11, 2018 at 21:17

4

Solved

I have created a process using CreateProcess(). This is the code: STARTUPINFO si = {0}; PROCESS_INFORMATION pi = {0}; result = CreateProcess("C:\\AP\\DatabaseBase\\dbntsrv.exe", NULL, NULL, NULL, ...
Rusell asked 24/2, 2012 at 9:37

0

I want to create a child process that is detached from the parent, so that if the parent exits, the child process will continue. I'm working on Windows and did this: if(CreateProcess(program, argu...
Hyunhz asked 16/10, 2017 at 16:31

3

Solved

Background Info: Windows 7, Visual C++ 2010 Express Problem: CreateProcess() keeps returning with 'Invalid command line argument' Explanation: I'm writing a piece of code that calls external prog...
Bellboy asked 27/12, 2011 at 20:58

8

Hello I have the following code but it isn't working as expected, can't figure out what the problem is. Basically, I'm executing a process (a .NET process) and passing it command line arguments, i...
Neoplasm asked 16/7, 2009 at 6:34

2

Solved

I'm sure most Windows developers are familiar with this error message, usually when trying to mix 32- and 64-bit executables. In particular Python and Java can both get it. %1 is not a valid Win...
Decode asked 25/4, 2017 at 15:36

2

Solved

i have the following test code: #define CMDLINE ".\\dummyFolder\\dummyProc.exe op1 op2 op3" int main(int argc, char **argv) { STARTUPINFO info; info.cb = sizeof(STARTUPINFO); info.lpReserved = N...
Elrod asked 4/2, 2012 at 16:23

2

Solved

Q: I have a windows service that spawns a lot of child processes. There seems to be some limit, around 100, where the process cannot be launched. The CreateProcess() call comes back with a pid, but...
Geomancy asked 4/7, 2013 at 14:6

1

Solved

Is it necessary to set lpApplicationName to cmd.exe as mentioned in the documentation to run a batch file? "port=5598 dbname=demo host=localhost" "port=5599 dbname=demo host=localhost" "C:/tmp/0...
Selfeducated asked 17/11, 2016 at 12:5

3

I get an error when build static lib with NDK on Windows platform: process_begin: CreateProcess( "PATH"\android-ndk-r8b\toolchains\arm-linux-androideabi-4.6\prebuilt\windows\bin\arm-linux-androide...
Kimberli asked 26/9, 2012 at 9:45

3

I want to execute a TEST.exe in a C program. While I use system( "TEST.exe <input-file> output-file" ); I can get what I expected. But CreateProcessW() didn't work properly when I use the...
Medina asked 2/4, 2012 at 3:57

3

Solved

I have 2 apps, program.exe and updater.exe, both written in Delphi5. Program runs without admin-rights (and without manifest), updater has a manifest with "requireAdministrator" because he must be ...
Hermineherminia asked 10/6, 2015 at 14:29

3

Solved

If you use CreateProcess with the flag CREATE_NEW_CONSOLE, the new process has its standard input, output, and error handles directed to the new console window. If you want to override the I/O stre...
Dinorahdinosaur asked 27/5, 2015 at 23:42

2

Solved

I need to start a process and run it as a detached process. I have some sort of starter application which purpose is to run another exe and immediately exit. What is a best way to achieve that? I ...
Normandnormandy asked 27/4, 2015 at 15:10

3

Solved

My aim is to execute an external executable in my program. First, I used system() function, but I don't want the console to be seen to the user. So, I searched a bit, and found CreateProcess(...
Acrimonious asked 5/7, 2012 at 6:54

3

Solved

I do not get why Unix has fork() for creating a new process. In Win32 API we have CreateProcess() which creates a new process and loads an executable into its address space, then starts executing f...
Lituus asked 15/10, 2011 at 19:42

© 2022 - 2024 — McMap. All rights reserved.