computestorage.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. #ifndef _HYPERV_COMPUTESTORAGE_H_
  7. #define _HYPERV_COMPUTESTORAGE_H_
  8. #include <apiset.h>
  9. #include <apisetcconv.h>
  10. #include <minwindef.h>
  11. #include <winapifamily.h>
  12. #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. HRESULT WINAPI HcsImportLayer (PCWSTR layerPath, PCWSTR sourceFolderPath, PCWSTR layerData);
  17. HRESULT WINAPI HcsExportLayer (PCWSTR layerPath, PCWSTR exportFolderPath, PCWSTR layerData, PCWSTR options);
  18. HRESULT WINAPI HcsExportLegacyWritableLayer (PCWSTR writableLayerMountPath, PCWSTR writableLayerFolderPath, PCWSTR exportFolderPath, PCWSTR layerData);
  19. HRESULT WINAPI HcsDestroyLayer (PCWSTR layerPath);
  20. HRESULT WINAPI HcsSetupBaseOSLayer (PCWSTR layerPath, HANDLE vhdHandle, PCWSTR options);
  21. HRESULT WINAPI HcsInitializeWritableLayer (PCWSTR writableLayerPath, PCWSTR layerData, PCWSTR options);
  22. HRESULT WINAPI HcsInitializeLegacyWritableLayer (PCWSTR writableLayerMountPath, PCWSTR writableLayerFolderPath, PCWSTR layerData, PCWSTR options);
  23. HRESULT WINAPI HcsAttachLayerStorageFilter (PCWSTR layerPath, PCWSTR layerData);
  24. HRESULT WINAPI HcsDetachLayerStorageFilter (PCWSTR layerPath);
  25. HRESULT WINAPI HcsFormatWritableLayerVhd (HANDLE vhdHandle);
  26. HRESULT WINAPI HcsGetLayerVhdMountPath (HANDLE vhdHandle, PWSTR *mountPath);
  27. HRESULT WINAPI HcsSetupBaseOSVolume (PCWSTR layerPath, PCWSTR volumePath, PCWSTR options);
  28. #ifdef __cplusplus
  29. }
  30. #endif
  31. #endif /* WINAPI_PARTITION_DESKTOP */
  32. #endif /* _HYPERV_COMPUTESTORAGE_H_ */