Recently, i've got interested in making a front-end for command-line program. I guess there's two way to do it.
First one is just including source code and calling main proc with arguments (Of course, there should be some changes in source code). Second one, which is there's no source code and just program, is just executing program internally then reading the command line with APIs.
Though I well know about the first solution, i don't know what APIs is needed to do the second solution. I'm talking about the APIs that get a command-line string or something like that.