Using Visual C++ v 7.1.3088 on Windows XP SP2
Microsoft go on an on about not logging on as an administrator for everyday tasks.
Fair enough. But why do they not provide a simple mechanism to allow a limited user to
perform limited administrative tasks upon their own (and only their own) profile?
For example, MSCONFIG doesn't work at all unless you are an administrator. But if you
run MSCONFIG as an administrator, you only see the administrator's startups, and not
those of the actual current user (the user who is currently logged on). In effect,
there is no way to manage a limited user's startups, only the administrator's.
I am facing a very similar dilemma in one of my own MFC programs. The program requires
administrative rights, but it also needs to work with the actual user's shell folders,
not just the shell folders belonging solely to the administrator who is running the
program. Also, where the current user IS an administrator, he requires access to ALL
other users shell folders in addition to his own.
My question in short: is there a simple way to establish a specific user's shell
folders in the same way that the current user's shell folders can be established via
successive calls to SHGetFolderLocation() and SHGetPathFromIDList().
Thanks for any assistance.