Defining a Program in a Folder on the Desktop

Use the WPObject structure to define a folder or a program (to be added to a folder). The WPObject structure calls the OS/2 WinCreateObject function, which adds an icon and title to the desktop. This structure indirectly changes the OS2.INI file. Refer to the OS/2 Presentation Manager Guide and Reference for object class definitions and supported keywords for the object class you are creating.

Use the WPObject structure shown in the following example to define a folder.

WPObject =
    (
    WPClassName   = "WPFolder"
    WPTitle       = "title"
    WPSetupString = "ICONFILE=$(DEST)icon;OBJECTID=<folderobjid>"
    WPLocation    = "<parentfolderobjid>"
    WPFlags       = wpflags
    )