Changeset 81 for trunk/include/helpers


Ignore:
Timestamp:
Jun 23, 2001, 11:12:49 AM (24 years ago)
Author:
umoeller
Message:

Tons of changes from the last weeks.

Location:
trunk/include/helpers
Files:
5 edited

Legend:

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

    r68 r81  
    3636#ifndef COMCTL_HEADER_INCLUDED
    3737    #define COMCTL_HEADER_INCLUDED
     38
     39    /* ******************************************************************
     40     *
     41     *   "XButton" control
     42     *
     43     ********************************************************************/
     44
     45    /*
     46     *@@ XBUTTONDATA:
     47     *      paint data for ctlPaintXButton.
     48     *
     49     *@@added V0.9.13 (2001-06-21) [umoeller]
     50     */
     51
     52    typedef struct _XBUTTONDATA
     53    {
     54        RECTL       rcl;                // size of button (in presentation space
     55                                        // coordinates); exclusive!
     56
     57        ULONG       cxMiniIcon;         // system mini icon size
     58
     59        LONG        lcol3DDark,         // lo-3D color
     60                    lcol3DLight,        // hi-3D color
     61                    lMiddle;            // color for center (button background)
     62
     63        HPOINTER    hptr;               // icon to paint or NULLHANDLE
     64
     65    } XBUTTONDATA, *PXBUTTONDATA;
     66
     67    #define XBF_FLAT                0x0001
     68
     69    #define XBF_PRESSED             0x00010000
     70    #define XBF_BACKGROUND          0x00020000
     71    #define XBF_INUSE               0x00040000
     72
     73    VOID ctlPaintXButton(HPS hps,
     74                         ULONG fl,
     75                         PXBUTTONDATA pxbd);
    3876
    3977    /* ******************************************************************
     
    670708    /*
    671709     *@@ TOOLTIPTEXT:
    672      *      identifies a tool for which text is to be displayed and
    673      *      receives the text for the tool. The tool must fill all
    674      *      fields of this structure.
    675      *
    676      *      This structure is used with the TTN_NEEDTEXT notification.
     710     *      identifies a tool for which text is to
     711     *      be displayed and receives the text for
     712     *      the tool. The tool must fill all fields
     713     *      of this structure.
     714     *
     715     *      This structure is used with the TTN_NEEDTEXT
     716     *      notification.
    677717     *
    678718     *@@changed V0.9.7 (2001-01-03) [umoeller]: got rid of this win95 crap
     
    693733                    // out: with TTFMT_PSZ, pointer to a string that contains the
    694734                    // tool text. Note that this is not copied into the tooltip...
    695                     // so this must point to a static buffer.
     735                    // so this must point to a static buffer that is valid while
     736                    // the tooltip is showing.
    696737        HMODULE hmod;
    697738                    // out: with TTFMT_STRINGRES, the module handle of the resource.
     
    790831     *      -- mp1 USHORT usID;
    791832     *             USHORT usNotifyCode == TTN_NEEDTEXT
    792      *      -- ULONG mp2: identifier of the tool, as in TOOLINFO.uId.
     833     *      -- ULONG mp2: PTOOLINFO of the tool for which the
     834     *             tool is about to be displayed.
    793835     *
    794836     *      Return value: always 0.
     
    808850     *      -- mp1 USHORT usID;
    809851     *             USHORT usNotifyCode == TTN_NEEDTEXT
    810      *      -- ULONG mp2: identifier of the tool, as in TOOLINFO.uId.
     852     *      -- ULONG mp2: PTOOLINFO of the tool for which the
     853     *             tooltip was visible.
    811854     *
    812855     *      Return value: always 0.
  • trunk/include/helpers/dosh.h

    r76 r81  
    6666     ********************************************************************/
    6767
    68     VOID XWPENTRY doshEnumDrives(PSZ pszBuffer,
    69                                  const char *pcszFileSystem,
    70                                  BOOL fSkipRemoveables);
    71     typedef VOID XWPENTRY DOSHENUMDRIVES(PSZ pszBuffer,
    72                                          const char *pcszFileSystem,
    73                                          BOOL fSkipRemoveables);
    74     typedef DOSHENUMDRIVES *PDOSHENUMDRIVES;
    75 
    76     CHAR doshQueryBootDrive(VOID);
    77 
    78     APIRET doshAssertDrive(ULONG ulLogicalDrive);
    79 
    80     APIRET doshSetLogicalMap(ULONG ulLogicalDrive);
    81 
    82     APIRET XWPENTRY doshQueryDiskSize(ULONG ulLogicalDrive, double *pdSize);
    83     typedef APIRET XWPENTRY DOSHQUERYDISKSIZE(ULONG ulLogicalDrive, double *pdSize);
    84     typedef DOSHQUERYDISKSIZE *PDOSHQUERYDISKSIZE;
    85 
    86     APIRET XWPENTRY doshQueryDiskFree(ULONG ulLogicalDrive, double *pdFree);
    87     typedef APIRET XWPENTRY DOSHQUERYDISKFREE(ULONG ulLogicalDrive, double *pdFree);
    88     typedef DOSHQUERYDISKFREE *PDOSHQUERYDISKFREE;
    89 
    90     APIRET XWPENTRY doshQueryDiskFSType(ULONG ulLogicalDrive, PSZ pszBuf, ULONG cbBuf);
    91     typedef APIRET XWPENTRY DOSHQUERYDISKFSTYPE(ULONG ulLogicalDrive, PSZ pszBuf, ULONG cbBuf);
    92     typedef DOSHQUERYDISKFSTYPE *PDOSHQUERYDISKFSTYPE;
    93 
    9468    APIRET doshIsFixedDisk(ULONG  ulLogicalDrive,
    9569                           PBOOL  pfFixed);
     
    10276        #define DEVATTR_GREATER16MB 0x0004      // physical device driver supports physical addresses > 16 MB
    10377
    104         #pragma pack(1)
     78        // #pragma pack(1)
    10579
    10680        /*
    107          *@@ DRIVEPARAMS:
     81         * DRIVEPARAMS:
    10882         *      structure used for doshQueryDiskParams.
     83         * removed this, we can directly use BIOSPARAMETERBLOCK
     84         * V0.9.13 (2001-06-14) [umoeller]
    10985         */
    11086
    111         typedef struct _DRIVEPARAMS
     87        /* typedef struct _DRIVEPARAMS
    11288        {
    11389            BIOSPARAMETERBLOCK bpb;
     
    11692                        // in the OS2 headers as follows:
    11793
    118                         /*
    11994                        typedef struct _BIOSPARAMETERBLOCK {
    120                           USHORT     usBytesPerSector;
     95                    0     USHORT     usBytesPerSector;
    12196                                        //  Number of bytes per sector.
    122                           BYTE       bSectorsPerCluster;
     97                    2     BYTE       bSectorsPerCluster;
    12398                                        //  Number of sectors per cluster.
    124                           USHORT     usReservedSectors;
     99                    3     USHORT     usReservedSectors;
    125100                                        //  Number of reserved sectors.
    126                           BYTE       cFATs;
     101                    5     BYTE       cFATs;
    127102                                        //  Number of FATs.
    128                           USHORT     cRootEntries;
     103                    6     USHORT     cRootEntries;
    129104                                        //  Number of root directory entries.
    130                           USHORT     cSectors;
     105                    8     USHORT     cSectors;
    131106                                        //  Number of sectors.
    132                           BYTE       bMedia;
     107                    10    BYTE       bMedia;
    133108                                        //  Media descriptor.
    134                           USHORT     usSectorsPerFAT;
     109                    11    USHORT     usSectorsPerFAT;
    135110                                        //  Number of secctors per FAT.
    136                           USHORT     usSectorsPerTrack;
     111                    13    USHORT     usSectorsPerTrack;
    137112                                        //  Number of sectors per track.
    138                           USHORT     cHeads;
     113                    15    USHORT     cHeads;
    139114                                        //  Number of heads.
    140                           ULONG      cHiddenSectors;
     115                    17    ULONG      cHiddenSectors;
    141116                                        //  Number of hidden sectors.
    142                           ULONG      cLargeSectors;
     117                    21    ULONG      cLargeSectors;
    143118                                        //  Number of large sectors.
    144                           BYTE       abReserved[6];
     119                    25    BYTE       abReserved[6];
    145120                                        //  Reserved.
    146                           USHORT     cCylinders;
     121                    31    USHORT     cCylinders;
    147122                                        //  Number of cylinders defined for the physical
    148123                                        // device.
    149                           BYTE       bDeviceType;
     124                    33    BYTE       bDeviceType;
    150125                                        //  Physical layout of the specified device.
    151                           USHORT     fsDeviceAttr;
     126                    34    USHORT     fsDeviceAttr;
    152127                                        //  A bit field that returns flag information
    153128                                        //  about the specified drive.
    154                         } BIOSPARAMETERBLOCK; */
     129                        } BIOSPARAMETERBLOCK;
     130
     131            // removed the following fields... these are already
     132            // in the extended BPB structure, as defined in the
     133            // Toolkit's BIOSPARAMETERBLOCK struct. Checked this,
     134            // the definition is the same for the Toolkit 3 and 4.5.
    155135
    156136            USHORT  usCylinders;
     
    167147                        // --  5:  Fixed disk
    168148                        // --  6:  Tape drive
    169                         // --  7:  Other (includes 1.44MB 3.5-inch diskette drive)
     149                        // --  7:  Other (includes 1.44MB 3.5-inch diskette drive
     150                        //         and CD-ROMs)
    170151                        // --  8:  R/W optical disk
    171152                        // --  9:  3.5-inch 4.0MB diskette drive (2.88MB formatted)
     
    173154                        // DEVATTR_* flags
    174155        } DRIVEPARAMS, *PDRIVEPARAMS;
    175         #pragma pack()
     156        #pragma pack() */
    176157
    177158        APIRET doshQueryDiskParams(ULONG ulLogicalDrive,
    178                                    PDRIVEPARAMS pdp);
     159                                   PBIOSPARAMETERBLOCK pdp);
    179160    #endif
     161
     162    VOID XWPENTRY doshEnumDrives(PSZ pszBuffer,
     163                                 const char *pcszFileSystem,
     164                                 BOOL fSkipRemoveables);
     165    typedef VOID XWPENTRY DOSHENUMDRIVES(PSZ pszBuffer,
     166                                         const char *pcszFileSystem,
     167                                         BOOL fSkipRemoveables);
     168    typedef DOSHENUMDRIVES *PDOSHENUMDRIVES;
     169
     170    CHAR doshQueryBootDrive(VOID);
     171
     172    #define ERROR_AUDIO_CD_ROM      10000
     173
     174    #define ASSERTFL_MIXEDMODECD    0x0001
     175
     176    APIRET doshAssertDrive(ULONG ulLogicalDrive,
     177                           ULONG fl);
     178
     179    APIRET doshSetLogicalMap(ULONG ulLogicalDrive);
     180
     181    APIRET XWPENTRY doshQueryDiskSize(ULONG ulLogicalDrive, double *pdSize);
     182    typedef APIRET XWPENTRY DOSHQUERYDISKSIZE(ULONG ulLogicalDrive, double *pdSize);
     183    typedef DOSHQUERYDISKSIZE *PDOSHQUERYDISKSIZE;
     184
     185    APIRET XWPENTRY doshQueryDiskFree(ULONG ulLogicalDrive, double *pdFree);
     186    typedef APIRET XWPENTRY DOSHQUERYDISKFREE(ULONG ulLogicalDrive, double *pdFree);
     187    typedef DOSHQUERYDISKFREE *PDOSHQUERYDISKFREE;
     188
     189    APIRET XWPENTRY doshQueryDiskFSType(ULONG ulLogicalDrive, PSZ pszBuf, ULONG cbBuf);
     190    typedef APIRET XWPENTRY DOSHQUERYDISKFSTYPE(ULONG ulLogicalDrive, PSZ pszBuf, ULONG cbBuf);
     191    typedef DOSHQUERYDISKFSTYPE *PDOSHQUERYDISKFSTYPE;
    180192
    181193    APIRET doshQueryDiskLabel(ULONG ulLogicalDrive,
     
    303315    APIRET doshSetPathAttr(const char* pcszFile,
    304316                           ULONG ulAttr);
     317
     318    APIRET doshOpenExisting(const char *pcszFilename,
     319                            ULONG ulOpenFlags,
     320                            HFILE *phf);
     321
     322    APIRET doshWriteAt(HFILE hf,
     323                       LONG lOffset,
     324                       ULONG ulMethod,
     325                       ULONG cb,
     326                       PBYTE pbData);
     327
     328    APIRET doshReadAt(HFILE hf,
     329                      LONG lOffset,
     330                      ULONG ulMethod,
     331                      ULONG cb,
     332                      PBYTE pbData);
    305333
    306334    APIRET doshLoadTextFile(const char *pcszFile,
  • trunk/include/helpers/except.h

    r64 r81  
    140140    extern PFNEXCHOOKERROR G_pfnExcHookError;
    141141
     142    extern ULONG G_ulExplainExceptionRunning;
     143
    142144    /********************************************************************
    143145     *
  • trunk/include/helpers/stringh.h

    r56 r81  
    157157     ********************************************************************/
    158158
    159     VOID strhArrayAppend(PSZ *ppszRoot,
    160                          const char *pcszNew,
    161                          PULONG pcbRoot);
     159    VOID XWPENTRY strhArrayAppend(PSZ *ppszRoot,
     160                                  const char *pcszNew,
     161                                  ULONG cbNew,
     162                                  PULONG pcbRoot);
    162163
    163164    PSZ strhCreateDump(PBYTE pb,
  • trunk/include/helpers/winh.h

    r76 r81  
    8383    #ifdef WINH_STANDARDWRAPPERS
    8484
    85         MRESULT _Optlink winhSendMsg(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
     85        MRESULT XWPENTRY winhSendMsg(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
    8686        #define WinSendMsg(a,b,c,d) winhSendMsg((a),(b),(c),(d))
    8787
    88         BOOL _Optlink winhPostMsg(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
     88        BOOL XWPENTRY winhPostMsg(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
    8989        #define WinPostMsg(a,b,c,d) winhPostMsg((a),(b),(c),(d))
    9090
    91         HWND _Optlink winhWindowFromID(HWND hwnd, ULONG id);
     91        HWND XWPENTRY winhWindowFromID(HWND hwnd, ULONG id);
    9292        #define WinWindowFromID(a,b) winhWindowFromID((a),(b))
    9393
    94         HWND _Optlink winhQueryWindow(HWND hwnd, LONG lCode);
     94        HWND XWPENTRY winhQueryWindow(HWND hwnd, LONG lCode);
    9595        #define WinQueryWindow(a,b) winhQueryWindow((a),(b))
    9696
     97        PVOID XWPENTRY winhQueryWindowPtr(HWND hwnd, LONG index);
     98        #define WinQueryWindowPtr(a,b) winhQueryWindowPtr((a),(b))
     99
     100        BOOL XWPENTRY winhSetWindowText(HWND hwnd, const char *pcsz);
     101        #define WinSetWindowText(a,b) winhSetWindowText((a),(b))
     102
     103        BOOL XWPENTRY winhSetDlgItemText(HWND hwnd, ULONG id, const char *pcsz);
     104        #define WinSetDlgItemText(a,b,c) winhSetDlgItemText((a),(b),(c))
    97105    #endif
    98106
Note: See TracChangeset for help on using the changeset viewer.