IFsrmFileScreenBase::CreateAction method (fsrmscreen.h)

Creates an action for this file screen object. The action is triggered when a file violates the file screen.

Syntax

HRESULT CreateAction(
  [in]  FsrmActionType actionType,
  [out] IFsrmAction    **action
);

Parameters

[in] actionType

The type of action to create. For possible values, see the FsrmActionType enumeration.

[out] action

An IFsrmAction interface to the newly created action. Query the interface for the specific action specified. For example, if actionType is FsrmActionType_Command, query action for the IFsrmActionCommand interface.

Return value

The method returns the following return values.

Remarks

You can specify up to four unique actions for each file screen.

The action is deleted if the file screen is deleted.

Examples

For an example, see Performing Actions Based on File Screen Violations.

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows Server 2008
Target Platform Windows
Header fsrmscreen.h (include FsrmScreen.h, FsrmTlb.h)
DLL SrmSvc.dll

See also

IFsrmFileScreenBase