Can't you use GetExitCodeProcess( ) to check the process return code for regedit.exe?
-- Ehsan Akhgari Farda Technology <http://www.farda-tech.com/> In C we had to code our own bugs. In C++ we can inherit them. _______________________________________________ msvc mailing list msvc@beginthread.com See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for subscription changes, and list archive.