ClfsGetContainerName function (wdm.h)

The ClfsGetContainerName routine returns the path name of a specified container.

Syntax

CLFSUSER_API NTSTATUS ClfsGetContainerName(
  [in]            PLOG_FILE_OBJECT  plfoLog,
  [in]            CLFS_CONTAINER_ID cidLogicalContainer,
  [out]           PUNICODE_STRING   puszContainerName,
  [out, optional] PULONG            pcActualLenContainerName
);

Parameters

[in] plfoLog

A pointer to a LOG_FILE_OBJECT structure that represents a CLFS log. The caller previously obtained this pointer by calling ClfsCreateLogFile.

[in] cidLogicalContainer

The logical identifier of a container in the CLFS log.

[out] puszContainerName

A pointer to a UNICODE_STRING structure. The Buffer member of puszContainerName must point to a caller-allocated buffer that receives the path name of the container. The MaximumLength member must supply the size of the buffer.

[out, optional] pcActualLenContainerName

A pointer to a ULONG-typed variable that receives the actual length, in Unicode characters, of the container's path name. This parameter can be NULL.

Return value

ClfsGetContainerName returns one of the status codes defined in Ntstatus.h. The following table gives the meanings of various return values.

Return code Description
STATUS_SUCCESS
The Buffer member of puszContainerName receives the full path name of the container. If pcActualLenContainerName is not NULL, it receives the actual length, in Unicode characters, of the full path name.
STATUS_BUFFER_OVERFLOW
The actual length, in Unicode characters, of the full path name is larger than puszContainerName->MaximumLength. The Buffer member of puszContainerName receives the full path name of the container truncated to the number of characters specified by puszContainerName->MaximumLength. If pcActualLenContainerName is not NULL, it receives the actual length, in Unicode characters, of the full path name.
Other
On return, the contents of puszContainerName->Buffer and pcActualLenContainerName are undefined.

Remarks

For an explanation of CLFS concepts and terminology, see Common Log File System.

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)
Library Clfs.lib
DLL Clfs.sys
IRQL <= APC_LEVEL

See also

ClfsAddLogContainer

ClfsRemoveLogContainer