Windows2003-3790/inetsrv/iis/svcs/smtp/adminsso/metafact.h
2020-09-30 16:53:55 +02:00

48 lines
967 B
C++

/*++
Copyright (c) 1996 Microsoft Corporation
Module Name:
metafact.h
Abstract:
Defines the CMetabaseFactory class. This class deals with creating
metabase objects, on either the local machine or a remote machine.
The class provides a simple caching scheme where it will keep the name of
the server the object was created on.
Author:
Magnus Hedlund (MagnusH) --
Revision History:
--*/
#ifndef _METAFACT_INCLUDED_
#define _METAFACT_INCLUDED_
class CMetabaseFactory
{
public:
CMetabaseFactory ();
~CMetabaseFactory ();
HRESULT GetMetabaseObject ( LPCWSTR wszServer, IMSAdminBase ** ppMetabase );
// You must call (*ppMetabase)->Release() after using the metabase object.
private:
BOOL IsCachedMetabase ( LPCWSTR wszServer );
BOOL SetServerName ( LPCWSTR wszServer );
void DestroyMetabaseObject ( );
LPWSTR m_wszServerName;
IMSAdminBase * m_pMetabase;
};
#endif // _METAFACT_INCLUDED_