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 |
|
|
|
|
// 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"));