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.

60 lines
1.6 KiB

  1. // PropPage.h : Declaration of the CPropPage
  2. #ifndef __PROPPAGE_H_
  3. #define __PROPPAGE_H_
  4. #include "resource.h" // main symbols
  5. EXTERN_C const CLSID CLSID_HDSPPropPage;
  6. struct SType_String
  7. {
  8. DWORD dwType;
  9. char* pszString;
  10. };
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CPropPage
  13. class ATL_NO_VTABLE CPropPage :
  14. public CComObjectRootEx<CComSingleThreadModel>,
  15. public CComCoClass<CPropPage, &CLSID_HDSPPropPage>,
  16. public IPropertyPageImpl<CPropPage>,
  17. public CDialogImpl<CPropPage>
  18. {
  19. public:
  20. CPropPage()
  21. {
  22. m_dwTitleID = IDS_TITLEPropPage;
  23. m_dwHelpFileID = IDS_HELPFILEPropPage;
  24. m_dwDocStringID = IDS_DOCSTRINGPropPage;
  25. }
  26. enum {IDD = IDD_PROPPAGE};
  27. DECLARE_REGISTRY_RESOURCEID(IDR_PROPPAGE)
  28. DECLARE_PROTECT_FINAL_CONSTRUCT()
  29. BEGIN_COM_MAP(CPropPage)
  30. COM_INTERFACE_ENTRY(IPropertyPage)
  31. END_COM_MAP()
  32. BEGIN_MSG_MAP(CPropPage)
  33. CHAIN_MSG_MAP(IPropertyPageImpl<CPropPage>)
  34. END_MSG_MAP()
  35. // Handler prototypes:
  36. // LRESULT MessageHandler(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  37. // LRESULT CommandHandler(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  38. // LRESULT NotifyHandler(int idCtrl, LPNMHDR pnmh, BOOL& bHandled);
  39. STDMETHOD(Activate)(HWND hWndParent, LPCRECT prc, BOOL bModal);
  40. private:
  41. HRESULT UpdateManufacturer( IMDSPDevice* pIDevice );
  42. HRESULT UpdateDeviceType( IMDSPDevice* pIDevice );
  43. HRESULT UpdatePowerSource( IMDSPDevice* pIDevice );
  44. HRESULT UpdateStatus( IMDSPDevice* pIDevice );
  45. };
  46. #endif //__PROPPAGE_H_