HcsGrantVmAccess
This function adds an entry to a files ACL that grants access to the user account used to run the VM. The user account is based on an internal GUID that is derived from the compute system ID of the VM's HCS compute system object. See sample code.
HRESULT WINAPI
HcsGrantVmAccess(
_In_ PCWSTR vmId,
_In_ PCWSTR filePath
);
vmId
Unique Id of the VM's compute system.
filePath
Path to the file for which to update the ACL.
The function returns HRESULT.
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 |