/*++ Copyright (c) 1991 Microsoft Corporation Module Name: br.h Abstract: Private header file for the NT Browser service included by every module of the Workstation service. Author: Rita Wong (ritaw) 15-Feb-1991 Revision History: --*/ #ifndef _BR_INCLUDED_ #define _BR_INCLUDED_ #include // NT definitions #include // NT runtime library definitions #include #include // Win32 type definitions #include // Win32 base API prototypes #include // Win32 service control APIs #include // LAN Manager common definitions #include // LAN Manager network error definitions #include // LAN Manager service names #include // NetApiBufferFree #include #include // LAN Man utility routines #include // NetpNtStatusToApiStatus #include // NetpDbgPrint #include // Transitional string functions #include // I_Net canonicalize functions #include // ROUND_UP_COUNT macro #include // LM Extensions of service definitions #include #include // DataTypes and runtime APIs #include // Prototypes for MIDL user functions #include // Generated by the MIDL complier #include #include #include #include #include // Common browser routines. #include #include #include "brconst.h" #include "bowqueue.h" #include "browsnet.h" #include "browslst.h" #include "brutil.h" #include "brwan.h" #include "brmain.h" #include "brdevice.h" #include "brconfig.h" #include "browsdom.h" #include "brbackup.h" #include "brmaster.h" #include "srvenum.h" // // The following macros are used to establish the semantics needed // to do a return from within a try-finally clause. As a rule every // try clause must end with a label call try_exit. For example, // // try { // : // : // // try_exit: NOTHING; // } finally { // // : // : // } // // Every return statement executed inside of a try clause should use the // try_return macro. If the compiler fully supports the try-finally construct // then the macro should be // // #define try_return(S) { return(S); } // // If the compiler does not support the try-finally construct then the macro // should be // #define try_return(S) { S; goto try_exit; } #if DBG #define STATIC #define BR_DEBUG if (TRUE) #define InternalError(PrintfString) { \ NetpDbgPrint PrintfString; \ BrowserTrace PrintfString; \ } #define dprintf(LEVEL,String) { \ if (((BROWSER_DEBUG_ ## LEVEL) == 0) || (BrInfo.BrowserDebug & (BROWSER_DEBUG_ ## LEVEL))) { \ BrowserTrace String; \ } \ } #else #define STATIC static #define BR_DEBUG if (FALSE) #define InternalError(PrintfString) #define dprintf(LEVEL, String) {NOTHING;} #endif // DBG #endif // ifdef _BR_INCLUDED_