Skip to content

Latest commit

 

History

History
27 lines (25 loc) · 732 Bytes

UtilityFunctionSample.md

File metadata and controls

27 lines (25 loc) · 732 Bytes
title description author ms.author ms.topic ms.service ms.date api_name api_location api_type topic_type
Virtual Machine Utilities Samples
Virtual Machine Utilities Samples
sethmanheim
sethm
reference
virtualization
06/09/2021
Virtual Machine Utilities Samples
computecore.dll
DllExport
apiref

Virtual Machine Utilities Samples

Create the file and grant vm access to them

// This assumes "Sample" has been used as the id for a compute system when created through HcsCreateComputeSystem
THROW_IF_FAILED(HcsCreateEmptyRuntimeStateFile(L"emptyfile.vmrs"));
THROW_IF_FAILED(HcsGrantVmAccess(L"Sample", L"emptyfile.vmrs"));