Checks if a specific file or folder is in the exclusion list for a volume protected by Unified Write Filter (UWF).


UInt32 FindExclusion (
    [in] string FileName,
    [out] boolean bFound 


FileName [in] A string that contains the full path of the file or folder relative to the volume.

bFound [out] Indicates if FileName is in the file exclusion list for the volume.

Return Value

Returns an HRESULT value that indicates WMI status or a WMI error constant.


FindExclusion sets bFound to true only for file and folder exclusions that have been explicitly added to the exclusion list. Files and subfolders that are in an excluded folder are not identified as excluded by FindExclusion, unless they have been explicitly excluded.


Windows Edition Supported
Windows 10 Home No
Windows 10 Pro No
Windows 10 Enterprise Yes
Windows 10 Education Yes


Unified Write Filter