Click here to Skip to main content
15,905,682 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: Adding a entry in Visual C++ project options Pin
Jambolo16-Mar-03 21:27
Jambolo16-Mar-03 21:27 
Generalchecking value of flags set in lparam Pin
r i s h a b h s16-Mar-03 18:10
r i s h a b h s16-Mar-03 18:10 
GeneralRe: checking value of flags set in lparam Pin
Ravi Bhavnani17-Mar-03 9:33
professionalRavi Bhavnani17-Mar-03 9:33 
QuestionI am using Windows Media Player Control in my Dialogue based VC++6 program, how can I make sure only one Media Player instance is running at any time? Pin
DengJW16-Mar-03 17:20
DengJW16-Mar-03 17:20 
GeneralPassing by value and printing in function Pin
Member 2296016-Mar-03 15:53
Member 2296016-Mar-03 15:53 
GeneralRe: Passing by value and printing in function Pin
Chris Losinger16-Mar-03 15:56
professionalChris Losinger16-Mar-03 15:56 
GeneralRe: Passing by value and printing in function Pin
Jambolo16-Mar-03 21:34
Jambolo16-Mar-03 21:34 
QuestionHow can i lock keyboard and mouse on Windows 9X and Windows NT/2000/XP Pin
bpmtri16-Mar-03 15:15
sussbpmtri16-Mar-03 15:15 
AnswerRe: How can i lock keyboard and mouse on Windows 9X and Windows NT/2000/XP Pin
JoeSox16-Mar-03 18:50
JoeSox16-Mar-03 18:50 
GeneralRe: How can i lock keyboard and mouse on Windows 9X and Windows NT/2000/XP Pin
bpmtri16-Mar-03 18:57
sussbpmtri16-Mar-03 18:57 
GeneralRe: How can i lock keyboard and mouse on Windows 9X and Windows NT/2000/XP Pin
JoeSox16-Mar-03 19:15
JoeSox16-Mar-03 19:15 
GeneralRe: How can i lock keyboard and mouse on Windows 9X and Windows NT/2000/XP Pin
bpmtri16-Mar-03 19:27
sussbpmtri16-Mar-03 19:27 
AnswerRe: How can i lock keyboard and mouse on Windows 9X and Windows NT/2000/XP Pin
Joan M16-Mar-03 21:56
professionalJoan M16-Mar-03 21:56 
GeneralRe: How can i lock keyboard and mouse on Windows 9X and Windows NT/2000/XP Pin
Alexinuk18-Mar-03 4:55
Alexinuk18-Mar-03 4:55 
GeneralRe: How can i lock keyboard and mouse on Windows 9X and Windows NT/2000/XP Pin
Joan M18-Mar-03 5:36
professionalJoan M18-Mar-03 5:36 
AnswerRe: How can i lock keyboard and mouse on Windows 9X and Windows NT/2000/XP Pin
Valera24117617-Mar-03 11:24
Valera24117617-Mar-03 11:24 

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.