Click here to Skip to main content
15,886,362 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Trapping Interrupts in Windows Pin
Rane19-Feb-06 18:50
Rane19-Feb-06 18:50 
QuestionSimple Win32 Console App question... Pin
jc0dex18-Feb-06 15:36
jc0dex18-Feb-06 15:36 
AnswerRe: Simple Win32 Console App question... Pin
PJ Arends18-Feb-06 16:58
professionalPJ Arends18-Feb-06 16:58 
GeneralRe: Simple Win32 Console App question... Pin
jc0dex18-Feb-06 17:27
jc0dex18-Feb-06 17:27 
GeneralRe: Simple Win32 Console App question... Pin
PJ Arends18-Feb-06 17:32
professionalPJ Arends18-Feb-06 17:32 
AnswerRe: Simple Win32 Console App question... Pin
jc0dex18-Feb-06 17:57
jc0dex18-Feb-06 17:57 
QuestionHow to use CreateProcessAsUser?! Pin
PPatrickFFM18-Feb-06 13:20
PPatrickFFM18-Feb-06 13:20 
AnswerRe: How to use CreateProcessAsUser?! Pin
oshah18-Feb-06 13:40
oshah18-Feb-06 13:40 
To enable a privilege, you can use code from this SDK article[^].

However, I think your trouble is that you need privileges that even an administrator does not have. The closest account that does have the privilege you're going to get is the service account. If you can create a service, use that.

That said, you should strongly consider using CreateProcessWithLogonW instead. It was specifically created to overcome the troubles with CreateProcessAsUser. It works by delegating to the "Secondary Logon" service.

What operating system are you using? CreateProcessAsUser was changed in WinXP so that SeTcbPrivilege is no longer required.
Questionrich edit box Pin
Sam 200618-Feb-06 13:11
Sam 200618-Feb-06 13:11 
AnswerRe: rich edit box Pin
Michael Dunn18-Feb-06 13:21
sitebuilderMichael Dunn18-Feb-06 13:21 
GeneralRe: rich edit box Pin
Sam 200618-Feb-06 14:10
Sam 200618-Feb-06 14:10 
GeneralRe: rich edit box Pin
Sam 200618-Feb-06 16:25
Sam 200618-Feb-06 16:25 
QuestionPrinting Combinations Pin
RockyJames18-Feb-06 9:50
RockyJames18-Feb-06 9:50 
AnswerRe: Printing Combinations Pin
Michael Dunn18-Feb-06 11:16
sitebuilderMichael Dunn18-Feb-06 11:16 
AnswerRe: Printing Combinations Pin
Gary R. Wheeler18-Feb-06 11:16
Gary R. Wheeler18-Feb-06 11:16 
QuestionCreating a directory and copying files Pin
theprinc18-Feb-06 8:13
theprinc18-Feb-06 8:13 
AnswerRe: Creating a directory and copying files Pin
Michael Dunn18-Feb-06 9:39
sitebuilderMichael Dunn18-Feb-06 9:39 
QuestionSetWindowTheme - How does it work? Pin
peburkle18-Feb-06 8:03
peburkle18-Feb-06 8:03 
AnswerRe: SetWindowTheme - How does it work? Pin
Michael Dunn18-Feb-06 9:41
sitebuilderMichael Dunn18-Feb-06 9:41 
GeneralRe: SetWindowTheme - How does it work? Pin
peburkle18-Feb-06 10:08
peburkle18-Feb-06 10:08 
QuestionHow can i use many modal dialog without main Window Pin
noob200618-Feb-06 7:48
noob200618-Feb-06 7:48 
AnswerRe: How can i use many modal dialog without main Window Pin
Gary R. Wheeler19-Feb-06 4:32
Gary R. Wheeler19-Feb-06 4:32 
Questionpermutations and combination Pin
RockyJames18-Feb-06 7:47
RockyJames18-Feb-06 7:47 
AnswerRe: permutations and combination Pin
theprinc18-Feb-06 8:16
theprinc18-Feb-06 8:16 
GeneralRe: permutations and combination Pin
RockyJames18-Feb-06 8:21
RockyJames18-Feb-06 8:21 

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.