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.

38 lines
843 B

  1. //----------------------------------------------------------------------------
  2. //
  3. // stdio-based output callbacks class.
  4. //
  5. // Copyright (C) Microsoft Corporation, 2000.
  6. //
  7. //----------------------------------------------------------------------------
  8. #ifndef __OUT_HPP__
  9. #define __OUT_HPP__
  10. class StdioOutputCallbacks : public IDebugOutputCallbacks
  11. {
  12. public:
  13. // IUnknown.
  14. STDMETHOD(QueryInterface)(
  15. THIS_
  16. IN REFIID InterfaceId,
  17. OUT PVOID* Interface
  18. );
  19. STDMETHOD_(ULONG, AddRef)(
  20. THIS
  21. );
  22. STDMETHOD_(ULONG, Release)(
  23. THIS
  24. );
  25. // IDebugOutputCallbacks.
  26. STDMETHOD(Output)(
  27. THIS_
  28. IN ULONG Mask,
  29. IN PCSTR Text
  30. );
  31. };
  32. extern StdioOutputCallbacks g_OutputCb;
  33. #endif // #ifndef __OUT_HPP__