ReactOS  0.4.13-dev-259-g5ca9c9c
wmifuncs.h
Go to the documentation of this file.
1 /******************************************************************************
2  * WMI Library Support Functions *
3  ******************************************************************************/
4 
5 #ifdef RUN_WPP
6 #if (NTDDI_VERSION >= NTDDI_WINXP)
10 __cdecl
12  _In_ TRACEHANDLE LoggerHandle,
13  _In_ ULONG MessageFlags,
14  _In_ LPGUID MessageGuid,
16  ...);
17 #endif
18 #endif /* RUN_WPP */
19 
20 #if (NTDDI_VERSION >= NTDDI_WINXP)
21 
25 NTAPI
27  _In_ TRACE_INFORMATION_CLASS TraceInformationClass,
32 
33 #if 0
34 /* FIXME: Get va_list from where? */
38 NTAPI
40  _In_ TRACEHANDLE LoggerHandle,
41  _In_ ULONG MessageFlags,
42  _In_ LPGUID MessageGuid,
44  _In_ va_list MessageArgList);
45 #endif
46 
47 #endif /* (NTDDI_VERSION >= NTDDI_WINXP) */
48 
49 #ifndef TRACE_INFORMATION_CLASS_DEFINE
50 
51 #if (NTDDI_VERSION >= NTDDI_WINXP)
55 NTAPI
57  _In_ TRACE_INFORMATION_CLASS TraceInformationClass,
62 #endif
63 
64 #define TRACE_INFORMATION_CLASS_DEFINE
65 
66 #endif /* TRACE_INFOPRMATION_CLASS_DEFINE */
67 
68 #if (NTDDI_VERSION >= NTDDI_VISTA)
69 
73 NTAPI
74 EtwRegister(
75  _In_ LPCGUID ProviderId,
76  _In_opt_ PETWENABLECALLBACK EnableCallback,
79 
83 NTAPI
84 EtwUnregister(
86 
88 BOOLEAN
90 NTAPI
91 EtwEventEnabled(
94 
96 BOOLEAN
98 NTAPI
99 EtwProviderEnabled(
103 
106 NTSTATUS
108 NTAPI
109 EtwActivityIdControl(
112 
114 NTSTATUS
116 NTAPI
117 EtwWrite(
123 
125 NTSTATUS
127 NTAPI
128 EtwWriteTransfer(
135 
137 NTSTATUS
139 NTAPI
140 EtwWriteString(
145  _In_ PCWSTR String);
146 
147 #endif /* (NTDDI_VERSION >= NTDDI_VISTA) */
148 
149 #if (NTDDI_VERSION >= NTDDI_WIN7)
151 NTSTATUS
153 NTAPI
154 EtwWriteEx(
158  _In_ ULONG Flags,
163 #endif
164 
165 
166 
const uint16_t * PCWSTR
Definition: typedefs.h:55
NTSTATUS NTAPI WmiTraceMessageVa(IN TRACEHANDLE LoggerHandle, IN ULONG MessageFlags, IN LPGUID MessageGuid, IN USHORT MessageNumber, IN va_list MessageArgList)
Definition: wmi.c:354
enum _TRACE_INFORMATION_CLASS TRACE_INFORMATION_CLASS
ULONG64 TRACEHANDLE
Definition: evntrace.h:40
#define __cdecl
Definition: accygwin.h:79
_In_ PCEVENT_DESCRIPTOR _In_opt_ LPCGUID _In_ ULONG UserDataCount
Definition: wmifuncs.h:119
_In_ UCHAR Level
Definition: wmifuncs.h:101
LONG NTSTATUS
Definition: precomp.h:26
_In_ UCHAR _In_ ULONGLONG _In_opt_ LPCGUID _In_ PCWSTR String
Definition: wmifuncs.h:142
_Inout_updates_bytes_(sizeof(GUID)) LPGUID ActivityId)
#define EVENT_ACTIVITY_CTRL_CREATE_ID
Definition: evntprov.h:44
_In_ PCEVENT_DESCRIPTOR _In_opt_ LPCGUID _In_ ULONG _In_reads_opt_(UserDataCount) PEVENT_DATA_DESCRIPTOR UserData)
#define _In_opt_
Definition: no_sal2.h:213
_In_opt_ PETWENABLECALLBACK EnableCallback
Definition: wmifuncs.h:76
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
_In_ PCEVENT_DESCRIPTOR _In_opt_ LPCGUID _In_opt_ LPCGUID RelatedActivityId
Definition: wmifuncs.h:130
_In_ PCEVENT_DESCRIPTOR _In_ ULONG64 Filter
Definition: wmifuncs.h:156
_IRQL_requires_max_(APC_LEVEL) NTKERNELAPI NTSTATUS NTAPI WmiQueryTraceInformation(_In_ TRACE_INFORMATION_CLASS TraceInformationClass
unsigned char BOOLEAN
_Out_writes_bytes_(TraceInformationLength) PVOID TraceInformation
#define _Out_
Definition: no_sal2.h:323
#define NTKERNELAPI
char * va_list
Definition: acmsvcex.h:78
_IRQL_requires_same_ typedef _In_ ULONG ControlCode
Definition: wmitypes.h:55
Definition: bufpool.h:45
_In_opt_ PETWENABLECALLBACK _In_opt_ PVOID _Out_ PREGHANDLE RegHandle
Definition: wmifuncs.h:76
#define _Out_opt_
Definition: no_sal2.h:339
ULONGLONG * PREGHANDLE
Definition: evntprov.h:48
uint64_t ULONGLONG
Definition: typedefs.h:65
NTSTATUS __cdecl WmiTraceMessage(IN TRACEHANDLE LoggerHandle, IN ULONG MessageFlags, IN LPGUID MessageGuid, IN USHORT MessageNumber, IN ...)
Definition: wmi.c:339
NTSTATUS NTAPI WmiQueryTraceInformation(IN TRACE_INFORMATION_CLASS TraceInformationClass, OUT PVOID TraceInformation, IN ULONG TraceInformationLength, OUT PULONG RequiredLength OPTIONAL, IN PVOID Buffer OPTIONAL)
Definition: wmi.c:324
unsigned __int64 ULONG64
Definition: imports.h:198
unsigned char UCHAR
Definition: xmlstorage.h:181
_In_ PCEVENT_DESCRIPTOR _In_opt_ LPCGUID ActivityId
Definition: wmifuncs.h:119
#define PASSIVE_LEVEL
Definition: env_spec_w32.h:693
_In_opt_ PETWENABLECALLBACK _In_opt_ PVOID CallbackContext
Definition: wmifuncs.h:76
_In_ PCEVENT_DESCRIPTOR EventDescriptor
Definition: wmifuncs.h:93
#define _In_
Definition: no_sal2.h:204
#define HIGH_LEVEL
Definition: env_spec_w32.h:703
unsigned short USHORT
Definition: pedump.c:61
_In_ ULONG _Out_opt_ PULONG RequiredLength
Definition: wmifuncs.h:29
_Must_inspect_result_ typedef _In_ ULONG _In_ ULONG MessageNumber
Definition: iotypes.h:3946
unsigned int * PULONG
Definition: retypes.h:1
_When_(ControlCode==EVENT_ACTIVITY_CTRL_CREATE_ID, _IRQL_requires_max_(HIGH_LEVEL)) _When_(ControlCode!
unsigned int ULONG
Definition: retypes.h:1
ULONGLONG REGHANDLE
Definition: evntprov.h:48
#define APC_LEVEL
Definition: env_spec_w32.h:695
_In_ ULONG TraceInformationLength
Definition: wmifuncs.h:29