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.

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