Ignore:
Timestamp:
Jan 19, 2003, 8:42:16 PM (23 years ago)
Author:
umoeller
Message:

First attempt at new container contol.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/helpers/apps.c

    r229 r242  
    5252#include "helpers\dosh.h"
    5353#include "helpers\except.h"             // exception handling
     54#include "helpers\exeh.h"
    5455#include "helpers\prfh.h"
    5556#include "helpers\standards.h"          // some standard macros
     
    676677
    677678/*
    678  *@@ PROGTYPESTRING:
    679  *
    680  *@@added V0.9.16 (2002-01-13) [umoeller]
    681  */
    682 
    683 typedef struct _PROGTYPESTRING
    684 {
    685     PROGCATEGORY    progc;
    686     PCSZ            pcsz;
    687 } PROGTYPESTRING, *PPROGTYPESTRING;
    688 
    689 PROGTYPESTRING G_aProgTypes[] =
    690     {
    691         PROG_DEFAULT, "PROG_DEFAULT",
    692         PROG_FULLSCREEN, "PROG_FULLSCREEN",
    693         PROG_WINDOWABLEVIO, "PROG_WINDOWABLEVIO",
    694         PROG_PM, "PROG_PM",
    695         PROG_GROUP, "PROG_GROUP",
    696         PROG_VDM, "PROG_VDM",
    697             // same as PROG_REAL, "PROG_REAL",
    698         PROG_WINDOWEDVDM, "PROG_WINDOWEDVDM",
    699         PROG_DLL, "PROG_DLL",
    700         PROG_PDD, "PROG_PDD",
    701         PROG_VDD, "PROG_VDD",
    702         PROG_WINDOW_REAL, "PROG_WINDOW_REAL",
    703         PROG_30_STD, "PROG_30_STD",
    704             // same as PROG_WINDOW_PROT, "PROG_WINDOW_PROT",
    705         PROG_WINDOW_AUTO, "PROG_WINDOW_AUTO",
    706         PROG_30_STDSEAMLESSVDM, "PROG_30_STDSEAMLESSVDM",
    707             // same as PROG_SEAMLESSVDM, "PROG_SEAMLESSVDM",
    708         PROG_30_STDSEAMLESSCOMMON, "PROG_30_STDSEAMLESSCOMMON",
    709             // same as PROG_SEAMLESSCOMMON, "PROG_SEAMLESSCOMMON",
    710         PROG_31_STDSEAMLESSVDM, "PROG_31_STDSEAMLESSVDM",
    711         PROG_31_STDSEAMLESSCOMMON, "PROG_31_STDSEAMLESSCOMMON",
    712         PROG_31_ENHSEAMLESSVDM, "PROG_31_ENHSEAMLESSVDM",
    713         PROG_31_ENHSEAMLESSCOMMON, "PROG_31_ENHSEAMLESSCOMMON",
    714         PROG_31_ENH, "PROG_31_ENH",
    715         PROG_31_STD, "PROG_31_STD",
    716 
    717 // Warp 4 toolkit defines, whatever these were designed for...
    718 #ifndef PROG_DOS_GAME
    719     #define PROG_DOS_GAME            (PROGCATEGORY)21
    720 #endif
    721 #ifndef PROG_WIN_GAME
    722     #define PROG_WIN_GAME            (PROGCATEGORY)22
    723 #endif
    724 #ifndef PROG_DOS_MODE
    725     #define PROG_DOS_MODE            (PROGCATEGORY)23
    726 #endif
    727 
    728         PROG_DOS_GAME, "PROG_DOS_GAME",
    729         PROG_WIN_GAME, "PROG_WIN_GAME",
    730         PROG_DOS_MODE, "PROG_DOS_MODE",
    731 
    732         // added this V0.9.16 (2001-12-08) [umoeller]
    733         PROG_WIN32, "PROG_WIN32"
    734     };
    735 
    736 /*
    737  *@@ appDescribeAppType:
    738  *      returns a "PROG_*" string for the given
    739  *      program type. Useful for WPProgram setup
    740  *      strings and such.
    741  *
    742  *@@added V0.9.16 (2001-10-06)
    743  */
    744 
    745 PCSZ appDescribeAppType(PROGCATEGORY progc)        // in: from PROGDETAILS.progc
    746 {
    747     ULONG ul;
    748     for (ul = 0;
    749          ul < ARRAYITEMCOUNT(G_aProgTypes);
    750          ul++)
    751     {
    752         if (G_aProgTypes[ul].progc == progc)
    753             return G_aProgTypes[ul].pcsz;
    754     }
    755 
    756     return NULL;
    757 }
    758 
    759 /*
    760679 *@@ appIsWindowsApp:
    761680 *      checks the specified program category
Note: See TracChangeset for help on using the changeset viewer.