IProgram::CompletionAction Property

Applies To: System Center Configuration Manager 2007, System Center Configuration Manager 2007 R2, System Center Configuration Manager 2007 R3, System Center Configuration Manager 2007 SP1, System Center Configuration Manager 2007 SP2

IProgram::CompletionAction is a read-only property, in Configuration Manager, that indicates the required actions when the program finishes.

[IDL]
HRESULT CompletionAction([out, retval] tagCompletionActions* pVal);

Parameters

  • pVal
    Data type: tagCompletionActions

    Qualifiers: [out, retval]

    Pointer to a flag indicating the action required when the program finishes. Possible values are:

    Name Actual Value Description

    eNoAction

    0

    No completion action for the program.

    eLogOff

    1

    Configuration Manager logs off the current user when the program that is running completes.

    eReboot

    2

    Configuration Manager restarts the computer when the program that is running completes.

    eProgramReboot

    3

    The program restarts the computer during running.

Return Values

An HRESULT code. Possible values include, but are not limited to, the following:

  • S_OK
    The method succeeded.

Remarks

This property is useful for allowing users to know whether a program is going to perform an action that might restart or log off the computer.

Requirements

UIResource.dll.

Runtime Requirements

For more information, see Configuration Manager Client Runtime Requirements.

Development Requirements

For more information, see Configuration Manager Client Development Requirements.

See Also

Concepts

Program Class