PFN_SETSIZE

Purpose

This function changes the size of the object. This function can be used for disinfection in partner scan function.

Syntax

typedef KAV_SC_RESULT (__cdecl *PFN_SETSIZE)(

KAV_SCAN_CONTEXT context,

unsigned long long size);

Parameters

The PFN_SETSIZE function type has the following parameters.

PFN_SETSIZE parameters

Name

In/Out

Type

Description

context

In

KAV_SCAN_CONTEXT

Context of the scan task that was passed to the partner scan function.

This parameter is a pointer to KAV_SCAN_OBJECT structure. For more information, see KAV_SCAN_CONTEXT.

size

In

unsigned long long

New size for the object.

Return value

The return value of PFN_SETSIZE is one of the values of the KAV_SC_RESULT enumeration type. The following return values are possible.

PFN_SETSIZE return values

Return value

Description

SC_R_OK

Operation completed successfully.

SC_R_CANCEL

Operation was canceled by KAV SDK. Check that the monitor cleaning mode allows disinfection.

SC_R_FAIL

An error occurred during the operation. See KAV SDK logs for more information.

SC_R_INVALIDARG

One or more arguments passed to the function are invalid.

Remarks

PFN_SETSIZE will return SC_R_FAIL if object modification is not enabled. For more information, see PFN_ONDETECT.

Page top