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.

48 lines
1.0 KiB

  1. //-----------------------------------------------------------------------------
  2. //
  3. // File: dllvars.h
  4. //
  5. // Global variables and functions for the parser DLL
  6. //
  7. // Copyright (c) 1995 - 1997, Microsoft Corporation. All rights reserved.
  8. //
  9. //-----------------------------------------------------------------------------
  10. #ifndef __DLLVARS_H
  11. #define __DLLVARS_H
  12. void IncrementClassCount(void);
  13. void DecrementClassCount(void);
  14. void ReportException(CException* pExcep, C32File* p32File, CLocItem* pItem, //May be null
  15. CReporter* pReporter);
  16. void ThrowItemSetException();
  17. class CItemSetException : public CException
  18. {
  19. DECLARE_DYNAMIC(CItemSetException)
  20. public:
  21. // Constructors
  22. CItemSetException();
  23. CItemSetException(BOOL bAutoDelete);
  24. // Operations
  25. virtual BOOL GetErrorMessage(LPTSTR lpszError, UINT nMaxError,
  26. PUINT pnHelpContext = NULL);
  27. protected:
  28. CLString m_strMsg;
  29. };
  30. #ifdef __DLLENTRY_CPP
  31. #define __DLLENTRY_EXTERN
  32. #else
  33. #define __DLLENTRY_EXTERN extern
  34. #endif
  35. __DLLENTRY_EXTERN HMODULE g_hDll;
  36. #endif //__DLLVARS_H