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

  1. #include <fusenetincludes.h>
  2. #include "CFactory.h"
  3. #include "server.h"
  4. #include "update.h"
  5. ///////////////////////////////////////////////////////////
  6. //
  7. // Server.cpp
  8. //
  9. // This file contains the component server code.
  10. // The FactoryDataArray contains the components that
  11. // can be served.
  12. //
  13. // Each component derived from CUnknown defines a static function
  14. // for creating the component with the following prototype.
  15. // HRESULT CreateInstance(IUnknown* pUnknownOuter,
  16. // CUnknown** ppNewComponent) ;
  17. // This function is used to create the component.
  18. //
  19. //
  20. // The following array contains the data used by CFactory
  21. // to create components. Each element in the array contains
  22. // the CLSID, the pointer to the creation function, and the name
  23. // of the component to place in the Registry.
  24. //
  25. CFactoryData g_FactoryDataArray[] =
  26. {
  27. {&CLSID_CAssemblyUpdate, CAssemblyUpdate::CreateInstance, NULL, 0}
  28. } ;
  29. int g_cFactoryDataEntries
  30. = sizeof(g_FactoryDataArray) / sizeof(CFactoryData) ;