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.

67 lines
2.0 KiB

  1. //=============================================================================
  2. //
  3. // This source code is only intended as a supplement to existing Microsoft
  4. // documentation.
  5. //
  6. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  7. // KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  8. // IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  9. // PURPOSE.
  10. //
  11. // Copyright (C) 2000 Microsoft Corporation. All Rights Reserved.
  12. //=============================================================================
  13. #ifndef PROPPAGEEXT_H
  14. #define PROPPAGEEXT_H
  15. #include "PropPageExt.h"
  16. #include "resource.h"
  17. class ATL_NO_VTABLE CPropPageExt :
  18. public CComObjectRootEx<CComSingleThreadModel>,
  19. public CComCoClass<CPropPageExt, &CLSID_PropPageExt>,
  20. public IPropPageExt,
  21. public IExtendPropertySheet
  22. {
  23. BEGIN_COM_MAP(CPropPageExt)
  24. COM_INTERFACE_ENTRY(IExtendPropertySheet)
  25. END_COM_MAP()
  26. public:
  27. CPropPageExt()
  28. {
  29. }
  30. DECLARE_REGISTRY_RESOURCEID(IDR_PROPPAGEEXT)
  31. DECLARE_NOT_AGGREGATABLE(CPropPageExt)
  32. DECLARE_PROTECT_FINAL_CONSTRUCT()
  33. //
  34. // Interface IExtendPropertySheet
  35. //
  36. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE CreatePropertyPages(
  37. /* [in] */ LPPROPERTYSHEETCALLBACK lpProvider,
  38. /* [in] */ LONG_PTR handle,
  39. /* [in] */ LPDATAOBJECT lpIDataObject);
  40. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE QueryPagesFor(
  41. /* [in] */ LPDATAOBJECT lpDataObject);
  42. private:
  43. static BOOL CALLBACK ExtensionPageDlgProc( HWND hDlg,
  44. UINT uMessage,
  45. WPARAM wParam,
  46. LPARAM lParam);
  47. CLSID m_clsidNodeType; // CLSID of currently selected node
  48. WCHAR m_szWorkstation[MAX_COMPUTERNAME_LENGTH+1]; //Current computer name
  49. };
  50. #endif //PROPPAGEEXT_H