Click here to Skip to main content
15,918,976 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalhelp needed SafeArrayAccessData Pin
arusmemon9-Mar-05 18:25
arusmemon9-Mar-05 18:25 
GeneralRe: help needed SafeArrayAccessData Pin
Tareq Ahmed Siraj9-Mar-05 19:40
Tareq Ahmed Siraj9-Mar-05 19:40 
QuestionHow to Transfer the image Captured using Screen Capture Code to other machine Pin
karmegakumar9-Mar-05 18:13
karmegakumar9-Mar-05 18:13 
AnswerRe: How to Transfer the image Captured using Screen Capture Code to other machine Pin
spinoza16-May-05 21:42
spinoza16-May-05 21:42 
GeneralMemory Problems with new, delete and CObArray Pin
NeoHobbit9-Mar-05 16:54
NeoHobbit9-Mar-05 16:54 
GeneralRe: Memory Problems with new, delete and CObArray Pin
Christian Graus9-Mar-05 17:05
protectorChristian Graus9-Mar-05 17:05 
GeneralRe: Memory Problems with new, delete and CObArray Pin
NeoHobbit9-Mar-05 17:14
NeoHobbit9-Mar-05 17:14 
GeneralGetOpenFileName in a service Pin
TheGreatAndPowerfulOz9-Mar-05 14:48
TheGreatAndPowerfulOz9-Mar-05 14:48 
I am attempting to use GetOpenFileName from a service on W2K and WXP. The service is set to interact with the desktop. The problem is that when the open dialog appears and the user selects the "Desktop" icon on the left panel of the open file dialog, it complains about "C:\Documents and Settings\LocalSystem\desktop" not existing. Note the "LocalDesktop" in that string. I want it to be the name of the current user.

So, how do I tell GetOpenFileName to use the currently logged-on user's context when using the open file dialog? Do I need to impersonate the logged-on user before calling GetOpenFileName? If so, how do I do impersonation WITHOUT asking for user credentials?

Some rudimentary example will suffice, you don't have to right the whole she-bang.

Thank you in advance.

ahz


GeneralRe: GetOpenFileName in a service Pin
TheGreatAndPowerfulOz9-Mar-05 14:52
TheGreatAndPowerfulOz9-Mar-05 14:52 
GeneralRe: GetOpenFileName in a service Pin
xxrl9-Mar-05 17:06
xxrl9-Mar-05 17:06 
GeneralRe: GetOpenFileName in a service Pin
Ryan Binns9-Mar-05 17:28
Ryan Binns9-Mar-05 17:28 
GeneralRe: GetOpenFileName in a service Pin
TheGreatAndPowerfulOz10-Mar-05 10:23
TheGreatAndPowerfulOz10-Mar-05 10:23 
Generalget exe path Pin
Marcus Spitzmiller9-Mar-05 14:07
Marcus Spitzmiller9-Mar-05 14:07 
GeneralRe: get exe path Pin
Christian Graus9-Mar-05 14:47
protectorChristian Graus9-Mar-05 14:47 
GeneralRe: get exe path Pin
Marcus Spitzmiller9-Mar-05 14:59
Marcus Spitzmiller9-Mar-05 14:59 
GeneralRe: get exe path Pin
gamitech9-Mar-05 21:13
gamitech9-Mar-05 21:13 
Generalmergesort Pin
Ylis9-Mar-05 9:24
Ylis9-Mar-05 9:24 
Generalhelp me!!! Pin
kookoorikoo9-Mar-05 9:06
kookoorikoo9-Mar-05 9:06 
GeneralRe: help me!!! Pin
Ylis9-Mar-05 9:27
Ylis9-Mar-05 9:27 
GeneralProblem with main MDI Frame window Pin
Anonymous9-Mar-05 8:56
Anonymous9-Mar-05 8:56 
GeneralRe: Problem with main MDI Frame window Pin
Ryan Binns9-Mar-05 17:30
Ryan Binns9-Mar-05 17:30 
GeneralInclude Help Needed Pin
Jeryth9-Mar-05 7:53
Jeryth9-Mar-05 7:53 
GeneralRe: Include Help Needed Pin
David Crow9-Mar-05 8:06
David Crow9-Mar-05 8:06 
GeneralRe: Include Help Needed Pin
Jeryth9-Mar-05 13:12
Jeryth9-Mar-05 13:12 
GeneralRe: Include Help Needed Pin
Steen Krogsgaard9-Mar-05 22:01
Steen Krogsgaard9-Mar-05 22:01 

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.