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.

65 lines
1.8 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation 1996-2001.
  5. //
  6. // File: getuser.h
  7. //
  8. // Contents: definition of CGetUser
  9. //
  10. //----------------------------------------------------------------------------
  11. #ifndef GETUSER_H
  12. #define GETUSER_H
  13. #define SCE_SHOW_USERS 0x1
  14. #define SCE_SHOW_GROUPS 0x2
  15. #define SCE_SHOW_ALIASES 0x4
  16. #define SCE_SHOW_ALL 0x7
  17. #define SCE_SHOW_LOCALONLY 0x8
  18. #define SCE_SHOW_DOMAINGROUPS 0x10
  19. #define SCE_SHOW_SINGLESEL 0x20
  20. #define SCE_SHOW_BUILTIN 0x40
  21. #define SCE_SHOW_WELLKNOWN 0x80
  22. #define SCE_SHOW_GLOBAL 0x100
  23. #define SCE_SHOW_LOCALGROUPS 0x200
  24. #define SCE_SHOW_SCOPE_LOCAL 0x400
  25. #define SCE_SHOW_SCOPE_DOMAIN 0x800
  26. #define SCE_SHOW_SCOPE_DIRECTORY 0x1000
  27. #define SCE_SHOW_SCOPE_ALL (SCE_SHOW_SCOPE_LOCAL|SCE_SHOW_SCOPE_DOMAIN|SCE_SHOW_SCOPE_DIRECTORY)
  28. #define SCE_SHOW_DIFF_MODE_OFF_DC 0x2000
  29. #define SCE_SHOW_COMPUTER 0x4000
  30. typedef struct _tag_WSCE_ACCOUNTINFO
  31. {
  32. LPTSTR pszName;
  33. SID_NAME_USE sidType;
  34. } WSCE_ACCOUNTINFO, *PWSCE_ACCOUNTINFO;
  35. class CGetUser
  36. {
  37. public:
  38. PSCE_NAME_LIST GetUsers();
  39. BOOL Create(HWND hwnd, DWORD nShowFlag);
  40. CGetUser();
  41. virtual ~CGetUser();
  42. void SetServer( LPCTSTR pszServerName )
  43. { m_pszServerName = pszServerName; };
  44. protected:
  45. HINSTANCE m_hinstNetUI;
  46. PSCE_NAME_LIST m_pNameList;
  47. public:
  48. static SID_NAME_USE
  49. GetAccountType(LPCTSTR pszName);
  50. protected:
  51. LPCTSTR m_pszServerName;
  52. static CTypedPtrArray<CPtrArray, PWSCE_ACCOUNTINFO> m_aKnownAccounts;
  53. };
  54. #endif // GETUSER_H