|
Disk / Drive Routines
Updated
Monday December 26, 2011
|
Category
|
Topic
|
Chkdsk
vb6
vb5
vb4-32 |
Win32_LogicalDisk: WMI Method to Invoke Chkdsk
Using Win32_LogicalDisk to Chkdsk a local fixed drive. Mar
7.2002 |
|
|
Disk
Info
vb6
vb5
vb4-32 |
SetErrorMode: Determine if a Floppy Drive is Ready
Four wrapper routines that each determine if a removable drive is ready. Sept 12.1999GetLogicalDriveStrings: Determine if a Specific Drive Exists
API method to determine if the system has a specific drive letter. GetDriveType: Enumerate and Identify Available System Drives
API method to determine a system's installed drives and their type.
DeviceIoControl: Determine Media Type for CD/DVD Drives
Using DeviceIoControl to identify and
differentiate between DVD and CD drives.
Aug 29.2004
DeviceIoControl: Get a SMART Drive Serial Number
Get the hardware serial and model numbers for SMART IDE drives .
March 9.2004
Win32_LogicalDisk: WMI Logical Disk Information
Win32_LogicalDisk WMI class represents a data source that
resolves to an actual local storage device on a Windows system.
Mar 7.2002
DeviceIoControl: Obtain Physical Drive Information
Retrieve low-level physical disk information on NT/2000. Jan 8.2000
|
|
|
Disk Space
vb6
vb5
vb4-32 |
GetDiskFreeSpace: Free Disk Space on Windows 95 (or Small Partitions)
The code to determine clusters, sectors, used and free space on a release version of Win95 (pre-OSR/2).
GetDiskFreeSpaceEx: Free Disk Space on a Fat32 or NTFS Drive
The code to determine total, used and free space on a Fat32 or NTFS drive.
GetDiskFreeSpaceEx: Detailed Drive Info
Retrieve drive and volume information for any size partition or drive on any 32-bit platform. July
29.1999GetDiskFreeSpaceEx: Determining Free Disk Space
Four wrappers for retrieving disk free and used space info on any 32-bit Windows system. Dec 23.1999 |
|
|
Disk
Type
vb6
vb5
vb4-32 |
DeviceIoControl: Determine Media Type for CD/DVD Drives
Using DeviceIoControl to identify and
differentiate between DVD and CD drives.
Aug 29.2004GetDriveType: Enumerate and Identify Available System Drives
API method to determine a system's installed drives and their type.
GetDriveType: Identify a System's CD-ROM Drive
Code to determine if the target system has a CD-ROM installed, obtain its drive letter, and the volume name of an inserted CD.
|
|
|
Disk
Volume Info
vb6
vb5
vb4-32 |
GetDriveType: Identify a System's CD-ROM Drive
Code to determine if the target system has a CD-ROM installed, obtain its drive letter, and the volume name of an inserted CD. |
|
|
Drives
vb6
vb5
vb4-32 |
GetLogicalDriveStrings: An API 'DriveExists' Routine
Using GetLogicalDriveStrings to determine if a specified drive exists.
Oct 20.1999
SetErrorMode: Determine if a Floppy Drive is Ready
Four wrapper routines that each determine if a removable drive is ready. Sept 12.1999
DeviceIoControl: Get a SMART Drive Serial Number
Get the hardware serial and model numbers for SMART IDE drives .
March 9.2004 |
|
|
Folder Attributes
vb6
vb5
vb4-32 |
FindFirstFile: Changing File and/or Folder Attributes Recursively
Recursive file searching providing the ability to reset file or folder attributes. March
25.2001 |
|
|
Hardware
vb6
vb5
vb4-32 |
DeviceIoControl: Check Media Availability
Determines whether the drive specified contains media on NT/2000 systems. Mar 9.2000mciSendString: Ejecting Media from a CD-ROM
Using winmm.dll's mciSendString API, a one-liner to open or close a CD.
June 29.1998
DeviceIoControl: Lock/Unlock Removable Media Devices
How to lock and unlock removable media on NT/2000 systems. Mar 9.2000
DeviceIoControl: Load/Eject Removable Media
How to eject and load any removable media on NT/2000 systems. Mar 9.2000
DeviceIoControl: Obtain Physical Drive Information
Retrieve low-level physical disk information on NT/2000. Jan 8.2000
Win32_Processor: WMI Processor Information
The Win32_Processor WMI class returns processor status and
information for both single and multiprocessor machines.
Mar 4.2002 |
|
|
Shares
vb6
vb5
vb4-32 |
WNetEnumResource: Enumerating Local Network Resources
Obtain mapped drives on the local machine, and resolve local drive letters into the corresponding UNC path.
Jun 26.2001
NetConnectionEnum: Enumerating Share Connection Information
Using the NetConnectionEnum API to list connections made to a shared resource on the server or connections established from a particular computer.
Jun 18.2001
NetShareEnum: Enumerating Shared Resources on Other Machines
Find remote machine shares, connection type, comments and resolved path using NetShareEnum. Jun 18.2001
WNetAddConnection2: Transparently Connect to Network Shares
Several routines to connect and disconnect drives and printers.
Sept 1.1998
NetShareAdd: Create a Local or Remote Share
Several routines to connect and disconnect drives and printers.
Jan 21.2002
WNetGetConnection: Get UNC Path for Mapped Drive
Code to resolve a local or remote UNC path from a mapped
drive letter.
Jul 6.2002
|
|
|