RefreshIscsiSendTargetPortal function

The RefreshIscsiSendTargetPortal function instructs the iSCSI initiator service to establish a discovery session with the indicated target portal and transmit a SendTargets request to refresh the list of discovered targets for the iSCSI initiator service.

Syntax


HRESULT WINAPI RefreshIscsiSendTargetPortal(
  _In_opt_  PTCHAR InitiatorInstance,
  _In_      ULONG InitiatorPortNumber,
  _In_      PISCSI_TARGET_PORTAL Portal
);

Parameters

InitiatorInstance [in, optional]

The name of the Host Bus Adapter (HBA) to use for the SendTargets request. If null, the iSCSI initiator service uses any HBA that can reach the indicated target portal is chosen.

InitiatorPortNumber [in]

The port number on the HBA to use for the SendTargets request. If the value is ISCSI_ALL_INITIATOR_PORTS, the initiator HBA will choose the appropriate port based upon current routing information.

Portal [in]

A pointer to a structure of type ISCSI_TARGET_PORTAL indicating the portal to which the iSCSI initiator service sends the SendTargets request to refresh the list of targets.

Return value

Returns ERROR_SUCCESS if the operation succeeds. Otherwise, it returns the appropriate Win32 or iSCSI error code.

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

RefreshIscsiSendTargetPortalW (Unicode) and RefreshIscsiSendTargetPortalA (ANSI)

See also

ISCSI_TARGET_PORTAL

 

 

Community Additions

ADD
Show:
© 2015 Microsoft