Changeset 153 for trunk/include/helpers


Ignore:
Timestamp:
Apr 14, 2002, 1:42:05 AM (23 years ago)
Author:
umoeller
Message:

Lots of changes from the last three weeks.

Location:
trunk/include/helpers
Files:
9 edited

Legend:

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

    r152 r153  
    9494     ********************************************************************/
    9595
    96 
    97         PSZ appQueryDefaultWin31Environment(VOID);
     96        APIRET appQueryDefaultWin31Environment(PSZ *ppsz);
    9897
    9998        #define APP_RUN_FULLSCREEN      0x0001
     
    102101        #define APP_RUN_SEPARATE        0x0008
    103102
    104         #ifdef XSTRING_HEADER_INCLUDED
    105         APIRET appFixProgDetails(PPROGDETAILS pDetails,
    106                                  const PROGDETAILS *pcProgDetails,
    107                                  ULONG ulFlags,
    108                                  PXSTRING pstrExecutablePatched,
    109                                  PXSTRING pstrParamsPatched,
    110                                  PSZ *ppszWinOS2Env);
    111         #endif
     103        APIRET appBuildProgDetails(PPROGDETAILS *ppDetails,
     104                                   const PROGDETAILS *pcProgDetails,
     105                                   ULONG ulFlags);
    112106
    113107        APIRET XWPENTRY appStartApp(HWND hwndNotify,
  • trunk/include/helpers/cnrh.h

    r147 r153  
    616616    HWND cnrhQueryCnrFromFrame(HWND hwndFrame);
    617617
     618    BOOL cnrhOpenEdit(HWND hwndCnr);
     619
    618620    PDRAGINFO cnrhInitDrag(HWND hwndCnr,
    619621                           PRECORDCORE preccDrag,
  • trunk/include/helpers/dialog.h

    r145 r153  
    4242     ********************************************************************/
    4343
    44     #define DLGERR_FIRST                        10000
    45     #define DLGERR_ROW_BEFORE_TABLE             (DLGERR_FIRST)
    46     #define DLGERR_CONTROL_BEFORE_ROW           (DLGERR_FIRST + 1)
    47     #define DLGERR_NULL_CTL_DEF                 (DLGERR_FIRST + 2)
    48     #define DLGERR_CANNOT_CREATE_FRAME          (DLGERR_FIRST + 3)
    49     #define DLGERR_INVALID_CODE                 (DLGERR_FIRST + 4)
    50     #define DLGERR_TABLE_NOT_CLOSED             (DLGERR_FIRST + 5)
    51     #define DLGERR_TOO_MANY_TABLES_CLOSED       (DLGERR_FIRST + 6)
    52     #define DLGERR_CANNOT_CREATE_CONTROL        (DLGERR_FIRST + 7)
    53     #define DLGERR_ARRAY_TOO_SMALL              (DLGERR_FIRST + 8)
    54     #define DLGERR_INVALID_CONTROL_TITLE        (DLGERR_FIRST + 9)
    55     #define DLGERR_INVALID_STATIC_BITMAP        (DLGERR_FIRST + 10)
     44    #define ERROR_DLG_FIRST                     43000
     45
     46    #define DLGERR_ROW_BEFORE_TABLE             (ERROR_DLG_FIRST)
     47    #define DLGERR_CONTROL_BEFORE_ROW           (ERROR_DLG_FIRST + 1)
     48    #define DLGERR_NULL_CTL_DEF                 (ERROR_DLG_FIRST + 2)
     49    #define DLGERR_CANNOT_CREATE_FRAME          (ERROR_DLG_FIRST + 3)
     50    #define DLGERR_INVALID_CODE                 (ERROR_DLG_FIRST + 4)
     51    #define DLGERR_TABLE_NOT_CLOSED             (ERROR_DLG_FIRST + 5)
     52    #define DLGERR_TOO_MANY_TABLES_CLOSED       (ERROR_DLG_FIRST + 6)
     53    #define DLGERR_CANNOT_CREATE_CONTROL        (ERROR_DLG_FIRST + 7)
     54    #define DLGERR_ARRAY_TOO_SMALL              (ERROR_DLG_FIRST + 8)
     55    #define DLGERR_INVALID_CONTROL_TITLE        (ERROR_DLG_FIRST + 9)
     56    #define DLGERR_INVALID_STATIC_BITMAP        (ERROR_DLG_FIRST + 10)
     57
     58    #define ERROR_DLG_LAST                      (ERROR_DLG_FIRST + 10)
    5659
    5760    /* ******************************************************************
     
    117120                // type in _DLGHITEM (to specify a group table)
    118121                // and they are not SZL_AUTOSIZE, they specify the
    119                 // table size (to override the automatic formatting).
     122                // size of the inner table of the group (to override
     123                // the automatic formatting). Note that the dialog
     124                // formatter adds COMMON_SPACING to both the left and
     125                // the right of the table to center the table in the
     126                // PM group control, so the actual group size will
     127                // be the specified size + (2 * COMMON_SPACING).
    120128
    121129        ULONG       ulSpacing;          // spacing around control
     
    195203     ********************************************************************/
    196204
    197     #define COMMON_SPACING          3
     205    #define COMMON_SPACING              3
     206
     207    #define PM_GROUP_SPACING_X          16
     208    #define PM_GROUP_SPACING_TOP        16
    198209
    199210    #define CONTROLDEF_GROUP(pcsz, id, cx, cy) { WC_STATIC, pcsz, \
  • trunk/include/helpers/dosh.h

    r135 r153  
    541541                           ULONG ulAttr);
    542542
    543     /* APIRET doshOpenExisting(PCSZ pcszFilename,
    544                             ULONG ulOpenFlags,
    545                             HFILE *phf);
    546        */
     543    /* ******************************************************************
     544     *
     545     *   XFILEs
     546     *
     547     ********************************************************************/
    547548
    548549    /*
     
    555556    {
    556557        HFILE       hf;
    557         // ULONG       hmtx;       // a HMTX really
    558558
    559559        PSZ         pszFilename;    // as given to doshOpen
  • trunk/include/helpers/prfh.h

    r113 r153  
    4141     ********************************************************************/
    4242
    43     #define PRFERR_DATASIZE     10001   // couldn't query data size for key
    44     #define PRFERR_READ         10003   // couldn't read data from source (PrfQueryProfileData error)
    45     #define PRFERR_WRITE        10004   // couldn't write data to target (PrfWriteProfileData error)
    46     #define PRFERR_APPSLIST     10005   // couldn't query apps list
    47     #define PRFERR_KEYSLIST     10006   // couldn't query keys list
    48     #define PRFERR_ABORTED      10007   // aborted by user
    49     #define PRFERR_QUERY        10007   // PrfQueryProfile failed
    50     #define PRFERR_INVALID_FILE_NAME  10008   // profile names don't contain .INI
    51     #define PRFERR_INVALID_KEY  10009
    52     #define PRFERR_KEY_EXISTS   10010
     43    #define ERROR_PRF_FIRST             42000
     44
     45    #define PRFERR_DATASIZE             (ERROR_PRF_FIRST + 1)
     46                    // couldn't query data size for key
     47    #define PRFERR_READ                 (ERROR_PRF_FIRST + 2)
     48                    // couldn't read data from source (PrfQueryProfileData error)
     49    #define PRFERR_WRITE                (ERROR_PRF_FIRST + 3)
     50                    // couldn't write data to target (PrfWriteProfileData error)
     51    #define PRFERR_APPSLIST             (ERROR_PRF_FIRST + 4)
     52                    // couldn't query apps list
     53    #define PRFERR_KEYSLIST             (ERROR_PRF_FIRST + 5)
     54                    // couldn't query keys list
     55    #define PRFERR_ABORTED              (ERROR_PRF_FIRST + 6)
     56                    // aborted by user
     57    #define PRFERR_QUERY                (ERROR_PRF_FIRST + 7)
     58                    // PrfQueryProfile failed
     59    #define PRFERR_INVALID_FILE_NAME    (ERROR_PRF_FIRST + 8)
     60                    // profile names don't contain .INI
     61    #define PRFERR_INVALID_KEY          (ERROR_PRF_FIRST + 9)
     62    #define PRFERR_KEY_EXISTS           (ERROR_PRF_FIRST + 10)
     63
     64    #define PRFERR_RESET                (ERROR_PRF_FIRST + 11)
     65                    // PrfReset failed V0.9.19 (2002-04-02) [umoeller]
     66
     67    #define ERROR_PRF_LAST              (ERROR_PRF_FIRST + 11)
    5368
    5469    /* ******************************************************************
     
    218233                        const char *pcszNewKey);
    219234
    220     BOOL prfhSetUserProfile(HAB hab,
    221                             const char *pcszUserProfile);
     235    APIRET prfhSetUserProfile(HAB hab,
     236                              const char *pcszUserProfile);
    222237
    223238    ULONG prfhINIError(ULONG ulOptions,
  • trunk/include/helpers/stringh.h

    r147 r153  
    6767                             const char *pszSource,
    6868                             ULONG cbSource);
     69
     70    ULONG XWPENTRY strhlen(PCSZ pcsz);
    6971
    7072    ULONG XWPENTRY strhSize(PCSZ pcsz);
  • trunk/include/helpers/wphandle.h

    r140 r153  
    4343
    4444    #define ERROR_WPH_FIRST                         41000
     45
    4546    #define ERROR_WPH_CRASHED                       (ERROR_WPH_FIRST +   0)
    4647    #define ERROR_WPH_NO_BASECLASS_DATA             (ERROR_WPH_FIRST +   1)
     
    5859    #define ERROR_WPH_NOT_FILESYSTEM_HANDLE         (ERROR_WPH_FIRST +  13)
    5960
     61    #define ERROR_WPH_LAST                          (ERROR_WPH_FIRST +  13)
     62
    6063    /* ******************************************************************
    6164     *
  • trunk/include/helpers/xml.h

    r98 r153  
    9595    #define ERROR_DOM_INVALID_EXTERNAL_HANDLER (ERROR_XML_FIRST + 48)
    9696
     97    #define ERROR_XML_LAST                  (ERROR_XML_FIRST + 48)
     98
    9799    const char* xmlDescribeError(int code);
    98100
  • trunk/include/helpers/xstring.h

    r137 r153  
    240240    typedef XSTRCONVERTLINEFORMAT *PXSTRCONVERTLINEFORMAT;
    241241
     242    VOID xstrPrintf(XSTRING *pstr,
     243                    PCSZ pcszFormat,
     244                    ...);
     245
    242246#endif
    243247
Note: See TracChangeset for help on using the changeset viewer.