次の方法で共有


AddMountPoint method of the Win32_Volume class

The AddMountPoint method adds a mount point directory for the volume. The result of this method is the creation of a Win32_MountPoint class associating this volume with the Win32_Directory instance representing the directory specified in the parameter list.

This topic uses Managed Object Format (MOF) syntax. For more information about using this method, see Calling a Method.

Syntax

uint32 AddMountPoint(
  [in] string Directory
);

Parameters

Directory [in]

Directory where the volume is to be mounted.

Return value

Return code Description
0
Success
1
Access Denied
2
Invalid Argument
3
Specified Directory Not Empty
4
Specified Directory Not Found
5
Volume Mount Points Not Supported
6
Unknown Error

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2003
Namespace
Root\CIMV2
MOF
Vds.mof
DLL
Vdswmi.dll

See also

Win32_Volume