117#pragma prefast(suppress:__WARNING_BUFFER_OVERFLOW, "Recommneded by EndClean");
193 status = FxRegKey::_QueryULong(parameters.
m_Key, &valueName, &numPages);
208 if (FxDriverGlobals->FxVerifierOn && FxDriverGlobals->FxVerboseOn) {
249 ASSERT(FxDriverGlobals->WdfLogHeader ==
NULL);
253 if (FxDriverGlobals ==
NULL || FxDriverGlobals->WdfLogHeader !=
NULL) {
278 pHeader->Offset.u.s.Current = 0;
279 pHeader->Offset.u.s.Previous = 0;
282 FxDriverGlobals->WdfLogHeader =
pHeader;
285 "FxIFR logging started" );
290 "FxIFR has been started with a size override: size 0x%x bytes, "
291 "# Pages %d. An extended IFR size may not be written to a minidump!",
315 ASSERT(FxDriverGlobals->WdfLogHeader ==
NULL);
319 if (FxDriverGlobals ==
NULL || FxDriverGlobals->WdfLogHeader ==
NULL) {
327 FxDriverGlobals->WdfLogHeader =
NULL;
376 ASSERT(FxDriverGlobals->WdfLogHeader ==
NULL);
380 if ( FxDriverGlobals->WdfLogHeader ==
NULL) {
398#pragma prefast(suppress: __WARNING_BUFFER_OVERFLOW, "Recommneded by EndClean");
441 offsetNew.
u.
AsLONG = offsetRet.
u.
s.Current;
448 offsetNew.
u.
s.Current = 0;
449 offsetNew.
u.
s.Previous = offsetRet.
u.
s.Previous;
459 offsetNew.
u.
s.Current = offsetCur.
u.
s.Current + usSize;
460 offsetNew.
u.
s.Previous = offsetRet.
u.
s.Current;
464 offsetNew.
u.
s.Current = offsetCur.
u.
s.Current + usSize;
465 offsetNew.
u.
s.Previous = offsetCur.
u.
s.Current;
487 record->MessageGuid = *MessageGuid;
#define InterlockedIncrement
#define NT_SUCCESS(StatCode)
#define WPP_INIT_TRACING(a, b)
#define ExAllocatePoolWithTag(hernya, size, tag)
DoTraceLevelMessage(pFxDriverGlobals, TRACE_LEVEL_VERBOSE, TRACINGPNP, "Enter, WDFDEVICE %p", Device)
struct _WDF_IFR_HEADER * PWDF_IFR_HEADER
struct _WDF_IFR_RECORD WDF_IFR_RECORD
#define WDF_IFR_RECORD_SIGNATURE
struct _WDF_IFR_HEADER WDF_IFR_HEADER
struct _WDF_IFR_RECORD * PWDF_IFR_RECORD
#define WDF_IFR_HEADER_NAME_LEN
__inline VOID FxVerifyLogHeader(__in PFX_DRIVER_GLOBALS FxDriverGlobals, __in PWDF_IFR_HEADER Header)
FxContextHeader * pHeader
#define OBJ_KERNEL_HANDLE
#define OBJ_CASE_INSENSITIVE
#define InterlockedCompareExchange
#define ExFreePoolWithTag(_P, _T)
#define InitializeObjectAttributes(p, n, a, r, s)
#define _Must_inspect_result_
#define UNREFERENCED_PARAMETER(P)
NTSTATUS NTAPI WmiTraceMessageVa(IN TRACEHANDLE LoggerHandle, IN ULONG MessageFlags, IN LPGUID MessageGuid, IN USHORT MessageNumber, IN va_list MessageArgList)
NTSTRSAFEAPI RtlStringCchCopyA(_Out_writes_(cchDest) _Always_(_Post_z_) NTSTRSAFE_PSTR pszDest, _In_ size_t cchDest, _In_ NTSTRSAFE_PCSTR pszSrc)
FxLibraryGlobalsType FxLibraryGlobals
#define TRACE_LEVEL_INFORMATION
struct _WDF_IFR_OFFSET::@4762::@4763 s
union _WDF_IFR_OFFSET::@4762 u
_Must_inspect_result_ NTSTATUS FxIFR(__in PFX_DRIVER_GLOBALS FxDriverGlobals, __in UCHAR MessageLevel, __in ULONG MessageFlags, __in LPGUID MessageGuid, __in USHORT MessageNumber, __in ...)
_Must_inspect_result_ NTSTATUS FxWmiTraceMessage(__in TRACEHANDLE LoggerHandle, __in ULONG MessageFlags, __in LPGUID MessageGuid, __in USHORT MessageNumber, __in ...)
ULONG FxIFRGetSize(__in PFX_DRIVER_GLOBALS FxDriverGlobals, __in PCUNICODE_STRING RegistryPath)
VOID FxIFRStart(__in PFX_DRIVER_GLOBALS FxDriverGlobals, __in PCUNICODE_STRING RegistryPath, __in MdDriverObject DriverObject)
VOID TraceUninitialize(VOID)
VOID FxIFRStop(__in PFX_DRIVER_GLOBALS FxDriverGlobals)
_Must_inspect_result_ NTSTATUS FxTraceInitialize(VOID)
#define RtlCopyMemory(Destination, Source, Length)
#define RtlZeroMemory(Destination, Length)
#define STATUS_UNSUCCESSFUL
#define DECLARE_CONST_UNICODE_STRING(_variablename, _string)
_Must_inspect_result_ _In_ PDRIVER_OBJECT _In_ PCUNICODE_STRING RegistryPath
_Must_inspect_result_ _In_ PDRIVER_OBJECT DriverObject
void int int ULONGLONG int va_list * ap
_Must_inspect_result_ typedef _In_ ULONG _In_ ULONG MessageNumber