I try to get the full name of a user in my Windows 2003 Active Directory.
I tried to use NetGetUserInfo(), but receive the error-code 1113. MSDN states, that I may have not sufficient rights to query a user's full name, but I cannot find, where to set the rights in my active directory.
Since my application should also work with Windows 2000 domains and even NT-domains, I don't want to use the functions for ADS-containers (I also have never programmed them before and I don't know enough about them )
So is there any possibility to get a user's full name when I know his login-name and the name of the domain?
I tried GetUserNameEx(), but I can only get information about the currently logged in user. I need information about all the other domain users. I have a table with login-names and I want to display the realnames of these people because it is much more readable.
i am sorry for interrupting you all
but i want to know how to change color on clicking tab
as i dont know this from article
i try this one what it gives error
i try this code in on init dialog where m_tabctrl is variable ofCTabctrl;
now tell me how can i use this one
ya sir i saw this link
but when i write code in oninit as
it will give errors as
1)'CPropertySheet::GetTabControl' : illegal call of non-static member function
2)left of '->GetDlgCtrlID' must point to class/struct/union
I am reading some value (path) from the registry. But that contains ~ operator in the path. But I want to display the full path. So kindly help me How can I translate ~ operator from file names or folder names using VC++