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.

43 lines
1.3 KiB

  1. // DeviceProperty.h : Declaration of the CDeviceProperty
  2. #ifndef __DEVICEPROPERTY_H_
  3. #define __DEVICEPROPERTY_H_
  4. #include "resource.h" // main symbols
  5. #include "ioblockdefs.h"
  6. /////////////////////////////////////////////////////////////////////////////
  7. // CDeviceProperty
  8. class ATL_NO_VTABLE CDeviceProperty :
  9. public CComObjectRootEx<CComSingleThreadModel>,
  10. public CComCoClass<CDeviceProperty, &CLSID_DeviceProperty>,
  11. public IDispatchImpl<IDeviceProperty, &IID_IDeviceProperty, &LIBID_WIAFBLib>,
  12. public IObjectSafetyImpl<CDeviceProperty, INTERFACESAFE_FOR_UNTRUSTED_CALLER>
  13. {
  14. public:
  15. SCANSETTINGS *m_pScannerSettings;
  16. CDeviceProperty()
  17. {
  18. }
  19. DECLARE_REGISTRY_RESOURCEID(IDR_DEVICEPROPERTY)
  20. DECLARE_PROTECT_FINAL_CONSTRUCT()
  21. BEGIN_COM_MAP(CDeviceProperty)
  22. COM_INTERFACE_ENTRY(IDeviceProperty)
  23. COM_INTERFACE_ENTRY(IDispatch)
  24. END_COM_MAP()
  25. // IDeviceProperty
  26. public:
  27. STDMETHOD(SetCurrentValue)(LONG lValueID, VARIANT Value);
  28. STDMETHOD(GetCurrentValue)(LONG lValueID, VARIANT *pvValue);
  29. STDMETHOD(SetValidRange)(LONG lValueID, LONG lMin, LONG lMax, LONG lNom, LONG lInc);
  30. STDMETHOD(SetValidList)(LONG lValueID, VARIANT Value);
  31. STDMETHOD(TestCall)();
  32. };
  33. #endif //__DEVICEPROPERTY_H_