ReportIscsiSendTargetPortalsEx

ReportIscsiSendTargetPortalsEx function

The ReportIscsiSendTargetPortalsEx function retrieves a list of static target portals that the iSCSI initiator service uses to perform automatic discovery with SendTarget requests.

Syntax


HRESULT WINAPI ReportIscsiSendTargetPortalsEx(
  _Out_   PULONG                       PortalCount,
  _Inout_ PULONG                       PortalInfoSize,
  _Inout_ PISCSI_TARGET_PORTAL_INFO_EX PortalInfo
);

Parameters

PortalCount [out]

A pointer to a location that, on input, contains the number of entries in the PortalInfo array. On output, this parameter specifies the number of elements that contain return data.

PortalInfoSize [in, out]

A pointer to a location that, on input, contains the byte-size of the buffer specified by PortalInfo. On output, this parameter specifies the number of bytes retrieved.

PortalInfo [in, out]

Pointer to an array of elements contained in a ISCSI_TARGET_PORTAL_INFO_EX structure that describe the portals that the iSCSI initiator service utilizes to perform discovery with SendTargets requests.

Return value

Returns ERROR_SUCCESS if the operation succeeds and ERROR_INSUFFICIENT_BUFFER if the size of the buffer at PortalInfo is insufficient to contain the output data. Otherwise, ReportIscsiSendTargetPortalsEx 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

ReportIscsiSendTargetPortalsExW (Unicode) and ReportIscsiSendTargetPortalsExA (ANSI)

See also

ISCSI_TARGET_PORTAL_INFO_EX

 

 

Community Additions

ADD
Show:
© 2016 Microsoft