msos2.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
PROGDETAILS (1.2)
                                                      Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WINPROGRAMLIST
 
typedef struct _PROGDETAILS {     /* progde */
    ULONG     Length;
    PROGTYPE  progt;
    USHORT    pad1[3];
    PSZ       pszTitle;
    PSZ       pszExecutable;
    PSZ       pszParameters;
    PSZ       pszStartupDir;
    PSZ       pszIcon;
    PSZ       pszEnvironment;
    SWP       swpInitial;
    USHORT    pad2[5];
} PROGDETAILS;
 
The PROGDETAILS structure contains information about a program.
 
Field           Description
────────────────────────────────────────────────────────────────────────────
 
 
Length          Specifies the size of the structure (in bytes). Programs
                written in the C language should use the sizeof operator to
                set this field.
 
progt           Specifies the PROGTYPE structure that contains program-type
                information.
 
pad1[3]         Reserved.
 
pszTitle        Points to the null-terminated string that contains the
                program title. This string must not exceed MAXNAMEL (defined
                in the include files) characters plus the null character
                that terminates the string.
 
pszExecutable   Points to the null-terminated string that contains the name
                of the executable file. If the string appears to be a fully
                qualified path (that is, it contains a colon in the second
                position and/or contains a backslash), the file is searched
                for in the indicated directory on the indicated drive. If
                neither of these conditions is true and the file is not in
                the current directory, each drive and directory specified in
                the path defined in the current program's environment is
                searched.
 
pszParameters   Points to the null-terminated string that contains any
                parameters to pass to the program.
 
pszStartupDir   Points to the null-terminated string that contains the
                default drive and directory.
 
pszIcon         Points to the null-terminated string that contains the name
                of an icon file. This parameter is not used for MS OS/2
                version 1.2.
 
pszEnvironment  Points to the string that contains the environment
                variables. Each string is null-terminated, with the final
                string ending with two null characters.
 
swpInitial      Specifies the SWP structure that contains the initial state
                of the program's window. If the cy, cx, y, and x fields of
                this structure are zero, a default window size is used when
                the application is started.
 
pad2[5]         Reserved.
 
See Also
 
PrfAddProgram, PrfChangeProgram, PrfQueryDefinition, PROGTYPE, SWP