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.
 
 
 
 
 
 

57 lines
976 B

//*************************************************************
//
// Copyright (c) Microsoft Corporation 1998
// All rights reserved
//
// debug.hxx
//
//*************************************************************
#ifndef __DEBUG_HXX__
#define __DEBUG_HXX__
extern HANDLE ghUserPolicyEvent;
extern HANDLE ghMachinePolicyEvent;
inline void
ConditionalBreakIntoDebugger()
{
if ( gDebugBreak )
DebugBreak();
}
void
CreatePolicyEvents();
inline void
SignalPolicyStart( BOOL bUser )
{
if ( ! (gDebugLevel & DL_EVENT) )
return;
if ( bUser )
ResetEvent( ghUserPolicyEvent );
else
ResetEvent( ghMachinePolicyEvent );
}
inline void
SignalPolicyEnd( BOOL bUser )
{
if ( ! (gDebugLevel & DL_EVENT) )
return;
if ( bUser )
SetEvent( ghUserPolicyEvent );
else
SetEvent( ghMachinePolicyEvent );
}
#endif // ifndef __DEBUG_HXX__