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.

40 lines
853 B

  1. #ifndef _CUSTERR_H_
  2. #define _CUSTERR_H_
  3. // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  4. //
  5. // CUSTERR.H
  6. //
  7. // Copyright 1986-1997 Microsoft Corporation, All Rights Reserved
  8. //
  9. class ICustomErrorMap : public CMTRefCounted
  10. {
  11. // NOT IMPLEMENTED
  12. //
  13. ICustomErrorMap(const ICustomErrorMap&);
  14. ICustomErrorMap& operator=(ICustomErrorMap&);
  15. protected:
  16. // CREATORS
  17. // Only create this object through it's descendents!
  18. //
  19. ICustomErrorMap()
  20. {
  21. m_cRef = 1; //$HACK Until we have 1-based refcounting
  22. };
  23. public:
  24. virtual BOOL FDoResponse( IResponse& response, const IEcb& ) const = 0;
  25. };
  26. ICustomErrorMap *
  27. NewCustomErrorMap( LPWSTR pwszCustomErrorMappings );
  28. class IEcb;
  29. class IResponse;
  30. BOOL
  31. FSetCustomErrorResponse( const IEcb& ecb, IResponse& response );
  32. #endif // _CUSTERR_H_