hey guys, I am trying to retrieve the password of a specific user with the NetUserGetInfo function. But the MSDN says the following regarding the function: -------------------- from msdn: link: http://msdn.microsoft.com/library/d..._info_4_str.asp The NetUserEnum and NetUserGetInfo functions return a NULL pointer to maintain password security. -------------------- my code: USES_CONVERSION; wchar_t *pswzUser = T2W("A"); DWORD dwLevel = 4; USER_INFO_3 pUi; nStatus = NetUserGetInfo(NULL, pswzUser, dwLevel, (LPBYTE*)&pUi); return W2T(pUi.usri3_password);
So how can I retrieve the password ??? da sonu :cool:
Sonu Kapoor
Posts
-
NetUserGetInfo -
NetLocalGroupAddMembersHey guys, I am trying to add a member into a group. A user and a group already exists, but if I call this function, I get the system error code 1376: The specified local group does not exist. I recognized that if I call this function after creating a user it success. So what can I do here ??? see my code:
USES_CONVERSION; wchar_t *pswzGroup = T2W("A"); wchar_t *pswzUser = T2W("X"); LOCALGROUP_MEMBERS_INFO_3 localgroup_members; localgroup_members.lgrmi3_domainandname = pswzUser; nStatus=NetLocalGroupAddMembers(NULL,pswzGroup,3,(LPBYTE)&localgroup_members,1); if(nStatus == NERR_Success) return "Groups(s) added succesfully to the group.\r\n"; if(nStatus == ERROR_ACCESS_DENIED) return "Access denied.\r\n"; if(nStatus == NERR_GroupNotFound) return "The user does not have access to the requested information.\r\n"; if(nStatus == ERROR_NO_SUCH_MEMBER) return "One or more of the members specified do not exist. Therefore, no new members were added.\r\n"; if(nStatus == ERROR_MEMBER_IN_ALIAS) return "One or more of the members specified were already members of the local group. No new members were added.\r\n"; if(nStatus == ERROR_INVALID_MEMBER) return "One or more of the members cannot be added because their account type is invalid. No new members were added.\r\n"; else{ CString str; str.Format("Error->Code: %d\r\n",nStatus); return str; }
thanks, sonu da sonu :cool: -
create a user on Win 2000Hey guys, Does somebody know how to create a simple user on a Win 2000 with the help of VC++ ?? Or are their any tools which i can use ? I know the tools "net" and "Addusers" but both does not provide the function to modify an existing user. I can easily create and delete users or even groups with the mentioned tool. But i also need to modify the Users or Groups. Please let me know if you have any solution. Thanks da sonu :cool:
-
Add a mailuser with VC++Is there somebody who can answer this ?? da sonu :cool:
-
Add a mailuser with VC++Thanks for your response. what about a simple user on a win2000 ?? da sonu :cool:
-
Add a mailuser with VC++Hey guys, does somebody know how to add a mailuser with the help of vc++ on a Win2k ??? Are their any tools on windows which i can call through vc++ to create such an account ?? Thanks da sonu :cool:
-
Change the IPhi coders, does somebody of you know how to change the IP of a WINNT System in VC++ ?? Thanks da sonu :cool:
-
sortingI am using DOM, but i am not very familiar with that. Do you have any example code which might help me ? da sonu :cool:
-
sortingHey Guys, I am using ASP to load some data from a xml file via xsl. Now i need to sort this data, i know i could use the xsl:sort element but i need a dynamic one, which the user can change. So the user will have the possibilty to sort the data in different ways. I already tried to pass a param to xsl and put it to but it didnt worked. Isnt it possible to pass a sort statement in selectnodes ? Is there any such function ? Any suggestions ?? thanks Sonu da sonu :cool:
-
sorting, please help :-(Hey Guys, I am using ASP to load some data from a xml file via xsl. Now i need to sort this data, i know i could use the xsl:sort element but i need a dynamic one, which the user can change. So the user will have the possibilty to sort the data in different ways. Is there any such function ? Any suggestions ?? Thanks Sonu Kapoor da sonu :cool:
-
QOTDPaul Watson wrote: you have a life line left ok, i want to use my life line ! Which life line is left ? I hope the 50-50 life line.....:-) da sonu :cool:
-
QOTDPaul Watson wrote: D: Programming questions are not allowed in The Lounge according to the Loungs rules, of course D. LOL da sonu :cool:
-
QOTDHi folks, What happens with the QOTD ? I cant see it anymore ! da sonu :cool:
-
Whish me luck !!All the best ! da sonu :cool:
-
Making FriendsRage wrote: ..but i´ll try to help as much as i can everyone... I agree with you, Rage. da sonu :cool:
-
Disabling the close box [X]i think thats not possible ! You can just catch, if the user presses this button. da sonu :cool:
-
Nice Image Of Bob:-D Yup, its always the CTRL button. LOL da sonu :cool:
-
Nice Image Of Bobtry Ctrl+F5 Maybe this will help da sonu :cool:
-
Not PootMazy! :-D****Alexpro wrote: We have a lot of Indians fellows here on CP, so beware! But my GF is not here :( da sonu :suss:
-
Not PootMazy! :-Dnope, i didnt talked to her since 3 weeks. I am going crazy. da sonu :suss: