VirtFsExtract

Top  Previous  Next

int _stdcall

VirtFsExtract(

 IN  PACKAGE_HANDLE            hPkg,

 IN  LPCWSTR                   FileName,

 IN  LPCWSTR                   TargetDir )

Extracts a specific file from the virtual application package, and saves it somewhere on the disk.

Parameters

hPkg [in]

Virtual application package handle, returned by PackageOpen.

FileName [in]

Name of the file to be deleted from package, in a virtual format (i.e. "%Program Files%\MyApp\File.ext").

Return value

Returns APIRET_SUCCESS if successful, APIRET_NOT_FOUND if the file was not found, or APIRET_FILE_CREATE_ERROR if the file could not be saved.