Windows Dev Center

ReportIscsiInitiatorList function

The ReportIscsiInitiatorList function retrieves the list of initiator Host Bus Adapters that are running on the machine.

Syntax


HRESULT WINAPI ReportIscsiInitiatorList(
  _Inout_ ULONG  *BufferSize,
  _Out_   PTCHAR Buffer
);

Parameters

BufferSize [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 retreived data.

Buffer [out]

A buffer that, on output, is filled with the list of initiator names. Each initiator name is a null-terminated string, except for the last initiator name, which is double-null terminated.

Return value

Returns ERROR_SUCCESS if the operation succeeds and ERROR_INSUFFICIENT_BUFFER if the buffer size of Buffer is insufficient to contain the output data.

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

ReportIscsiInitiatorListW (Unicode) and ReportIscsiInitiatorListA (ANSI)

 

 

Community Additions

ADD
Show:
© 2015 Microsoft