MSDN explains how you do what popen does using the Windows API in Pipe Handle Inheritance . Here it provides a well-documented example. It’s way more low-level than the _popen
function found in the runtime library linked by Jason, but uses the Win32 API exclusively.
More Related Contents:
- How do I make this Linux program compile? [closed]
- POSIX API call to list all the pthreads running in a process
- What is the Windows equivalent to the capabilities defined in sys/select.h and termios.h
- Are there any platforms where using structure copy on an fd_set (for select() or pselect()) causes problems?
- How can I convert a file pointer ( FILE* fp ) to a file descriptor (int fd)?
- How to get network adapter stats in linux/Mac OSX?
- How to get the current time in milliseconds from C in Linux?
- How to kill processes by name? (Win32 API)
- Linux/POSIX equivalent for Win32’s CreateEvent, SetEvent, WaitForSingleObject
- get command output in pipe, C for Linux
- Linux shared memory: shmget() vs mmap()?
- Checking if errno != EINTR: what does it mean?
- How to know if a Linux system call is restartable or not?
- Where is the header file on Linux? Why can’t I find ? [duplicate]
- Creating a daemon in Linux
- What is the behavior of printing NULL with printf’s %s specifier?
- How to know linux scheduler time slice?
- Using pointer after free()
- How to use the addr2line command in Linux?
- Why does the library linker flag sometimes have to go at the end using GCC?
- Timeout Function
- I do not understand how execlp() works in Linux
- What is the difference between a Linux platform driver and normal device driver?
- Checking if a dir. entry returned by readdir is a directory, link or file. dent->d_type isn’t showing the type
- Finding out if a message over tcp was delivered
- why C clock() returns 0
- calling assembly function from c
- How to read terminal’s input buffer immediately after keypress
- What is the difference between AF_INET and PF_INET in socket programming?
- Can you bind() and connect() both ends of a UDP connection