Click here to Skip to main content
15,895,011 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: unistd.h Pin
Rajesh R Subramanian28-Dec-09 22:09
professionalRajesh R Subramanian28-Dec-09 22:09 
QuestionRe: unistd.h [modified] Pin
CPallini28-Dec-09 22:16
mveCPallini28-Dec-09 22:16 
AnswerRe: unistd.h Pin
mortaza mardani31-Dec-09 9:27
mortaza mardani31-Dec-09 9:27 
QuestionCreateProcessAsUser Pin
sashoalm28-Dec-09 21:39
sashoalm28-Dec-09 21:39 
AnswerRe: CreateProcessAsUser Pin
KingsGambit28-Dec-09 22:06
KingsGambit28-Dec-09 22:06 
GeneralRe: CreateProcessAsUser Pin
sashoalm28-Dec-09 22:20
sashoalm28-Dec-09 22:20 
GeneralRe: CreateProcessAsUser Pin
KingsGambit28-Dec-09 22:25
KingsGambit28-Dec-09 22:25 
GeneralRe: CreateProcessAsUser Pin
sashoalm28-Dec-09 22:36
sashoalm28-Dec-09 22:36 
That might work, but it's inherently an unstable solution, mostly because user1 might be or not be the same user as explorer.exe. It's not guaranteed to be the logged on user. It's just whichever process loaded my DLL first.

Wouldn't it be better to use GetCurrentProcess() instead, while my DLL is loaded in user1 process, and then use OpenProcessToken?

There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal

GeneralRe: CreateProcessAsUser Pin
KingsGambit28-Dec-09 22:37
KingsGambit28-Dec-09 22:37 
QuestionUtf - 8 Querys from unicode application Pin
krishnan.s28-Dec-09 21:23
krishnan.s28-Dec-09 21:23 
QuestionSetting the borders for the tables in word Pin
Chandrasekharan P28-Dec-09 19:45
Chandrasekharan P28-Dec-09 19:45 
AnswerRe: Setting the borders for the tables in word Pin
Madhu Nair28-Dec-09 22:20
Madhu Nair28-Dec-09 22:20 
Questionupload file through FTP Pin
raj157628-Dec-09 19:01
raj157628-Dec-09 19:01 
AnswerRe: upload file through FTP Pin
Madhu Nair28-Dec-09 23:03
Madhu Nair28-Dec-09 23:03 
GeneralRe: upload file through FTP Pin
raj157628-Dec-09 23:40
raj157628-Dec-09 23:40 
GeneralRe: upload file through FTP Pin
Madhu Nair29-Dec-09 0:29
Madhu Nair29-Dec-09 0:29 
GeneralRe: upload file through FTP Pin
raj157629-Dec-09 2:04
raj157629-Dec-09 2:04 
QuestionCalling dll Pin
Le@rner28-Dec-09 18:22
Le@rner28-Dec-09 18:22 
AnswerRe: Calling dll Pin
Madhu Nair28-Dec-09 18:32
Madhu Nair28-Dec-09 18:32 
AnswerRe: Calling dll Pin
Abhi Lahare28-Dec-09 19:11
Abhi Lahare28-Dec-09 19:11 
AnswerRe: Calling dll [modified] Pin
EverettJF28-Dec-09 20:38
EverettJF28-Dec-09 20:38 
AnswerRe: Calling dll Pin
Cedric Moonen28-Dec-09 22:38
Cedric Moonen28-Dec-09 22:38 
QuestionRandom File Name Pin
lxkjlzz28-Dec-09 16:10
lxkjlzz28-Dec-09 16:10 
QuestionRe: Random File Name Pin
David Crow28-Dec-09 16:27
David Crow28-Dec-09 16:27 
AnswerRe: Random File Name Pin
lxkjlzz28-Dec-09 21:02
lxkjlzz28-Dec-09 21:02 

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.