mirror of https://github.com/tongzx/nt5src
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.
38 lines
707 B
38 lines
707 B
/*++
|
|
|
|
Copyright (C) 2000-2001 Microsoft Corporation
|
|
|
|
--*/
|
|
|
|
#include <windows.h>
|
|
#include <wbemidl.h>
|
|
#include <commain.h>
|
|
#include <clsfac.h>
|
|
#include <creposit.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()),
|
|
L"A51 Repository", TRUE);
|
|
|
|
return S_OK;
|
|
}
|
|
|
|
HRESULT InitializeCom()
|
|
{
|
|
return CoInitializeEx(NULL, COINIT_MULTITHREADED);
|
|
}
|
|
} Server;
|
|
|