Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
etw_message.h
Go to the documentation of this file.
1
12#ifndef __W_ETW_MESSAGE_H__
13#define __W_ETW_MESSAGE_H__
14
15#include <glib.h>
16
17#include <windows.h>
18#include <SDKDDKVer.h>
19#include <strsafe.h>
20#include <evntcons.h>
21#include <tdh.h>
22#include <stdlib.h>
23#include <ws2def.h>
24#include <ws2ipdef.h>
25
26
27#define MAX_LOG_LINE_LENGTH 1024
28#define MAX_KEY_LENGTH 64
29
30typedef struct Property_Key_Value
31{
32 USHORT key_length;
33 USHORT value_length;
34 WCHAR key[MAX_KEY_LENGTH];
35 WCHAR value[MAX_LOG_LINE_LENGTH];
37
47VOID format_message(WCHAR* lpszMessage, PROPERTY_KEY_VALUE* propArray, DWORD dwPropertyCount, WCHAR* lpszOutBuffer, DWORD dwOutBufferCount);
48
59BOOL get_event_information(PEVENT_RECORD pEvent, PTRACE_EVENT_INFO* pInfo);
60
73PBYTE extract_property(PEVENT_RECORD pEvent, PTRACE_EVENT_INFO pInfo, DWORD PointerSize, USHORT i, PBYTE pUserData, PBYTE pEndOfUserData, PROPERTY_KEY_VALUE* pExtract);
74
75#endif
76
77
78/*
79 * Editor modelines - https://www.wireshark.org/tools/modelines.html
80 *
81 * Local variables:
82 * c-basic-offset: 4
83 * tab-width: 8
84 * indent-tabs-mode: nil
85 * End:
86 *
87 * vi: set shiftwidth=4 tabstop=8 expandtab:
88 * :indentSize=4:tabSize=8:noTabs=true:
89 */
PBYTE extract_property(PEVENT_RECORD pEvent, PTRACE_EVENT_INFO pInfo, DWORD PointerSize, USHORT i, PBYTE pUserData, PBYTE pEndOfUserData, PROPERTY_KEY_VALUE *pExtract)
Extract a propertiy from an event record.
Definition etw_message.c:146
BOOL get_event_information(PEVENT_RECORD pEvent, PTRACE_EVENT_INFO *pInfo)
Retrieves information about an event.
Definition etw_message.c:330
VOID format_message(WCHAR *lpszMessage, PROPERTY_KEY_VALUE *propArray, DWORD dwPropertyCount, WCHAR *lpszOutBuffer, DWORD dwOutBufferCount)
Formats a message using property key-value pairs.
Definition packet-etw.c:217