Skip to content

Latest commit

 

History

History
82 lines (65 loc) · 3.17 KB

nf-iscsidsc-reportiscsitargetsa.md

File metadata and controls

82 lines (65 loc) · 3.17 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:iscsidsc.ReportIScsiTargetsA
ReportIScsiTargetsA function (iscsidsc.h)
ReportIscsiTargets function retrieves the list of targets that the iSCSI initiator service has discovered, and can also instruct the iSCSI initiator service to refresh the list. (ANSI)
ReportIScsiTargetsA
ReportIscsiTargetsA
iscsidsc/ReportIscsiTargetsA
iscsidisc\reportiscsitargets.htm
iSCSIDisc
c4b2bcc4-d9d3-4fd3-bbca-03b13670054f
12/05/2018
ReportIScsiTargetsA, ReportIscsiTargets, ReportIscsiTargets function [iSCSI Discovery Library API], ReportIscsiTargetsA, ReportIscsiTargetsW, iscsidisc.reportiscsitargets, iscsidsc/ReportIscsiTargets, iscsidsc/ReportIscsiTargetsA, iscsidsc/ReportIscsiTargetsW
iscsidsc.h
Windows
Windows Vista [desktop apps only]
Windows Server 2008 [desktop apps only]
ReportIscsiTargetsW (Unicode) and ReportIscsiTargetsA (ANSI)
Iscsidsc.lib
Iscsidsc.dll
Windows
19H1
ReportIScsiTargetsA
iscsidsc/ReportIScsiTargetsA
c++
APIRef
kbSyntax
DllExport
Iscsidsc.dll
ReportIscsiTargets
ReportIscsiTargetsA
ReportIscsiTargetsW

ReportIScsiTargetsA function

-description

The ReportIscsiTargets function retrieves the list of targets that the iSCSI initiator service has discovered, and can also instruct the iSCSI initiator service to refresh the list.

-parameters

-param ForceUpdate [in]

If true, the iSCSI initiator service updates the list of discovered targets before returning the target list data to the caller.

-param BufferSize [in, out]

A ULONG value that specifies the number of list elements contained by the Buffer parameter.

-param Buffer [out]

Pointer to a buffer that receives and contains the list of targets. The list consists of null-terminated strings. The last string, however, is double null-terminated.

-returns

Returns ERROR_SUCCESS if the operation succeeds and ERROR_INSUFFICIENT_BUFFER if the buffer size is insufficient to contain the output data. Otherwise, ReportIscsiTargets returns the appropriate Win32 or iSCSI error code on failure.

-see-also

ReportIscsiSendTargetPortals

-remarks

Note

The iscsidsc.h header defines ReportIScsiTargets 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.