Exit code of CreateProcess for WinRar different in SP2/SP3 and 7

Hi all
I am new to windows programming and wrote a small utility with mingw, which will unrar a package. The code is as below
Description:
When the sub program is run, the results are as follows
XPSP2 32-bit and Windows 7
"Détarer" operation: success
Return code of CreateProcess: no zero (success)
Exit code: 0 (success)
XP2SP3 32 bit
"Détarer" operation: success
Return code of CreateProcess: no zero (success)
Exit code: 3221225477
Statement of the problem
I don't know why in XP2SP3 patch only, the operation of winRar provides the exit as a huge positive value code. Do you find any problem in the code below? Please help in this regard.
int main()
{
String ProgramName = "C:\\Program Files\\WinRAR\\WinRAR.exe"
STARTUPINFO StartupInfo;
PROCESS_INFORMATION ProcessInfo;
Memset (& StartupInfo, 0, sizeof (STARTUPINFO));
Memset (& ProcessInfo, 0, sizeof (PROCESS_INFORMATION))
If (CreateProcess (() (LPCTSTR) ProgramName.c_str, (LPCTSTR) "WinRAR.exe x y - ibck d:\\abc.tar d:\\"),NULL,)
NULL,
FAKE,
TO NORMAL_PRIORITY_CLASS,.
NULL,
NULL,
& StartupInfo,
(& ProcessInfo) == 0)
{
string tmpStr ("execution error");
tmpStr += ProgramName.
cost<><><"CreateProcess>
}
on the other
{
String tmpStr ("execution success");
tmpStr += ProgramName.
cost<><><"CreateProcess>
WaitForSingleObject (ProcessInfo.hProcess, INFINITE);
DWORD ExitCode = 0;
If ((ProcessInfo.hProcess & exitCode) GetExitCodeProcess)
{
String tmpStr ("GetExitCodeProcess");
tmpStr += ProgramName.
cost<><"WinRAR.exe x="" -y="">
}
}
CloseHandle (ProcessInfo.hProcess);
CloseHandle (ProcessInfo.hThread);
getch();
return 0;
}
PS: Trail version WinRar 3.8 Mode is used for above tests.

Hello

Your question of Windows is more complex than what is generally answered in the Microsoft Answers forums. It is better suited to the audience on MSDN. Please post your question in the below link: http://social.msdn.microsoft.com/Forums/en-US/Vsexpressvc/threads

Tags: Windows

