Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating Program Group and Items in VFP
Message
From
16/09/1998 21:15:05
 
 
To
16/09/1998 19:31:01
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00137579
Message ID:
00137591
Views:
26
>Hi All!
>
>Can anybody tell me, how to make a program group (and items to it) programatically, that is visible for all user?
>
Program groups in Win95/98/NT are nothing more than folders in the context of a user profile. You can get the current user's profile information from the registry:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders

there are several registry values of interest; Desktp, the user's Desktop, Programs, the root of the Start Menu\Programs, Start menu, the root of the Start Menu.

On an NT system, (possibly on a Win95/98 system; I don't run here at home with Profiles enabled under 98), the folder environment can be found under \WinNT\Profiles; there will be a folder per user, a folder called All Users, containing Start Menu and Desktop entries common to all profiles, and one called Default User, which serves as a template whenever a new User entry is created. You'll find a Desktop and Start Menu hierarchy under all of them; users will also have a number of other folders specific to that user for things like Favorites, Cookies, SendTO and a number of others.

Creating shortcuts requires accessing the IShellLink API family, which requires a wrapper to accomplish in VFP. George Tasker has released a wrapper .DLL that uses the IShellLink interface here on UT.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform