windows-nt/Source/XPSP1/NT/base/cluster/admin/msclus/stdafx.h
2020-09-26 16:20:57 +08:00

107 lines
1.9 KiB
C++

/////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 1997-1999 Microsoft Corporation
//
// Module Name:
// StdAfx.h
//
// Description:
// Pre-compiled header file.
//
// Author:
// Charles Stacy Harris (stacyh) 28-Feb-1997
// Galen Barbee (galenb) July 1998
//
// Revision History:
// July 1998 GalenB Maaaaaajjjjjjjjjoooooorrrr clean up
//
// Notes:
//
/////////////////////////////////////////////////////////////////////////////
#ifndef _STDAFX_H_
#define _STDAFX_H_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
#define STRICT
#include <nt.h>
#include <ntrtl.h>
#include <nturtl.h>
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
//
// Enable cluster debug reporting
//
#if DBG
#define CLRTL_INCLUDE_DEBUG_REPORTING
#endif // DBG
#if CLUSAPI_VERSION >= 0x0500
#include "ClRtlDbg.h"
#define ASSERT _CLRTL_ASSERTE
#define ATLASSERT ASSERT
#else
#undef ASSERT
#define ASSERT _ASSERTE
#endif
#define _ATL_APARTMENT_THREADED
#ifdef _DEBUG
#define _ATL_DEBUG_QI
#define _ATL_DEBUG_REFCOUNT
#define _CRTDBG_MAP_ALLOC
#endif
#ifdef _ATL_DEBUG_REFCOUNT
#define Release _DebugRelease
#define AddRef _DebugAddRef
#endif
#include <atlbase.h>
extern CComModule _Module;
#include <atlcom.h>
#include <comdef.h>
#include <vector>
#include <clusapi.h>
extern "C"
{
#include <lmaccess.h>
#include <lmwksta.h>
#include <lmapibuf.h>
#include <lm.h>
#include <ntsecapi.h>
}
#if CLUSAPI_VERSION >= 0x0500
#include <DsGetDC.h>
#include <cluswrap.h>
#else
#include "cluswrap.h"
#endif // CLUSAPI_VERSION >= 0x0500
#include "InterfaceVer.h"
#include "SmartPointer.h"
#include "SupportErrorInfo.h"
#include "msclus.h"
HRESULT HrGetCluster( OUT ISCluster ** ppCluster, IN ISClusRefObject * pClusRefObject );
void ClearIDispatchEnum( IN OUT CComVariant ** ppvarVect );
void ClearVariantEnum( IN OUT CComVariant ** ppvarVect );
#include "TemplateFuncs.h"
#endif // _STDAFX_H_