Adds a single WIM data source to a volume such that files can be created on the volume which are stored within the WIM.
HRESULT WofWimAddEntry( PCWSTR VolumeName, PCWSTR WimPath, DWORD WimType, DWORD WimIndex, PLARGE_INTEGER DataSourceId );
The path to the volume upon which files residing in the WIM should be created.
The path to the WIM file which should be used to provide data to files.
The type of WIM. Can be WIM_BOOT_OS_WIM or WIM_BOOT_NOT_OS_WIM.
Index of the image in the WIM which is applied.
On successful return, contains the data source used to identify the entry. This data source can be used to create new files with WofSetFileDataLocation.
If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.