IMsmMerge::ExtractFiles method (mergemod.h)
The ExtractFiles method extracts the embedded .cab file from a module and then writes those files to the destination directory. For more information, see the ExtractFiles method of the Merge object.
IMsmMerge2::ExtractFiles Mergemod.dll version 2.0 or later.
Syntax
HRESULT ExtractFiles(
[in] const BSTR Path
);
Parameters
[in] Path
The fully qualified destination directory. A LPCWSTR may be used in place of a BSTR.
Return value
This method can return one of these values.
Value | Meaning |
---|---|
|
Could not create the output path. |
|
Could not create the output file. |
|
Could not write data to the output file. |
|
Unable to access embedded .cab file, or create temporary file. |
|
No embedded .cab file was found. |
|
The function succeeded. |
Remarks
Any files in the destination directory with the same name are overwritten. The path is created if it does not already exist.
ExtractFiles always extracts files using short file names for the path. To use long file names for the path, use the ExtractFilesEx function.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Mergemod.dll 1.0 or later |
Target Platform | Windows |
Header | mergemod.h |
DLL | Mergemod.dll |