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.

71 lines
1.7 KiB

  1. //-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1993.
  5. //
  6. // File: oletest.hxx
  7. //
  8. // Contents: Definition of OLE test classes
  9. //
  10. // Classes: COleTestClass
  11. //
  12. // Functions:
  13. //
  14. // History: 1-July-93 t-martig Created
  15. //
  16. //--------------------------------------------------------------------------
  17. #ifndef __OLETEST_H
  18. #define __OLETEST_H
  19. #include <windows.h>
  20. #include <ole2.h>
  21. extern "C" const GUID CLSID_COleTestClass;
  22. extern "C" const GUID CLSID_COleTestClass1;
  23. extern "C" const GUID CLSID_COleTestClass2;
  24. extern "C" const GUID CLSID_COleTestClass3;
  25. extern "C" const GUID CLSID_COleTestClass4;
  26. extern "C" const GUID CLSID_COleTestClass5;
  27. extern "C" const GUID CLSID_COleTestClass6;
  28. extern "C" const GUID CLSID_COleTestClass7;
  29. extern "C" const GUID CLSID_COleTestClass8;
  30. class COleTestClass : public IUnknown
  31. {
  32. public:
  33. COleTestClass ();
  34. ~COleTestClass ();
  35. // *** IUnknown methods ***
  36. STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR* ppvObj) ;
  37. STDMETHOD_(ULONG,AddRef) (THIS) ;
  38. STDMETHOD_(ULONG,Release) (THIS) ;
  39. private:
  40. ULONG refCount;
  41. };
  42. class COleTestClassFactory : public IClassFactory
  43. {
  44. public:
  45. STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR* ppvObj);
  46. STDMETHOD_(ULONG,AddRef) (THIS);
  47. STDMETHOD_(ULONG,Release) (THIS);
  48. STDMETHOD(CreateInstance) (THIS_ LPUNKNOWN pUnkOuter,
  49. REFIID riid,
  50. LPVOID FAR* ppvObject);
  51. STDMETHOD(LockServer) (THIS_ BOOL fLock);
  52. };
  53. STDAPI DllGetClassObject (REFCLSID classId, REFIID riid, VOID **ppv);
  54. STDAPI DllCanUnloadNow ();
  55. #endif // __OLETEST_H