Microsoft KB Archive/322925

= Smsapm32 Does Not Support Exit Code -1 (0xFFFFFFFF) =

Article ID: 322925

Article Last Modified on 10/27/2006

-

APPLIES TO


 * Microsoft Systems Management Server 2.0 Standard Edition
 * Microsoft Systems Management Server 2.0 Service Pack 1
 * Microsoft Systems Management Server 2.0 Service Pack 2
 * Microsoft Systems Management Server 2.0 Service Pack 3
 * Microsoft Systems Management Server 2.0 Service Pack 4

-



This article was previously published under Q322925



SYMPTOMS
If the installation or removal of a program is not successful while it is being run by Smsapm32, and the installation or removal generates an exit code of -1 (0xFFFFFFFF), Advertised Program Manager (APM) cannot process the exit code correctly.



CAUSE
The original design of APM can handle processes that return only standard Win32 exit codes.



RESOLUTION
To resolve this problem, install the hotfix that is described in the following Microsoft Knowledge Base article:

322922 Program Removal Is Unsuccessful If &quot;Remove Software&quot; Check Box Is Selected After Software Installation

This hotfix adds support for processing the -1 exit code.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.



MORE INFORMATION
If a program that is run by Smsapm32 returns an exit code of -1, no APM status message 10008 is generated. Typically, APM generates status message 10008 to indicate that an advertisement was successfully completed and the exit code that was returned from that program. The Smsapm32.log file in the %SystemRoot%\MS\SMS\Logs folder shows messages such as:

SCHED DATA : Stopped monitoring program execution.

SCHED DATA : Return code = 0xffffffff; error message could not be formatted;Program 'X:\ProgramPath\Programexecutable.exe' terminated with exit code = -1.

Keywords: kbbug kbfix kbsms200presp4fix KB322925

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.