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.

70 lines
1.1 KiB

  1. /*
  2. Copyright (c) 1997-1999 Microsoft Corporation
  3. Module Name:
  4. sdpbw.h
  5. Abstract:
  6. Author:
  7. */
  8. #ifndef __SDP_BANDWIDTH__
  9. #define __SDP_BANDWIDTH__
  10. #include "sdpcommo.h"
  11. #include "sdpval.h"
  12. #include "sdpbstrl.h"
  13. #include "sdpgen.h"
  14. class _DllDecl SDP_BANDWIDTH : public SDP_VALUE
  15. {
  16. public:
  17. SDP_BANDWIDTH();
  18. inline SDP_OPTIONAL_BSTRING &GetModifier();
  19. inline SDP_ULONG &GetBandwidthValue();
  20. HRESULT SetBandwidth(
  21. IN BSTR Modifier,
  22. IN ULONG Value
  23. );
  24. protected:
  25. virtual BOOL GetField(
  26. OUT SDP_FIELD *&Field,
  27. OUT BOOL &AddToArray
  28. );
  29. virtual void InternalReset();
  30. private:
  31. SDP_OPTIONAL_BSTRING m_Modifier;
  32. SDP_ULONG m_Bandwidth;
  33. };
  34. inline SDP_OPTIONAL_BSTRING &
  35. SDP_BANDWIDTH::GetModifier(
  36. )
  37. {
  38. return m_Modifier;
  39. }
  40. inline SDP_ULONG &
  41. SDP_BANDWIDTH::GetBandwidthValue(
  42. )
  43. {
  44. return m_Bandwidth;
  45. }
  46. #endif // __SDP_BANDWIDTH__