windows-nt/Source/XPSP1/NT/printscan/print/spooler/inetpp2/server/userdata.hxx

44 lines
1.1 KiB
C++
Raw Normal View History

2020-09-26 03:20:57 -05:00
#ifndef _USERDATA_HXX
#define _USERDATA_HXX
class CUserData
: public CCriticalSection {
public:
CUserData (); // Default contructor
virtual ~CUserData (VOID);
inline BOOL bValid (VOID);
int Compare (CUserData * second);
CUserData &operator= (const CUserData &rhs);
friend BOOL operator== (const CUserData &lhs, const CUserData &rhs);
friend BOOL operator!= (const CUserData &lhs, const CUserData &rhs);
protected:
PSID m_pSid;
BOOL m_bValid;
private:
BOOL _GetSid (VOID);
static BOOL _GetUserToken (PTOKEN_USER &TokenUserInfo);
};
/////////////////////////////////////////////////////////////////
// INLINE METHODS
////////////////////////////////////////////////////////////////
inline BOOL CUserData::bValid (VOID) {
return m_bValid;
}
#endif // #ifdef __USERDATA_HXX
/*******************************************************************************
** End of File (userdata.hxx)
*******************************************************************************/