Information
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.

UnregisterSubsystem method of the MSFT_StorageProvider class

Unregisters a subsystem. The provider will no longer manage this subsystem.

Syntax


UInt32 UnregisterSubsystem(
  [in]  String  Subsystem,
  [in]  String  StorageSubSystemUniqueId,
  [in]  Boolean Force,
  [out] String  ExtendedStatus
);

Parameters

Subsystem [in]

The subsystem to unregister, an MSFT_StorageSubSystem object.

StorageSubSystemUniqueId [in]

Unique identifier of the storage subsystem.

Force [in]

TRUE to force the unregister operation when the subsystem is registered with the credentials of a different user; otherwise, FALSE.

ExtendedStatus [out]

Extended error information from the storage provider in a MSFT_StorageExtendedStatus object. The information is implementation-specific.

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 connect to the storage provider. (46000)
The storage provider cannot connect to the storage subsystem. (46001)
Cannot register/unregister the storage subsystem on local host. (46004)
The storage subsystem is not registered. (46005)
This subsystem is already registered with another user's credentials. Use the -Force flag to remove the existing registration and add a new one anyway. (46007)

Requirements

Minimum supported client

Windows 8.1 [desktop apps only]

Minimum supported server

Windows Server 2012 R2 [desktop apps only]

Namespace

Root\Microsoft\Windows\Storage

MOF

Storagewmi.mof

See also

MSFT_StorageProvider

 

 

Show: