mirror of https://github.com/tongzx/nt5src
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
68 lines
1.3 KiB
// objpick.cpp: implementation of the CGetUser class and the
|
|
// CGetComputer class using the object picker
|
|
//
|
|
//////////////////////////////////////////////////////////////////////
|
|
#ifndef OBJPICK_H
|
|
#define OBJPICK_H
|
|
|
|
//
|
|
// A list of names (e.g., users, groups, machines, and etc)
|
|
//
|
|
|
|
BOOL COMDLL GetIUsrAccount(
|
|
IN LPCTSTR lpstrServer,
|
|
IN CWnd * pParent,
|
|
OUT CString & str
|
|
);
|
|
|
|
BOOL COMDLL GetIUsrAccount(
|
|
LPCTSTR lpstrServer,
|
|
CWnd * pParent,
|
|
LPTSTR pBuffer,
|
|
int size
|
|
);
|
|
|
|
void FormatName(LPCTSTR pszFullName, LPCTSTR pszDomainName, CString & strDisplay);
|
|
|
|
class CAccessEntry;
|
|
|
|
class CAccessEntryArray : public CArray<CAccessEntry *, CAccessEntry *&>
|
|
{
|
|
public:
|
|
CAccessEntryArray() {}
|
|
~CAccessEntryArray();
|
|
};
|
|
|
|
class COMDLL CGetUsers : public CAccessEntryArray
|
|
{
|
|
public:
|
|
CGetUsers(LPCTSTR pszMachineName, BOOL fMultiselect = FALSE);
|
|
~CGetUsers();
|
|
|
|
BOOL GetUsers(HWND hwndOwner, BOOL bUsersOnly = FALSE);
|
|
|
|
protected:
|
|
void ProcessSelectedObjects(IDataObject *pdo);
|
|
|
|
protected:
|
|
BOOL m_fMultiselect;
|
|
CString m_MachineName;
|
|
};
|
|
|
|
class COMDLL CGetComputer
|
|
{
|
|
public:
|
|
CGetComputer();
|
|
~CGetComputer();
|
|
|
|
BOOL GetComputer(HWND hwndOwner);
|
|
|
|
protected:
|
|
void ProcessSelectedObjects(IDataObject *pdo);
|
|
|
|
public:
|
|
CString m_strComputerName;
|
|
};
|
|
|
|
#endif // OBJPICK_H
|
|
|