Source code of Windows XP (NT5)
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.

42 lines
779 B

  1. /*++
  2. Copyright (C) 2000-2001 Microsoft Corporation
  3. --*/
  4. #include <windows.h>
  5. #include <wbemidl.h>
  6. #include <commain.h>
  7. #include <clsfac.h>
  8. #include <wbemcomn.h>
  9. #include <ql.h>
  10. #include <sync.h>
  11. #include <time.h>
  12. #include <a51rep.h>
  13. #include <initguid.h>
  14. #ifndef INITGUID
  15. #define INITGUID
  16. #endif
  17. DEFINE_GUID(CLSID_A51Repository,
  18. 0x7998dc37, 0xd3fe, 0x487c, 0xa6, 0x0a, 0x77, 0x01, 0xfc, 0xc7, 0x0c, 0xc6);
  19. class CMyServer : public CComServer
  20. {
  21. public:
  22. HRESULT Initialize()
  23. {
  24. AddClassInfo(CLSID_A51Repository,
  25. new CSimpleClassFactory<CRepository>(GetLifeControl()),
  26. L"A51 Repository", TRUE);
  27. return S_OK;
  28. }
  29. HRESULT InitializeCom()
  30. {
  31. return CoInitializeEx(NULL, COINIT_MULTITHREADED);
  32. }
  33. } Server;