RemoveIscsiSendTargetPortal function

The RemoveIscsiSendTargetPortal function removes a portal from the list of portals to which the iSCSI initiator service sends SendTargets requests for target discovery.

Syntax


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

Parameters

InitiatorInstance [in, optional]

The name of the Host Bus Adapter (HBA) that the iSCSI initiator service uses to establish a discovery session and perform SendTargets requests. A value of null indicates that the iSCSI initiator service will use any HBA that is capable of accessing the target portal.

InitiatorPortNumber [in, optional]

The port number on the HBA that the iSCSI initiator service use to perform SendTargets requests.

Portal [in]

A pointer to a structure of type ISCSI_TARGET_PORTAL that specifies the target portal that the iSCSI initiator service removes from its list of portals.

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

RemoveIscsiSendTargetPortalW (Unicode) and RemoveIscsiSendTargetPortalA (ANSI)

See also

ISCSI_TARGET_PORTAL

 

 

Community Additions

ADD
Show:
© 2014 Microsoft