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 |
---|---|
|
Success |
|
Access Denied |
|
Invalid Argument |
|
Specified Directory Not Empty |
|
Specified Directory Not Found |
|
Volume Mount Points Not Supported |
|
Unknown Error |
Requirements
Minimum supported client |
None supported |
Minimum supported server |
Windows Server 2003 |
Namespace |
Root\CIMV2 |
MOF |
|
DLL |
|