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

PageFault_V2 class

· 52CE 我爱测

This class is the parent class for page fault events. The following syntax is simplified from MOF code.

This class is the parent class for page fault events.

The following syntax is simplified from MOF code.

Syntax

[Guid("{3d6fa8d3-fe05-11d0-9dda-00c04fd7ba7c}"), EventVersion(2)]
class PageFault_V2 : MSNT_SystemTrace
{
};

Members

The PageFault_V2 class does not define any members.

Remarks

To enable all page fault events in an NT Kernel logging session, specify the EVENT_TRACE_FLAG_MEMORY_PAGE_FAULTS flag in the EnableFlags member of an EVENT_TRACE_PROPERTIES structure when calling the StartTrace function. You can also specify the following flags:

  • EVENT_TRACE_FLAG_MEMORY_HARD_FAULTS
  • EVENT_TRACE_FLAG_VIRTUAL_ALLOC

Event trace consumers can implement special processing for all page fault events by calling the SetTraceCallback function and specifying PageFaultGuid as the pGuid parameter. Use the following event types to identify the actual memory event when consuming events.

Event type Description
EVENT_TRACE_TYPE_MM_COW(Event type value is 12) Copy-on-write event. The PageFault_TypeGroup1 MOF class defines the event data for this event. Prior to Windows Vista, the PageFault_TransitionFault MOF class defines the event.
EVENT_TRACE_TYPE_MM_DZF(Event type value is 11) Demand zero fault event. The PageFault_TypeGroup1 MOF class defines the event data for this event. Prior to Windows Vista, the PageFault_TransitionFault MOF class defines the event.
EVENT_TRACE_TYPE_MM_GPF(Event type value is 13) Guard page fault event. The PageFault_TypeGroup1 MOF class defines the event data for this event. Prior to Windows Vista, the PageFault_TransitionFault MOF class defines the event.
EVENT_TRACE_TYPE_MM_HPF(Event type value is 14) Hard page fault event. The PageFault_TypeGroup1 MOF class defines the event data for this event. Prior to Windows Vista, the PageFault_TransitionFault MOF class defines the event.
EVENT_TRACE_TYPE_MM_TF(Event type value is 10) Transition fault event. The PageFault_TypeGroup1 MOF class defines the event data for this event. Prior to Windows Vista, the PageFault_TransitionFault MOF class defines the event.
EVENT_TRACE_TYPE_MM_AV(Event type value is 15) Access violation event. The PageFault_TypeGroup1 MOF class defines the event data for this event.
Event type value, 32 Hard page fault event.The PageFault_HardFault MOF class defines the event data for this event.
Event type value, 105 Image load in page file event. The PageFault_ImageLoadBacked MOF class defines the event data for this event.
Event type value, 98 Virtual allocation event. The VirtualAlloc MOF class defines the event data for this event.
Event type value, 99 Virtual free event. The VirtualAlloc MOF class defines the event data for this event.

You can use the ProcessId and ThreadId members of EVENT_TRACE_HEADER to identify the faulting process or thread.

Requirements

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

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)

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

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