Similar Questions

  • Exit code: 34 on photoshop cc 2014, audition cc 2014 and after effects cc 2014

    Hello!  I have problems to update my programs cc as above these programs, do not install on my mac... and others (I, Id, Pr, Sg, Pl, Dw, Mu, Ic, Media Encoder) installed ok here...

    on photoshop gives an error 34 with: FATAL: payload "Camera profiles Installer_8.2_AdobeCameraRawProfile8.0All 8.0.0.15 {5F3BB96C-06FC-4A40-A8F9-D0C0470F659B}" information not found in Media_db.

    hearing:

    FATAL: Information payload "Dynamic Link Media Server_7.0.1_AdobeDynamicLinkMediaServer7All 8.0.0.15 {9B20ADB9-F8D1-4895-B09B-C21B404F5B95} ' not found in the Media_db.

    After Effects:

    FATAL: Payload "Camera profiles Installer_8.2_AdobeCameraRawProfile8.0All 8.0.0.15 {5F3BB96C-06FC-4A40-A8F9-D0C0470F659B}" information not found in Media_db.

    How can I solve it?

    Hi EdduVaz,

    I've seen this error fixed for many users to uninstall, clean and reinstall by, use CC Cleaner tool to resolve installation problems. CC, CS3 - CS6

    Kind regards

    Rave

  • code error 10 for c media ac97 audio divce and then it tell me there is no better upgrade for him so I have no sound

    is it possible around that way I can get sound

    What operating system you are using? When did you notice that? Have you installed or removed any programs/games before? Are you using the embedded motherboard sound? Or you have a sound card plugged into one of the PCI slots?

    Try to download realtek driver and install it

    http://www.Realtek.com.tw/downloads/downloadsCheck.aspx?langid=1&PNid=23&PFID=23&level=4&Conn=3&DownTypeID=3&GETDOWN=false

  • What is normal for the backup of XP SP3 and the startup type of the removable storage service?

    I was getting ready to plan and attempt a clean full backup for tonight.  I have the backups created on several entities, currently backup but have a very stable system at the moment and wanted to try to make a clean backup file.  That day has finally arrived after been forced a corrupted system files hard drive failure "repair" critical and forced me to go back to SP1a (my Windows Genuine valid CD which I highly appreciate) in order to obtain any boot system, including safe mode and console mode.  Repair has presented many incompatibilities at the level of program and system, including the basic WMI and COM of the corruption system.  Three months later... it of time to update my backups and recovery procedures and hope that this does not happen!

    In preparation, I decided to refresh my memory on the use of the backup and by browsing the Help and Support Service Center files.  One of the first things I noticed was "storage removable service must be started for the backup works correctly."  Audit and inspection of my existing Services using computer (Local) management, I have observed that after a normal windows startup, the removable storage service is not started with manual startup type.  I use a USB drive connected as my backup media, and it is fully operational as a normally formatted NTFS data disk volume.  I have windows indexing disabled on this volume.  Is the type of service required removable storage of normal manual started?  The backup program will automatically start this service?  I know I've never manually started it myself and backups seem to work well.  Should we change the startup type to automatic?

    -Thanks, Jerry

    I would like to leave as a textbook.

    The Service will start (if capable) as soon as ntbackup.exe begins.

    If you want to see, with your Services window related to the function of RS place and it will not work and the manual.

    Click Start, run and enter in the box:

    Ntbackup.exe

    Click OK to start the backup and the Restore Wizard.

    Go back to your Services window and press F5 to refresh and SR Service should now work.

    When you exit the backup and the Restore Wizard, the RS Service stops (it may take a few minutes), and you may need to close the Services applet and reopen it to notice she's moved to manual and not running.

    You will see things like present to the event system log viewer:

    Event type: Information
    Event source: Service Control Manager
    Event category: no
    Event ID: 7036
    The removable storage service entered the running state.

    (this is when you go out the backup and the Restore Wizard and wait a few minutes... then the Service stops itself...)

    Event type: Information
    Event source: Service Control Manager
    Event category: no
    Event ID: 7036
    Description:
    The removable storage service entered the stopped state.

    It's like aid and assistance...  Most of the people (including the technical support engineers who are hired by Microsoft) say to set the Startup Type to automatic, but you don't have to...  Set it to manual and it will start fine when he needs start (if he can).

    There is no need for these Services (and many other Services in XP) as starting at each restart and run all day without doing anything.

    Here is a good list that will help you understand your XP Services:

    http://www.blackviper.com/2008/05/19/black-vipers-Windows-XP-x86-32-bit-Service-Pack-3-service-configurations/

  • error code when sent for test printing after you install the new printer on windows 8

    Installed a panasonic KX-P1121E printer on windows 8. I got an error code when sending for printing of the test. And not able to print. Help, please.

    Hello

    Please provide more information for me to better understand the issue.

    1. how the printer is connected to the computer? Is it wireless or wired?

    2 do you have updated printer drivers?

    3. What is the full error message you get when you try to print?

    These steps will help you identify and fix common printer problems in Windows, including print errors, print spooler errors, and other issues that could prevent you from printing.

    Method 1: check if the printer is correctly installed.

    You can check the link for more information about how to install a printer.

    Install a printer

    http://Windows.Microsoft.com/en-us/Windows-8/install-a-printer

    Method 2: you can check the link for the troubleshooting steps.

    Solve printer problems

    http://Windows.Microsoft.com/en-us/Windows/printer-problems-in-Windows-help#fix-printer-problems=Windows-8&V1H=win8tab1&V2H=win7tab1&V3H=winvistatab1&v4h=winxptab1

    You can check the link to download the drivers.

    http://Panasonic.NET/PCC/products/printer/windows_compliance/windows_8.html

    If please get back to us and let us know if this helps to resolve the issue.

  • New update for 2015.5 CS PS has no exit Code 146

    Hello

    Today, I tried to update my Adobe products - 2015/Lightroom Bridge: no problem, but Photoshop CC 2015.5 does not work. I received the follow-up message:

    Exit code: 146

    -------------------------------------- Summary --------------------------------------

    -fatal error 2, 0 error (s), 1 warning (s)

    FATAL: Error (Code = 146) the "MoveDirectoryCommand" command for the package: "AdobePreview1.2.0All - win64', version: 1.2.0"

    FATAL: An error has occurred in the installation of the package (name: AdobePreview1.2.0All - win64 Version: 1.2.0).) Error code: '146'

    WARN: Cannot move the directory "C:\adobeTemp\ETRC159.tmp\1\Application\preview.generate" to "C:\Program Files\Common Files\Adobe\Plug-Ins\CC\Generator\preview20155.generate"

    Any tips? Thanxx a lot...

    My PC: Windows 10 Pro, 64-bit, Intel Core i7-2600CPU @3, 4 3 Ghz, 70 GHz, 32 GB RAM

    Klaus

    In my case, this error (146) was caused by Kaspersky Internet Security Online Privacy. Once it has been disabled installation PS CC 15.5 has been successfully completed.

  • Exit code: 7 please see specific errors below for troubleshooting.

    Hello

    I have great difficulty installation fuse CC, crashes at 84% with the following error:

    Exit code: 7

    Please see specific errors below for troubleshooting. For example, ERROR: DF024...

    -------------------------------------- Summary --------------------------------------

    -0 fatal Error (s), 1 Error (s)

    -Payload: fuse CC (Preview) 1.0.0.0 {06F1F289-ACFE-43A2-A654-7950079D6685}.

    ERROR: DF024: cannot move the file to 'C:\Program Files\Common Files\Adobe\Installers\adobeTemp\ {06F1F289-ACFE-43A2-A654-7950079D6685} \_16_714fd7691ec95 3bccd245f8d22dc9d09' to 'C:\Program Files\Adobe\Adobe fuse CC (Preview)\Code\Build\Output\Fuse\bin\Release\Qt3Support4.dll' error 32 the process cannot access the file because it is being used by another process... Try setting the correct permissions for the specified file/folder or parent, so that the admin has the right to modify. (4747 Seq)

    I uninstalled 5 times now, every time that you use the vacuum cleaner but it will not install...

    I'm at a loss what to try next...

    Alan

    -------------------------------------------------------------------------------------

    https://helpx.Adobe.com/Creative-Suite/KB/error-exit-6-exit-7.html

  • Exit code: 6 see specific errors and warnings below for troubleshooting. For example, ERROR: DS003, DW050... WARNING: DW036... - Summary - 1 or the fatal errors, 2 er

    How can I solve this problem?

    Exit code: 6

    Please see the faults and warnings below for troubleshooting. For example, ERROR: DS003, DW050... WARNING: DW036...

    -------------------------------------- Summary --------------------------------------

    -1 fatal Error (s), 2 error (s), 1 WARNING (s)

    -Payload: {C79312BD-3E76-4474-A10C-1435D1856A4B} Adobe Dreamweaver CS5 11.0.0.0.

    FATAL: DS003: impossible to extract "C:\Users\valer\Desktop\Adobe CS5 Design Premium\Adobe CS5\payloads\AdobeDreamweaver11-mul\Assets1_1.zip" to "C:\Program Files (x 86) \Common {C79312BD-3E76-4474-A10C-1435D1856A4B}. : Error 0

    WARNING: DW036: payload cannot be installed due to the failure of the operation dependent

    ERROR: DW050: the following payload errors were found during the installation:

    ERROR: DW050:-Adobe Dreamweaver CS5: due to a lack of Language Pack installation

    ERROR: DW050:-Adobe Dreamweaver CS5_AdobeDreamweaver11en_USLanguagePack: installation failed

    -------------------------------------------------------------------------------------

    Hi valeriel47418829,

    Please follow the steps mentioned here https://helpx.adobe.com/creative-suite/kb/errors-exit-code-6-exit.html

    https://helpx.Adobe.com/Creative-Suite/KB/errors-exit-code-6-exit.html

  • looking to purchase a copy of the elements after the trial. However, basket indicates platform: Windows. I need for Mac. Before I commit the activation code will work for the Mac. Impossible to find anywhere on the Web site to buy different versions.

    looking to purchase a copy of the elements after the trial. However, basket indicates platform: Windows. I need for Mac. Before I commit the activation code will work for the Mac. Impossible to find anywhere on the Web site to buy different versions.

    Hi Mljohno,

    If you search for items 14, go into products from Adobe, click on 'Buy' in front of the name of the product and use the drop down menus to specify Mac or Windows full version or upgrade.

    Best,

    Del

  • ERRORS AFTER UNINSTALLING ALL of the cs5.5:Exit Code: 7 - Summary - 1 fatal Error (s), 3 (s), 6 warnings WARNING: DW065: display the requirements not met for {60E59A6C-7399 - 495 A - B8}

    Exit code: 7

    -------------------------------------- Summary --------------------------------------

    -1 fatal Error (s), 3 (s), 6 warnings

    WARNING: DW065: display the requirements not met for {60E59A6C-7399-495A-B85C-C829F4E59602}

    WARNING: DW065: display the requirements not met for {23767F5D-A80C-4264-B8EA-ED4085FC332A}

    WARNING: DW065: display the requirements not met for {DDBDE7B0-6FC4-40B1-B673-66EEE8CB60CF}

    WARNING: DW031: payload: Adobe XMP panels CS5 3.0.0.0 {2EBE92C3-F9D8-48B5-A32B-04FA5D1709FA} has been updated and has been selected for repair. The {42774483-D33C-46F7-8B20-FD0B1A3DAC25} patch Adobe XMP panels CS5_3.1_AdobeXMPPanelsAll 3.1.0.0 are uninstalled now.

    WARNING: DW031: payload: camera profiles Installer 6.0.0.0 {3F023875-4A52-4605-9DB6-A88D4A813E8D} has been updated and has been selected for repair. The {A189C479-C7CD-4E08-8CCF-D999B68C0C71} patch camera profiles Installer_6.3_AdobeCameraRawProfile6.0All 6.3.0.0 are uninstalled now.

    WARNING: DW031: payload: Photoshop Camera Raw 6.0.0.0 {37AB3C65-E02C-4DCF-B0E0-4C2E253D8FA3} has been updated and has been selected for repair. The {FD58D99B-9927-4226-8E00-959A4F76BD89} patch Photoshop Camera Raw_6.3_AdobeCameraRaw6.0All 6.3.0.0 are uninstalled now.

    ERROR: DW020: found payload conflicts and mistakes:

    ERROR: DW020:-Adobe Flash CS5.5 depends on Adobe Flash Player 10 ActiveX must be installed.

    ERROR: DW020:-Adobe Flash CS5.5 depends on Adobe Flash Player 10 Plugin must be installed.

    FATAL: DW020: conflicts were found in the selected payloads. Stop the installation.

    -------------------------------------------------------------------------------------

    What to do now?

    end of message.

    Code 6 & Code 7 http://helpx.adobe.com/creative-suite/kb/errors-exit-code-6-exit.html

  • Exit code: 6 see specific errors and warnings below for troubleshooting. For example, ERROR: DW050... - Summary - 0 fatal Error (s), 2 error (s), 0 warning (s) ERRO

    Exit code: 6

    Please see the faults and warnings below for troubleshooting. For example, ERROR: DW050...

    -------------------------------------- Summary --------------------------------------

    -0 fatal Error (s), 2 error (s), 0 warning (s)

    ERROR: DW050: the following payload errors were found during the installation:

    ERROR: DW050:-Package redistributable Microsoft Visual C++ 2010 (x 64): installation failed

    ERROR: DW050:-Package redistributable Microsoft Visual C++ 2010 (x 86): installation failed

    Hello

    Please see: -.

    Error "exit 6" or "exit 7" | "» Install log | Read, write, file system errors. CS5, CS5.5

  • Exit code: 6 please see specific errors below for troubleshooting. For example, ERROR: - summary - 0 fatal Error (s), 2 error (s) - payload: Microsoft Visual C++

    Exit Code: 6 Please see specific errors below for troubleshooting. For example,  ERROR:   -------------------------------------- Summary --------------------------------------  - 0 fatal error(s), 2 error(s)    ----------- Payload: Microsoft Visual C++ 2012 Redistributable Package (x86) 11.0.61030.0 {873BE68F-480F-49A6-9649-F98CAB056AFC} -----------  ERROR: Third party payload installer vcredist_x86.exe failed with exit code: -2147024546  ERROR: Failed to install Microsoft Visual C++ 2012 Redistributable Package (x86). Please try installing it by double clicking on the executable at "C:\Users\Owner\AppData\Local\Temp\{62272514-D03B-4424-AC1F-93CB2BDA2D54}\InDesign_11_LS20_Win64\Adobe InDesign CC 2015\payloads\Microsoft VC 2012 Redist (x86)\vcredist_x86.exe", or download and install the latest Microsoft Visual C++ 2012 Redistributable Package (x86) from Microsoft website - www.microsoft.com  ------------------------------------------------------------------------------------- 

    So what now?  Any ideas?

    Errors ' Exit Code: 6, "" Exit Code: 7 "|"» CC, CS6, CS5.5

  • I keep trying to install the PS15 Exit Code: 34 please see specific errors below for troubleshooting. For example, ERROR: - Summary - 1 or the fatal errors, 0 FATAL error: Payloa

    I can not download PS 15 and receive the exit code 34. Any ideas?

    Exit code: 34

    Please see specific errors below for troubleshooting. For example, the ERROR:

    -------------------------------------- Summary --------------------------------------

    -fatal error 1, 0 error (s)

    FATAL: Payload "Camera profiles Installer_8.5_AdobeCameraRawProfile8.0All 9.0.0.21 {08F2E584-AFE2-47EA-9891-94768CFDA234} ' information not found in Media_db.

    -------------------------------------------------------------------------------------

    See the link below:

    (Exit code: 34 please see specific errors below for troubleshooting.) For example, ERROR: - Summary - 1 or fatal errors, 0 FATAL error: "Microsoft Visual C++ 20 payload.

  • The Lightroom Installation failed: Exit Code: 7 please see specific errors below for troubleshooting. For example, ERROR: DS003... - Summary - 1 fatal Error (s) 0 error (s).

    When I try to install Photoshop Lightroom 6 from the disc I bought from Amazon I get this message: Exit Code: 7 Please see specific errors below for troubleshooting. For example, ERROR: DS003 ... -------------------------------------- Summary -------------------------------------- - 1 fatal error(s), 0 error(s) ----------- Payload: Adobe Lightroom 6.0.0.0 {8048A5DF-8A70-5BE1-954B-E0FDE1BD0D0D} ----------- FATAL: DS003: Installer package might be corrupt. Re-download the installer and try again. (Cannot extract 'E:\Win support files\payloads\AdobeLightroom6-mul\Assets1_1.zip' to 'C:\Program Files (x86)\Common Files\Adobe\Installers\adobeTemp\{8048A5DF-8A70-5BE1-954B-E0FDE1BD0D0D}'. Error: Error 0 ) ------------------------------------------------------------------------------------- 

    How can I solve this problem?

    The system configuration required

    Exit code: 6, Exit Code: 7 Installation error - http://helpx.adobe.com/creative-suite/kb/errors-exit-code-6-exit.html

    The problems with the Setup logs. CS5, CS5.5, CS6 - http://helpx.adobe.com/creative-suite/kb/troubleshoot-install-logs-cs5-cs5.html for more information on how to review your Setup logs

  • Cc adobe Setup Error 2015 &lt; PRE &gt; Exit Code: 7 please see specific errors below for troubleshooting. For example, ERROR: DF024... - Summary - 0 fatal Error (s), 1 Error (s)

    I got this error when updating

    < PRE > exit code: 7

    Please see specific errors below for troubleshooting. For example, ERROR: DF024...

    -------------------------------------- Summary --------------------------------------

    -0 fatal Error (s), 1 Error (s)

    -Payload: Adobe Photoshop CC 2015 support 16.0.0.0 {3FB7A108-368A-4849-A3F3-69571BAAC457}.

    ERROR: DF024: cannot move the file in "C:\Program Files (x 86) \Common {3FB7A108-368A-4849-A3F3-69571BAAC457} \_49_70b3e516d9196 bb41263c44321678150" to "C:\Program Files (x 86) \Common Files\Adobe\Startup Photoshop\photoshop_contact_sheet_ii\photoshop_contact_sheet_ii_cs_CZ.dat CC\Adobe Scripts" error 1392 the file or directory is corrupted and unreadable... Try setting the correct permissions for the specified file/folder or parent, so that the admin has the right to modify. (Seq 49)

    -------------------------------------------------------------------------------------

    < / PRE >

    Exit code: 6, Exit Code: 7 Installation error - http://helpx.adobe.com/creative-suite/kb/errors-exit-code-6-exit.html

    The problems with the Setup logs. CS5, CS5.5, CS6 - http://helpx.adobe.com/creative-suite/kb/troubleshoot-install-logs-cs5-cs5.html for more information on how to review your Setup logs

Maybe you are looking for