1 out of 1 rated this helpful - Rate this topic

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 codeDescription
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

 

Examples

For script code examples, see WMI Tasks for Scripts and Applications and the TechNet ScriptCenter Script Repository.

For C++ code examples, see WMI C++ Application Examples.

Requirements

Minimum supported client

None supported [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Namespace

\root\CIMV2

MOF

Vds.mof

DLL

Vdswmi.dll

See also

Win32_Volume

 

 

Send comments about this topic to Microsoft

Build date: 11/19/2012

Community Additions

ADD
© 2013 Microsoft. All rights reserved.