用ShellExecuteEx调用sqlplus的有关问题

用ShellExecuteEx调用sqlplus的问题
调用oracle的sqlplus并且登录现在可以实现

C/C++ code

SHELLEXECUTEINFO ShExecInfo = {0}; 
    ShExecInfo.cbSize = sizeof(SHELLEXECUTEINFO); 
    ShExecInfo.fMask = SEE_MASK_NOCLOSEPROCESS; 
    ShExecInfo.hwnd = NULL; 
    
    ShExecInfo.lpFile = _T("d:\\oracle\\ora81\\bin\\sqlplus.exe"); 
    ShExecInfo.lpDirectory = NULL; 
    ShExecInfo.nShow = SW_SHOW; 
    ShExecInfo.hInstApp = NULL; 

    ShExecInfo.lpVerb = _T("open"); 
    ShExecInfo.lpParameters = _T("system/manager@mydb");//登录数据库
    ShellExecuteEx(&ShExecInfo);



我现在希望登录过后,当前的sqlplus不关闭,再传递其他命令,然后sqlplus再执行这个命令
我不知道这一步应该如何再次传入参数,或者说这一步应该如何实现??

------解决方案--------------------
给sqlplus窗口发送消息模拟键盘应该都是可以的
------解决方案--------------------
是否可以考虑下用:system("xxxx")