EDN Admin
Well-known member
anybody knows how to convert the following struct (taken from clamav source code) into c# <br/><br/>
<pre lang=x-cpp>struct cl_engine {
uint32_t refcount;
uint32_t sdb;
uint32_t dboptions;
uint32_t dbversion[2];
uint32_t ac_only;
uint32_t ac_mindepth;
uint32_t ac_maxdepth;
char *tmpdir;
uint32_t keeptmp;
uint64_t maxscansize;
uint64_t maxfilesize;
uint32_t maxreclevel;
uint32_t maxfiles;
uint32_t min_cc_count;
uint32_t min_ssn_count;
struct cli_matcher **root;
struct cli_matcher *md5_hdb;
struct cli_matcher *md5_mdb;
struct cli_matcher *md5_fp;
struct cli_cdb *cdb;
struct regex_matcher *whitelist_matcher;
struct regex_matcher *domainlist_matcher;
struct phishcheck *phishcheck;
struct cli_dconf *dconf;
struct cli_ftype *ftypes;
struct cli_matcher *ignored;
char *pua_cats;
struct icon_matcher *iconcheck;
struct CACHE *cache;
struct cli_dbinfo *dbinfo;
mpool_t *mempool;
struct cli_all_bc bcs;
unsigned *hooks[_BC_LAST_HOOK - _BC_START_HOOKS];
unsigned hooks_cnt[_BC_LAST_HOOK - _BC_START_HOOKS];
unsigned hook_lsig_ids;
enum bytecode_security bytecode_security;
};
[/code]
<br/>
View the full article
<pre lang=x-cpp>struct cl_engine {
uint32_t refcount;
uint32_t sdb;
uint32_t dboptions;
uint32_t dbversion[2];
uint32_t ac_only;
uint32_t ac_mindepth;
uint32_t ac_maxdepth;
char *tmpdir;
uint32_t keeptmp;
uint64_t maxscansize;
uint64_t maxfilesize;
uint32_t maxreclevel;
uint32_t maxfiles;
uint32_t min_cc_count;
uint32_t min_ssn_count;
struct cli_matcher **root;
struct cli_matcher *md5_hdb;
struct cli_matcher *md5_mdb;
struct cli_matcher *md5_fp;
struct cli_cdb *cdb;
struct regex_matcher *whitelist_matcher;
struct regex_matcher *domainlist_matcher;
struct phishcheck *phishcheck;
struct cli_dconf *dconf;
struct cli_ftype *ftypes;
struct cli_matcher *ignored;
char *pua_cats;
struct icon_matcher *iconcheck;
struct CACHE *cache;
struct cli_dbinfo *dbinfo;
mpool_t *mempool;
struct cli_all_bc bcs;
unsigned *hooks[_BC_LAST_HOOK - _BC_START_HOOKS];
unsigned hooks_cnt[_BC_LAST_HOOK - _BC_START_HOOKS];
unsigned hook_lsig_ids;
enum bytecode_security bytecode_security;
};
[/code]
<br/>
View the full article