Re: VB 6 and Vista problem
- From: "Winfried Kaiser" <w.kaiser_nospam_@xxxxxxxxxx>
- Date: Tue, 3 Apr 2007 14:47:26 +0200
I have explored the issue a bit further, and finally found a solution.
Beforehand I have tried to allocate the links using the "Shell"-object.
But the same problem here:
The call "objWshShell.SpecialFolders("Programs")"
delivered the context of the admin-account, whose login-Data I used to run
the program with elevated rights, and not(!) the context of the user as
which I was originally logged in !
Testing this, I found something else totally unexplainable:
The call "objWshShell.SpecialFolders("AllUsersPrograms")" (correctly)
resulted in "J:\ProgramData\Microsoft\Windows\Start Menu\Programs"
The call "S$="AllUsersPrograms":objWshShell.SpecialFolders(S$)"
(incorrectly) resulted in "J:\Users\Public\Desktop"!?????
What is this supposed to mean????
==================================================================
Now the solution:
As Vista won't tell me in this scenario (executing a program with
admin-rights within another account) where I am really at home, the only
solution left was to create the links and shortcuts "for all users".
Only now can I see them in my original account!
==================================================================
Imo there is something conceptionally totally wrong in VISTA!
The fact, that I, as a normal user, execute a program with admin-rights,
must never ever lead to a situation, that my data may end-up in the context
of the admin, whose login-data I was using, and not in my context!
Seems to me, that each and every program, that is installed with admin
rights within another account will face this problem.
Or do I do something wrong???
Are there (different?) experiences?
--
Dipl.-Ing.(TH) Winfried Kaiser
c/o Fortune Systems GmbH & Co.
Postfach1
D-24975 Husby
Germany
Fon: (49)4634-746
.
- References:
- VB 6 and Vista problem
- From: Winfried Kaiser
- VB 6 and Vista problem
- Prev by Date: Re: Callback function frustration
- Next by Date: Re: Ta Dah! Good-bye guys!
- Previous by thread: Re: VB 6 and Vista problem
- Next by thread: Working with screenshots/bitmaps?
- Index(es):
Relevant Pages
|