Click here to Skip to main content
15,922,325 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Deadlock when linking 2 DLLs that call eachother ? Pin
eladho17-Mar-03 3:00
eladho17-Mar-03 3:00 
AnswerRe: Deadlock when linking 2 DLLs that call eachother ? Pin
Brian Shifrin17-Mar-03 7:22
Brian Shifrin17-Mar-03 7:22 
GeneralNetUserGetInfo Pin
Sonu Kapoor17-Mar-03 1:54
Sonu Kapoor17-Mar-03 1:54 
GeneralRemove the window from the task bar while in minimized state Pin
d_kilshtein17-Mar-03 1:07
d_kilshtein17-Mar-03 1:07 
GeneralRe: Remove the window from the task bar while in minimized state Pin
Abin17-Mar-03 2:13
Abin17-Mar-03 2:13 
GeneralIs their any way Pin
Ph@ntom17-Mar-03 0:27
Ph@ntom17-Mar-03 0:27 
GeneralRe: Is their any way Pin
Rage17-Mar-03 1:18
professionalRage17-Mar-03 1:18 
GeneralOverwriting locked files Pin
jerry0davis17-Mar-03 0:23
jerry0davis17-Mar-03 0:23 
GeneralRe: Overwriting locked files Pin
Dominik Reichl17-Mar-03 0:58
Dominik Reichl17-Mar-03 0:58 
GeneralRe: Overwriting locked files Pin
jerry0davis17-Mar-03 1:06
jerry0davis17-Mar-03 1:06 
GeneralRe: Overwriting locked files Pin
Dominik Reichl17-Mar-03 1:25
Dominik Reichl17-Mar-03 1:25 
GeneralRe: Overwriting locked files Pin
jerry0davis17-Mar-03 1:27
jerry0davis17-Mar-03 1:27 
GeneralRe: Overwriting locked files Pin
Scott H. Settlemier17-Mar-03 1:21
Scott H. Settlemier17-Mar-03 1:21 
GeneralRe: Overwriting locked files Pin
jerry0davis17-Mar-03 1:25
jerry0davis17-Mar-03 1:25 
GeneralAbnormal Program Termination Pin
kalamatianos16-Mar-03 23:55
kalamatianos16-Mar-03 23:55 
GeneralSource profiling Pin
Jonathan Gilligan16-Mar-03 23:20
Jonathan Gilligan16-Mar-03 23:20 
GeneralRe: Source profiling Pin
Joao Vaz17-Mar-03 0:31
Joao Vaz17-Mar-03 0:31 
GeneralRe: Source profiling Pin
Jonathan Gilligan17-Mar-03 5:45
Jonathan Gilligan17-Mar-03 5:45 
GeneralRe: Source profiling Pin
Joao Vaz17-Mar-03 6:26
Joao Vaz17-Mar-03 6:26 
GeneralRe: Source profiling Pin
Jonathan Gilligan18-Mar-03 13:36
Jonathan Gilligan18-Mar-03 13:36 
GeneralDisable Horizontal ScrollBar in CListCtrl Pin
Effiniti16-Mar-03 22:58
Effiniti16-Mar-03 22:58 
GeneralRe: Disable Horizontal ScrollBar in CListCtrl Pin
Anonymous16-Mar-03 23:08
Anonymous16-Mar-03 23:08 
GeneralRe: Disable Horizontal ScrollBar in CListCtrl Pin
zzh8461512-Jul-10 20:54
zzh8461512-Jul-10 20:54 
GeneralNetLocalGroupAddMembers Pin
Sonu Kapoor16-Mar-03 21:49
Sonu Kapoor16-Mar-03 21:49 
Hey 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:
<br />
USES_CONVERSION;<br />
wchar_t *pswzGroup	= T2W("A");<br />
wchar_t *pswzUser	= T2W("X");<br />
<br />
LOCALGROUP_MEMBERS_INFO_3		localgroup_members;<br />
localgroup_members.lgrmi3_domainandname = pswzUser;<br />
	<br />
nStatus=NetLocalGroupAddMembers(NULL,pswzGroup,3,(LPBYTE)&localgroup_members,1);<br />
	<br />
if(nStatus == NERR_Success) return "Groups(s) added succesfully to the<br />
group.\r\n";<br />
if(nStatus == ERROR_ACCESS_DENIED) return "Access denied.\r\n";<br />
if(nStatus == NERR_GroupNotFound) return "The user does not have<br />
access to the requested information.\r\n";<br />
if(nStatus == ERROR_NO_SUCH_MEMBER) return "One or more of the members<br />
specified do not exist. Therefore, no new members were added.\r\n";<br />
if(nStatus == ERROR_MEMBER_IN_ALIAS) return "One or more of the<br />
members specified were already members of the local group. No new<br />
members were added.\r\n";<br />
if(nStatus == ERROR_INVALID_MEMBER)	return "One or more of the members<br />
cannot be added because their account type is invalid. No new members<br />
were added.\r\n";<br />
else{<br />
CString str;<br />
str.Format("Error->Code: %d\r\n",nStatus);<br />
return str;<br />
}<br />

thanks, sonu


da sonu Cool | :cool:
GeneralAdding a entry in Visual C++ project options Pin
abhinarulkar16-Mar-03 19:27
abhinarulkar16-Mar-03 19:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.