Changeset 109 for trunk/dll/valid.c


Ignore:
Timestamp:
Aug 1, 2004, 2:17:21 AM (21 years ago)
Author:
root
Message:

Comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/valid.c

    r103 r109  
    1313                11 Jun 03 SHL - Add JFS and FAT32 support
    1414                15 Jun 04 SHL - Implement Jim Read's removable logic
     15                31 Jul 04 SHL - Comments
    1516
    1617***********************************************************************/
     
    171172}
    172173
     174/* CheckDrive
     175 * @param chDrive drive letter
     176 * @param pszFileSystem pointer to buffer to return file system type or NULL
     177 * @param pulType pointer to long word to return drive flags or NULL
     178 * @returns removability flag, 1 = removable, 0 = not removable, -1 = error
     179 */
    173180
    174181INT CheckDrive (CHAR chDrive, CHAR *pszFileSystem, ULONG *pulType)
     
    220227  ulrc = DosQueryFSAttach(szPath, 0, FSAIL_QUERYNAME,
    221228                          (PFSQBUFFER2)pvBuffer, &clBufferSize);
     229# define CD_DEBUG 0
     230
    222231  if (ulrc)
    223232  {
    224233    /* can't get any info at all */
     234#   ifdef CD_DEBUG
     235    fprintf(stderr, "DosQueryFSAttach %s returned %ul\n",
     236            szPath, ulrc);
     237#   endif
    225238    DosFreeMem(pvBuffer);
    226239    DosError(FERR_DISABLEHARDERR);
Note: See TracChangeset for help on using the changeset viewer.