3 * Copyright 2020, Odysseus Yang
5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <gerald@wireshark.org>
7 * Copyright 1998 Gerald Combs
9 * SPDX-License-Identifier: GPL-2.0-or-later
12 #ifndef __W_ETW_MESSAGE_H__
13 #define __W_ETW_MESSAGE_H__
18 #include <SDKDDKVer.h>
24 #define MAX_SMALL_BUFFER 4
25 #define MAX_LOG_LINE_LENGTH 1024
26 #define MAX_KEY_LENGTH 64
28 typedef struct Property_Key_Value
30 WCHAR key
[MAX_KEY_LENGTH
];
31 WCHAR value
[MAX_LOG_LINE_LENGTH
];
34 typedef struct in6_addr
{
39 } IN6_ADDR
, * PIN6_ADDR
, FAR
* LPIN6_ADDR
;
41 VOID
format_message(WCHAR
* lpszMessage
, PROPERTY_KEY_VALUE
* propArray
, DWORD dwPropertyCount
, WCHAR
* lpszOutBuffer
, DWORD dwOutBufferCount
);
42 BOOL
get_event_information(PEVENT_RECORD pEvent
, PTRACE_EVENT_INFO
* pInfo
);
43 PBYTE
extract_properties(PEVENT_RECORD pEvent
, PTRACE_EVENT_INFO pInfo
, DWORD PointerSize
, USHORT i
, PBYTE pUserData
, PBYTE pEndOfUserData
, PROPERTY_KEY_VALUE
* pExtract
);
49 * Editor modelines - https://www.wireshark.org/tools/modelines.html
54 * indent-tabs-mode: nil
57 * vi: set shiftwidth=4 tabstop=8 expandtab:
58 * :indentSize=4:tabSize=8:noTabs=true: