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.
 
 
 
 
 
 

70 lines
1.5 KiB

/*++
Copyright (C) 1997-2001 Microsoft Corporation
Module Name:
WBEMPROX.H
Abstract:
Genral purpose include file.
History:
a-davj 04-Mar-97 Created.
--*/
#ifndef _WBEMPROX_H_
#define _WBEMPROX_H_
typedef LPVOID * PPVOID;
// These variables keep track of when the module can be unloaded
extern long g_cObj;
extern ULONG g_cLock;
// This enumerator defines objects created and destroyed by this dll.
enum OBJTYPE{CLASS_FACTORY = 0, LOCATOR, ADMINLOC,
AUTHLOC, UNAUTHLOC, MAX_CLIENT_OBJECT_TYPES};
#define GUID_SIZE 39
//***************************************************************************
//
// CLASS NAME:
//
// CLocatorFactory
//
// DESCRIPTION:
//
// Class factory for the CLocator class.
//
//***************************************************************************
class CLocatorFactory : public IClassFactory
{
protected:
long m_cRef;
DWORD m_dwType;
public:
CLocatorFactory(DWORD dwType);
~CLocatorFactory(void);
//IUnknown members
STDMETHODIMP QueryInterface(REFIID, PPVOID);
STDMETHODIMP_(ULONG) AddRef(void);
STDMETHODIMP_(ULONG) Release(void);
//IClassFactory members
STDMETHODIMP CreateInstance(LPUNKNOWN, REFIID
, PPVOID);
STDMETHODIMP LockServer(BOOL);
};
#endif