Extract (CABINET.3)
HRESULT Extract ( EXTRACTdest* dest, LPCSTR szCabName )
Extracts the contents of the cabinet file to the specified destination.
dest | [In/Out] | Controls the operation of Extract. See NOTES. |
szCabName | [In] | Filename of the cabinet to extract. |
Success: S_OK.
Failure: E_FAIL.
The following members of the dest struct control the operation of Extract: filelist [In] A linked list of filenames. Extract only extracts. files from the cabinet that are in this list. filecount [Out] Contains the number of files in filelist on. completion. flags [In] See Operation. directory [In] The destination directory. lastfile [Out] The last file extracted.
Operation If flags contains EXTRACT_FILLFILELIST, then filelist will be filled with all the files in the cabinet. If flags contains EXTRACT_EXTRACTFILES, then only the files in the filelist will be extracted from the cabinet. EXTRACT_FILLFILELIST can be called by itself, but EXTRACT_EXTRACTFILES must have a valid filelist in order to succeed. If flags contains both EXTRACT_FILLFILELIST and EXTRACT_EXTRACTFILES, then all the files in the cabinet will be extracted.
Defined in "advpub.h".
Implemented in "dlls/cabinet/cabinet_main.c". source.winehq.org/source/dlls/cabinet/cabinet_main.c
Debug channel "cabinet".
Copyright © 2007 The Wine Project. All trademarks are the property of their respective owners. Visit WineHQ for license details. Generated Mar 2007.