Using Win32 functions in Visual FoxPro Image Gallery
File System
..msdn
DeleteVolumeMountPoint
FindFirstVolume
FindFirstVolumeMountPoint
FindNextVolume
FindNextVolumeMountPoint
FindVolumeClose
FindVolumeMountPointClose
GetCompressedFileSize
GetDiskFreeSpace
GetDiskFreeSpaceEx
GetFileSize
GetFileSizeEx
GetLogicalDrives
GetLogicalDriveStrings
GetVolumeInformation
GetVolumeNameForVolumeMountPoint
GetVolumePathNamesForVolumeName
SetVolumeLabel
SetVolumeMountPoint
Code examples:
Enumerating Volumes and Volume Mounting Points (NTFS)
GetVolumeNameForVolumeMountPoint
..msdn    Add comment     W32 Constants      Translate this page
Takes a volume mount point or root directory and returns the corresponding unique volume name.
Code examples:
Enumerating Volumes and Volume Mounting Points (NTFS)
Declaration:
BOOL GetVolumeNameForVolumeMountPoint(
  LPCTSTR lpszVolumeMountPoint,
  LPTSTR lpszVolumeName,
  DWORD cchBufferLength
);
FoxPro declaration:
DECLARE INTEGER GetVolumeNameForVolumeMountPoint IN kernel32;
    STRING lpszVolumeMountPoint,;
    STRING @lpszVolumeName,;
    LONG cchBufferLength
Parameters:
lpszVolumeMountPoint
[in] Pointer to a string that contains either the path of a volume mount point with a trailing backslash (\) or a drive letter indicating a root directory in the form "D:\".

lpszVolumeName
[out] Pointer to a string that receives the volume name. This name is a unique volume name of the form "\\?\Volume{GUID}\" where GUID is the GUID that identifies the volume.

cchBufferLength
[in] Length of the output buffer, in TCHARs. A reasonable size for the buffer to accommodate the largest possible volume name is 50 characters.
Return value:
If the function succeeds, the return value is nonzero.
Usage:
* returns \\?\Volume{9da9a070-8130-11d6-bb8f-806d6172696f}\
cVolume = GetVolumeNameForVolumeMountPoint("A:\")
My comment:
The lpszVolumeMountPoint parameter may be a drive letter with appended backslash (\), such as "D:\". Alternatively, it may be a path to a volume mount point, again with appended backslash (\), such as "c:\mnt\edrive\".
Word Index links for the GetVolumeNameForVolumeMountPoint :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2005-12-18 08:24:48
Modified: 2007-06-11 16:32:32
Visited in last 7 days: 20
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.196.72.162)
13 sec.Function: 'NetUserChangePassword'
26 sec.Function: 'InternetCloseHandle'
37 sec.Function: 'RealDriveType'
48 sec.Function: 'GetMailslotInfo'
1.02 min.Function: 'GetParent'
1.23 min.Function: 'SetEnvironmentVariable'
1.45 min.Example: 'How to convert a bitmap file to monochrome format (1 bpp)'
1.67 min.Function: 'GdipGetDC'
1.88 min.Function: 'HashData'
2.08 min.Function: 'SetTextCharacterExtra'
Google
Advertise here!