ClfsMgmtRemovePolicy routine

The ClfsMgmtRemovePolicy routine resets a log's CLFS_MGMT_POLICY structure to its default value.

Syntax


NTSTATUS ClfsMgmtRemovePolicy(
  _In_  PLOG_FILE_OBJECT LogFile,
  _In_  CLFS_MGMT_POLICY_TYPE PolicyType
);

Parameters

LogFile [in]

A pointer to a LOG_FILE_OBJECT structure that represents the CLFS log whose policy is being removed.

PolicyType [in]

A value of the CLFS_MGMT_POLICY_TYPE enumeration that supplies the type of the policy to be removed.

Return value

The ClfsMgmtRemovePolicy routine returns one of the following NTSTATUS values:

Return codeDescription
STATUS_SUCCESS

CLFS management has removed the requested policy.

STATUS_UNSUCCESSFUL

CLFS management was not able to process the request.

STATUS_INVALID_PARAMETER_1

A NULL value was supplied for the LogFile parameter.

STATUS_INSUFFICIENT_RESOURCES

There is insufficient memory to complete the operation.

STATUS_INVALID_PARAMETER

The value of the PolicyType parameter is not a valid value for the CLFS_MGMT_POLICY_TYPE enumeration.

STATUS_LOG_POLICY_NOT_INSTALLED

No policy of this type has been registered for the log file.

 

This routine might also return other NTSTATUS Values.

Requirements

Version

Available in Windows Server 2003 R2, Windows Vista, and later versions of Windows.

Header

Wdm.h (include Wdm.h, Ntddk.h, or Ntifs.h)

Library

Clfs.lib

IRQL

<= APC_LEVEL

See also

CLFS_MGMT_POLICY
CLFS_MGMT_POLICY_TYPE

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft