Using Win32 functions in Visual FoxPro Image Gallery
Shell Functions
..msdn
AssocQueryString
DllGetVersion
DragAcceptFiles
DragFinish
DragQueryFile
DragQueryPoint
FileIconInit
FindExecutable
GetFileNameFromBrowse
GetMenuContextHelpId
GetWindowContextHelpId
InetIsOffline
IsUserAnAdmin
LoadUserProfile
PathMakeUniqueName
PathYetAnotherMakeUniqueName
RealDriveType
RestartDialog
SHAddToRecentDocs
SHBrowseForFolder
SHCreateDirectory
ShellAbout
ShellExecute
ShellExecuteEx
Shell_GetImageLists
Shell_NotifyIcon
SHEmptyRecycleBin
SHFileOperation
SHFormatDrive
SHGetFileInfo
SHGetFolderPath
SHGetPathFromIDList
SHGetSpecialFolderLocation
SHGetStockIconInfo
SHParseDisplayName
SHQueryRecycleBin
SHSimpleIDListFromPath
UnloadUserProfile
WinHelp
Code examples:
Disk in drive A:
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:
Disk in drive A:
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:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2002-07-23 22:37:15
Modified: 2002-07-23 22:56:10
Visited in last 7 days: 19
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.81.79.128)
11 sec.
Function group: 'Simple MAPI'
23 sec.Function: 'QueryPerformanceCounter'
34 sec.Function: 'CreateSemaphore'
44 sec.Function: 'GlobalReAlloc'
55 sec.Function: 'GetQueueStatus'
1.1 min.Function: 'LsaOpenPolicy'
1.32 min.Function: 'CeGetVersionEx'
1.52 min.Function: 'SCardGetProviderId'
1.7 min.Function: 'GetLengthSid'
1.88 min.Function: 'GetProfileString'
Google
Advertise here!