Adds DH-CHAP (Diffie Hellman - Challenge Handshake Authentication Protocol) parameters to a synthetic Fibre Channel port on a virtual machine. This method will fail if the virtual machine is running.
Syntax
uint32 AddFibreChannelChap(
[in] string FcPortSettings[],
[in] uint8 SecretEncoding,
[in] uint8 SharedSecret[]
);
Parameters
FcPortSettings [in]
An array of strings that contain an embedded instance of the Msvm_SyntheticFcPortSettingData class that describes settings for synthetic Fibre Channel ports for virtual machines. The InstanceID property of each of these instances identifies the elements to be modified.
SecretEncoding [in]
Specifies the type of encoding for the shared secret.
Printable ASCII (1)
Binary (2)
SharedSecret [in]
Specifies the shared secret.
Return value
This method returns one of the following values.
Completed with No Error (0)
Failed (32768)
Access Denied (32769)
Not Supported (32770)
Status is unknown (32771)
Timeout (32772)
Invalid parameter (32773)
System is in use (32774)
Invalid state for this operation (32775)
Incorrect data type (32776)
System is not available (32777)
Out of memory (32778)
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows 8 [desktop apps only] |
| Minimum supported server | Windows Server 2012 [desktop apps only] |
| Namespace | Root\Virtualization\V2 |
| MOF | WindowsVirtualization.V2.mof |
| DLL | Vmms.exe |
See also
Msvm_VirtualSystemManagementService
Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
