WofWimAddEntry function

Adds a single WIM data source to a volume such that files can be created on the volume which are stored within the WIM.

Syntax

HRESULT WofWimAddEntry(
  PCWSTR         VolumeName,
  PCWSTR         WimPath,
  DWORD          WimType,
  DWORD          WimIndex,
  PLARGE_INTEGER DataSourceId
);

Parameters

VolumeName

The path to the volume upon which files residing in the WIM should be created.

WimPath

The path to the WIM file which should be used to provide data to files.

WimType

The type of WIM. Can be WIM_BOOT_OS_WIM or WIM_BOOT_NOT_OS_WIM.

WimIndex

Index of the image in the WIM which is applied.

DataSourceId

On successful return, contains the data source used to identify the entry. This data source can be used to create new files with WofSetFileDataLocation.

Return Value

If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

   
Target Platform Windows
Header wofapi.h
Library Wofutil.lib
DLL Wofutil.dll

See Also

FSCTL_ADD_OVERLAY