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.

64 lines
1.7 KiB

  1. ///////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 1999, Microsoft Corp. All rights reserved.
  4. //
  5. // FILE
  6. //
  7. // downlevel.h
  8. //
  9. // SYNOPSIS
  10. //
  11. // Defines the class DownlevelUser.
  12. //
  13. // MODIFICATION HISTORY
  14. //
  15. // 02/10/1999 Original version.
  16. // 08/23/1999 Add support for msRASSavedCallbackNumber.
  17. //
  18. ///////////////////////////////////////////////////////////////////////////////
  19. #ifndef _DOWNLEVEL_H_
  20. #define _DOWNLEVEL_H_
  21. #if _MSC_VER >= 1000
  22. #pragma once
  23. #endif
  24. #include <mprapi.h>
  25. ///////////////////////////////////////////////////////////////////////////////
  26. //
  27. // CLASS
  28. //
  29. // DownlevelUser
  30. //
  31. // DESCRIPTION
  32. //
  33. // Maps new style (name, value) pairs into a RAS_USER_0 struct.
  34. //
  35. ///////////////////////////////////////////////////////////////////////////////
  36. class DownlevelUser
  37. {
  38. public:
  39. DownlevelUser() throw ();
  40. HRESULT GetValue(BSTR bstrName, VARIANT* pVal) throw ();
  41. HRESULT PutValue(BSTR bstrName, VARIANT* pVal) throw ();
  42. HRESULT Restore(PCWSTR oldParameters) throw ();
  43. HRESULT Update(PCWSTR oldParameters, PWSTR *newParameters) throw ();
  44. private:
  45. BOOL dialinAllowed; // TRUE if the DialinPrivilege should be set.
  46. BOOL callbackAllowed; // TRUE if callback is allowed.
  47. BOOL phoneNumberSet; // TRUE if phoneNumber is non-empty.
  48. BOOL savedNumberSet; // TRUE if savedNumber is non-empty.
  49. WCHAR phoneNumber[MAX_PHONE_NUMBER_LEN + 1];
  50. WCHAR savedNumber[MAX_PHONE_NUMBER_LEN + 1];
  51. // Not implemented.
  52. DownlevelUser(const DownlevelUser&);
  53. DownlevelUser& operator=(const DownlevelUser&);
  54. };
  55. #endif // _DOWNLEVEL_H_