Click here to Skip to main content
15,891,513 members
Home / Discussions / C#
   

C#

 
GeneralRe: how can I show the file path instead of ref Pin
Nagy Vilmos11-Mar-09 4:24
professionalNagy Vilmos11-Mar-09 4:24 
GeneralRe: how can I show the file path instead of ref Pin
#realJSOP11-Mar-09 3:19
mve#realJSOP11-Mar-09 3:19 
GeneralRe: how can I show the file path instead of ref Pin
wwwxyz11-Mar-09 3:43
wwwxyz11-Mar-09 3:43 
AnswerRe: how can I show the file path instead of ref Pin
Nagy Vilmos11-Mar-09 4:23
professionalNagy Vilmos11-Mar-09 4:23 
GeneralRe: how can I show the file path instead of ref Pin
wwwxyz11-Mar-09 4:43
wwwxyz11-Mar-09 4:43 
GeneralRe: how can I show the file path instead of ref Pin
Nagy Vilmos11-Mar-09 4:46
professionalNagy Vilmos11-Mar-09 4:46 
GeneralRe: how can I show the file path instead of ref Pin
#realJSOP11-Mar-09 4:50
mve#realJSOP11-Mar-09 4:50 
GeneralRe: how can I show the noobie the path instead of the knife? Pin
Nagy Vilmos11-Mar-09 5:12
professionalNagy Vilmos11-Mar-09 5:12 
GeneralRe: how can I show the file path instead of ref Pin
fly90411-Mar-09 11:29
fly90411-Mar-09 11:29 
AnswerRe: how can I show the file path instead of ref Pin
wwwxyz11-Mar-09 5:13
wwwxyz11-Mar-09 5:13 
GeneralRe: how can I show the file path instead of ref Pin
#realJSOP11-Mar-09 5:28
mve#realJSOP11-Mar-09 5:28 
GeneralRe: how can I show the file path instead of ref Pin
Nagy Vilmos11-Mar-09 5:30
professionalNagy Vilmos11-Mar-09 5:30 
Questioncheck if in safe mode Pin
aviadqwerty11-Mar-09 1:26
aviadqwerty11-Mar-09 1:26 
GeneralRe: check if in safe mode Pin
Luc Pattyn11-Mar-09 1:44
sitebuilderLuc Pattyn11-Mar-09 1:44 
QuestionChange desktop wallpaper via windows service (vista) Pin
maxald11-Mar-09 0:57
maxald11-Mar-09 0:57 
AnswerWrong Place For This Question Pin
Nagy Vilmos11-Mar-09 1:16
professionalNagy Vilmos11-Mar-09 1:16 
GeneralRe: Wrong Place For This Question Pin
maxald11-Mar-09 3:10
maxald11-Mar-09 3:10 
GeneralRe: Wrong Place For This Question Pin
Nagy Vilmos11-Mar-09 3:21
professionalNagy Vilmos11-Mar-09 3:21 
GeneralRe: Wrong Place For This Question Pin
Dave Kreskowiak11-Mar-09 4:22
mveDave Kreskowiak11-Mar-09 4:22 
GeneralRe: Wrong Place For This Question Pin
maxald12-Mar-09 4:32
maxald12-Mar-09 4:32 
GeneralRe: Wrong Place For This Question Pin
Dave Kreskowiak12-Mar-09 12:20
mveDave Kreskowiak12-Mar-09 12:20 
GeneralRe: Wrong Place For This Question Pin
maxald12-Mar-09 21:05
maxald12-Mar-09 21:05 
GeneralRe: Wrong Place For This Question Pin
Dave Kreskowiak13-Mar-09 1:06
mveDave Kreskowiak13-Mar-09 1:06 
It's the exact same situation. It cannot be relied upon to determine who is logged in, if anyone. Also, since XP/Vista/7 can have multiple people logged in at the same time, who's the one at the console?? There's no way to tell. Also, it's not just a user account that's logged in. There are also built-in accounts that are being used, such as Local System, Network Service, Local Service, ... Are you going to needlessly attempt to change those accounts too??

That's why I said the best place to use this would be a user app launched out of the Registry's Run key, not a service. That way, the app runs as the user, only when a user is logged in, and doesn't have to worry about figuring out who's logged in.


A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008




Questionerror importing a dll file Pin
raviya11-Mar-09 0:02
raviya11-Mar-09 0:02 
AnswerRe: error importing a dll file Pin
Expert Coming11-Mar-09 0:04
Expert Coming11-Mar-09 0:04 

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.