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.

105 lines
1.7 KiB

  1. /*
  2. Copyright (c) 1997-1999 Microsoft Corporation
  3. */
  4. #ifndef __SDP_ORIGIN__
  5. #define __SDP_ORIGIN__
  6. #include "sdpcommo.h"
  7. #include "sdpgen.h"
  8. #include "sdpfld.h"
  9. #include "sdpval.h"
  10. #include "sdpcstrl.h"
  11. #include "sdpbstrl.h"
  12. class _DllDecl SDP_ORIGIN : public SDP_VALUE
  13. {
  14. public:
  15. SDP_ORIGIN();
  16. inline SDP_BSTRING &GetUserName();
  17. inline SDP_ULONG &GetSessionId();
  18. inline SDP_ULONG &GetSessionVersion();
  19. inline SDP_LIMITED_CHAR_STRING &GetNetworkType();
  20. inline SDP_LIMITED_CHAR_STRING &GetAddressType();
  21. inline SDP_BSTRING &GetAddress();
  22. protected:
  23. virtual BOOL GetField(
  24. OUT SDP_FIELD *&Field,
  25. OUT BOOL &AddToArray
  26. );
  27. virtual void InternalReset();
  28. private:
  29. SDP_BSTRING m_UserName;
  30. SDP_ULONG m_SessionId;
  31. SDP_ULONG m_SessionVersion;
  32. SDP_LIMITED_CHAR_STRING m_NetworkType;
  33. SDP_LIMITED_CHAR_STRING m_AddressType;
  34. SDP_BSTRING m_Address;
  35. };
  36. inline SDP_BSTRING &
  37. SDP_ORIGIN::GetUserName(
  38. )
  39. {
  40. return m_UserName;
  41. }
  42. inline SDP_ULONG &
  43. SDP_ORIGIN::GetSessionId(
  44. )
  45. {
  46. return m_SessionId;
  47. }
  48. inline SDP_ULONG &
  49. SDP_ORIGIN::GetSessionVersion(
  50. )
  51. {
  52. return m_SessionVersion;
  53. }
  54. inline SDP_LIMITED_CHAR_STRING &
  55. SDP_ORIGIN::GetNetworkType(
  56. )
  57. {
  58. return m_NetworkType;
  59. }
  60. inline SDP_LIMITED_CHAR_STRING &
  61. SDP_ORIGIN::GetAddressType(
  62. )
  63. {
  64. return m_AddressType;
  65. }
  66. inline SDP_BSTRING &
  67. SDP_ORIGIN::GetAddress(
  68. )
  69. {
  70. return m_Address;
  71. }
  72. #endif // __SDP_ORIGIN__