ReportPersistentIScsiDevicesW function (iscsidsc.h)
The ReportPersistentIscsiDevices function retrieves the list of persistently bound volumes and devices.
ISDSC_STATUS ISDSC_API ReportPersistentIScsiDevicesW( [in, out] PULONG BufferSizeInChar, [out] PWCHAR Buffer );
[in, out] BufferSizeInChar
A ULONG value that specifies the number of list elements contained by the Buffer parameter.
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.
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.
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.
|Minimum supported client||Windows Vista [desktop apps only]|
|Minimum supported server||Windows Server 2008 [desktop apps only]|