Changeset 113 for trunk/include/helpers
- Timestamp:
- Oct 23, 2001, 11:25:46 PM (24 years ago)
- Location:
- trunk/include/helpers
- Files:
-
- 33 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/helpers/animate.h
r41 r113 9 9 *@@include #define INCL_WINWINDOWMGR 10 10 *@@include #include <os2.h> 11 *@@include #include " animate.h"11 *@@include #include "helpers\animate.h" 12 12 */ 13 13 -
trunk/include/helpers/apps.h
r108 r113 9 9 *@@include #define INCL_WINPROGRAMLIST 10 10 *@@include #include <os2.h> 11 *@@include #include " apps.h"11 *@@include #include "helpers\apps.h" 12 12 */ 13 13 … … 98 98 #define APP_RUN_SEPARATE 0x0008 99 99 100 HAPP XWPENTRY appStartApp(HWND hwndNotify, 101 const PROGDETAILS *pcProgDetails, 102 ULONG ulFlags); 100 APIRET XWPENTRY appStartApp(HWND hwndNotify, 101 const PROGDETAILS *pcProgDetails, 102 ULONG ulFlags, 103 HAPP *phapp); 104 105 BOOL XWPENTRY appWaitForApp(HWND hwndNotify, 106 HAPP happ, 107 PULONG pulExitCode); 108 109 HAPP XWPENTRY appQuickStartApp(const char *pcszFile, 110 ULONG ulProgType, 111 const char *pcszArgs, 112 PULONG pulExitCode); 113 103 114 #endif 104 115 -
trunk/include/helpers/cnrh.h
r106 r113 11 11 *@@include #define INCL_WINSTDDRAG 12 12 *@@include #include <os2.h> 13 *@@include #include " cnrh.h"13 *@@include #include "helpers\cnrh.h" 14 14 */ 15 15 -
trunk/include/helpers/comctl.h
r111 r113 27 27 *@@include #define INCL_WINSHELLDATA 28 28 *@@include #include <os2.h> 29 *@@include #include " comctl.h"29 *@@include #include "helpers\comctl.h" 30 30 */ 31 31 -
trunk/include/helpers/configsys.h
r24 r113 9 9 *@@added V0.9.7 (2001-01-15) [umoeller] 10 10 *@@include #include <os2.h> 11 *@@include #include " xstring.h" // for some funcs12 *@@include #include " configsys.h"11 *@@include #include "helpers\xstring.h" // for some funcs 12 *@@include #include "helpers\configsys.h" 13 13 */ 14 14 -
trunk/include/helpers/datetime.h
r41 r113 8 8 * 9 9 *@@include #include <os2.h> 10 *@@include #include " datetime.h"10 *@@include #include "helpers\datetime.h" 11 11 */ 12 12 -
trunk/include/helpers/debug.h
r41 r113 13 13 *@@include #include <os2.h> 14 14 *@@include #include <stdio.h> 15 *@@include #include " debug.h"15 *@@include #include "helpers\debug.h" 16 16 */ 17 17 -
trunk/include/helpers/dosh.h
r108 r113 10 10 *@@include #define INCL_DOSDEVIOCTL // for doshQueryDiskParams only 11 11 *@@include #include <os2.h> 12 *@@include #include " dosh.h"12 *@@include #include "helpers\dosh.h" 13 13 */ 14 14 … … 54 54 * 55 55 ********************************************************************/ 56 57 PVOID doshMalloc(ULONG cb, 58 APIRET *parc); 56 59 57 60 PVOID doshAllocSharedMem(ULONG ulSize, … … 314 317 BOOL doshMakeRealName(PSZ pszTarget, PSZ pszSource, CHAR cReplace, BOOL fIsFAT); 315 318 316 ULONG doshQueryFileSize(HFILE hFile); 317 318 ULONG doshQueryPathSize(PSZ pszFile); 319 APIRET doshQueryFileSize(HFILE hFile, 320 PULONG pulSize); 321 322 APIRET doshQueryPathSize(PCSZ pcszFile, 323 PULONG pulSize); 319 324 320 325 APIRET doshQueryPathAttr(const char* pcszFile, … … 340 345 PBYTE pbData); 341 346 347 /* 348 *@@ XFILE: 349 * 350 *@@added V0.9.16 (2001-10-19) [umoeller] 351 */ 352 353 typedef struct _XFILE 354 { 355 HFILE hf; 356 ULONG hmtx; // a HMTX really 357 ULONG cbInitial, // intial file size on open (can be 0 if new) 358 cbCurrent; // current file size (raised with each write) 359 } XFILE, *PXFILE; 360 361 #define XOPEN_READ_EXISTING 1 362 #define XOPEN_READWRITE_APPEND 2 363 #define XOPEN_READWRITE_NEW 3 364 365 APIRET doshOpen(const char *pcszFilename, 366 ULONG ulOpenMode, 367 PULONG pcbFile, 368 PXFILE *ppFile); 369 370 APIRET doshWrite(PXFILE pFile, 371 PCSZ pcsz, 372 ULONG cb); 373 374 APIRET doshWriteLogEntry(PXFILE pFile, 375 const char* pcszFormat, 376 ...); 377 378 APIRET doshClose(PXFILE *ppFile); 379 342 380 APIRET doshLoadTextFile(const char *pcszFile, 343 381 PSZ* ppszContent); … … 355 393 PSZ pszBackup); 356 394 357 HFILE doshOpenLogFile(const char* pcszFilename);358 359 APIRET doshWriteToLogFile(HFILE hfLog, const char* pcsz);360 395 361 396 /* ****************************************************************** … … 395 430 typedef ULONG XWPENTRY DOSHMYTID(VOID); 396 431 typedef DOSHMYTID *PDOSHMYTID; 397 398 APIRET doshFindExecutable(const char *pcszCommand,399 PSZ pszExecutable,400 ULONG cbExecutable,401 const char **papcszExtensions,402 ULONG cExtensions);403 432 404 433 APIRET doshExecVIO(const char *pcszExecWithArgs, … … 816 845 APIRET doshExecFreeResources(PFSYSRESOURCE paResources); 817 846 847 APIRET doshSearchPath(const char *pcszPath, 848 const char *pcszFile, 849 PSZ pszExecutable, 850 ULONG cbExecutable); 851 852 APIRET doshFindExecutable(const char *pcszCommand, 853 PSZ pszExecutable, 854 ULONG cbExecutable, 855 const char **papcszExtensions, 856 ULONG cExtensions); 857 818 858 /******************************************************************** 819 859 * -
trunk/include/helpers/eah.h
r14 r113 8 8 * 9 9 *@@include #include <os2.h> 10 *@@include #include " eah.h"10 *@@include #include "helpers\eah.h" 11 11 */ 12 12 -
trunk/include/helpers/ensure.h
r56 r113 58 58 * numbering. 59 59 * 60 *@@include #include " ensure.h"60 *@@include #include "helpers\ensure.h" 61 61 */ 62 62 -
trunk/include/helpers/except.h
r81 r113 12 12 *@@include #include <stdio.h> 13 13 *@@include #include <setjmp.h> 14 *@@include #include " except.h"14 *@@include #include "helpers\except.h" 15 15 */ 16 16 -
trunk/include/helpers/gpih.h
r111 r113 9 9 *@@include #define INCL_GPILOGCOLORTABLE // for some funcs 10 10 *@@include #include <os2.h> 11 *@@include #include " gpih.h"11 *@@include #include "helpers\gpih.h" 12 12 */ 13 13 -
trunk/include/helpers/linklist.h
r91 r113 7 7 * numbering. 8 8 * 9 *@@include #include " linklist.h"9 *@@include #include "helpers\linklist.h" 10 10 */ 11 11 -
trunk/include/helpers/math.h
r87 r113 6 6 * numbering. 7 7 * 8 *@@include #include " math.h"8 *@@include #include "helpers\math.h" 9 9 */ 10 10 -
trunk/include/helpers/memdebug.h
r91 r113 20 20 * 21 21 *@@include #include <os2.h> 22 *@@include #include " memdebug.h"22 *@@include #include "helpers\memdebug.h" 23 23 */ 24 24 -
trunk/include/helpers/nls.h
r109 r113 9 9 *@@include #define INCL_DOSDATETIME 10 10 *@@include #include <os2.h> 11 *@@include #include " nls.h"11 *@@include #include "helpers\nls.h" 12 12 */ 13 13 -
trunk/include/helpers/prfh.h
r108 r113 13 13 *@@include #include <os2.h> 14 14 *@@include #include <stdio.h> 15 *@@include #include " prfh.h"15 *@@include #include "helpers\prfh.h" 16 16 */ 17 17 -
trunk/include/helpers/procstat.h
r64 r113 9 9 * 10 10 *@@include #include <os2.h> 11 *@@include #include " procstat.h"11 *@@include #include "helpers\procstat.h" 12 12 */ 13 13 -
trunk/include/helpers/semaphores.h
r77 r113 9 9 *@@include #define INCL_DOSSEMAPHORES 10 10 *@@include #include <os2.h> 11 *@@include #include " semaphores.h"11 *@@include #include "helpers\semaphores.h" 12 12 */ 13 13 -
trunk/include/helpers/shapewin.h
r41 r113 9 9 *@@include #define INCL_GPIBITMAPS 10 10 *@@include #include <os2.h> 11 *@@include #include " shapewin.h"11 *@@include #include "helpers\shapewin.h" 12 12 */ 13 13 -
trunk/include/helpers/standards.h
r53 r113 8 8 * numbering. 9 9 * 10 *@@include #include " standards.h"10 *@@include #include "helpers\standards.h" 11 11 */ 12 12 -
trunk/include/helpers/stringh.h
r108 r113 9 9 *@@include #define INCL_DOSDATETIME 10 10 *@@include #include <os2.h> 11 *@@include #include " stringh.h"11 *@@include #include "helpers\stringh.h" 12 12 */ 13 13 -
trunk/include/helpers/syssound.h
r59 r113 9 9 *@@include #define INCL_WINSHELLDATA 10 10 *@@include #include <os2.h> 11 *@@include #include " syssound.h"11 *@@include #include "helpers\syssound.h" 12 12 */ 13 13 -
trunk/include/helpers/textv_html.h
r21 r113 20 20 * 21 21 *@@include #include <os2.h> 22 *@@include #include " linklist.h"23 *@@include #include " textv_html.h"22 *@@include #include "helpers\linklist.h" 23 *@@include #include "helpers\textv_html.h" 24 24 */ 25 25 -
trunk/include/helpers/textview.h
r85 r113 21 21 *@@include #define INCL_SPL // for printing functions 22 22 *@@include #include <os2.h> 23 *@@include #include " linklist.h" // for device-independent functions24 *@@include #include " xstring.h" // for device-independent functions25 *@@include #include " textview.h"23 *@@include #include "helpers\linklist.h" // for device-independent functions 24 *@@include #include "helpers\xstring.h" // for device-independent functions 25 *@@include #include "helpers\textview.h" 26 26 */ 27 27 -
trunk/include/helpers/threads.h
r86 r113 9 9 *@@include #define INCL_DOSPROCESS 10 10 *@@include #include <os2.h> 11 *@@include #include " threads.h"11 *@@include #include "helpers\threads.h" 12 12 */ 13 13 -
trunk/include/helpers/timer.h
r64 r113 9 9 *@@include #define INCL_DOSPROCESS 10 10 *@@include #include <os2.h> 11 *@@include #include " threads.h"11 *@@include #include "helpers\threads.h" 12 12 */ 13 13 -
trunk/include/helpers/tmsgfile.h
r108 r113 10 10 * 11 11 *@@include #include <os2.h> 12 *@@include #include "tmsgfile.h" 12 *@@include #include "helpers\tree.h" 13 *@@include #include "helpers\xstring.h" 14 *@@include #include "helpers\tmsgfile.h" 13 15 */ 14 16 -
trunk/include/helpers/tree.h
r108 r113 15 15 #if (!defined OS2_INCLUDED) && (!defined _OS2_H) && (!defined __SIMPLES_DEFINED) // changed V0.9.0 (99-10-22) [umoeller] 16 16 typedef unsigned long BOOL; 17 typedef unsigned long ULONG; 18 typedef long *PLONG; 17 19 #define TRUE (BOOL)1 18 20 #define FALSE (BOOL)0 … … 52 54 nodeColor color; // the node's color (BLACK, RED) 53 55 54 unsigned longulKey; // the node's key (data)56 ULONG ulKey; // the node's key (data) 55 57 56 58 } TREE, *PTREE; … … 67 69 #define STATUS_INVALID_NODE -2 68 70 69 typedef int TREEENTRY FNTREE_COMPARE( unsigned long ul1, unsigned longul2);71 typedef int TREEENTRY FNTREE_COMPARE(ULONG ul1, ULONG ul2); 70 72 71 73 // Function prototypes 72 void treeInit(TREE **root); 74 void treeInit(TREE **root, 75 PLONG plCount); 73 76 74 int TREEENTRY treeCompareKeys( unsigned long ul1, unsigned longul2);77 int TREEENTRY treeCompareKeys(ULONG ul1, ULONG ul2); 75 78 76 int TREEENTRY treeCompareStrings( unsigned long ul1, unsigned longul2);79 int TREEENTRY treeCompareStrings(ULONG ul1, ULONG ul2); 77 80 78 81 int treeInsert(TREE **root, 82 PLONG plCount, 79 83 TREE *x, 80 84 FNTREE_COMPARE *pfnCompare); 81 85 82 86 int treeDelete(TREE **root, 87 PLONG plCount, 83 88 TREE *z); 84 89 85 90 TREE* treeFind(TREE *root, 86 unsigned longkey,91 ULONG key, 87 92 FNTREE_COMPARE *pfnCompare); 88 93 … … 96 101 97 102 TREE** treeBuildArray(TREE* pRoot, 98 unsigned long *pulCount);103 PLONG plCount); 99 104 100 105 #endif -
trunk/include/helpers/winh.h
r111 r113 43 43 *@@include #define INCL_WINHELP // for help manager helpers 44 44 *@@include #include <os2.h> 45 *@@include #include " winh.h"45 *@@include #include "helpers\winh.h" 46 46 */ 47 47 -
trunk/include/helpers/wphandle.h
r108 r113 14 14 *@@include #define INCL_WINWORKPLACE 15 15 *@@include #include <os2.h> 16 *@@include #include " wphandle.h"16 *@@include #include "helpers\wphandle.h" 17 17 */ 18 18 19 /* This file Copyright (C) 1997-2000 Ulrich Mller, 20 * Henk Kelder. 19 /* This file Copyright (C) 1997-2001 Ulrich Mller. 21 20 * This file is part of the "XWorkplace helpers" source package. 22 21 * This is free software; you can redistribute it and/or modify … … 51 50 #define ERROR_WPH_CORRUPT_HANDLES_DATA (ERROR_WPH_FIRST + 5) 52 51 #define ERROR_WPH_INVALID_PARENT_HANDLE (ERROR_WPH_FIRST + 6) 52 #define ERROR_WPH_CANNOT_FIND_HANDLE (ERROR_WPH_FIRST + 7) 53 #define ERROR_WPH_DRIV_TREEINSERT_FAILED (ERROR_WPH_FIRST + 8) 54 #define ERROR_WPH_NODE_TREEINSERT_FAILED (ERROR_WPH_FIRST + 9) 55 #define ERROR_WPH_NODE_BEFORE_DRIV (ERROR_WPH_FIRST + 10) 56 #define ERROR_WPH_NO_MATCHING_DRIVE_BLOCK (ERROR_WPH_FIRST + 11) 57 #define ERROR_WPH_NO_MATCHING_ROOT_DIR (ERROR_WPH_FIRST + 12) 53 58 54 59 /* ****************************************************************** … … 95 100 USHORT usUnknown2[2]; 96 101 CHAR szName[1]; 97 } DRIV , *PDRIV;102 } DRIVE, *PDRIVE; 98 103 99 104 #pragma pack() 100 105 101 /* 102 *@@ WPHANDLESBUF: 103 * structure created by wphLoadHandles. 104 * 105 *@@added V0.9.16 (2001-10-02) [umoeller] 106 */ 107 108 typedef struct _WPHANDLESBUF 109 { 110 PBYTE pbData; // ptr to all handles (buffers from OS2SYS.INI) 111 ULONG cbData; // byte count of *p 112 113 USHORT usHiwordAbstract, // hiword for WPAbstract handles 114 usHiwordFileSystem; // hiword for WPFileSystem handles 115 116 PNODE NodeHashTable[65536]; 117 BOOL fNodeHashTableValid; // TRUE after wphRebuildNodeHashTable 118 119 } HANDLESBUF, *PHANDLESBUF; 106 /* ****************************************************************** 107 * 108 * Private declarations 109 * 110 ********************************************************************/ 111 112 #ifdef INCLUDE_WPHANDLE_PRIVATE 113 114 /* 115 *@@ DRIVETREENODE: 116 * 117 *@@added V0.9.16 (2001-10-19) [umoeller] 118 */ 119 120 typedef struct _DRIVETREENODE 121 { 122 TREE Tree; // ulKey points to the DRIVE.szName 123 // (null terminated) 124 PDRIVE pDriv; // actual DRIVE node 125 126 TREE *ChildrenTree; // NODETREENODE's, if any 127 LONG cChildren; 128 129 } DRIVETREENODE, *PDRIVETREENODE; 130 131 /* 132 *@@ NODETREENODE: 133 * 134 *@@added V0.9.16 (2001-10-19) [umoeller] 135 */ 136 137 typedef struct _NODETREENODE 138 { 139 TREE Tree; // ulKey points to the NODE.szName 140 // (null terminated) 141 PNODE pNode; // actual NODE node 142 143 TREE *ChildrenTree; // NODETREENODE's, if any 144 LONG cChildren; 145 146 } NODETREENODE, *PNODETREENODE; 147 148 /* 149 *@@ WPHANDLESBUF: 150 * structure created by wphLoadHandles. 151 * 152 * The composed BLOCKs in the handles buffer make up a tree of 153 * DRIVE and NODE structures (see wphandle.h). Each NODE stands 154 * for either a directory or a file. (We don't care about the 155 * DRIVE structures because the root directory gets a NODE also.) 156 * Each NODE contains the non-qualified file name, an fshandle, 157 * and the fshandle of its parent NODE. 158 * 159 *@@added V0.9.16 (2001-10-02) [umoeller] 160 */ 161 162 typedef struct _WPHANDLESBUF 163 { 164 PBYTE pbData; // ptr to all handles (buffers from OS2SYS.INI) 165 ULONG cbData; // byte count of *p 166 167 USHORT usHiwordAbstract, // hiword for WPAbstract handles 168 usHiwordFileSystem; // hiword for WPFileSystem handles 169 170 BOOL fCacheValid; // TRUE after wphRebuildNodeHashTable() 171 PNODETREENODE NodeHashTable[65536]; // hash table with all nodes sorted by handle; 172 // if item is NULL, no handle is assigned 173 TREE *DrivesTree; // DRIVETREENODE structs really 174 LONG cDrives; 175 176 LINKLIST llDuplicateHandles; // linked list of NODETREENODE's that 177 // have an fshandle that was already 178 // occupied (i.e. same fshandle for two 179 // NODEs) 180 LINKLIST llDuplicateShortNames; 181 182 } HANDLESBUF, *PHANDLESBUF; 183 184 #endif 120 185 121 186 /* ****************************************************************** … … 124 189 * 125 190 ********************************************************************/ 191 192 typedef unsigned long HHANDLES; 126 193 127 194 APIRET wphQueryActiveHandles(HINI hiniSystem, … … 132 199 PUSHORT pusHiwordFileSystem); 133 200 134 APIRET wphRebuildNodeHashTable( PHANDLESBUF pHandlesBuf);201 APIRET wphRebuildNodeHashTable(HHANDLES hHandles); 135 202 136 203 APIRET wphLoadHandles(HINI hiniUser, 137 204 HINI hiniSystem, 138 205 const char *pcszActiveHandles, 139 PHANDLESBUF *ppHandlesBuf);140 141 APIRET wphFreeHandles( PHANDLESBUF *ppHandlesBuf);206 HHANDLES *phHandles); 207 208 APIRET wphFreeHandles(HHANDLES *phHandles); 142 209 143 210 APIRET wphQueryHandleFromPath(HINI hiniUser, … … 146 213 HOBJECT *phobj); 147 214 148 APIRET wphComposePath( PHANDLESBUF pHandlesBuf,215 APIRET wphComposePath(HHANDLES hHandles, 149 216 USHORT usHandle, 150 217 PSZ pszFilename, -
trunk/include/helpers/xprf.h
r64 r113 11 11 *@@include #define INCL_WINSHELLDATA 12 12 *@@include #include <os2.h> 13 *@@include #include " xprf.h"13 *@@include #include "helpers\xprf.h" 14 14 */ 15 15 -
trunk/include/helpers/xstring.h
r108 r113 9 9 *@@include #define INCL_DOSDATETIME 10 10 *@@include #include <os2.h> 11 *@@include #include " xstring.h"11 *@@include #include "helpers\xstring.h" 12 12 */ 13 13
Note:
See TracChangeset
for help on using the changeset viewer.