AddPersistentiScsiDevice

AddPersistentiScsiDevice function

The AddPersistentIscsiDevice function adds a volume device name, drive letter, or mount point symbolic link to the list of iSCSI persistently bound volumes and devices.

Syntax


HRESULT WINAPI AddPersistentIscsiDevice(
  _In_ PTCHAR VolumePath
);

Parameters

VolumePath [in]

A drive letter or symbolic link for a mount point of the volume.

Return value

Returns ERROR_SUCCESS if the operation succeeds. Otherwise, it returns one of the following:

Return codeDescription
ISDSC_DEVICE_NOT_ISCSI_OR_PERSISTENT

The volume or device is not located on a iSCSI target or the session to the iSCSI target is not persistent.

ISDSC_VOLUME_ALREADY_PERSISTENTLY_BOUND

The volume or device is already in the persistent volume or device list.

 

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

AddPersistentIscsiDeviceW (Unicode) and AddPersistentIscsiDeviceA (ANSI)

See also

ClearPersistentScsiDevices
RemoveIscsiPersistentTarget
RemovePersistentIscsiDevice
ReportIscsiPersistentLogins
ReportPersistentIscsiDevices
SetupPersistentIscsiDevices

 

 

Community Additions

ADD
Show:
© 2016 Microsoft