Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Description
Creates an endpoint.
Syntax
HRESULT
WINAPI
HcnCreateEndpoint(
_In_ HCN_NETWORK Network,
_In_ REFGUID Id,
_In_ PCWSTR Settings,
_Out_ PHCN_ENDPOINT Endpoint,
_Outptr_opt_ PWSTR* ErrorRecord
);
Parameters
Network
Network for the new endpoint.
Id
Id for the new endpoint.
Settings
JSON document specifying the settings of the endpoint.
Endpoint
Receives a handle to the newly created endpoint. It is the responsibility of the caller to release the handle using HcnCloseEndpoint once it is no longer in use.
ErrorRecord
Receives a JSON document with extended errorCode information. The caller must release the buffer using CoTaskMemFree.
Return Values
The function returns HRESULT.
Requirements
| Parameter | Description |
|---|---|
| Minimum supported client | Windows 10, version 1809 |
| Minimum supported server | Windows Server 2019 |
| Target Platform | Windows |
| Header | ComputeNetwork.h |
| Library | ComputeNetwork.lib |
| Dll | ComputeNetwork.dll |