Top  Previous  Next

int _stdcall


 IN  PACKAGE_HANDLE            hPkg,

 IN  LPCWSTR                   FileName,

 IN  ULONG                     FileFlags )

Set the file flags for a specific file or directory.


hPkg [in]

Virtual application package handle, returned by PackageOpen.

FileName [in]

Name of the file or directory, in a virtual format (i.e. "%Program Files%\MyApp\File.ext").

FileFlags [in]

File flags to apply.

Return value

Returns APIRET_SUCCESS if successful, APIRET_NOT_FOUND if the file was not found. APIRET_VIRTFILES_DB_ERROR can be returned in case of an internal error.

For possible FileFlags values, see VirtFsGetFileFlags.