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.

53 lines
1.1 KiB

  1. // objpick.cpp: implementation of the CGetUser class and the
  2. // CGetComputer class using the object picker
  3. //
  4. //////////////////////////////////////////////////////////////////////
  5. #ifndef OBJPICK_H
  6. #define OBJPICK_H
  7. //
  8. // A list of names (e.g., users, groups, machines, and etc)
  9. //
  10. void FormatName(LPCTSTR pszFullName, LPCTSTR pszDomainName, CString & strDisplay);
  11. class CAccessEntry;
  12. class CAccessEntryArray : public CArray<CAccessEntry *, CAccessEntry *&>
  13. {
  14. public:
  15. CAccessEntryArray() {}
  16. ~CAccessEntryArray();
  17. };
  18. class CGetUsers : public CAccessEntryArray
  19. {
  20. public:
  21. CGetUsers(LPCTSTR pszMachineName, BOOL fMultiselect = FALSE);
  22. ~CGetUsers();
  23. BOOL GetUsers(HWND hwndOwner, BOOL bUsersOnly = FALSE);
  24. protected:
  25. void ProcessSelectedObjects(IDataObject *pdo);
  26. protected:
  27. BOOL m_fMultiselect;
  28. CString m_MachineName;
  29. };
  30. class CGetComputer
  31. {
  32. public:
  33. CGetComputer();
  34. ~CGetComputer();
  35. BOOL GetComputer(HWND hwndOwner);
  36. protected:
  37. void ProcessSelectedObjects(IDataObject *pdo);
  38. public:
  39. CString m_strComputerName;
  40. };
  41. #endif // GETUSER_H