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.

46 lines
1.7 KiB

  1. #ifndef __ICSUTILS_H_FILE
  2. #define __ICSUTILS_H_FILE
  3. /************ our debug spew stuff ******************/
  4. //void DbgSpew(int DbgClass, WCHAR *lpFormat, ...);
  5. void DbgSpew(int DbgClass, WCHAR *lpFormat, va_list ap);
  6. void TrivialSpew(WCHAR *lpFormat, ...);
  7. void InterestingSpew(WCHAR *lpFormat, ...);
  8. void ImportantSpew(WCHAR *lpFormat, ...);
  9. void HeinousESpew(WCHAR *lpFormat, ...);
  10. void HeinousISpew(WCHAR *lpFormat, ...);
  11. #define DBG_MSG_TRIVIAL 0x001
  12. #define DBG_MSG_INTERESTING 0x002
  13. #define DBG_MSG_IMPORTANT 0x003
  14. #define DBG_MSG_HEINOUS 0x004
  15. #define DBG_MSG_DEST_DBG 0x010
  16. #define DBG_MSG_DEST_FILE 0x020
  17. #define DBG_MSG_DEST_EVENT 0x040
  18. #define DBG_MSG_CLASS_ERROR 0x100
  19. #define TRIVIAL_MSG(msg) TrivialSpew msg
  20. #define INTERESTING_MSG(msg) InterestingSpew msg
  21. #define IMPORTANT_MSG(msg) ImportantSpew msg
  22. #define HEINOUS_E_MSG(msg) HeinousESpew msg
  23. #define HEINOUS_I_MSG(msg) HeinousISpew msg
  24. /*
  25. * This global flag controls the amount of spew that we
  26. * produce. Legit values are as follows:
  27. * 1 = Trivial msgs displayed
  28. * 2 = Interesting msgs displayed
  29. * 3 = Important msgs displayed
  30. * 4 = only the most Heinous msgs displayed
  31. * The ctor actually sets this to 3 by default, but it can
  32. * be overridden by setting:
  33. * HKLM, Software/Microsoft/SAFSessionResolver, DebugSpew, DWORD
  34. */
  35. extern int gDbgFlag;
  36. void DbgSpew(int DbgClass, WCHAR *lpFormat, va_list ap);
  37. DWORD GetIPAddress(WCHAR *lpAdress, int iSz, int PortNum);
  38. int GetGatewayAddr(char *retStr);
  39. void DumpSocketAddress( const DWORD dwDebugLevel, const SOCKADDR *const pSocketAddress, const DWORD dwFamily );
  40. int LocalFDIsSet(SOCKET fd, fd_set *set);
  41. #endif // __ICSUTILS_H