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 )
title
In the following example, a folder called Multimedia Presentation Manager Toolkit/2 will be added to the desktop.
WPObject = ( WPClassName = "WPFolder" WPTitle = "Multimedia Presentation\nManager Toolkit/2" WPSetupString = "ICONFILE=$(DEST)MMTOOLKT.ICO;OBJECTID=<MMPMTLK>" WPLocation = "<WP_DESKTOP>" WPFlags = 2L )
You can also use the WPObject structure to define a program that will be added to a folder on the desktop as shown in the following figure.
WPObject = ( WPClassName = "WPProgram" WPTitle = "title" WPSetupString = "EXENAME=path file;STARTUPDIR =dir;PROGTYPE=PM; ICONFILE=$(DEST)icon; [ASSOCTYPE =type;] [ASSOCFILTER=filter;] OBJECTID=<pgmobjid>" WPLocation = "<parentfolderobjid>" WPFlags = wpflags )
title
The JoinEA structure shown in the following example causes the joining of an EA file to the parent file or directory. If the file or directory is used in a WPObject declaration, this structure should precede that declaration.
JoinEA = ( JoinFileName = "full path to file" JoinEAFileName = "full path to EA file" )
full path to file
The JoinLongNameEA structure shown in the following example allows you to specify a name that is greater than the standard 8-character length for a directory you are going to create as a Workplace Shell object. The JoinLongNameEA statement causes an EA file of type LONGNAME to be added to the directory. The long name is then displayed whenever the directory appears as a folder object. The JoinLongNameEA statement should come before creating the directory as a Workplace Shell object.
JoinLongNameEA = ( JoinLongName = "longname" JoinLongFileName = "full path to directory" JoinEALongFileName = "full path to EA file" )
longname
Following is an example of a long name specified for an OS/2 multimedia directory with the JoinLongNameEA structure. The long name "Sound Bites" is added to the directory defined as "9" in the CONTROL.SCR file. In this case, it is the "Sounds" directory.
JoinLongNameEA = ( JoinLongName = "Sound Bites" JoinLongFileName = "$(DIR)9" JoinEALongFileName = "$(DRIVE):\\MMOS2\\INSTALL\\sounds.eas" )
The $(DEST) macro is not used for this structure because the file is created, not copied and changed by MINSTALL. Notice that the file is placed in the \MMOS2\INSTALL subdirectory. This is the directory to which all EAs should be copied.