wpQueryLogicalDrive - Example Code

 ULONG           ulLogicalDriveNum = 0;   /* Logical drive number returned */
 WPRootFolder   *RootFolder;              /* Root folder for drive         */

  /*
   *  Query logical drive number for the WPDisk object
   */

   ulLogicalDriveNum = _wpQueryLogicalDrive( self );


   if (LogicalDrive == 0) {

     somPrintf("_wpQueryLogicalDrive failed");
     return 1;

   } /* endif */


figseg fit=12.
  /*
   *  Query root folder also
   */

   RootFolder = _wpQueryRootFolder( self );

   if (RootFolder == NULL) {

     somPrintf("_wpQueryRootFolder failed");
     return 1;

   } /* endif */


[Back: wpQueryLogicalDrive - How to Override]
[Next: wpQueryLogicalDrive - Topics]