|
#if !defined(AFX_SHOWACTIVEDIRUSERS_H__340C47DC_7D22_4D8C_95AE_C40AEBBBE00F__INCLUDED_)
#define AFX_SHOWACTIVEDIRUSERS_H__340C47DC_7D22_4D8C_95AE_C40AEBBBE00F__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "objsel.h"
class CADObjectPicker;
class CShowActiveDirUsers
{
public:
CShowActiveDirUsers();
CShowActiveDirUsers(HWND hWnd, CADObjectPicker* pObjPicker);
void Init(HWND hWnd, CADObjectPicker* pObjPicker);
virtual ~CShowActiveDirUsers();
// public helpers
bool ShowUserSelectionDialog();
BOOL GetUserInfoFromActiveDirectorySelection(DS_SELECTION& ds,
LPTSTR szUser, LPTSTR szDomain, LPTSTR szFullUserName,
LPTSTR szDescription);
BOOL GetUserAndDomainFromADsPath(LPTSTR szADsPath, LPTSTR szUser,
LPTSTR szDomain);
void GetDCName(LPTSTR szDCName, LPTSTR szDomain);
DS_SELECTION_LIST* RetrieveUserSelectionList();
protected:
bool IsOSVersionOK();
BOOL GetFullUserName(LPTSTR szUser, LPTSTR szDomain,
LPTSTR szFullUserName, LPTSTR szDescription);
void GetLocalComputerName(LPTSTR szComputerName);
void GetUserAndDomainNameFromUPN(LPTSTR szUser, LPTSTR szUserName,
LPTSTR szDomainName);
HWND m_hWnd; // window handle
IDataObjectPtr m_pDataObject; // data object
STGMEDIUM m_stg; // storage medium
CADObjectPicker* m_pObjPicker;
};
#endif // !defined(AFX_SHOWACTIVEDIRUSERS_H__340C47DC_7D22_4D8C_95AE_C40AEBBBE00F__INCLUDED_)
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I was born and grew up in Northern Germany grew up in Quebec in a French Language environment. I finished High School in Fergus, Ontario. After a 4 year training as a Pipe Organ Builder in Germany, I returned to Canada to get a B.Sc. in Computer Science. I'm currently working for a company called AB SCIEX working on Mass Spectrometer Software, am married, and have three often wonderful children. What you believe in matters - I am a follower of Jesus Christ - we attend a German-Lutheran congregation in downtown
Toronto.