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.

39 lines
942 B

  1. /*
  2. *
  3. * NOTES:
  4. *
  5. * REVISIONS:
  6. * xxxddMMMyy
  7. * tjg02Mar98: Override the DeepGetWithoutUpdate method that was recently
  8. * added to sensor class
  9. *
  10. */
  11. #ifndef __UNSSENS_H
  12. #define __UNSSENS_H
  13. #include "sensor.h"
  14. #include "err.h"
  15. _CLASSDEF(UnsupportedSensor)
  16. #define UNSUPPORTED_SENSOR -1
  17. class UnsupportedSensor : public Sensor {
  18. public:
  19. UnsupportedSensor() : Sensor((PDevice)0,(PCommController)0,UNSUPPORTED_SENSOR){};
  20. virtual INT IsA() const {return UNSUPPORTEDSENSOR;};
  21. virtual INT Get(PCHAR aValue) {return ErrUNSUPPORTED;};
  22. virtual INT DeepGet(PCHAR aValue) {return ErrUNSUPPORTED;};
  23. virtual INT DeepGet(INT aCode, PCHAR aValue) {return ErrUNSUPPORTED;};
  24. virtual INT DeepGetWithoutUpdate(PCHAR aValue) {return ErrUNSUPPORTED;};
  25. virtual INT Set(const PCHAR aValue) {return ErrUNSUPPORTED;};
  26. };
  27. extern UnsupportedSensor _theUnsupportedSensor;
  28. #endif