Click here to Skip to main content
15,885,546 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionunistd.h Pin
mortaza mardani28-Dec-09 21:50
mortaza mardani28-Dec-09 21:50 
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 
In that case you can enumerate all processes to find out the PID for explorer.exe

Use OpenProcess() API to get process handle for explorer.

Use OpenProcessToken() API to get the token handle for explorer.exe.

Use the this token handle in the CreateProcessAsUser() API.

It would work because explorer.exe runs in the logged-in user's account.
GeneralRe: CreateProcessAsUser Pin
sashoalm28-Dec-09 22:36
sashoalm28-Dec-09 22:36 
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 

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.