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.

45 lines
1009 B

  1. //
  2. // Debug.h -- COM+ Debugging Flags
  3. //
  4. // COM+ 1.0
  5. // Copyright 1998 Microsoft Corporation. All Rights Reserved.
  6. //
  7. // Jim Lyon, March 1998
  8. //
  9. /*
  10. Debugging Flags
  11. Class DebugFlags contains a bunch of static methods that return information
  12. about the settings of various debugging switches. These flags are initialized
  13. from the registry at process startup time.
  14. All flags are stored in the registry under key HKLM/Software/Microsoft/COM3/Debug
  15. */
  16. #ifndef __DEBUG_H__
  17. #define __DEBUG_H__
  18. #if DBG == 1
  19. class DebugFlags
  20. {
  21. // Public Static Methods
  22. public:
  23. static BOOL DebugBreakOnLaunchDllHost() { return sm_fDebugBreakOnLaunchDllHost; }
  24. // Private goo
  25. private:
  26. // The data which is returned by the above
  27. static BOOL sm_fDebugBreakOnLaunchDllHost;
  28. static DebugFlags sm_singleton; // the only instance of this class, causes initialization
  29. DebugFlags(); // private constructor, causes initialization
  30. static void InitBoolean (HKEY hKey, const TCHAR* tszValueName, BOOL* pf);
  31. };
  32. #endif
  33. #endif