windows-nt/Source/XPSP1/NT/admin/wmi/wbem/winmgmt/a51/main.cpp

45 lines
801 B
C++
Raw Normal View History

2020-09-26 03:20:57 -05:00
/*++
Copyright (C) 2000-2001 Microsoft Corporation
--*/
#include <windows.h>
#include <wbemidl.h>
#include <commain.h>
#include <clsfac.h>
#include <wbemcomn.h>
#include <ql.h>
#include <sync.h>
#include <time.h>
#include <a51rep.h>
#include <tchar.h>
#include <initguid.h>
#ifndef INITGUID
#define INITGUID
#endif
DEFINE_GUID(CLSID_A51Repository,
0x7998dc37, 0xd3fe, 0x487c, 0xa6, 0x0a, 0x77, 0x01, 0xfc, 0xc7, 0x0c, 0xc6);
class CMyServer : public CComServer
{
public:
HRESULT Initialize()
{
AddClassInfo(CLSID_A51Repository,
new CSimpleClassFactory<CRepository>(GetLifeControl()),
_T("FS Repository"), TRUE);
return S_OK;
}
HRESULT InitializeCom()
{
return CoInitializeEx(NULL, COINIT_MULTITHREADED);
}
} Server;