Source code of Windows XP (NT5)
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.

72 lines
1.8 KiB

  1. /*****************************************************************************\
  2. * MODULE: pusrdata.hxx
  3. *
  4. * PURPOSE: This specialises the user data class to keep track of data
  5. * useful to a basic connection port.
  6. *
  7. * Copyright (C) 2000 Microsoft Corporation
  8. *
  9. * History:
  10. *
  11. * 1/11/2000 mlawrenc Implemented
  12. *
  13. \*****************************************************************************/
  14. #if (!defined (_PUSRDATA_HXX))
  15. #define _PUSRDATA_HXX
  16. #include "userdata.hxx"
  17. class CPortUserData
  18. : public CUserData {
  19. public:
  20. CPortUserData (); // Default contructor
  21. CPortUserData (
  22. LPTSTR lpszUserName,
  23. LPTSTR lpszPassword,
  24. BOOL bNeverPopup);
  25. ~CPortUserData (void);
  26. CPortUserData &operator=(const CPortUserData &rhs);
  27. inline LPTSTR GetPassword (void);
  28. inline LPTSTR GetUserName (void);
  29. BOOL SetPassword (LPTSTR lpszPassword);
  30. BOOL SetUserName (LPTSTR lpszUserName);
  31. BOOL SetPopupFlag (BOOL bNerverPopup);
  32. BOOL GetPopupFlag (void);
  33. protected:
  34. LPTSTR m_lpszUserName;
  35. LPTSTR m_lpszPassword;
  36. BOOL m_bNeverPopup;
  37. FILETIME m_lastLogonTime;
  38. private:
  39. BOOL _GetLogonSession (
  40. FILETIME &LogonTime);
  41. };
  42. typedef CSingleList<CPortUserData*> CPortUserList;
  43. ////////////////////////////////////////////////////
  44. // INLINE METHODS
  45. ////////////////////////////////////////////////////
  46. inline LPTSTR CPortUserData::GetPassword (void) {
  47. return m_lpszPassword;
  48. }
  49. inline LPTSTR CPortUserData::GetUserName (void) {
  50. return m_lpszUserName;
  51. }
  52. #endif // #if (!defined(_PUSRDATA_HXX))
  53. /*****************************************************************
  54. ** End of File (pusrdata.hxx)
  55. ******************************************************************/