WofWimAddEntry function (wofapi.h)
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(
[in] PCWSTR VolumeName,
[in] PCWSTR WimPath,
[in] DWORD WimType,
[in] DWORD WimIndex,
[out] PLARGE_INTEGER DataSourceId
);
Parameters
[in] VolumeName
The path to the volume upon which files residing in the WIM should be created.
[in] WimPath
The path to the WIM file which should be used to provide data to files.
[in] WimType
The type of WIM. Can be WIM_BOOT_OS_WIM or WIM_BOOT_NOT_OS_WIM.
[in] WimIndex
Index of the image in the WIM which is applied.
[out] 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
Requirement | Value |
---|---|
Target Platform | Windows |
Header | wofapi.h |
Library | Wofutil.lib |
DLL | Wofutil.dll |