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.

68 lines
1.3 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. BOOL COMDLL GetIUsrAccount(
  11. IN LPCTSTR lpstrServer,
  12. IN CWnd * pParent,
  13. OUT CString & str
  14. );
  15. BOOL COMDLL GetIUsrAccount(
  16. LPCTSTR lpstrServer,
  17. CWnd * pParent,
  18. LPTSTR pBuffer,
  19. int size
  20. );
  21. void FormatName(LPCTSTR pszFullName, LPCTSTR pszDomainName, CString & strDisplay);
  22. class CAccessEntry;
  23. class CAccessEntryArray : public CArray<CAccessEntry *, CAccessEntry *&>
  24. {
  25. public:
  26. CAccessEntryArray() {}
  27. ~CAccessEntryArray();
  28. };
  29. class COMDLL CGetUsers : public CAccessEntryArray
  30. {
  31. public:
  32. CGetUsers(LPCTSTR pszMachineName, BOOL fMultiselect = FALSE);
  33. ~CGetUsers();
  34. BOOL GetUsers(HWND hwndOwner, BOOL bUsersOnly = FALSE);
  35. protected:
  36. void ProcessSelectedObjects(IDataObject *pdo);
  37. protected:
  38. BOOL m_fMultiselect;
  39. CString m_MachineName;
  40. };
  41. class COMDLL CGetComputer
  42. {
  43. public:
  44. CGetComputer();
  45. ~CGetComputer();
  46. BOOL GetComputer(HWND hwndOwner);
  47. protected:
  48. void ProcessSelectedObjects(IDataObject *pdo);
  49. public:
  50. CString m_strComputerName;
  51. };
  52. #endif // OBJPICK_H