Skip to content

Latest commit

 

History

History
180 lines (136 loc) · 6.11 KB

nf-vswriter-ivsscreatewritermetadata-addexcludefiles.md

File metadata and controls

180 lines (136 loc) · 6.11 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:vswriter.IVssCreateWriterMetadata.AddExcludeFiles
IVssCreateWriterMetadata::AddExcludeFiles (vswriter.h)
The AddExcludeFiles method is used to explicitly exclude a file set (a specified file or files) that might otherwise be implicitly included when a component of the current writer is backed up.
AddExcludeFiles
AddExcludeFiles method [VSS]
AddExcludeFiles method [VSS]
IVssCreateWriterMetadata interface
IVssCreateWriterMetadata interface [VSS]
AddExcludeFiles method
IVssCreateWriterMetadata.AddExcludeFiles
IVssCreateWriterMetadata::AddExcludeFiles
_win32_ivsscreatewritermetadata_addexcludefiles
base.ivsscreatewritermetadata_addexcludefiles
vswriter/IVssCreateWriterMetadata::AddExcludeFiles
base\ivsscreatewritermetadata_addexcludefiles.htm
base
705bb666-9080-4b42-af58-9cc21fbf88cf
12/05/2018
AddExcludeFiles, AddExcludeFiles method [VSS], AddExcludeFiles method [VSS],IVssCreateWriterMetadata interface, IVssCreateWriterMetadata interface [VSS],AddExcludeFiles method, IVssCreateWriterMetadata.AddExcludeFiles, IVssCreateWriterMetadata::AddExcludeFiles, _win32_ivsscreatewritermetadata_addexcludefiles, base.ivsscreatewritermetadata_addexcludefiles, vswriter/IVssCreateWriterMetadata::AddExcludeFiles
vswriter.h
Vss.h, VsWriter.h
Windows
Windows XP [desktop apps only]
Windows Server 2003 [desktop apps only]
VssApi.lib
Windows
19H1
IVssCreateWriterMetadata::AddExcludeFiles
vswriter/IVssCreateWriterMetadata::AddExcludeFiles
c++
APIRef
kbSyntax
COM
VssApi.lib
VssApi.dll
IVssCreateWriterMetadata.AddExcludeFiles

IVssCreateWriterMetadata::AddExcludeFiles

-description

The AddExcludeFiles method is used to explicitly exclude a file set (a specified file or files) that might otherwise be implicitly included when a component of the current writer is backed up.

-parameters

-param wszPath [in]

Pointer to a null-terminated wide character string containing the root directory under which files are to be excluded.

The directory can be a local directory on the VSS machine, or it can be a file share directory on a remote file server.

UNC paths are supported.

The path can contain environment variables (for example, %SystemRoot%) but cannot contain wildcard characters.

There is no requirement that the path end with a backslash (""). It is up to applications that retrieve this information to check.

-param wszFilespec [in]

Pointer to a null-terminated wide character string containing the file specification of the files to be excluded.

A file specification cannot contain directory specifications (for example, no backslashes) but can contain the ? and * wildcard characters.

-param bRecursive [in]

A Boolean value specifying whether the path specified by the wszPath parameter identifies only a single directory or if it indicates a hierarchy of directories to be traversed recursively. This parameter should be set to true if the path is treated as a hierarchy of directories to be recursed through, or false otherwise.

For information on traversing over mounted folders, see Working with Mounted Folders and Reparse Points.

-returns

The following are the valid return codes for this method.

Value Meaning
S_OK
The operation was successful.
E_INVALIDARG
One of the parameter values is not valid.
E_OUTOFMEMORY
The caller is out of memory or other system resources.
VSS_E_INVALID_XML_DOCUMENT
The XML document is not valid. Check the event log for details. For more information, see Event and Error Handling Under VSS.
VSS_E_UNEXPECTED
Unexpected error. The error code is logged in the error log file. For more information, see Event and Error Handling Under VSS.

Windows Server 2008, Windows Vista, Windows Server 2003 and Windows XP:  This value is not supported until Windows Server 2008 R2 and Windows 7. E_UNEXPECTED is used instead.

-remarks

Windows 7, Windows Server 2008 R2, Windows Vista, Windows Server 2008, Windows XP and Windows Server 2003:  Remote file shares are not supported until Windows 8 and Windows Server 2012. Writers support only local resources—sets of files whose absolute path starts with a valid local volume specification and cannot be a mapped network drive. Therefore, path inputs (wszPath) to AddExcludeFiles (after the resolution of any environment variables) must be in this format.

For example, it is often convenient to define a component to include all files in a given directory and then use AddExcludeFiles to explicitly remove some files (for instance, temporary files) from a backup.

For more information on excluding files, see Exclude File List Specification.

-see-also

IVssCreateWriterMetadata

IVssCreateWriterMetadata::AddComponent