大网数据广告活动
性能与资源

FileIo class

· 52CE 我爱测

FileIo class - This class is the parent class for file I/O events. The following syntax is simplified from MOF code.

This class is the parent class for file I/O events.

The following syntax is simplified from MOF code.

Syntax

[Guid("{90cbdc39-4a3e-11d1-84f4-0000f80464e3}"), EventVersion(2)]
class FileIo : MSNT_SystemTrace
{
};

Members

The FileIo class does not define any members.

Remarks

To enable the File IO events in an NT Kernel logging session, specify the EVENT_TRACE_FLAG_DISK_FILE_IO flag in the EnableFlags member of an EVENT_TRACE_PROPERTIES structure when calling the StartTrace function. You can also specify one or more of the following flags:

  • EVENT_TRACE_FLAG_FILE_IO
  • EVENT_TRACE_FLAG_FILE_IO_INIT

Event trace consumers can implement special processing for file I/O events by calling the SetTraceCallback function and specifying FileIoGuid as the pGuid parameter. Use the following event types to identify the actual event when consuming events.

Event type Description
Event type value is 0 File name event. The FileIo_Name MOF class defines the event data for this event.
Event type value is 32 File create event. The FileIo_Name MOF class defines the event data for this event.
Event type value is 35 File delete event. The FileIo_Name MOF class defines the event data for this event.
Event type value is 36 File rundown event. Enumerates all open files on the computer at the end of the trace session. The FileIo_Name MOF class defines the event data for this event.
Event type value is 64 File create event. The FileIo_Create MOF class defines the event data for this event.
Event type value is 72 Directory enumeration event. The FileIo_DirEnum MOF class defines the event data for this event.
Event type value is 77 Directory notification event. The FileIo_DirEnum MOF class defines the event data for this event.
Event type value is 69 Set information event. The FileIo_Info MOF class defines the event data for this event.
Event type value is 70 Delete file event. The FileIo_Info MOF class defines the event data for this event.
Event type value is 71 Rename file event. The FileIo_Info MOF class defines the event data for this event.
Event type value is 74 Query file information event. The FileIo_Info MOF class defines the event data for this event.
Event type value is 75 File system control event. The FileIo_Info MOF class defines the event data for this event.
Event type value is 76 End of operation event. The FileIo_OpEnd MOF class defines the event data for this event.
Event type value is 67 File read event. The FileIo_ReadWrite MOF class defines the event data for this event.
Event type value is 68 File write event. The FileIo_ReadWrite MOF class defines the event data for this event.
Event type value is 65 Clean up event. The event is generated when the last handle to the file is released. The FileIo_SimpleOp MOF class defines the event data for this event.
Event type value is 66 Close event. The event is generated when the file object is freed. The FileIo_SimpleOp MOF class defines the event data for this event.
Event type value is 73 Flush event. This event is generated when the file buffers are fully flushed to disk. The FileIo_SimpleOp MOF class defines the event data for this event.

File IO events are logged at the beginning of the operation.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]

See also

MSNT_SystemTrace

FileIo_V0

FileIo_V1

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。