CreateProcessAsUser
-
In my code i am using CreateProcessAsUser to create new process.The purpopse of the code to execute any of the process (console applicaions and window applicaions ) .The code is build as a service and after the CreateProcessAsUser ,the process id of the newly created process will be returned .The functionality works fine for window based applications (notepad ,regedit ..etc..) but when console applications such as cmd are passed to the CreateProcessAsUser ,the function returns process id ,but no such process informations are found in the task manager .. I think the newly created processes getting exitied as soon as they are spawned .. Can any body help me in this ...
vineesh
-
In my code i am using CreateProcessAsUser to create new process.The purpopse of the code to execute any of the process (console applicaions and window applicaions ) .The code is build as a service and after the CreateProcessAsUser ,the process id of the newly created process will be returned .The functionality works fine for window based applications (notepad ,regedit ..etc..) but when console applications such as cmd are passed to the CreateProcessAsUser ,the function returns process id ,but no such process informations are found in the task manager .. I think the newly created processes getting exitied as soon as they are spawned .. Can any body help me in this ...
vineesh