Click here to Skip to main content
15,921,226 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Question[Message Deleted] Pin
Llasus7-Nov-06 21:41
Llasus7-Nov-06 21:41 
AnswerRe: calling a function inside a thread Pin
Cedric Moonen7-Nov-06 21:43
Cedric Moonen7-Nov-06 21:43 
AnswerRe: calling a function inside a thread Pin
dharani7-Nov-06 21:46
dharani7-Nov-06 21:46 
AnswerRe: calling a function inside a thread Pin
Hamid_RT7-Nov-06 21:49
Hamid_RT7-Nov-06 21:49 
QuestionUsers group from NT based machines Pin
micutzu7-Nov-06 21:04
micutzu7-Nov-06 21:04 
GeneralRe: Users group from NT based machines Pin
Mila0257-Nov-06 22:13
Mila0257-Nov-06 22:13 
GeneralRe: Users group from NT based machines Pin
micutzu8-Nov-06 1:18
micutzu8-Nov-06 1:18 
AnswerRe: Users group from NT based machines Pin
Steve S8-Nov-06 2:26
Steve S8-Nov-06 2:26 
Isn't localisation wonderful?

Do you mean the local machine Users group, or the domain level Users group?

If you mean the local machine users group, then for WindowsXP/2003 you can use something like CreateWellKnownSid with WinBuiltinUsersSid as the sid. For 2K you'd have to manually create the SID yourself, although this isn't too hard as it is a fixed value "S-1-5-32-545", so something like

SID_IDENTIFIER_AUTHORITY auth = SECURITY_NT_AUTHORITY;
AllocateAndInitializeSid(
&auth,
2,
SECURITY_BUILTIN_DOMAIN_RID,
DOMAIN_ALIAS_RID_USERS,
0,
0,
0,
0,
0,
0,
TheSID);

would do the trick. You can use LookupAccountSid() if you want to know the localised name, of course Smile | :)

Steve S
Developer for hire

GeneralRe: Users group from NT based machines Pin
micutzu8-Nov-06 2:39
micutzu8-Nov-06 2:39 
QuestionHow to creat short dos paths for long dos paths Pin
AmarjeetSinghMatharu7-Nov-06 21:03
AmarjeetSinghMatharu7-Nov-06 21:03 
AnswerRe: How to creat short dos paths for long dos paths Pin
Tony Hill7-Nov-06 21:16
professionalTony Hill7-Nov-06 21:16 
AnswerRe: How to creat short dos paths for long dos paths Pin
Mila0257-Nov-06 21:16
Mila0257-Nov-06 21:16 
QuestionRe: How to creat short dos paths for long dos paths Pin
AmarjeetSinghMatharu27-Nov-06 20:12
AmarjeetSinghMatharu27-Nov-06 20:12 
QuestionRe: How to creat short dos paths for long dos paths Pin
AmarjeetSinghMatharu5-Feb-07 23:16
AmarjeetSinghMatharu5-Feb-07 23:16 
AnswerRe: How to creat short dos paths for long dos paths Pin
Mila0256-Feb-07 1:07
Mila0256-Feb-07 1:07 
Questionmenus in mfc Pin
sureshu7-Nov-06 21:00
sureshu7-Nov-06 21:00 
AnswerRe: menus in mfc Pin
Hamid_RT7-Nov-06 21:19
Hamid_RT7-Nov-06 21:19 
GeneralRe: menus in mfc Pin
sureshu7-Nov-06 21:42
sureshu7-Nov-06 21:42 
GeneralRe: menus in mfc Pin
Hamid_RT7-Nov-06 21:48
Hamid_RT7-Nov-06 21:48 
GeneralRe: menus in mfc Pin
sureshu7-Nov-06 22:14
sureshu7-Nov-06 22:14 
AnswerRe: menus in mfc Pin
dharani7-Nov-06 21:23
dharani7-Nov-06 21:23 
AnswerRe: menus in mfc Pin
ThatsAlok7-Nov-06 23:50
ThatsAlok7-Nov-06 23:50 
QuestionHow to stop recv? Pin
LaHaHa7-Nov-06 20:15
LaHaHa7-Nov-06 20:15 
AnswerRe: How to stop recv? Pin
dharani7-Nov-06 21:26
dharani7-Nov-06 21:26 
GeneralRe: How to stop recv? Pin
LaHaHa7-Nov-06 22:15
LaHaHa7-Nov-06 22:15 

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.