ReactOS 0.4.15-dev-8096-ga0eec98
fxwmicompat.h
Go to the documentation of this file.
1/*++
2
3Copyright (c) Microsoft Corporation
4
5Module Name:
6
7 FxWmiCompat.hpp
8
9Abstract:
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
14Author:
15
16
17
18Environment:
19
20 Both kernel and user mode
21
22Revision 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
37extern "C"
41 __in TRACEHANDLE LoggerHandle,
42 __in ULONG MessageFlags,
43 __in LPGUID MessageGuid,
45 ...
46 );
47
48#define WPP_IFR FxIFR
49
50extern "C"
53FxIFR(
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
66extern "C"
70 __in TRACE_INFORMATION_CLASS TraceInformationClass,
75 );
76
77#endif
78
79#endif __FX_WMI_COMPAT_H__
LONG NTSTATUS
Definition: precomp.h:26
Definition: bufpool.h:45
#define __out_opt
Definition: dbghelp.h:65
#define __in
Definition: dbghelp.h:35
#define __out_bcount(x)
Definition: dbghelp.h:68
#define __in_opt
Definition: dbghelp.h:38
ULONG64 TRACEHANDLE
Definition: evntrace.h:40
_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
_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
_Must_inspect_result_ NTSTATUS FxWmiTraceMessage(__in TRACEHANDLE LoggerHandle, __in ULONG MessageFlags, __in LPGUID MessageGuid, __in USHORT MessageNumber,...)
Definition: tracingum.cpp:323
#define _Must_inspect_result_
Definition: ms_sal.h:558
unsigned short USHORT
Definition: pedump.c:61
uint32_t * PULONG
Definition: typedefs.h:59
uint32_t ULONG
Definition: typedefs.h:59
_In_ ULONG _Out_opt_ PULONG RequiredLength
Definition: wmifuncs.h:30
_In_ ULONG TraceInformationLength
Definition: wmifuncs.h:29
enum _TRACE_INFORMATION_CLASS TRACE_INFORMATION_CLASS
_Must_inspect_result_ typedef _In_ ULONG _In_ ULONG MessageNumber
Definition: iotypes.h:4304
unsigned char UCHAR
Definition: xmlstorage.h:181