ProcessFileW function

Top  Previous  Next

Unpacks, tests or skips the current archive file.

Syntax C++

int __stdcall ProcessFileW(

                _In_ HANDLE hArcData,

                _In_ int Operation,

                _In_opt_ wchar_t *DestPath,

                _In_opt_ wchar_t *DestName

);

 

Parameters

hArcData [in]

Type: HANDLE

Archive identifier.

Operation [in]

Type: int

Operation code:

Code

Comments

PK_SKIP

0

Skip current file

PK_TEST

1

Test file integrity

PK_EXTRACT

2

Unpack file

DestPath [in, optional]

Type: wchar_t*

Path for unpacking. If not NULL, prepends file name in parameter DestName.

Must be NULL unless operation is PK_EXTRACT.

DestName [in, optional]

Type: wchar_t*

File name or full path for destination file. If DestPath is not NULL, DestPath will prepend DestName.

Must be NULL unless Operation is PK_EXTRACT.

Return value

Type: int

If success returns 0, otherwise returns error code.

Notes

The function always processes just the current file or folder in archive.

To go to the next file call ProcessFileW with parameter PK_SKIP. To get current file properties call function ReadHeaderExW.