Platform SDK: Files and I/O |
The DeleteVolumeMountPoint function unmounts the volume from the specified volume mount point.
BOOL DeleteVolumeMountPoint( LPCTSTR lpszVolumeMountPoint // volume mount point path );
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
It is not an error to attempt to unmount a volume from a volume mount point when there is no volume actually mounted at that volume mount point.
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Unsupported.
Header: Declared in Winbase.h; include Windows.h.
Library: Use Kernel32.lib.
Unicode: Implemented as Unicode and ANSI versions on Windows 2000.
File Systems Overview, File System Functions, GetVolumeNameForVolumeMountPoint, GetVolumePathName, SetVolumeMountPoint