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.

44 lines
801 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 <tchar.h>
  14. #include <initguid.h>
  15. #ifndef INITGUID
  16. #define INITGUID
  17. #endif
  18. DEFINE_GUID(CLSID_A51Repository,
  19. 0x7998dc37, 0xd3fe, 0x487c, 0xa6, 0x0a, 0x77, 0x01, 0xfc, 0xc7, 0x0c, 0xc6);
  20. class CMyServer : public CComServer
  21. {
  22. public:
  23. HRESULT Initialize()
  24. {
  25. AddClassInfo(CLSID_A51Repository,
  26. new CSimpleClassFactory<CRepository>(GetLifeControl()),
  27. _T("FS Repository"), TRUE);
  28. return S_OK;
  29. }
  30. HRESULT InitializeCom()
  31. {
  32. return CoInitializeEx(NULL, COINIT_MULTITHREADED);
  33. }
  34. } Server;