Filter Password Protected Files
This section describes how to filter password-protected non-container files with the C API.
To filter password-protected files
- Call the fpInit() or fpInitWithLicenseData() function.
-
Call the fpFilterConfig() function with the following arguments:
Argument Parameter nType
KVFLT_SETSRCPASSWORD
nValue
TRUE
pData
The source file password. The password is a null-terminated string with a maximum length of 255 characters (the final byte is null). For example:
(*fpFilterConfig)(pKVFilter, KVFLT_SETSRCPASSWORD, TRUE, password);
where
password
is a null-terminated string of 255 or fewer characters. - Call the fpFilterFile() or fpFilterStream() function.