IFsrmActionCommand::MonitorCommand property

[This property is supported for compatibility but it's recommended to use the FSRM WMI Classes to manage FSRM. Please see the MSFT_FSRMAction, MSFT_FSRMFMJAction, and MSFT_FSRMFMJNotificationAction classes.]

Retrieves or sets a value that determines whether FSRM will monitor the executable program specified in the ExecutablePath property.

This property is read/write.

Syntax


HRESULT put_MonitorCommand(
  [in]   VARIANT_BOOL monitorCommand
);

HRESULT get_MonitorCommand(
  [out]  VARIANT_BOOL *monitorCommand
);

Property value

If VARIANT_TRUE, FSRM monitors the executable program and terminates it if its run time exceeds the value specified in the KillTimeOut property. Otherwise, VARIANT_FALSE. The default is VARIANT_FALSE.

Error codes

The method returns the following return values.

NameMeaning
S_OK

Success.

E_INVALIDARG

The variant type is not valid.

Remarks

The KillTimeOut and LogResult properties are ignored if this property is not set to VARIANT_TRUE.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2008

Header

Fsrm.h (include FsrmQuota.h or FsrmScreen.h)

DLL

SrmSvc.dll

IID

IID_IFsrmActionCommand is defined as 12937789-e247-4917-9c20-f3ee9c7ee783

See also

IFsrmActionCommand
IFsrmActionCommand::LogResult
MSFT_FSRMAction
MSFT_FSRMFMJAction
MSFT_FSRMFMJNotificationAction

 

 

Show:
© 2014 Microsoft