VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Shows how to format a drive using API calls.

SreeHarsha  (2 Submissions)   Windows API Call/Explanation   Visual Basic 5.0   Unknown Difficulty   Mon 4th November 2002   Mon 8th February 2021

Shows how to format a drive using API calls.

API Declarations


Const SHFD_CAPACITY_360 = 3 ' 360KB, applies to 5.25" drives only
Const SHFD_CAPACITY_720 = 5 ' 720KB, applies to 3.5" drives only
Const SHFD_FORMAT_QUICK = 0 ' quick format
Const SHFD_FORMAT_FULL = 1 ' full format
Const SHFD_FORMAT_SYSONLY = 2 ' copies system files only (Win95 Only!)

Private Declare Function SHFormatDrive Lib "shell32" (ByVal hwndOwner As Long, ByVal iDrive As Long, ByVal iCapacity As Long, ByVal iFormatType As Long) As Long


Rate Shows how to format a drive using API calls. (1(1 Vote))
Shows how to format a drive using API calls..bas

Shows how to format a drive using API calls. Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters