Click here to Skip to main content
15,506,865 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to inlude files,getting link error! Pin
Rage7-Oct-04 8:42
professionalRage7-Oct-04 8:42 
AnswerRe: How to inlude files,getting link error! Pin
Rage7-Oct-04 8:46
professionalRage7-Oct-04 8:46 
GeneralRe: How to inlude files,getting link error! Pin
Dani1000017-Oct-04 9:00
Dani1000017-Oct-04 9:00 
GeneralRe: How to inlude files,getting link error! Pin
David Crow7-Oct-04 10:07
David Crow7-Oct-04 10:07 
Questioncan i use %windir% to get windows directory??? Pin
venadder7-Oct-04 7:54
venadder7-Oct-04 7:54 
AnswerRe: can i use %windir% to get windows directory??? Pin
Rage7-Oct-04 8:33
professionalRage7-Oct-04 8:33 
GeneralEmbedding a dialog from dll in main program's splitter View and doing data exchange in dll Pin
kumar_gaurava7-Oct-04 6:39
kumar_gaurava7-Oct-04 6:39 
GeneralImpersonation Pin
Per Nilsson7-Oct-04 5:42
Per Nilsson7-Oct-04 5:42 
Hello

I would like to call ImpersonateLoggedOnUser to gain some extra rights for a particular task in my application. For the call I need an impersonation token. To get this I tried the LogonUser function, but I don't have enough privileges. Probably it's the SE_TCB_NAME privilege. If I inspect the results from GetTokenInformation it is true that I don't have that priv and hence cannot enable it.

Does anyone know how to get a proper impersonation token.

I've tried to call CreateProcessWithLogonW to create a dummy process as a different users, and with that process handle I can call OpenProcessToken to get a token to send to ImpersonateLoggedOnUser. This gives the expected result, but it is a verry uggly work around.

GeneralRe: Impersonation Pin
toxcct7-Oct-04 5:48
toxcct7-Oct-04 5:48 
GeneralRe: Impersonation Pin
Rage7-Oct-04 8:55
professionalRage7-Oct-04 8:55 
Generalplease help- different colored letters Pin
...---...7-Oct-04 5:41
...---...7-Oct-04 5:41 
GeneralRe: please help- different colored letters Pin
Maximilien7-Oct-04 8:19
Maximilien7-Oct-04 8:19 
GeneralDo I know how to iterate? Pin
...---...7-Oct-04 8:41
...---...7-Oct-04 8:41 
GeneralRe: Do I know how to iterate? Pin
David Crow7-Oct-04 9:10
David Crow7-Oct-04 9:10 
GeneralRe: iImperaionation Pin
toxcct7-Oct-04 5:37
toxcct7-Oct-04 5:37 
Generalusing STL to read LARGE text files ... Pin
Maximilien7-Oct-04 5:17
Maximilien7-Oct-04 5:17 
Generalproblem:dll not found Pin
happycpp7-Oct-04 4:37
happycpp7-Oct-04 4:37 
GeneralRe: problem:dll not found Pin
David Crow7-Oct-04 5:07
David Crow7-Oct-04 5:07 
GeneralRe: problem:dll not found Pin
happycpp7-Oct-04 7:39
happycpp7-Oct-04 7:39 
GeneralRe: problem:dll not found Pin
David Crow7-Oct-04 9:07
David Crow7-Oct-04 9:07 
GeneralRe: problem:dll not found Pin
happycpp7-Oct-04 10:03
happycpp7-Oct-04 10:03 
GeneralRe: problem:dll not found Pin
David Crow7-Oct-04 11:06
David Crow7-Oct-04 11:06 
GeneralRe: problem:dll not found Pin
Blake Miller7-Oct-04 11:52
Blake Miller7-Oct-04 11:52 
GeneralRe: problem:dll not found Pin
8-Oct-04 4:40
suss8-Oct-04 4:40 
GeneralRe: problem:dll not found Pin
Blake Miller8-Oct-04 5:53
Blake Miller8-Oct-04 5:53 

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.