Edit

HcnRegisterGuestNetworkServiceCallback

Description

Registers a callback function to receive GuestNetworkService notifications.

Syntax

HRESULT
WINAPI
HcnRegisterGuestNetworkServiceCallback(
    _In_ HCN_GUESTNETWORKSERVICE GuestNetworkService,
    _In_ HCN_NOTIFICATION_CALLBACK Callback,
    _In_ void* Context,
    _Outptr_ HCN_CALLBACK* CallbackHandle
    );

Parameters

GuestNetworkService

The HCN_GUESTNETWORKSERVICE for the callback.

Callback

The HCN_NOTIFICATION_CALLBACK for the callback.

Context

Context that is provided on the callbacks.

CallbackHandle

Receives a HCN_CALLBACK. It is the responsibility of the caller to release the handle using HcnUnregisterGuestNetworkServiceCallback once it is no longer in use.

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