ReportPersistentIScsiDevicesW function (iscsidsc.h)

The ReportPersistentIscsiDevices function retrieves the list of persistently bound volumes and devices.

Syntax

ISDSC_STATUS ISDSC_API ReportPersistentIScsiDevicesW(
  [in, out] PULONG BufferSizeInChar,
  [out]     PWCHAR Buffer
);

Parameters

[in, out] BufferSizeInChar

A ULONG value that specifies the number of list elements contained by the Buffer parameter.

[out] Buffer

Pointer to a buffer that receives the list of volumes and devices that are persistently bound. The list consists of null-terminated strings. The last string, however, is double null-terminated.

Return value

Returns ERROR_SUCCESS if the operation succeeds or ERROR_INSUFFICIENT_BUFFER if the buffer was insufficient to receive the output data. Otherwise, ReportPersistentiScsiDevices returns the appropriate Win32 or iSCSI error code on failure.

Remarks

Note

The iscsidsc.h header defines ReportPersistentIScsiDevices 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

   
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

RemovePersistentIscsiDevice

ReportIscsiPersistentLogins

SetupPersistentIscsiDevices