I want to make a Windows command line interpreter, but I can't find out how to open or create a command prompt using the Windows API. Is there a COM interface for it? Do I have to start an instance of cmd.exe and inject a hook into it?

Mind that I don't just want to execute something from the shell; I want to make a terminal emulator.