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
Registers a callback function to receive service notifications.
Syntax
HRESULT
WINAPI
HcnRegisterServiceCallback(
_In_ HCN_NOTIFICATION_CALLBACK Callback,
_In_ void* Context,
_Outptr_ HCN_CALLBACK* CallbackHandle
);
Parameters
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 HcnUnregisterServiceCallback 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 |