ScanLogContainers function (clfsw32.h)
Enumerates log containers. Call this function repeatedly to iterate over all log containers.
Syntax
CLFSUSER_API BOOL ScanLogContainers(
[in, out] PCLFS_SCAN_CONTEXT pcxScan,
[in] CLFS_SCAN_MODE eScanMode,
[in, out, optional] LPVOID pReserved
);
Parameters
[in, out] pcxScan
A pointer to a client-allocated CLFS_SCAN_CONTEXT structure that the CreateLogContainerScanContext function initializes.
[in] eScanMode
The mode for containers to be scanned.
Containers can be scanned in any of the following CLFS_SCAN_MODE modes.
[in, out, optional] pReserved
Reserved. Set pReserved to NULL.
Return value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
The following list identifies the possible error codes:
Remarks
The ID of a log container is returned in: pcxScan->pinfoContainer->LogicalContainerId.
Examples
For an example that uses this function, see Enumerating Log Containers.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2003 R2 [desktop apps only] |
Target Platform | Windows |
Header | clfsw32.h |
Library | Clfsw32.lib |
DLL | Clfsw32.dll |