Skip to content

Latest commit

 

History

History
63 lines (44 loc) · 1.34 KB

SetVolumeMountPoint.md

File metadata and controls

63 lines (44 loc) · 1.34 KB

Home

Function name : SetVolumeMountPoint

Group: File System - Library: kernel32


Mounts the specified volume at the specified volume mount point.


Code examples:

Enumerating Volumes and Volume Mounting Points (NTFS)

Declaration:

BOOL SetVolumeMountPoint(
	LPCTSTR lpszVolumeMountPoint,
	LPCTSTR lpszVolumeName
);
  

FoxPro declaration:

DECLARE INTEGER SetVolumeMountPoint IN kernel32;
	STRING lpszVolumeMountPoint,;
	STRING lpszVolumeName  

Parameters:

lpszVolumeMountPoint [in] Pointer to a string that indicates the volume mount point where the volume is to be mounted.

lpszVolumeName [in] Pointer to a string that indicates the volume to be mounted.


Return value:

If the function succeeds, the return value is nonzero.


Comments:

Handle this function with care.

This function works similar to the MOUNTVOL.EXE utility -- creates, deletes, or lists a volume mount point.

MOUNTVOL [drive:]path VolumeName MOUNTVOL [drive:]path /D MOUNTVOL [drive:]path /L MOUNTVOL [drive:]path /P MOUNTVOL /R MOUNTVOL /N MOUNTVOL /E