Purpose
This function reads the object into a buffer, starting from the current position. This function is used in partner scan function.
Syntax
typedef KAV_SC_RESULT (__cdecl *PFN_READ)(
KAV_SCAN_CONTEXT context,
void* buff,
unsigned long bytesToRead,
unsigned long* bytesRead);
Parameters
The PFN_SETSIZE function type has the following parameters.
PFN_READ parameters
Name |
In/Out |
Type |
Description |
|---|---|---|---|
|
In |
|
Context of the scan task that was passed to the partner scan function. This parameter is a pointer to |
|
Out |
|
Buffer for reading from the object. |
|
In |
|
Number of bytes to read from the object. |
|
Out |
|
Number of bytes that were read from the object. You can specify |
Return value
The return value of PFN_READ is one of the values of the KAV_SC_RESULT enumeration type. The following return values are possible.
PFN_READ return values
Return value |
Description |
|---|---|
|
Operation completed successfully. |
|
An error occurred during the operation. See KAV SDK logs for more information. |
|
One or more arguments passed to the function are invalid. |