Click here to Skip to main content
15,914,165 members
Home / Discussions / C#
   

C#

 
GeneralRe: converting .doc file to .gif file Pin
subashkrishna16-Jun-03 10:16
subashkrishna16-Jun-03 10:16 
GeneralRe: converting .doc file to .gif file Pin
Nick Seng16-Jun-03 16:32
Nick Seng16-Jun-03 16:32 
GeneralRe: 403 error Pin
Paresh Gheewala16-Jun-03 9:59
Paresh Gheewala16-Jun-03 9:59 
GeneralRe: 403 error Pin
leppie16-Jun-03 10:44
leppie16-Jun-03 10:44 
GeneralRe: 403 error Pin
leppie17-Jun-03 7:42
leppie17-Jun-03 7:42 
GeneralHome path for the currently logged in user Pin
gek_at16-Jun-03 7:34
gek_at16-Jun-03 7:34 
GeneralRe: Home path for the currently logged in user Pin
John Fisher16-Jun-03 7:49
John Fisher16-Jun-03 7:49 
GeneralRe: Home path for the currently logged in user Pin
Daniel Turini16-Jun-03 7:54
Daniel Turini16-Jun-03 7:54 
I doubt there is a managed method for doing this.
Under C# this will be cumbersome (lots of Interop calls), maybe the best way is MC++, but the only way I know for a service to interact with the logged in user(s) is by calling OpenWindowStation. In your case, you should call the GetUserObjectInformation to get the user SID, then go to the registry and recover the path of the user's home directory.
Not for those who fear API calls.


ORACLE One Real A$#h%le Called Lary Ellison
GeneralMap server path in asmx Pin
gadgetfbi16-Jun-03 6:46
gadgetfbi16-Jun-03 6:46 
GeneralRe: Map server path in asmx Pin
gadgetfbi16-Jun-03 6:49
gadgetfbi16-Jun-03 6:49 
GeneralSearch and select In dialogBox Pin
haezeban16-Jun-03 5:12
haezeban16-Jun-03 5:12 
GeneralRe: Search and select In dialogBox Pin
John Fisher16-Jun-03 7:52
John Fisher16-Jun-03 7:52 
GeneralFileSystemWatcher strange behavior Pin
Le centriste16-Jun-03 4:26
Le centriste16-Jun-03 4:26 
QuestionInternetCheckConnection in C#? Pin
Weiye Chen16-Jun-03 4:22
Weiye Chen16-Jun-03 4:22 
QuestionCrystal Reports? Pin
Marix16-Jun-03 4:10
Marix16-Jun-03 4:10 
GeneralDisconnecting in client server App Pin
Dalia16-Jun-03 3:29
Dalia16-Jun-03 3:29 
GeneralRe: Disconnecting in client server App Pin
John Fisher16-Jun-03 7:58
John Fisher16-Jun-03 7:58 
Questioncan i embed internet explorer in my application? Pin
Asim N.16-Jun-03 2:18
Asim N.16-Jun-03 2:18 
AnswerRe: can i embed internet explorer in my application? Pin
Jose Fco Bonnin16-Jun-03 3:09
Jose Fco Bonnin16-Jun-03 3:09 
GeneralRe: can i embed internet explorer in my application? Pin
Asim N.16-Jun-03 21:20
Asim N.16-Jun-03 21:20 
AnswerRe: can i embed internet explorer in my application? Pin
Frank W. Wu16-Jun-03 3:15
Frank W. Wu16-Jun-03 3:15 
AnswerRe: can i embed internet explorer in my application? Pin
LongRange.Shooter17-Jun-03 10:44
LongRange.Shooter17-Jun-03 10:44 
GeneralAccessing metadata of files Pin
Dimitris Iliopoulos16-Jun-03 1:58
Dimitris Iliopoulos16-Jun-03 1:58 
Generalcustom event handling for gui Pin
zuhx15-Jun-03 22:10
zuhx15-Jun-03 22:10 
GeneralRe: custom event handling for gui Pin
Rocky Moore16-Jun-03 0:11
Rocky Moore16-Jun-03 0:11 

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.