The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

RemoveAccessPath method of the MSFT_Partition class

Remove the access path from the partition.


UInt32 RemoveAccessPath(
  [in]   String AccessPath,
  [out]  String ExtendedStatus


AccessPath [in]

Specifies the access path, which is a user-mode path that can be used to open the partition. An access path can be a drive letter (for example, "C:" or "C:\") or a path to an empty directory on an NTFS volume. The access path string does not require a trailing backslash.

This parameter is required and cannot be NULL.

ExtendedStatus [out]

A string that contains an embedded MSFT_StorageExtendedStatus object.

This parameter allows the storage provider to return extended (implementation-specific) error information.

Return value

Success (0)
Not Supported (1)
Unspecified Error (2)
Timeout (3)
Failed (4)
Invalid Parameter (5)
Access denied (40001)
There are not enough resources to complete the operation. (40002)
Cannot remove a volume GUID path. (42005)
Cannot remove the drive letter of a boot or paging file partition. (42006)
The access path is not valid. (42007)


This method removes the access path from the partition even if the access path is in use.


Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]





See also




Community Additions

© 2014 Microsoft