So I need to open a new interactive python shell inside a Windows process. So i tried something like this:
FILE* f;
AllocConsole();
freopen_s(&f, "CONOUT$", "w");
freopen_s(&f, "CONIN$", "r");
Py_Initialize();
PyRun_InteractiveLoop(stdin, "<stdin>");
Py_Finalize();
But it doesn't seem to work. Any advice on how to do it?