ReportIsnsServerList function

The ReportIsnsServerList function retrieves the list of Internet Storage Name Service (iSNS) servers that the iSCSI initiator service queries for discovered targets.

Syntax


HRESULT WINAPI ReportIsnsServerList(
  _Inout_  PULONG BufferSizeInChar,
  _Out_    PTCHAR Buffer
);

Parameters

BufferSizeInChar [in, out]

A ULONG value that specifies the number of list elements contained by the Buffer parameter. If the operation succeeds, this location receives the size, represented by a number of elements, that corresponds to the number of retrieved iSNS servrs.

Buffer [out]

The buffer that holds the list of iSNS servers on output. Each server name is null terminated, except for the last server name, which is double null terminated.

Return value

Returns ERROR_SUCCESS if the operation succeeds and ERROR_INSUFFICIENT_BUFFER if the buffer is too small to hold the output data.

Otherwise, ReportIsnsServerList 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

ReportIsnsServerListW (Unicode) and ReportIsnsServerListA (ANSI)

See also

AddIsnsServer
RefreshIsnsServer
RemoveIsnsServer

 

 

Community Additions

ADD
Show:
© 2014 Microsoft