|
Posted by jiangsheng[MVP] on August 9, 2005, 1:53 pm
If you were Registered and logged in, you could reply and use other advanced thread options
Hi
did u tried
HKEY_USERS\SID\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell
Folders?
> Hello everyone. Task is Windows NT+ related :)
>
> The task is next, one of process that i'm using is started-up as
> "System". But i need to get the special folder(desktop, programms and
> etc) for "active user".
>
> There are 2 tasks as i see:
>
> a) get the name of "active user". Ok i get it now - from the list of
> process (explorer.exe) starts under the "active user".
>
> b) get the special folders for user.
>
> So task (a) is solved - i have name of "active user", sid and anything
> that i can get for it's SID.
>
> But i can't get any information about special folder for that user.
> I tried any "known" ways to get such information (at least commonly
> used), but they all works for common situation - that ways are using
> from process of that user. Mine situation is a bit differ - process of
> other user is trying to get special info about another user. Is it
> possible? My process is running under "System" user, so maybe it will
> have some advantages, but i'm not sure.
>
> Tried:
> 1) SHGetSpecialFolderLocation,
>
> 2)
> HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell
> Folders
>
> And no success. Both works fine for common situation, but not for mine
> (process under one user is trying to get info about another user).
>
> Does any one know how to solve that problem?
>
> Thanx for you help ;))
>
|