SetIScsiGroupPresharedKey function (iscsidsc.h)
The SetIscsiGroupPresharedKey function establishes the default group preshared key for all initiators on the computer.
Syntax
ISDSC_STATUS ISDSC_API SetIScsiGroupPresharedKey(
[in] ULONG KeyLength,
[in] PUCHAR Key,
BOOLEAN Persist
);
Parameters
[in] KeyLength
The size, in bytes, of the preshared key.
[in] Key
The buffer that contains the preshared key.
Persist
If true, this parameter indicates that the preshared key information will be stored in non-volatile memory and will persist across restarts of the computer or the iSCSI initiator service.
Return value
Returns ERROR_SUCCESS if the operation succeeds. Otherwise, it returns the appropriate Win32 or iSCSI error code.
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 |