Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

56 lines
1011 B

/*++
Copyright(c) 1998,99 Microsoft Corporation
Module Name:
trace.c
Abstract:
Windows Load Balancing Service (WLBS)
Driver - support for WMI event tracing
History:
4/01/01 JosephJ Created
--*/
#define NLB_TRACING_ENABLED 1
#include <ntddk.h>
#include <wmistr.h>
#include <wlbsparm.h>
#include "trace.h"
#include "trace.tmh"
UINT Trace_Skip_Initialization = 0;
PDRIVER_OBJECT Trace_Saved_Driver_Object = NULL;
VOID
Trace_Initialize(
PVOID driver_obj,
PVOID registry_path
)
{
if (!Trace_Skip_Initialization)
{
PDRIVER_OBJECT DriverObject = (PDRIVER_OBJECT) driver_obj;
PUNICODE_STRING RegistryPath = (PUNICODE_STRING) registry_path;
Trace_Saved_Driver_Object = DriverObject;
WPP_INIT_TRACING(DriverObject, RegistryPath);
}
}
VOID
Trace_Deinitialize(VOID)
{
if (Trace_Saved_Driver_Object != NULL)
{
WPP_CLEANUP(Trace_Saved_Driver_Object);
}
}