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

DiskIo class

· 52CE 我爱测

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

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

The following syntax is simplified from MOF code.

Syntax

[Guid("{3d6fa8d4-fe05-11d0-9dda-00c04fd7ba7c}")]
class DiskIo : MSNT_SystemTrace
{
};

Members

The DiskIo class does not define any members.

Remarks

To enable disk I/0 events in an NT Kernel logging session, specify the EVENT_TRACE_FLAG_DISK_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_DISK_IO_INIT
  • EVENT_TRACE_FLAG_DRIVER

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

Event type Description
EVENT_TRACE_TYPE_IO_READ(Event type value is 10) Read event. The DiskIo_TypeGroup1 MOF class defines the event data for this event.
EVENT_TRACE_TYPE_IO_WRITE(Event type value is 11) Write event. The DiskIo_TypeGroup1 MOF class defines the event data for this event.
EVENT_TRACE_TYPE_IO_READ_INIT(Event type value is 12) Initialize read event. The DiskIo_TypeGroup2 MOF class defines the event data for this event.
EVENT_TRACE_TYPE_IO_WRITE_INIT(Event type value is 13) Initialize write event. The DiskIo_TypeGroup2 MOF class defines the event data for this event.
EVENT_TRACE_TYPE_IO_FLUSH(Event type value is 14) Initialize write event. The DiskIo_TypeGroup3 MOF class defines the event data for this event.
EVENT_TRACE_TYPE_IO_FLUSH_INIT(Event type value is 15) Initialize flush event. The DiskIo_TypeGroup2 MOF class defines the event data for this event.
EVENT_TRACE_TYPE_IO_REDIRECTED_INIT(Event type value is 16) Initialize redirected event. Redirected IO events are used to map disk IOs to a Windows Imaging Format (WIM) to the filename within the WIM.
Event type value is 52 Driver complete request event. The DriverCompleteRequest MOF class defines the event data for this event.
Event type value is 53 Driver complete request return event. The DriverCompleteRequestReturn MOF class defines the event data for this event.
Event type value is 37 Driver completion routine event. The DriverCompletionRoutine MOF class defines the event data for this event.
Event type value is 34 Driver major function call event. The DriverMajorFunctionCall MOF class defines the event data for this event.
Event type value is 35 Driver major function call return event. The DriverMajorFunctionReturn MOF class defines the event data for this event.

The disk I/0 provider cannot identify which file is read or written during a disk I/O event. To retrieve the name of the file associated with the disk I/O event, enable the file I/0 event provider.

Disk I/O events are recorded at the I/O completion time. To determine when the I/O operation began, use the initialization events, for example, EVENT_TRACE_TYPE_IO_READ_INIT.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]

See also

DiskIo_TypeGroup1

DiskIo_TypeGroup2

DiskIo_TypeGroup3

DriverCompleteRequest

DriverCompleteRequestReturn

DriverCompletionRoutine

DriverMajorFunctionCall

DriverMajorFunctionReturn

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)

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

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