Skip to content

Latest commit

 

History

History
61 lines (46 loc) · 1.47 KB

File metadata and controls

61 lines (46 loc) · 1.47 KB
title description author ms.author ms.topic ms.service ms.date api_name api_location api_type topic_type
HcsCreateOperation
HcsCreateOperation
sethmanheim
sethm
reference
virtualization
06/09/2021
HcsCreateOperation
computecore.dll
DllExport
apiref

HcsCreateOperation

Description

Creates a new operation.

Syntax

HCS_OPERATION WINAPI
HcsCreateOperation(
    _In_opt_ void*                    context
    _In_opt_ HCS_OPERATION_COMPLETION callback
    );

Parameters

context

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

callback

Optional pointer to an HCS_OPERATION_COMPLETION callback to be invoked when the operation completes.

Return Values

Returns the HCS_OPERATION handle to the newly created operation on success, NULL if resources required for the operation couldn't be allocated. It is the responsibility of the caller to release the operation using HcsCloseOperation once it is no longer used.

Remarks

Refer to the async model sample code for details on how to use HCS operations.

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