ClfsMgmtRemovePolicy function (wdm.h)
The ClfsMgmtRemovePolicy routine resets a log's CLFS_MGMT_POLICY structure to its default value.
Syntax
CLFSUSER_API NTSTATUS ClfsMgmtRemovePolicy(
[in] PLOG_FILE_OBJECT LogFile,
[in] CLFS_MGMT_POLICY_TYPE PolicyType
);
Parameters
[in] LogFile
A pointer to a LOG_FILE_OBJECT structure that represents the CLFS log whose policy is being removed.
[in] PolicyType
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 code | Description |
---|---|
|
CLFS management has removed the requested policy. |
|
CLFS management was not able to process the request. |
|
A NULL value was supplied for the LogFile parameter. |
|
There is insufficient memory to complete the operation. |
|
The value of the PolicyType parameter is not a valid value for the CLFS_MGMT_POLICY_TYPE enumeration. |
|
No policy of this type has been registered for the log file. |
This routine might also return other NTSTATUS Values.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Available in Windows Server 2003 R2, Windows Vista, and later versions of Windows. |
Target Platform | Desktop |
Header | wdm.h (include Wdm.h, Ntddk.h, Ntifs.h) |
Library | Clfs.lib |
DLL | Clfs.sys |
IRQL | <= APC_LEVEL |