|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
-
-
- #ifndef snfmultidll_included
- #define snfmultidll_included
-
- const int snf_SUCCESS = 0;
- const int snf_ERROR_CMD_LINE = 65;
- const int snf_ERROR_LOG_FILE = 66;
- const int snf_ERROR_RULE_FILE = 67;
- const int snf_ERROR_RULE_DATA = 68;
- const int snf_ERROR_RULE_AUTH = 73;
- const int snf_ERROR_MSG_FILE = 69;
- const int snf_ERROR_ALLOCATION = 70;
- const int snf_ERROR_BAD_MATRIX = 71;
- const int snf_ERROR_MAX_EVALS = 72;
- const int snf_ERROR_UNKNOWN = 99;
-
- const int snf_ERROR_NO_HANDLE = -1;
- const int snf_ERROR_SCAN_FAILED = -2;
- const int snf_ERROR_EXCEPTION = -3;
-
-
-
-
-
- const int snf_IP_Unknown = 0;
- const int snf_IP_White = 1;
- const int snf_IP_Normal = 2;
- const int snf_IP_New = 3;
- const int snf_IP_Caution = 4;
- const int snf_IP_Black = 5;
- const int snf_IP_Truncate = 6;
-
-
-
- const double snf_ReputationMehResult = 0.0;
- const double snf_ReputationBadResult = 1.0;
- const double snf_ReputationGoodResult = -1.0;
-
-
- #define IMP __declspec(dllimport)
- extern "C" {
-
- IMP int setThrottle(int Threads);
- IMP int startupSNF(char* Path);
- IMP int startupSNFAuthenticated(char* Path, char* Lic, char* Auth);
- IMP int shutdownSNF();
- IMP int testIP(unsigned long int IPToCheck);
- IMP double getIPReputation(unsigned long int IPToCheck);
- IMP int scanBuffer(unsigned char* Bfr, int Length, char* Name, int Setup);
- IMP int scanFile(char* FilePath, int Setup);
- IMP int getScanXHeaders(int ScanHandle, char** Bfr, int* Length);
- IMP int getScanXMLLog(int ScanHandle, char** Bfr, int* Length);
- IMP int getScanClassicLog(int ScanHandle, char** Bfr, int* Length);
- IMP int getScanResult(int ScanHandle);
- IMP int closeScan(int ScanHandle);
-
- }
-
- #endif
|