I am writing a program with C ++ and with the native Win32 API. I am creating a process from SFX archive exe in a silent mode that has not shown any GUI for the user
thanks. Thank you. Thank you>
If the process you created produces some text output for standard output, then you might possibly parse that output somehow And can show progress. To know what this does, activate it in the command line window and see what you get from it.
Win32's CreateProcess ()
allows you to redirect the standard output of the process to a pipe. In this way you can get production as soon as production.
If you are making a process that does not report any kind of progress, then there really is not much. You can try to come up with a function between file size and take the average time to remove it and then duplicate a progress bar. It will serve the purpose of easily establishing a user's mind, but nothing else.
- Edit
CreateProcess ()
Structure < Code> PROCESS_INFORMATION fills up The handle created by the process is created in it, the main thread of the process is handled. If you want to wait for the process to finish, you can handle that thread on WaitForSingleEvent ( )
can signal that the thread ends. Do not forget to Passport ()
, when you work with them, they handle.
Comments
Post a Comment