Changeset 142 for trunk/src/helpers/dosh2.c
- Timestamp:
- Feb 21, 2002, 8:24:22 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/helpers/dosh2.c
r135 r142 368 368 */ 369 369 370 APIRET CopyToBuffer(PSZ pszTarget, // out: target buffer371 PCSZ pcszSource, // in: source string372 ULONG cbTarget) // in: size of target buffer370 static APIRET CopyToBuffer(PSZ pszTarget, // out: target buffer 371 PCSZ pcszSource, // in: source string 372 ULONG cbTarget) // in: size of target buffer 373 373 { 374 374 ULONG ulLength = strlen(pcszSource); … … 485 485 */ 486 486 487 APIRET FindFile(const char *pcszCommand, // in: command (e.g. "lvm")488 PSZ pszExecutable, // out: full path (e.g. "F:\os2\lvm.exe")489 ULONG cbExecutable) // in: sizeof (*pszExecutable)487 static APIRET FindFile(const char *pcszCommand, // in: command (e.g. "lvm") 488 PSZ pszExecutable, // out: full path (e.g. "F:\os2\lvm.exe") 489 ULONG cbExecutable) // in: sizeof (*pszExecutable) 490 490 { 491 491 APIRET arc = NO_ERROR; … … 784 784 */ 785 785 786 APIRET AppendPartition(PARTITIONINFO **pppiFirst,787 PARTITIONINFO **pppiThis, // in/out: partition info; pointer will be advanced788 PUSHORT posCount, // in/out: partition count789 BYTE bDisk, // in: disk of partition790 const char *pszBootName, // in: boot partition name791 CHAR cLetter, // in/out: drive letter792 BYTE bFsType, // in: file system type793 BOOL fPrimary, // in: primary?794 BOOL fBootable,795 ULONG ulSectors) // in: no. of sectors786 static APIRET AppendPartition(PARTITIONINFO **pppiFirst, 787 PARTITIONINFO **pppiThis, // in/out: partition info; pointer will be advanced 788 PUSHORT posCount, // in/out: partition count 789 BYTE bDisk, // in: disk of partition 790 const char *pszBootName, // in: boot partition name 791 CHAR cLetter, // in/out: drive letter 792 BYTE bFsType, // in: file system type 793 BOOL fPrimary, // in: primary? 794 BOOL fBootable, 795 ULONG ulSectors) // in: no. of sectors 796 796 { 797 797 APIRET arc = NO_ERROR; … … 1013 1013 */ 1014 1014 1015 APIRET GetPrimaryPartitions(PARTITIONINFO **pppiFirst,1016 PARTITIONINFO **pppiThis,1017 PUSHORT posCount, // in/out: partition count1018 PCHAR pcLetter, // in/out: drive letter counter1019 UINT BmDisk, // in: physical disk (1, 2, 3, ...) of boot manager or null1020 PAR_INFO* pBmInfo, // in: info returned by doshGetBootManager or NULL1021 UINT iDisk) // in: system's physical disk count1015 static APIRET GetPrimaryPartitions(PARTITIONINFO **pppiFirst, 1016 PARTITIONINFO **pppiThis, 1017 PUSHORT posCount, // in/out: partition count 1018 PCHAR pcLetter, // in/out: drive letter counter 1019 UINT BmDisk, // in: physical disk (1, 2, 3, ...) of boot manager or null 1020 PAR_INFO* pBmInfo, // in: info returned by doshGetBootManager or NULL 1021 UINT iDisk) // in: system's physical disk count 1022 1022 { 1023 1023 APIRET arc = NO_ERROR; … … 1100 1100 */ 1101 1101 1102 APIRET GetLogicalDrives(PARTITIONINFO **pppiFirst,1103 PARTITIONINFO **pppiThis,1104 PUSHORT posCount,1105 PCHAR pcLetter,1106 PAR_INFO* PrInfo, // in: MBR entry of extended partition1107 UINT PrDisk,1108 PAR_INFO* BmInfo)1102 static APIRET GetLogicalDrives(PARTITIONINFO **pppiFirst, 1103 PARTITIONINFO **pppiThis, 1104 PUSHORT posCount, 1105 PCHAR pcLetter, 1106 PAR_INFO* PrInfo, // in: MBR entry of extended partition 1107 UINT PrDisk, 1108 PAR_INFO* BmInfo) 1109 1109 { 1110 1110 APIRET arc = NO_ERROR; … … 1189 1189 */ 1190 1190 1191 APIRET GetExtendedPartition(PARTITIONINFO **pppiFirst,1192 PARTITIONINFO **pppiThis,1193 PUSHORT posCount,1194 PCHAR pcLetter,1195 PAR_INFO* BmInfo,1196 UINT iDisk) // in: disk to query1191 static APIRET GetExtendedPartition(PARTITIONINFO **pppiFirst, 1192 PARTITIONINFO **pppiThis, 1193 PUSHORT posCount, 1194 PCHAR pcLetter, 1195 PAR_INFO* BmInfo, 1196 UINT iDisk) // in: disk to query 1197 1197 { 1198 1198 APIRET arc = NO_ERROR; … … 1234 1234 */ 1235 1235 1236 APIRET ReadFDiskPartitions(PARTITIONINFO **ppPartitionInfos,1237 USHORT *pcPartitions,1238 PUSHORT pusContext) // out: error context1236 static APIRET ReadFDiskPartitions(PARTITIONINFO **ppPartitionInfos, 1237 USHORT *pcPartitions, 1238 PUSHORT pusContext) // out: error context 1239 1239 { 1240 1240 APIRET arc = NO_ERROR; … … 1307 1307 */ 1308 1308 1309 VOID CleanPartitionInfos(PPARTITIONINFO ppiThis)1309 static VOID CleanPartitionInfos(PPARTITIONINFO ppiThis) 1310 1310 { 1311 1311 while (ppiThis) … … 2014 2014 */ 2015 2015 2016 BOOL PerformMatch(PCSZ pMask,2017 PCSZ pName,2018 int fHasDot)2016 static BOOL PerformMatch(PCSZ pMask, 2017 PCSZ pName, 2018 int fHasDot) 2019 2019 { 2020 2020 while (TRUE)
Note:
See TracChangeset
for help on using the changeset viewer.