ReactOS  0.4.15-dev-3294-ge98684e
fxwmicompat.h
Go to the documentation of this file.
1 /*++
2 
3 Copyright (c) Microsoft Corporation
4 
5 Module Name:
6 
7  FxWmiCompat.hpp
8 
9 Abstract:
10 
11  Undefines WMI ntos exports used by WPP and redirects them to our own
12  functions so that we can build User and Kernel libraries.
13 
14 Author:
15 
16 
17 
18 Environment:
19 
20  Both kernel and user mode
21 
22 Revision History:
23 
24 --*/
25 
26 #ifndef __FX_WMI_COMPAT_H__
27 #define __FX_WMI_COMPAT_H__
28 
29 #include <evntrace.h>
30 
31 #ifdef WPP_TRACE
32 #undef WPP_TRACE
33 #endif
34 
35 #define WPP_TRACE FxWmiTraceMessage
36 
37 extern "C"
41  __in TRACEHANDLE LoggerHandle,
42  __in ULONG MessageFlags,
43  __in LPGUID MessageGuid,
45  ...
46  );
47 
48 #define WPP_IFR FxIFR
49 
50 extern "C"
53 FxIFR(
54  __in PFX_DRIVER_GLOBALS FxDriverGlobals,
55  __in UCHAR MessageLevel,
56  __in ULONG MessageFlags,
57  __in LPGUID MessageGuid,
59  ...
60  );
61 
62 #if ((FX_CORE_MODE)==(FX_CORE_USER_MODE))
63 #undef WmiQueryTraceInformation
64 #define WmiQueryTraceInformation FxWmiQueryTraceInformation
65 
66 extern "C"
70  __in TRACE_INFORMATION_CLASS TraceInformationClass,
71  __out_bcount(TraceInformationLength) PVOID TraceInformation,
75  );
76 
77 #endif
78 
79 #endif __FX_WMI_COMPAT_H__
enum _TRACE_INFORMATION_CLASS TRACE_INFORMATION_CLASS
ULONG64 TRACEHANDLE
Definition: evntrace.h:40
#define __out_bcount(x)
Definition: dbghelp.h:68
#define __in_opt
Definition: dbghelp.h:38
LONG NTSTATUS
Definition: precomp.h:26
#define __out_opt
Definition: dbghelp.h:65
Definition: bufpool.h:45
_Must_inspect_result_ NTSTATUS FxWmiTraceMessage(__in TRACEHANDLE LoggerHandle, __in ULONG MessageFlags, __in LPGUID MessageGuid, __in USHORT MessageNumber,...)
Definition: tracingum.cpp:323
unsigned char UCHAR
Definition: xmlstorage.h:181
_Must_inspect_result_ NTSTATUS FxIFR(__in PFX_DRIVER_GLOBALS FxDriverGlobals, __in UCHAR MessageLevel, __in ULONG MessageFlags, __in LPGUID MessageGuid, __in USHORT MessageNumber,...)
Definition: tracingum.cpp:613
#define _Must_inspect_result_
Definition: ms_sal.h:558
unsigned short USHORT
Definition: pedump.c:61
_Must_inspect_result_ typedef _In_ ULONG _In_ ULONG MessageNumber
Definition: iotypes.h:4303
_In_ ULONG _Out_opt_ PULONG RequiredLength
Definition: wmifuncs.h:29
unsigned int * PULONG
Definition: retypes.h:1
_Must_inspect_result_ NTSTATUS FxWmiQueryTraceInformation(__in TRACE_INFORMATION_CLASS TraceInformationClass, __out_bcount(TraceInformationLength) PVOID TraceInformation, __in ULONG TraceInformationLength, __out_opt PULONG RequiredLength, __in_opt PVOID Buffer)
Definition: tracingum.cpp:310
unsigned int ULONG
Definition: retypes.h:1
#define __in
Definition: dbghelp.h:35
_In_ ULONG TraceInformationLength
Definition: wmifuncs.h:29