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: tagCompletionActionsQualifiers: [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

Development Requirements

See Also

Reference

Program Class


Send comments about this topic to Microsoft.