Ignore:
Timestamp:
May 9, 2002, 3:55:35 PM (23 years ago)
Author:
sandervl
Message:

volume api updates (LVM)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/oslibdos.cpp

    r8273 r8397  
    1 /* $Id: oslibdos.cpp,v 1.100 2002-04-16 00:21:04 bird Exp $ */
     1/* $Id: oslibdos.cpp,v 1.101 2002-05-09 13:55:34 sandervl Exp $ */
    22/*
    33 * Wrappers for OS/2 Dos* API
     
    33953395//******************************************************************************
    33963396//******************************************************************************
     3397DWORD OSLibDosGetNumPhysDrives()
     3398{
     3399    USHORT  usNumDrives  = 0;                  /* Data return buffer        */
     3400    ULONG   ulDataLen    = sizeof(USHORT);     /* Data return buffer length */
     3401    APIRET  rc           = NO_ERROR;           /* Return code               */
     3402
     3403    /* Request a count of the number of partitionable disks in the system */
     3404
     3405    rc = DosPhysicalDisk(INFO_COUNT_PARTITIONABLE_DISKS,
     3406                         &usNumDrives,
     3407                         ulDataLen,
     3408                         NULL,         /* No parameter for this function */
     3409                         0L);
     3410
     3411    if (rc != NO_ERROR) {
     3412        dprintf(("DosPhysicalDisk error: return code = %u\n", rc));
     3413        return 0;
     3414    }
     3415    else {
     3416        dprintf(("DosPhysicalDisk:  %u partitionable disk(s)\n",usNumDrives));
     3417    }
     3418    return usNumDrives;
     3419}
     3420//******************************************************************************
     3421//******************************************************************************
     3422
Note: See TracChangeset for help on using the changeset viewer.