Changeset 229 for trunk/include/helpers


Ignore:
Timestamp:
Nov 24, 2002, 9:45:05 PM (23 years ago)
Author:
umoeller
Message:

Sources as of 1.0.0.

Location:
trunk/include/helpers
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/helpers/comctl.h

    r214 r229  
    481481    #define SBCF_3DSUNK              0x0100
    482482    #define SBCF_3DEXPLORERSTYLE     0x0200
    483                 // new with V0.9.21 (2002-08-21) [umoeller]
     483                // new with V1.0.0 (2002-08-21) [umoeller]
    484484                // this simulates the Warp 4 entry field margins around the
    485485                // right split window, but leaves the left window flat
  • trunk/include/helpers/dialog.h

    r209 r229  
    106106                // flags for winhAdjustControls; any combination of
    107107                // XAC_MOVEX, XAC_MOVEY, XAC_SIZEX, XAC_SIZEY
    108                 // removed V0.9.21 (2002-08-18) [umoeller]
     108                // removed V1.0.0 (2002-08-18) [umoeller]
    109109
    110110        SIZEL       szlDlgUnits;
     
    244244
    245245    #define START_TABLE_EXT(fl)             { TYPE_START_NEW_TABLE, (ULONG)NULL, fl }
    246                 // added V0.9.21 (2002-08-16) [umoeller]
     246                // added V1.0.0 (2002-08-16) [umoeller]
    247247
    248248    #define START_TABLE_ALIGN START_TABLE_EXT(TABLE_ALIGN_COLUMNS)
     
    251251
    252252    #define START_GROUP_TABLE_EXT(pDef, fl) { TYPE_START_NEW_TABLE, (ULONG)pDef, fl }
    253                 // added V0.9.21 (2002-08-16) [umoeller]
     253                // added V1.0.0 (2002-08-16) [umoeller]
    254254
    255255    #define START_GROUP_TABLE_ALIGN(pDef) START_GROUP_TABLE_EXT(pDef, TABLE_ALIGN_COLUMNS)
  • trunk/include/helpers/dosh.h

    r220 r229  
    353353                            // drive was booted from
    354354
    355                 // media flags: all changed V0.9.21 (2002-08-31) [umoeller]
     355                // media flags: all changed V1.0.0 (2002-08-31) [umoeller]
    356356
    357357                #define DFL_MEDIA_PRESENT               0x0100
     
    371371                            // set for CD-ROMs only if the CD-ROM
    372372                            // door is currently open
    373                             // V0.9.21 (2002-08-31) [umoeller]
     373                            // V1.0.0 (2002-08-31) [umoeller]
    374374
    375375                #define DFL_SUPPORTS_EAS                0x0800
  • trunk/include/helpers/lan.h

    r114 r229  
    3232    #define LANH_HEADER_INCLUDED
    3333
    34     APIRET lanInit(VOID);
     34    #ifndef SNLEN
     35        #define CNLEN           15                  /* Computer name length     */
     36        #define UNCLEN          (CNLEN+2)           /* UNC computer name length */
     37        #define NNLEN           12                  /* 8.3 Net name length      */
     38        #define RMLEN           (UNCLEN+1+NNLEN)    /* Maximum remote name length */
     39
     40        #define SNLEN           15                  /* Service name length      */
     41        #define STXTLEN         63                  /* Service text length      */
     42    #endif
    3543
    3644    #pragma pack(1)
     45
     46    /*
     47     *@@ SERVER:
     48     *
     49     */
     50
    3751    typedef struct _SERVER
    3852    {
     
    4458        PSZ         pszComment;         // server comment
    4559    } SERVER, *PSERVER;
     60
     61    /*
     62     *@@ SERVICEBUF1:
     63     *
     64     */
     65
     66    typedef struct _SERVICEBUF1 // service_info_1
     67    {
     68        unsigned char   svci1_name[SNLEN+1];
     69        unsigned short  svci1_status;
     70        unsigned long   svci1_code;
     71        unsigned short  svci1_pid;
     72    } SERVICEBUF1, *PSERVICEBUF1;
     73
     74    /*
     75     *@@ SERVICEBUF2:
     76     *
     77     */
     78
     79    typedef struct _SERVICEBUF2 // service_info_2
     80    {
     81        unsigned char   svci2_name[SNLEN+1];   /* service name                  */
     82        unsigned short  svci2_status;          /* See status values below       */
     83        unsigned long   svci2_code;            /* install code of service       */
     84        unsigned short  svci2_pid;             /* pid of service program        */
     85        unsigned char   svci2_text[STXTLEN+1]; /* text area for use by services */
     86    } SERVICEBUF2, *PSERVICEBUF2;
     87
    4688    #pragma pack()
     89
     90    #ifndef SV_TYPE_ALL
     91        #define SV_TYPE_ALL             0xFFFFFFFF   /* handy for NetServerEnum2 */
     92    #endif
     93
     94    #ifndef SERVICE_INSTALL_STATE
     95        #define SERVICE_INSTALL_STATE           0x03
     96        #define SERVICE_UNINSTALLED             0x00
     97                    // service stopped (not running)
     98        #define SERVICE_INSTALL_PENDING         0x01
     99                    // service start pending
     100        #define SERVICE_UNINSTALL_PENDING       0x02
     101                    // service stop pending
     102        #define SERVICE_INSTALLED               0x03
     103                    // service started
     104
     105        #define SERVICE_PAUSE_STATE             0x0C
     106        #define SERVICE_ACTIVE                  0x00
     107                    // service active (not paused)
     108        #define SERVICE_CONTINUE_PENDING        0x04
     109                    // service continue pending
     110        #define SERVICE_PAUSE_PENDING           0x08
     111                    // service pause pending
     112        #define SERVICE_PAUSED                  0x0C
     113                    // service paused
     114
     115        #define SERVICE_NOT_UNINSTALLABLE       0x00
     116                    // service cannot be stopped
     117        #define SERVICE_UNINSTALLABLE           0x10
     118                    // service can be stopped
     119
     120        #define SERVICE_NOT_PAUSABLE            0x00
     121                    // service cannot be paused
     122        #define SERVICE_PAUSABLE                0x20
     123                    // service can be paused
     124
     125        /* Requester service only:
     126         * Bits 8,9,10 -- redirection paused/active */
     127
     128        #define SERVICE_REDIR_PAUSED            0x700
     129        #define SERVICE_REDIR_DISK_PAUSED       0x100
     130                    // redirector for disks paused
     131        #define SERVICE_REDIR_PRINT_PAUSED      0x200
     132                    // redirector for spooled devices paused
     133        #define SERVICE_REDIR_COMM_PAUSED       0x400
     134                    // redirector for serial devices paused
     135
     136        #define SERVICE_CTRL_INTERROGATE        0
     137        #define SERVICE_CTRL_PAUSE              1
     138        #define SERVICE_CTRL_CONTINUE           2
     139        #define SERVICE_CTRL_UNINSTALL          3
     140    #endif
     141
     142    APIRET lanInit(VOID);
    47143
    48144    APIRET lanQueryServers(PSERVER *paServers,
    49145                           ULONG *pcServers);
    50146
     147    APIRET lanServiceGetInfo(PCSZ pcszServiceName,
     148                             PSERVICEBUF2 pBuf);
     149
     150    APIRET lanServiceInstall(PCSZ pcszServiceName,
     151                             PSERVICEBUF2 pBuf2);
     152
     153    APIRET lanServiceControl(PCSZ pcszServiceName,
     154                             ULONG opcode,
     155                             PSERVICEBUF2 pBuf2);
    51156#endif
    52157
  • trunk/include/helpers/pmsems.h

    r208 r229  
    3939     *      the OS/2 debugging handbook.
    4040     *
    41      *@@added V0.9.21 (2002-08-12) [umoeller]
     41     *@@added V1.0.0 (2002-08-12) [umoeller]
    4242     */
    4343
  • trunk/include/helpers/prfh.h

    r216 r229  
    6565                    // PrfReset failed V0.9.19 (2002-04-02) [umoeller]
    6666
    67     #define ERROR_PRF_LAST              (ERROR_PRF_FIRST + 11)
     67    #define PRFERR_INVALID_APP_NAME     (ERROR_PRF_FIRST + 12)
     68                    // V1.0.0 (2002-09-17) [umoeller]
     69    #define PRFERR_INVALID_KEY_NAME     (ERROR_PRF_FIRST + 13)
     70                    // V1.0.0 (2002-09-17) [umoeller]
     71
     72    #define ERROR_PRF_LAST              (ERROR_PRF_FIRST + 13)
    6873
    6974    /* ******************************************************************
     
    110115            // V0.9.19 (2002-04-17) [umoeller]
    111116
    112     // class replacements list V0.9.21 (2002-08-26) [umoeller]
     117    // class replacements list V1.0.0 (2002-08-26) [umoeller]
    113118    DECLARE_PRFH_STRING(WPINIAPP_REPLACEMENTS, "PM_Workplace:ReplaceList");
    114119
  • trunk/include/helpers/xprf.h

    r113 r229  
    135135     ********************************************************************/
    136136
    137     #define XINI_MAGIC_BYTES    "hjba78j,"
    138 
    139137    #ifdef LINKLIST_HEADER_INCLUDED
     138
     139        #define XINI_MAGIC_BYTES "xpRfMa\x03"
     140
    140141        /*
    141142         *@@ XINI:
     
    151152            CHAR    acMagic[sizeof(XINI_MAGIC_BYTES)];
    152153                                // magic bytes for security
     154                                // removed V1.0.0 (2002-09-20) [umoeller]
    153155            CHAR    szFilename[CCHMAXPATH];
     156
    154157            HFILE   hFile;      // returned by DosProtectOpen
    155             FHLOCK  hLock;      // lock ID of DosProtectOpen
     158            // FHLOCK  hLock;      // lock ID of DosProtectOpen
     159                        // removed V1.0.0 (2002-09-20) [umoeller]
    156160            BOOL    fDirty;     // TRUE if changed and needs to be flushed
    157161                                // on close
     
    159163            // applications list
    160164            LINKLIST    llApps;             // contains PXINIAPPDATA items
    161             ULONG       cApps;              // count of items on list
    162165        } XINI, *PXINI;
    163166    #else
     
    168171                           PXINI *ppxini);
    169172
    170     BOOL xprfCloseProfile(PXINI hIni);
    171 
    172     /* BOOL xprfQueryProfileData(PXINI hIni,
    173                        const char *pcszApp,
    174                        const char *pcszKey,
    175                        PVOID pBuffer,
    176                        PULONG pulBufferMax); */
    177 
    178     BOOL xprfWriteProfileData(PXINI hIni,
    179                        const char *pcszApp,
    180                        const char *pcszKey,
    181                        PVOID pData,
    182                        ULONG ulDataLen);
     173    APIRET xprfCloseProfile(PXINI hIni);
     174
     175    APIRET xprfQueryProfileSize(PXINI pXIni,
     176                                PCSZ pszAppName,
     177                                PCSZ pszKeyName,
     178                                PULONG pulDataLen);
     179
     180    APIRET xprfQueryProfileData(PXINI pXIni,
     181                                PCSZ pszAppName,
     182                                PCSZ pszKeyName,
     183                                PVOID pBuffer,
     184                                PULONG pulBufferMax);
     185
     186    APIRET xprfWriteProfileData(PXINI hIni,
     187                                const char *pcszApp,
     188                                const char *pcszKey,
     189                                PVOID pData,
     190                                ULONG ulDataLen);
     191
     192    APIRET xprfQueryKeysForApp(PXINI hIni,
     193                               PCSZ pcszApp,
     194                               PSZ *ppszKeys);
    183195
    184196    /* ******************************************************************
     
    209221
    210222    APIRET xprfCopyKey(HINI hiniSource,
    211                        PSZ pszSourceApp,
    212                        PSZ pszKey,
     223                       PCSZ pszSourceApp,
     224                       PCSZ pszKey,
    213225                       PXINI hiniTarget,
    214                        PSZ pszTargetApp);
     226                       PCSZ pszTargetApp);
     227
     228    APIRET xprfCopyKey2(PXINI hiniSource,
     229                        PCSZ pszSourceApp,
     230                        PCSZ pszKey,
     231                        HINI hiniTarget,
     232                        PCSZ pszTargetApp);
    215233
    216234    APIRET xprfCopyApp(HINI hiniSource,
    217                        PSZ pszSourceApp,
     235                       PCSZ pszSourceApp,
    218236                       PXINI hiniTarget,
    219                        PSZ pszTargetApp,
     237                       PCSZ pszTargetApp,
    220238                       PSZ pszErrorKey);
    221239
     240    APIRET xprfCopyApp2(PXINI hiniSource,
     241                        PCSZ pszSourceApp,
     242                        HINI hiniTarget,
     243                        PCSZ pszTargetApp,
     244                        PSZ pszErrorKey);
     245
    222246    APIRET xprfCopyProfile(HINI hOld,
    223                            PSZ pszNew,
     247                           PCSZ pszNew,
    224248                           PFN_PRF_PROGRESS pfnProgressCallback,
    225249                           ULONG ulUser,
    226250                           ULONG ulCount,
    227                            ULONG ulMax);
     251                           ULONG ulMax,
     252                           PSZ pszFailingApp);
    228253
    229254    APIRET xprfSaveINIs(HAB hab,
    230255                        PFN_PRF_PROGRESS pfnProgressCallback,
    231                         ULONG ulUser);
     256                        ULONG ulUser,
     257                        PSZ pszFailingINI,
     258                        PSZ pszFailingApp,
     259                        PSZ pszFailingKey);
    232260#endif
    233261
Note: See TracChangeset for help on using the changeset viewer.