C
Christian Billig
Hi,
well i've a problem and i don't know how to solve it.
I wrote a function, which starts a Process for a user by using the API
CreateProcessWithLogon.
Afterwards i want to know if the process already ended and with what
exitcode it has finished.
So i created an process class object and used the function GetProcessbyID in
order to get more information about the process.
Here's my problem, if the process already finished i can get the property
ExitCode but if i have to wait by using the method waitforexit i get an
error when trying to get the property.
Invalid Operation
The Object hasn't started the process.
Where is the difference between getting the propertie before or after a
threadsleep ?
thanks
christian
well i've a problem and i don't know how to solve it.
I wrote a function, which starts a Process for a user by using the API
CreateProcessWithLogon.
Afterwards i want to know if the process already ended and with what
exitcode it has finished.
So i created an process class object and used the function GetProcessbyID in
order to get more information about the process.
Here's my problem, if the process already finished i can get the property
ExitCode but if i have to wait by using the method waitforexit i get an
error when trying to get the property.
Invalid Operation
The Object hasn't started the process.
Where is the difference between getting the propertie before or after a
threadsleep ?
thanks
christian