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.

89 lines
3.2 KiB

  1. // Copyright (c) 2000-2001 Microsoft Corporation, All Rights Reserved
  2. // Globals.cpp
  3. #include "precomp.h"
  4. //#include <windows.h>
  5. //#include <objbase.h>
  6. //#include <comdef.h>
  7. #include "CUnknown.h"
  8. #include "factory.h"
  9. #include "Registry.h"
  10. #include <wbemprov.h>
  11. #include "FRQueryEx.h"
  12. #include "CVARIANT.h"
  13. #include "CObjProps.h"
  14. #include "CJobObjProps.h"
  15. #include "JobObjectProv.h"
  16. #include "CJobObjIOActgProps.h"
  17. #include "JobObjIOActgInfoProv.h"
  18. #include "CJobObjLimitInfoProps.h"
  19. #include "JobObjLimitInfoProv.h"
  20. #include "CJobObjSecLimitInfoProps.h"
  21. #include "JobObjSecLimitInfoProv.h"
  22. #include <initguid.h>
  23. #include "Globals.h"
  24. /*****************************************************************************/
  25. // Globals
  26. /*****************************************************************************/
  27. //
  28. // This file contains the component server code.
  29. // The FactoryDataArray contains the components that
  30. // can be served.
  31. //
  32. // Each component derived from Unknown defines a static function
  33. // for creating the component with the following prototype.
  34. // HRESULT CreateInstance(CUnknown** ppNewComponent) ;
  35. // This function is used to create the component.
  36. //
  37. // The following array contains the data used by CFactory
  38. // to create components. Each element in the array contains
  39. // the CLSID, the pointer to the creation function, and the name
  40. // of the component to place in the Registry.
  41. //
  42. CFactoryData g_FactoryDataArray[] =
  43. {
  44. {
  45. &CLSID_JobObjectProvComp, // Component class id
  46. CJobObjectProv::CreateInstance, // Name of the component's creation function
  47. L"Win32_JobObject Provider Component", // Friendly name
  48. L"JobObjectProv.JobObjectProv.1", // ProgID
  49. L"JobObjectProv.JobObjectProv" // Version-independent ProgID
  50. },
  51. {
  52. &CLSID_JobObjIOActgInfoComp, // Component class id
  53. CJobObjIOActgInfoProv::CreateInstance, // Name of the component's creation function
  54. L"Win32_JobObjectIOAccountingInfo Component", // Friendly name
  55. L"JobObjIOActgInfoProv.JobObjIOActgInfoProv.1", // ProgID
  56. L"JobObjIOActgInfoProv.JobObjIOActgInfoProv" // Version-independent ProgID
  57. },
  58. {
  59. &CLSID_JobObjLimitInfoComp, // Component class id
  60. CJobObjLimitInfoProv::CreateInstance, // Name of the component's creation function
  61. L"Win32_JobObjectLimitInfo Component", // Friendly name
  62. L"JobObjLimitInfoProv.JobObjLimitInfoProv.1", // ProgID
  63. L"JobObjLimitInfoProv.JobObjLimitInfoProv" // Version-independent ProgID
  64. },
  65. {
  66. &CLSID_JobObjSecLimitInfoComp, // Component class id
  67. CJobObjSecLimitInfoProv::CreateInstance, // Name of the component's creation function
  68. L"Win32_JobObjectSecLimitInfo Component", // Friendly name
  69. L"JobObjSecLimitInfoProv.JobObjSecLimitInfoProv.1", // ProgID
  70. L"JobObjSecLimitInfoProv.JobObjSecLimitInfoProv" // Version-independent ProgID
  71. }
  72. } ;
  73. int g_cFactoryDataEntries =
  74. sizeof(g_FactoryDataArray)/sizeof(CFactoryData);