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.

59 lines
1.6 KiB

  1. //*********************************************************************
  2. //* Microsoft Windows **
  3. //* Copyright(c) Microsoft Corp., 1999 **
  4. //*********************************************************************
  5. //
  6. // DEBUG.H - Header for the implementation of CDebug. This object is part of
  7. // the window.external interface and should only contain code that returns
  8. // debug information to scripts. General debug code for OOBE belongs in
  9. // common\util.cpp and inc\util.h.
  10. //
  11. // HISTORY:
  12. //
  13. // 05/08/00 dane Created.
  14. //
  15. #ifndef _OOBEDEBUG_H_
  16. #define _OOBEDEBUG_H_
  17. #include <windows.h>
  18. #include <assert.h>
  19. #include <oleauto.h>
  20. class CDebug : public IDispatch
  21. {
  22. private:
  23. ULONG m_cRef;
  24. BOOL m_fMsDebugMode;
  25. BOOL m_fOemDebugMode;
  26. void Trace(BSTR bstrVal);
  27. BOOL IsMsDebugMode( );
  28. //GET functions
  29. //SET functions
  30. public:
  31. CDebug ();
  32. ~CDebug ();
  33. // IUnknown Interfaces
  34. STDMETHODIMP QueryInterface (REFIID riid, LPVOID* ppvObj);
  35. STDMETHODIMP_(ULONG) AddRef ();
  36. STDMETHODIMP_(ULONG) Release ();
  37. //IDispatch Interfaces
  38. STDMETHOD (GetTypeInfoCount) (UINT* pcInfo);
  39. STDMETHOD (GetTypeInfo) (UINT, LCID, ITypeInfo** );
  40. STDMETHOD (GetIDsOfNames) (REFIID, OLECHAR**, UINT, LCID, DISPID* );
  41. STDMETHOD (Invoke) (DISPID dispidMember, REFIID riid, LCID lcid,
  42. WORD wFlags, DISPPARAMS* pdispparams,
  43. VARIANT* pvarResult, EXCEPINFO* pexcepinfo,
  44. UINT* puArgErr);
  45. };
  46. #endif