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.

38 lines
909 B

  1. #ifndef _USERDATA_HXX
  2. #define _USERDATA_HXX
  3. class CUserData
  4. : public CCriticalSection {
  5. public:
  6. CUserData (); // Default contructor
  7. virtual ~CUserData (VOID);
  8. inline BOOL bValid (VOID);
  9. int Compare (CUserData * second);
  10. CUserData &operator= (const CUserData &rhs);
  11. friend BOOL operator== (const CUserData &lhs, const CUserData &rhs);
  12. friend BOOL operator!= (const CUserData &lhs, const CUserData &rhs);
  13. protected:
  14. PSID m_pSid;
  15. BOOL m_bValid;
  16. private:
  17. BOOL _GetSid (VOID);
  18. static BOOL _GetUserToken (PTOKEN_USER &TokenUserInfo);
  19. };
  20. /////////////////////////////////////////////////////////////////
  21. // INLINE METHODS
  22. ////////////////////////////////////////////////////////////////
  23. inline BOOL CUserData::bValid (VOID) {
  24. return m_bValid;
  25. }
  26. #endif // #ifdef __USERDATA_HXX