ReportIscsiSendTargetPortals function

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

Syntax


HRESULT WINAPI ReportIscsiSendTargetPortals(
  _Out_    PULONG PortalCount,
  _Inout_  PISCSI_TARGET_PORTAL_INFO 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.

PortalInfo [in, out]

Pointer to an array of elements contained in ISCSI_TARGET_PORTAL_INFO structures 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 buffer size of Buffer is insufficient to contain the output data.

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

ReportIscsiSendTargetPortalsW (Unicode) and ReportIscsiSendTargetPortalsA (ANSI)

See also

ISCSI_TARGET_PORTAL_INFO

 

 

Community Additions

ADD
Show:
© 2015 Microsoft