47 lines
1.1 KiB
C
Raw Normal View History

2001-01-01 00:00:00 +01:00
#ifndef DATA_H
#define DATA_H
#include "userinfo.h"
#include "grpinfo.h"
class CUserManagerData
{
public:
// Functions
CUserManagerData(LPCTSTR pszCurrentDomainUser);
~CUserManagerData();
HRESULT Initialize(HWND hwndUserListPage);
BOOL IsComputerInDomain() {return m_fInDomain;}
CUserListLoader* GetUserListLoader() {return &m_UserListLoader;}
CGroupInfoList* GetGroupList() {return &m_GroupList;}
CUserInfo* GetLoggedOnUserInfo() {return &m_LoggedOnUser;}
TCHAR* GetComputerName() {return m_szComputername;}
BOOL IsAutologonEnabled();
TCHAR* GetHelpfilePath();
void UserInfoChanged(LPCTSTR pszUser, LPCTSTR pszDomain);
BOOL LogoffRequired();
private:
// Functions
void SetComputerDomainFlag();
private:
// Data
// List of users read from the local security DB
CUserInfo m_LoggedOnUser;
CUserListLoader m_UserListLoader;
CGroupInfoList m_GroupList;
BOOL m_fInDomain;
TCHAR m_szComputername[MAX_COMPUTERNAME + 1];
TCHAR m_szHelpfilePath[MAX_PATH + 1];
LPTSTR m_pszCurrentDomainUser;
BOOL m_fLogoffRequired;
};
#endif //! DATA_H