RemovePersistentIScsiDeviceA function (iscsidsc.h)

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

Syntax

ISDSC_STATUS ISDSC_API RemovePersistentIScsiDeviceA(
  [in] PSTR DevicePath
);

Parameters

[in] DevicePath

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.

Remarks

Note

The iscsidsc.h header defines RemovePersistentIScsiDevice as an alias which automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header iscsidsc.h
Library Iscsidsc.lib
DLL Iscsidsc.dll

See also

AddPersistentIscsiDevice

ClearPersistentIscsiDevices

RemoveIscsiPersistentTarget

ReportIscsiPersistentLogins

ReportPersistentIscsiDevices

SetupPersistentIscsiDevices