Article View: comp.os.os2
Article #293Re: Presentation Manager Groups
From: Martyn Legge
Date: Tue, 05 Dec 1989 12:28
Date: Tue, 05 Dec 1989 12:28
43 lines
2262 bytes
2262 bytes
rommel@lan.informatik.tu-muenchen.dbp.de (Kai-Uwe Rommel) writes: >In article <repost8647@medusa.cs.purdue.edu> df@cs.purdue.EDU (dan) writes: >> Need some help everyone. The company I am working for is ready to >> start selling a PM app. In the installtion of the program, we >> would like to create a new group under the Start Programs window >> that contains our program. I know Excel does it. If anyone has >> any ideas or code they would like to share, I would really >> appreciate it. >> >> Tony Vollmer >> CAPSCO PALLM SYSTEMS >The information about programs to offer in the start programs window is >hold in OS2.INI. There are API functions to write and read from this >file (I do not have all their names in mind). Use the INIEDIT program >from the SDK samples to take a look at OS2.INI and to get the structure >of the entries to create. >Kai Uwe Rommel >Munich I assume you mean by this the WinWriteProfile<x> API. This is certainly not the correct way to add new groups to the PM program starter. For one thing, adding entries the .ini file using this API will not cause the program starter to refresh itself. So the added applications will not appear on the starter menu until next time the machine is rebooted. For another thing you will incurr a dependency on the (unpublished) structure of a data file over which you have no control and no guarantee that it will not change in a future release. In the worst case, installing an application in this way may break the program starter completely, requiring a restore of the .ini file. There is a set of API's specifically for adding groups and apps to the program starter. WinCreateGroup and WinAddProgram. Use these. Martyn Legge (Data Logic) an unpublised
Technical Details
Message-ID:
<2339@dlvax2.datlog.co.uk>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!ukc!stc!datlog!mlReferences:
<repost8647@medusa.cs.purdue.edu> <908@tuminfo1.lan.informatik.tu-muenchen.dbp.de>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!ukc!stc!datlog!ml From: ml@datlog.co.uk ( Martyn Legge ) Newsgroups: comp.os.os2 Subject: Re: Presentation Manager Groups Message-ID: <2339@dlvax2.datlog.co.uk> Date: 5 Dec 89 12:28:05 GMT References: <repost8647@medusa.cs.purdue.edu> <908@tuminfo1.lan.informatik.tu-muenchen.dbp.de> Organization: Data Logic Ltd, Queens House, Greenhill Way, Harrow, London. Lines: 43