GetIScsiInitiatorNodeNameA function (iscsidsc.h)
The GetIscsiInitiatorNodeName function retrieves the common initiator node name that is used when establishing sessions from the local machine.
Syntax
ISDSC_STATUS ISDSC_API GetIScsiInitiatorNodeNameA(
PCHAR InitiatorNodeName
);
Parameters
InitiatorNodeName
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.
Return value
Returns ERROR_SUCCESS if the operation succeeds and the appropriate Win32 or iSCSI error code if the operation fails.
Remarks
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.
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 |