RemoveIScsiStaticTargetA function (iscsidsc.h)

The RemoveIscsiStaticTarget function removes a target from the list of static targets made available to the machine.

Syntax

ISDSC_STATUS ISDSC_API RemoveIScsiStaticTargetA(
  [in] PSTR TargetName
);

Parameters

[in] TargetName

The name of the iSCSI target to remove from the static list.

Return value

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

Remarks

Note

The iscsidsc.h header defines RemoveIScsiStaticTarget as an alias which automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header iscsidsc.h
Library Iscsidsc.lib
DLL Iscsidsc.dll

See also

AddIscsiStaticTarget