C
CodeHits
Guest
I am facing an issue with CreateProcess while working with a tabbed window application. For example, if I am trying to open a text editor like "notepad++" to read a file, I am facing an issue. If no instance of the "notepad++" exists, then calling the CreateProcess works fine and returns correct PROCESS_INFORMATION structure with correct information (process id, process handle, thread id and thread handle). But if the "notepad++" program is already open, then the command [ C:\Program Files\Notepad++\notepad++.exe" "D:\temp\test.txt ] opens the text file in the running instance of the notepad++. But now the PROCESS_INFORMATION structure does not have the right information. The process id, process handles etc. are incorrect. Is there an essential step that I am missing. Or is this a limitation?
Continue reading...
Continue reading...