Special folder for user via SID or something like this.

Special folder for user via SID or something like this.

Secure Home | Search | About
 Microsoft Applications Security    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content add this group's latest topics to your Google content
Subject Author Date
Special folder for user via SID or something like this. plandem 08-09-2005
Posted by on August 9, 2005, 10:41 am
If you were  Registered and logged in, you could reply and use other advanced thread options
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 ;))


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 ;))
>



Similar ThreadsPosted
special folder Permissions November 28, 2006, 4:34 pm
Home Folder User Permissions July 26, 2007, 10:06 am
User sharing personal folder in AD domain July 22, 2005, 2:58 pm
Change Multiple User Folder Permissions October 4, 2005, 6:52 am
Unique -- Limiting User to Inside Folder March 7, 2008, 7:40 pm
How to force a (the same !) user to logon when connecting to a network shared folder ? March 4, 2007, 8:19 am
Directory permission special September 17, 2007, 2:24 pm
Special privileges assigned to new logon?? January 12, 2006, 5:01 pm
MS PKI: Special Subject Fields in certificate Request September 24, 2007, 6:04 am
Call for Papers: June 26 - 29 - Special Track on Wireless Technologies and Digital Cities - SAM'06 December 29, 2005, 1:11 pm

The site map in XML format XML site map

Contact Us | Privacy Policy