Hi Ehsan
> Can't you use GetExitCodeProcess( ) to check the process
> return code for regedit.exe?
This is how I do it:
ShellExecuteEx( &se );
// wait for process to finish
if( se.hProcess )
{
WaitForSingleObject( se.hProcess, INFINITE );
CloseHandle( se.hProcess );
}
if( (DWORD)(se.hInstApp) < 33 )
{
// Thow error
AfxThrowUserException();
bImported = FALSE;
}
How would I modify this to use GetExitCodeProcess?
Andrew
This email and any attached files are confidential and copyright protected. If
you are not the addressee, any dissemination of this communication is strictly
prohibited. Unless otherwise expressly agreed in writing, nothing stated in
this communication shall be legally binding.
_______________________________________________
msvc mailing list
[email protected]
See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for
subscription changes, and list archive.