RemovePersistentIscsiDevice function

The RemovePersistentIscsiDevice function removes a device or volume from the list of persistently bound iSCSI volumes.

Syntax


HRESULT WINAPI RemovePersistentIscsiDevice(
  _In_ PTCHAR VolumePath
);

Parameters

VolumePath [in]

A drive letter, mount point, or device path for the volume or device.

Return value

Returns ERROR_SUCCESS if the operation succeeds and ISDSC_DEVICE_NOT_FOUND if the volume that is specified by VolumePath is not in the list of persistently bound volumes.

Otherwise, RemovePersistentIscsiDevice returns the appropriate Win32 or iSCSI error code on failure.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Iscsidsc.h

Library

Iscsidsc.lib

DLL

Iscsidsc.dll

Unicode and ANSI names

RemovePersistentIscsiDeviceW (Unicode) and RemovePersistentIscsiDeviceA (ANSI)

See also

AddPersistentIscsiDevice
ClearPersistentIscsiDevices
RemoveIscsiPersistentTarget
ReportIscsiPersistentLogins
ReportPersistentIscsiDevices
SetupPersistentIscsiDevices

 

 

Show: