ClfsDeleteLogByPointer - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// wdm.h

CLFSUSER_API NTSTATUS ClfsDeleteLogByPointer(
  [in] PLOG_FILE_OBJECT plfoLog
);

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-wdm-clfsdeletelogbypointer)

ClfsDeleteLogByPointer function

Description

The ClfsDeleteLogByPointer routine marks a CLFS stream for deletion.

Parameters

plfoLog [in]

A pointer to a LOG_FILE_OBJECT structure that represents an open instance of the stream to be deleted. The caller previously obtained this pointer by calling ClfsCreateLogFile.

Return value

ClfsDeleteLogByPointer returns STATUS_SUCCESS if it succeeds; otherwise, it returns one of the error codes defined in Ntstatus.h.

Remarks

ClfsDeleteLogByPointer marks a stream for deletion but does not close the log file object pointed to by plfoLog. To close a log file object, call ClfsCloseLogFileObject. A stream marked for deletion is deleted after all log file objects associated with the stream are closed.

A CLFS stream marked for deletion will refuse subsequent requests to open the stream.

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

See also

ClfsCreateLogFile

ClfsDeleteLogFile