Collapse All
Parallels Virtualization SDK
ContentsIndex
PreviousUpNext
PrlDisk_SetCachingPolicy Function
PHT_VIRTUAL_DISK

Set the caching policy for a virtual disk.

Syntax
PRL_RESULT PrlDisk_SetCachingPolicy(
    const PRL_HANDLE Handle, 
    const PRL_UINT32 Policy
);
File

PrlDisk.h

Parameters

Handle
A handle of type PHT_VIRTUAL_DISK identifying the virtual disk.
Policy
Caching policy to set. Possible values: 

PRL_DISK_CACHE_ENABLED - caching enabled. 

PRL_DISK_CACHE_DISABLED - caching disabled. 

PRL_DISK_CACHE_UNCACHED_READ - cache write operations only. This option is available on Mac hosts only.

 

Returns

PRL_RESULT. Possible values: 

PRL_ERR_INVALID_ARG - invalid argument values. 

PRL_ERR_SUCCESS - function completed successfully. 

Links
© 2021 Parallels International GmbH. All rights reserved.