Leaked source code of windows server 2003
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.
|
|
// DbgLvl.cpp : This file contains the
// Created: Dec '97
// Author : a-rakeba
// History:
// Copyright (C) 1997 Microsoft Corporation
// All rights reserved.
// Microsoft Confidential
#include "DbgLvl.h"
//#include "w4warn.h"
using namespace _Utils;
DWORD CDebugLevel::s_dwLevel = 0;
void CDebugLevel::TurnOn ( DWORD dwLvl ) { s_dwLevel |= dwLvl; }
void CDebugLevel::TurnOnAll( void ) { s_dwLevel = ( DWORD ) -1; }
void CDebugLevel::TurnOff ( DWORD dwLvl ) { s_dwLevel &= dwLvl ^ -1; }
void CDebugLevel::TurnOffAll( void ) { s_dwLevel = 0; }
bool CDebugLevel::IsCurrLevel ( DWORD dwLvl ) { if( ( s_dwLevel & dwLvl ) == 0 ) return ( false ); else return ( true ); }
|