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.
 
 
 
 
 
 

34 lines
1.0 KiB

#include <fusenetincludes.h>
#include "CFactory.h"
#include "server.h"
#include "update.h"
///////////////////////////////////////////////////////////
//
// Server.cpp
//
// This file contains the component server code.
// The FactoryDataArray contains the components that
// can be served.
//
// Each component derived from CUnknown defines a static function
// for creating the component with the following prototype.
// HRESULT CreateInstance(IUnknown* pUnknownOuter,
// CUnknown** ppNewComponent) ;
// This function is used to create the component.
//
//
// The following array contains the data used by CFactory
// to create components. Each element in the array contains
// the CLSID, the pointer to the creation function, and the name
// of the component to place in the Registry.
//
CFactoryData g_FactoryDataArray[] =
{
{&CLSID_CAssemblyUpdate, CAssemblyUpdate::CreateInstance, NULL, 0}
} ;
int g_cFactoryDataEntries
= sizeof(g_FactoryDataArray) / sizeof(CFactoryData) ;