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.

52 lines
1.8 KiB

  1. // Copyright (c) 1997-1999 Microsoft Corporation
  2. #include "precomp.h"
  3. #include "CMProps.h"
  4. #include "CMSnapin.h"
  5. #include "GeneralPage.h"
  6. #include "NetIDPage.h"
  7. #include "Advanced.h"
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CCMSnapinComponentData
  10. static const GUID CCMSnapinExtGUID_NODETYPE =
  11. { 0x476e6446, 0xaaff, 0x11d0, { 0xb9, 0x44, 0x0, 0xc0, 0x4f, 0xd8, 0xd5, 0xb0 } };
  12. //dep: static const GUID CCMSnapinExtGUID_NODETYPE =
  13. //{ 0x4e410f16, 0xabc1, 0x11d0, { 0xb9, 0x44, 0x0, 0xc0, 0x4f, 0xd8, 0xd5, 0xb0 } };
  14. const GUID* CCMSnapinExtData::m_NODETYPE = &CCMSnapinExtGUID_NODETYPE;
  15. //dep: const OLECHAR* CCMSnapinExtData::m_SZNODETYPE = OLESTR("4e410f16-abc1-11d0-b944-00c04fd8d5b0");
  16. const OLECHAR* CCMSnapinExtData::m_SZNODETYPE = OLESTR("476e6446-aaff-11d0-b944-00c04fd8d5b0");
  17. const OLECHAR* CCMSnapinExtData::m_SZDISPLAY_NAME = OLESTR("CMSnapin");
  18. const CLSID* CCMSnapinExtData::m_SNAPIN_CLASSID = &CLSID_CMSnapin;
  19. HRESULT CCMSnapinExtData::CreatePropertyPages(LPPROPERTYSHEETCALLBACK lpProvider,
  20. LONG_PTR handle,
  21. IUnknown* pUnk,
  22. DATA_OBJECT_TYPES type)
  23. {
  24. // if (type == CCT_SCOPE || type == CCT_RESULT)
  25. {
  26. // refcount at 1 initially
  27. WbemServiceThread * pserviceThread = new WbemServiceThread;
  28. GeneralPage* pPage = new GeneralPage(pserviceThread, handle, true, NULL, m_pDataObject);
  29. lpProvider->AddPage(pPage->Create());
  30. NetworkIDPage* pPage2 = new NetworkIDPage(pserviceThread, handle);
  31. lpProvider->AddPage(pPage2->Create());
  32. AdvancedPage* pPage3 = new AdvancedPage(pserviceThread, handle);
  33. lpProvider->AddPage(pPage3->Create());
  34. pserviceThread->Release();
  35. // TODO : Add code here to add additional pages
  36. return S_OK;
  37. }
  38. return E_UNEXPECTED;
  39. }