3.1. The Possibilities

The 32-bit APIs for Windows gives you several functions that you can use to access information about individual drives. You use these functions to find, for example:

  • The maximum size and free space on a drive

  • The type of the drive (network drive, CD-ROM drive, and so on)

  • The file system used when the drive was formatted

Windows also contains a set of WNet functions that lets you find and connect to network drives and printers shared by other machines. With these functions you can:

  • Enumerate all the domains on the network

  • Enumerate all the machines in each domain

  • Enumerate all the drives and printers on each machine

  • Connect to any drive on the network

  • Disconnect from any drive

All the connection options seen by a user in the ...

Get Win32 System Services: The Heart of Windows® 98 and Windows® 2000 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.