You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

37 lines
835 B

#pragma once
#ifndef _XVNENG_H
#define _XVNENG_H
#define LoadFnKey "load"
#define UnloadFnKey "unload"
#define ScanFnKey "scan"
#define ScanAsStringFnKey "scanAsString"
#define CheckUpdatesFnKey "checkUpdates"
#define GetSettingsFnKey "getSettings"
#define VersionFnKey "version"
struct ActionResult
{
bool sucess;
wchar_t* result;
wchar_t* error;
};
struct ScanResult
{
bool sucess;
bool isMalware;
double score;
wchar_t* name;
wchar_t* error;
};
typedef ActionResult(*LoadFn)(bool force);
typedef ActionResult(*UnloadFn)();
typedef ScanResult(*ScanFn)(const wchar_t* filepath);
typedef ActionResult(*ScanAsStringFn)(const wchar_t* filepath);
typedef ActionResult(*CheckUpdatesFn)(bool checkSDKUpdates, bool loadDBAfterUpdate);
typedef ActionResult(*GetSettingsFn)();
typedef wchar_t* (*VersionFn)();
#endif // _XVNENG_H