Windows Dev Center

SetIscsiInitiatorNodeName function

The SetIscsiInitiatorNodeName function establishes an initiator node name for the computer. This name is utilized by any initiator nodes on the computer that are communicating with other nodes.

Syntax


HRESULT WINAPI SetIscsiInitiatorNodeName(
   PTCHAR InitiatorNodeName
);

Parameters

InitiatorNodeName

The initiator node name. If this parameter is null, initiators use a default initiator node name based upon the computer name.

Return value

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

Remarks

The SetIscsiInitiatorNodeName routine does not verify that the format of the name in InitiatorNodeName is correct.

Some hardware initiator drivers can respond immediately to a change of the node name, while others must be restarted to finalize the change to the node name.

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

SetIscsiInitiatorNodeNameW (Unicode) and SetIscsiInitiatorNodeNameA (ANSI)

 

 

Community Additions

ADD
Show:
© 2015 Microsoft