 |
SHFormatDrive ..msdn Add comment W32 Constants Translate this page |
 |
 |
The SHFormatDrive API provides access to the Shell"s format dialog box. This allows applications that want to format disks to bring up the same dialog box that the Shell uses for disk formatting.
|
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
DWORD WINAPI SHFormatDrive(
HWND hwnd,
UINT drive,
UINT fmtID,
UINT options);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER SHFormatDrive IN shell32;
INTEGER HWND,;
INTEGER lpDrive,;
INTEGER fmtID,;
INTEGER options
|
 |
 |
 |
| Parameters: |
 |
hwnd
[in] The window handle of the window that will own the dialog.
drive
[in] The 0 based (A: == 0) drive number of the drive to format.
fmtID
[in] Currently must be set to SHFMT_ID_DEFAULT.
options
[in] Predefined options.
|
 |
 |
| Return value: |
 |
| The return is either one of the SHFMT_* values, or if the returned DWORD value is not == to one of these values, then the return is the physical format ID of the last successful format. |
 |
 |
| My comment: |
 |
This function looks some undocumented. Though there is a MSDN link describing it, it is not really a regular description as it is for other Shell functions.
Links:
HOWTO: Call SHFormatDrive in Windows 95/98/Me and Windows NT/2000/XP.
The undocumented SHFormatDrive function.
Disk in drive A:.
Formatting a drive under Win32 - by Borland Developer Support Staff.
|
 |
 |
| Word Index links for the SHFormatDrive : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2002-07-23 22:37:15 | | Modified: | 2002-07-23 22:56:10 | Visited in last 7 days: 26 |