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.GetIScsiInitiatorNodeNameA |
GetIScsiInitiatorNodeNameA function (iscsidsc.h) |
The GetIscsiInitiatorNodeName function retrieves the common initiator node name that is used when establishing sessions from the local machine. (ANSI) |
|
iscsidisc\getiscsiinitiatornodename.htm |
iSCSIDisc |
592d9cd8-5944-479c-ba21-7cf911e0a5b9 |
12/05/2018 |
GetIScsiInitiatorNodeNameA, GetIscsiInitiatorNodeName, GetIscsiInitiatorNodeName function [iSCSI Discovery Library API], GetIscsiInitiatorNodeNameA, GetIscsiInitiatorNodeNameW, iscsidisc.getiscsiinitiatornodename, iscsidsc/GetIscsiInitiatorNodeName, iscsidsc/GetIscsiInitiatorNodeNameA, iscsidsc/GetIscsiInitiatorNodeNameW |
iscsidsc.h |
Windows |
Windows Vista [desktop apps only] |
Windows Server 2008 [desktop apps only] |
GetIscsiInitiatorNodeNameW (Unicode) and GetIscsiInitiatorNodeNameA (ANSI) |
Iscsidsc.lib |
Iscsidsc.dll |
Windows |
19H1 |
|
|
|
|
|
|
The GetIscsiInitiatorNodeName function retrieves the common initiator node name that is used when establishing sessions from the local machine.
A caller-allocated buffer that, on output, receives the node name. The buffer must be large enough to hold MAX_ISCSI_NAME_LEN+1 bytes.
Returns ERROR_SUCCESS if the operation succeeds and the appropriate Win32 or iSCSI error code if the operation fails.
All initiator Host Bus Adapters, both software and hardware, use the same node name when establishing sessions.
Note
The iscsidsc.h header defines GetIScsiInitiatorNodeName 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.