Purpose
This function writes buffer contents to the object, starting from the current position. This function is used by partner scan function for disinfection.
Syntax
typedef KAV_SC_RESULT (__cdecl *PFN_WRITE)(
KAV_SCAN_CONTEXT context,
const void* buff,
unsigned long bytesToWrite,
unsigned long* bytesWritten);
Parameters
The PFN_WRITE function type has the following parameters.
PFN_WRITE 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 |
|
In |
|
Buffer for writing to the object. |
|
In |
|
Number of bytes to write to the object. |
|
Out |
|
Number of bytes that were written to the object. You can specify |
Return value
The return value of PFN_WRITE is one of the values of the KAV_SC_RESULT enumeration type. The following return values are possible.
PFN_WRITE return values
Return value |
Description |
|---|---|
|
Operation completed successfully. |
|
Operation was canceled by KAV SDK. Check that the monitor cleaning mode allows disinfection. |
|
An error occurred during the operation. See KAV SDK logs for more information. |
|
One or more arguments passed to the function are invalid. |
Remarks
PFN_WRITE will return SC_R_FAIL if object modification is not enabled. For more information, see PFN_ONDETECT.