windows-nt/Source/XPSP1/NT/base/wmi/bmoflocparser/dllvars.h
2020-09-26 16:20:57 +08:00

49 lines
1 KiB
C++

//-----------------------------------------------------------------------------
//
// File: dllvars.h
//
// Global variables and functions for the parser DLL
//
// Copyright (c) 1995 - 1997, Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
#ifndef __DLLVARS_H
#define __DLLVARS_H
void IncrementClassCount(void);
void DecrementClassCount(void);
void ReportException(CException* pExcep, C32File* p32File, CLocItem* pItem, //May be null
CReporter* pReporter);
void ThrowItemSetException();
class CItemSetException : public CException
{
DECLARE_DYNAMIC(CItemSetException)
public:
// Constructors
CItemSetException();
CItemSetException(BOOL bAutoDelete);
// Operations
virtual BOOL GetErrorMessage(LPTSTR lpszError, UINT nMaxError,
PUINT pnHelpContext = NULL);
protected:
CLString m_strMsg;
};
#ifdef __DLLENTRY_CPP
#define __DLLENTRY_EXTERN
#else
#define __DLLENTRY_EXTERN extern
#endif
__DLLENTRY_EXTERN HMODULE g_hDll;
#endif //__DLLVARS_H