Changeset 81 for trunk/include
- Timestamp:
- Jun 23, 2001, 11:12:49 AM (24 years ago)
- Location:
- trunk/include/helpers
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/helpers/comctl.h
r68 r81 36 36 #ifndef COMCTL_HEADER_INCLUDED 37 37 #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); 38 76 39 77 /* ****************************************************************** … … 670 708 /* 671 709 *@@ 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. 677 717 * 678 718 *@@changed V0.9.7 (2001-01-03) [umoeller]: got rid of this win95 crap … … 693 733 // out: with TTFMT_PSZ, pointer to a string that contains the 694 734 // 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. 696 737 HMODULE hmod; 697 738 // out: with TTFMT_STRINGRES, the module handle of the resource. … … 790 831 * -- mp1 USHORT usID; 791 832 * 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. 793 835 * 794 836 * Return value: always 0. … … 808 850 * -- mp1 USHORT usID; 809 851 * 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. 811 854 * 812 855 * Return value: always 0. -
trunk/include/helpers/dosh.h
r76 r81 66 66 ********************************************************************/ 67 67 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 94 68 APIRET doshIsFixedDisk(ULONG ulLogicalDrive, 95 69 PBOOL pfFixed); … … 102 76 #define DEVATTR_GREATER16MB 0x0004 // physical device driver supports physical addresses > 16 MB 103 77 104 #pragma pack(1)78 // #pragma pack(1) 105 79 106 80 /* 107 * @@DRIVEPARAMS:81 * DRIVEPARAMS: 108 82 * structure used for doshQueryDiskParams. 83 * removed this, we can directly use BIOSPARAMETERBLOCK 84 * V0.9.13 (2001-06-14) [umoeller] 109 85 */ 110 86 111 typedef struct _DRIVEPARAMS87 /* typedef struct _DRIVEPARAMS 112 88 { 113 89 BIOSPARAMETERBLOCK bpb; … … 116 92 // in the OS2 headers as follows: 117 93 118 /*119 94 typedef struct _BIOSPARAMETERBLOCK { 120 95 0 USHORT usBytesPerSector; 121 96 // Number of bytes per sector. 122 97 2 BYTE bSectorsPerCluster; 123 98 // Number of sectors per cluster. 124 99 3 USHORT usReservedSectors; 125 100 // Number of reserved sectors. 126 101 5 BYTE cFATs; 127 102 // Number of FATs. 128 103 6 USHORT cRootEntries; 129 104 // Number of root directory entries. 130 105 8 USHORT cSectors; 131 106 // Number of sectors. 132 107 10 BYTE bMedia; 133 108 // Media descriptor. 134 109 11 USHORT usSectorsPerFAT; 135 110 // Number of secctors per FAT. 136 111 13 USHORT usSectorsPerTrack; 137 112 // Number of sectors per track. 138 113 15 USHORT cHeads; 139 114 // Number of heads. 140 115 17 ULONG cHiddenSectors; 141 116 // Number of hidden sectors. 142 117 21 ULONG cLargeSectors; 143 118 // Number of large sectors. 144 119 25 BYTE abReserved[6]; 145 120 // Reserved. 146 121 31 USHORT cCylinders; 147 122 // Number of cylinders defined for the physical 148 123 // device. 149 124 33 BYTE bDeviceType; 150 125 // Physical layout of the specified device. 151 126 34 USHORT fsDeviceAttr; 152 127 // A bit field that returns flag information 153 128 // 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. 155 135 156 136 USHORT usCylinders; … … 167 147 // -- 5: Fixed disk 168 148 // -- 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) 170 151 // -- 8: R/W optical disk 171 152 // -- 9: 3.5-inch 4.0MB diskette drive (2.88MB formatted) … … 173 154 // DEVATTR_* flags 174 155 } DRIVEPARAMS, *PDRIVEPARAMS; 175 #pragma pack() 156 #pragma pack() */ 176 157 177 158 APIRET doshQueryDiskParams(ULONG ulLogicalDrive, 178 P DRIVEPARAMSpdp);159 PBIOSPARAMETERBLOCK pdp); 179 160 #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; 180 192 181 193 APIRET doshQueryDiskLabel(ULONG ulLogicalDrive, … … 303 315 APIRET doshSetPathAttr(const char* pcszFile, 304 316 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); 305 333 306 334 APIRET doshLoadTextFile(const char *pcszFile, -
trunk/include/helpers/except.h
r64 r81 140 140 extern PFNEXCHOOKERROR G_pfnExcHookError; 141 141 142 extern ULONG G_ulExplainExceptionRunning; 143 142 144 /******************************************************************** 143 145 * -
trunk/include/helpers/stringh.h
r56 r81 157 157 ********************************************************************/ 158 158 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); 162 163 163 164 PSZ strhCreateDump(PBYTE pb, -
trunk/include/helpers/winh.h
r76 r81 83 83 #ifdef WINH_STANDARDWRAPPERS 84 84 85 MRESULT _OptlinkwinhSendMsg(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);85 MRESULT XWPENTRY winhSendMsg(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2); 86 86 #define WinSendMsg(a,b,c,d) winhSendMsg((a),(b),(c),(d)) 87 87 88 BOOL _OptlinkwinhPostMsg(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);88 BOOL XWPENTRY winhPostMsg(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2); 89 89 #define WinPostMsg(a,b,c,d) winhPostMsg((a),(b),(c),(d)) 90 90 91 HWND _OptlinkwinhWindowFromID(HWND hwnd, ULONG id);91 HWND XWPENTRY winhWindowFromID(HWND hwnd, ULONG id); 92 92 #define WinWindowFromID(a,b) winhWindowFromID((a),(b)) 93 93 94 HWND _OptlinkwinhQueryWindow(HWND hwnd, LONG lCode);94 HWND XWPENTRY winhQueryWindow(HWND hwnd, LONG lCode); 95 95 #define WinQueryWindow(a,b) winhQueryWindow((a),(b)) 96 96 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)) 97 105 #endif 98 106
Note:
See TracChangeset
for help on using the changeset viewer.