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

TdhGetAllEventsInformation function

· 52CE 我爱测

Retrieves metadata about all events in the specified namespace.

Retrieves metadata about all events in the specified namespace.

Syntax

TdhGetAllEventsInformation(
    __in PEVENT_RECORD pEvent,
    __in_opt PVOID pWbemService,
    __out ULONG *pIndex,
    __out ULONG *pCount,
    __out_bcount_opt(*pBufferSize) PTRACE_EVENT_INFO *ppBuffer,
    __inout ULONG *pBufferSize
    );

Parameters

pEvent [in]

The event record passed to your EventRecordCallback callback. For details, see the EVENT_RECORD structure.

pWbemService [in]

Pointer to namespace for which the diagnostic mode data is retrieved.

pIndex [out]

The index in the ppBuffer buffer of the first PTRACE_EVENT_INFO.

pCount

The number of PTRACE_EVENT_INFO entries returned in ppBuffer.

ppBuffer

User-allocated buffer to receive the event information. For details, see the TRACE_EVENT_INFO structure.

pBufferSize

Size, in bytes, of the pBuffer buffer. If the function succeeds, this parameter receives the size of the buffer used. If the buffer is too small, the function returns ERROR_INSUFFICIENT_BUFFER and sets this parameter to the required buffer size. If the buffer size is zero on input, no data is returned in the buffer and this parameter receives the required buffer size.

Return value

S_OK on success.

Remarks

This function is not defined in an SDK header and must be declared by the caller. This function is exported from tdh.dll.

Requirements

Requirement Value
Minimum supported client Windows 11
Minimum supported server Windows 11
DLL tdh.dll

See also

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 03/02/2023
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

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

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