Extracts a file from within a Windows® image (.wim) file to a specified location.
BOOL WINAPI WIMExtractImagePath( HANDLE hImage, PWSTR pszImagePath, PWSTR pszDestinationPath, DWORD dwExtractFlags );
Parameters
hImage
[in] A handle to an image opened by the WIMLoadImage function.
pszImagePath
[in] A pointer to a file path inside the image.
pszDestinationPath
[in] A pointer to the full file path of the directory where the image path is to be extracted.
dwExtractFlags
[in] Reserved. Must be zero.
Return Value
If the function succeeds, the return value is nonzero. If the function fails, the return value is zero. To obtain extended error information, call the GetLastError function.