Skip to main content

Problem:

This example demonstrates the use of the two Win32 API functions GetVolumeInformation and GetDiskFreeSpaceEx in order to retrieve certain information about a specified disk drive.

Resolution:

INTRODUCTION

==========

This example demonstrates the use of the two Win32 API functions GetVolumeInformation and GetDiskFreeSpaceEx in order to retrieve certain information about a specified disk drive.

The GetVolumeInformation will return the volume name, the serial number the system flags and the type of file system for the specified drive.

The GetDiskFreeSpaceEx will return the total amount of disk space and the total amount of free disk space available for the specified drive.

SOURCE FILES:

==========

Program Files     Description

----------------     -----------------------------------------------------------

GETDISK.CBL     Program that calls the WIN32 API functions.

REQUIREMENTS:

==========

This sample should run on all systems running Windows 95 SE or higher.

OPERATION:

========

Rebuild this project to create the file getdisk.exe. This is a character mode program that will display the results of the API function calls.

==========================================================

Keywords: demonstration, sample, example, demo, win32 api, getdisk.zip

demo.ex

demo.ne

Attachments:

getdisk.zip

Old KB# 4172