| 1 | /** |
| 2 | * This file has no copyright assigned and is placed in the Public Domain. |
| 3 | * This file is part of the mingw-w64 runtime package. |
| 4 | * No warranty is given; refer to the file DISCLAIMER.PD within this package. |
| 5 | */ |
| 6 | |
| 7 | #ifndef _HYPERV_COMPUTESTORAGE_H_ |
| 8 | #define _HYPERV_COMPUTESTORAGE_H_ |
| 9 | |
| 10 | #include <apiset.h> |
| 11 | #include <apisetcconv.h> |
| 12 | #include <minwindef.h> |
| 13 | #include <winapifamily.h> |
| 14 | |
| 15 | #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) |
| 16 | |
| 17 | #ifdef __cplusplus |
| 18 | extern "C" { |
| 19 | #endif |
| 20 | |
| 21 | HRESULT WINAPI HcsImportLayer (PCWSTR layerPath, PCWSTR sourceFolderPath, PCWSTR layerData); |
| 22 | HRESULT WINAPI HcsExportLayer (PCWSTR layerPath, PCWSTR exportFolderPath, PCWSTR layerData, PCWSTR options); |
| 23 | HRESULT WINAPI HcsExportLegacyWritableLayer (PCWSTR writableLayerMountPath, PCWSTR writableLayerFolderPath, PCWSTR exportFolderPath, PCWSTR layerData); |
| 24 | HRESULT WINAPI HcsDestroyLayer (PCWSTR layerPath); |
| 25 | HRESULT WINAPI HcsSetupBaseOSLayer (PCWSTR layerPath, HANDLE vhdHandle, PCWSTR options); |
| 26 | HRESULT WINAPI HcsInitializeWritableLayer (PCWSTR writableLayerPath, PCWSTR layerData, PCWSTR options); |
| 27 | HRESULT WINAPI HcsInitializeLegacyWritableLayer (PCWSTR writableLayerMountPath, PCWSTR writableLayerFolderPath, PCWSTR layerData, PCWSTR options); |
| 28 | HRESULT WINAPI HcsAttachLayerStorageFilter (PCWSTR layerPath, PCWSTR layerData); |
| 29 | HRESULT WINAPI HcsDetachLayerStorageFilter (PCWSTR layerPath); |
| 30 | HRESULT WINAPI HcsFormatWritableLayerVhd (HANDLE vhdHandle); |
| 31 | HRESULT WINAPI HcsGetLayerVhdMountPath (HANDLE vhdHandle, PWSTR *mountPath); |
| 32 | HRESULT WINAPI HcsSetupBaseOSVolume (PCWSTR layerPath, PCWSTR volumePath, PCWSTR options); |
| 33 | HRESULT WINAPI HcsAttachOverlayFilter (PCWSTR VolumeMountPoint, PCWSTR LayerData); |
| 34 | HRESULT WINAPI HcsDetachOverlayFilter (PCWSTR VolumeMountPoint, PCWSTR LayerData); |
| 35 | |
| 36 | #ifdef __cplusplus |
| 37 | } |
| 38 | #endif |
| 39 | |
| 40 | #endif /* WINAPI_PARTITION_DESKTOP */ |
| 41 | |
| 42 | #endif /* _HYPERV_COMPUTESTORAGE_H_ */ |