Skip to content

Latest commit

 

History

History
67 lines (50 loc) · 1.35 KB

HcsSetProcessCallback.md

File metadata and controls

67 lines (50 loc) · 1.35 KB
title description author ms.author ms.topic ms.service ms.date api_name api_location api_type topic_type
HcsSetProcessCallback
HcsSetProcessCallback
sethmanheim
sethm
reference
virtualization
06/09/2021
HcsSetProcessCallback
computecore.dll
DllExport
apiref

HcsSetProcessCallback

Description

Registers a callback function to receive notifications for a process in a compute system.

Syntax

HRESULT WINAPI
HcsSetProcessCallback(
    _In_ HCS_PROCESS process,
    _In_ HCS_EVENT_OPTIONS callbackOptions,
    _In_ void* context,
    _In_ HCS_EVENT_CALLBACK callback
    );

Parameters

process

The handle to the process for that the callback is registered.

callbackOptions

The option for callback, using HCS_EVENT_OPTIONS.

context

Optional pointer to a context that is passed to the callback.

callback

Callback function that is invoked for events on the process.

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 ComputeCore.h
Library ComputeCore.lib
Dll ComputeCore.dll