title | description | ms.assetid | keywords | topic_type | ms.topic | api_name | api_location | api_type | ms.author | ms.date | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
RemoveAccessPath Method of the MSFT_Partition Class |
Remove the access path from the partition. |
0238bfe6-2e36-44e2-81ee-04bfa159ef47 |
|
|
reference |
|
|
|
windowssdkdev |
05/31/2018 |
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.
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.
Requirement | Value |
---|---|
Minimum supported client | Windows 8 [desktop apps only] |
Minimum supported server | Windows Server 2012 [desktop apps only] |
Namespace | Root\Microsoft\Windows\Storage |
MOF | Storagewmi.mof |