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

  1. /*++
  2. Copyright (C) 1997-2001 Microsoft Corporation
  3. Module Name:
  4. WBEMPROX.H
  5. Abstract:
  6. Genral purpose include file.
  7. History:
  8. a-davj 04-Mar-97 Created.
  9. --*/
  10. #ifndef _WBEMPROX_H_
  11. #define _WBEMPROX_H_
  12. typedef LPVOID * PPVOID;
  13. // These variables keep track of when the module can be unloaded
  14. extern long g_cObj;
  15. extern ULONG g_cLock;
  16. // This enumerator defines objects created and destroyed by this dll.
  17. enum OBJTYPE{CLASS_FACTORY = 0, LOCATOR, ADMINLOC,
  18. AUTHLOC, UNAUTHLOC, MAX_CLIENT_OBJECT_TYPES};
  19. #define GUID_SIZE 39
  20. //***************************************************************************
  21. //
  22. // CLASS NAME:
  23. //
  24. // CLocatorFactory
  25. //
  26. // DESCRIPTION:
  27. //
  28. // Class factory for the CLocator class.
  29. //
  30. //***************************************************************************
  31. class CLocatorFactory : public IClassFactory
  32. {
  33. protected:
  34. long m_cRef;
  35. DWORD m_dwType;
  36. public:
  37. CLocatorFactory(DWORD dwType);
  38. ~CLocatorFactory(void);
  39. //IUnknown members
  40. STDMETHODIMP QueryInterface(REFIID, PPVOID);
  41. STDMETHODIMP_(ULONG) AddRef(void);
  42. STDMETHODIMP_(ULONG) Release(void);
  43. //IClassFactory members
  44. STDMETHODIMP CreateInstance(LPUNKNOWN, REFIID
  45. , PPVOID);
  46. STDMETHODIMP LockServer(BOOL);
  47. };
  48. #endif