Panoptes 1.0.0
Endpoint Detection and Response
Loading...
Searching...
No Matches
ResourceCore.h
Go to the documentation of this file.
1#pragma once
2
3#ifdef RESOURCES_EXPORTS
4 #define RESOURCES_API __declspec(dllexport)
5#else
6 #define RESOURCES_API __declspec(dllimport)
7#endif
8
9// Error codes (imported from resource.h)
10#define NOT_SET 101
11#define PANO_SUCCESS 102
12#define FILE_NOT_FOUND 103
13#define PERMISSION_DENIED 104
14#define INVALID_INPUT 105
15#define MUTEX_NOT_SET 106
16#define MUTEX_SET 107
17#define DB_INITIALIZATION 108
18#define DB_DELETE 109
19#define CONTAINER_START 110
20#define WINDOWS_ERR 111
21#define INVALID_HANDLE 112
22#define IOCTL_FAILED 113
23#define EVENT_CREATE 114
24#define NAMED_PIPE_CREATE 115
25#define KERNEL_PIPE 116
26#define NOT_INSTALLED 117
27#define CONTROL_SERVICE 118
28#define PANO_SERVICE_RUNNING 119
29#define PANO_SERVICE_STOPPED 120
30#define ERROR_STARTING_SERVICE 121
31#define ERROR_STOPPING_SERVICE 122
32#define CLEAN_HANDLE 123
33#define EXT_SELECTED 124
34#define NOT_ADMIN 125
35#define NO_CONFIG 126
36#define START_TRACE 127
37#define GRPC_SERVER_ERROR 128
38#define EXT_INVALID 129
39#define DEBUGGER 130
40
41
42// Add your DLL function declarations here
43extern "C" {
44
45RESOURCES_API int GetResourceErrorCode(const char* errorName);
46RESOURCES_API const char* GetResourceErrorString(int errorCode);
47
48}
#define RESOURCES_API
Definition ResourceCore.h:6
RESOURCES_API int GetResourceErrorCode(const char *errorName)
RESOURCES_API const char * GetResourceErrorString(int errorCode)