63a0228192039bc44934d8dc40592375a3d4c2f6
[public/netxms.git] / include / nms_cscp.h
1 /*
2 ** NetXMS - Network Management System
3 ** Copyright (C) 2003-2010 Victor Kirhenshtein
4 **
5 ** This program is free software; you can redistribute it and/or modify
6 ** it under the terms of the GNU General Public License as published by
7 ** the Free Software Foundation; either version 2 of the License, or
8 ** (at your option) any later version.
9 **
10 ** This program is distributed in the hope that it will be useful,
11 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 ** GNU General Public License for more details.
14 **
15 ** You should have received a copy of the GNU General Public License
16 ** along with this program; if not, write to the Free Software
17 ** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 **
19 ** File: nms_cscp.h
20 **
21 **/
22
23 #ifndef _nms_cscp_h_
24 #define _nms_cscp_h_
25
26
27 //
28 // Constants
29 //
30
31 #define NXCP_VERSION 2
32
33 #define SERVER_LISTEN_PORT 4701
34 #define MAX_DCI_STRING_VALUE 256
35 #define CLIENT_CHALLENGE_SIZE 256
36 #define CSCP_HEADER_SIZE 16
37 #define CSCP_ENCRYPTION_HEADER_SIZE 16
38 #define CSCP_EH_UNENCRYPTED_BYTES 8
39 #define CSCP_EH_ENCRYPTED_BYTES (CSCP_ENCRYPTION_HEADER_SIZE - CSCP_EH_UNENCRYPTED_BYTES)
40 #ifdef __64BIT__
41 #define PROXY_ENCRYPTION_CTX ((CSCP_ENCRYPTION_CONTEXT *)_ULL(0xFFFFFFFFFFFFFFFF))
42 #else
43 #define PROXY_ENCRYPTION_CTX ((CSCP_ENCRYPTION_CONTEXT *)0xFFFFFFFF)
44 #endif
45
46 #ifndef EVP_MAX_IV_LENGTH
47 #define EVP_MAX_IV_LENGTH 16
48 #endif
49
50 #define RECORD_ORDER_NORMAL 0
51 #define RECORD_ORDER_REVERSED 1
52
53 #define CSCP_TEMP_BUF_SIZE 65536
54
55
56 //
57 // Ciphers
58 //
59
60 #define CSCP_CIPHER_AES_256 0
61 #define CSCP_CIPHER_BLOWFISH 1
62 #define CSCP_CIPHER_IDEA 2
63 #define CSCP_CIPHER_3DES 3
64
65 #define CSCP_SUPPORT_AES_256 0x01
66 #define CSCP_SUPPORT_BLOWFISH 0x02
67 #define CSCP_SUPPORT_IDEA 0x04
68 #define CSCP_SUPPORT_3DES 0x08
69
70
71 //
72 // Data field structure
73 //
74
75 #ifdef __HP_aCC
76 #pragma pack 1
77 #else
78 #pragma pack(1)
79 #endif
80
81 typedef struct
82 {
83 DWORD dwVarId; // Variable identifier
84 BYTE bType; // Data type
85 BYTE bPadding; // Padding
86 WORD wInt16;
87 union
88 {
89 DWORD dwInteger;
90 QWORD qwInt64;
91 double dFloat;
92 struct
93 {
94 DWORD dwLen;
95 WORD szValue[1];
96 } string;
97 } data;
98 } CSCP_DF;
99
100 #define df_int16 wInt16
101 #define df_int32 data.dwInteger
102 #define df_int64 data.qwInt64
103 #define df_real data.dFloat
104 #define df_string data.string
105
106
107 //
108 // Message structure
109 //
110
111 typedef struct
112 {
113 WORD wCode; // Message (command) code
114 WORD wFlags; // Message flags
115 DWORD dwSize; // Message size (including header) in bytes
116 DWORD dwId; // Unique message identifier
117 DWORD dwNumVars; // Number of variables in message
118 CSCP_DF df[1]; // Data fields
119 } CSCP_MESSAGE;
120
121
122 //
123 // Encrypted payload header
124 //
125
126 typedef struct
127 {
128 DWORD dwChecksum;
129 DWORD dwReserved; // Align to 8-byte boundary
130 } CSCP_ENCRYPTED_PAYLOAD_HEADER;
131
132
133 //
134 // Encrypted message structure
135 //
136
137 typedef struct
138 {
139 WORD wCode; // Should be CMD_ENCRYPTED_MESSAGE
140 BYTE nPadding; // Number of bytes added to the end of message
141 BYTE nReserved;
142 DWORD dwSize; // Size of encrypted message (including encryption header and padding)
143 BYTE data[1]; // Encrypted payload
144 } CSCP_ENCRYPTED_MESSAGE;
145
146
147 //
148 // DCI data header structure
149 //
150
151 typedef struct
152 {
153 DWORD dwItemId;
154 DWORD dwNumRows;
155 DWORD dwDataType;
156 } DCI_DATA_HEADER;
157
158
159 //
160 // DCI data row structure
161 //
162
163 typedef struct
164 {
165 DWORD dwTimeStamp;
166 union
167 {
168 DWORD dwInteger;
169 QWORD qwInt64;
170 double dFloat;
171 UCS2CHAR szString[MAX_DCI_STRING_VALUE];
172 } value;
173 } DCI_DATA_ROW;
174
175 #ifdef __HP_aCC
176 #pragma pack
177 #else
178 #pragma pack()
179 #endif
180
181
182 //
183 // CSCP encryption context
184 //
185
186 typedef struct
187 {
188 int nCipher; // Encryption algorithm
189 BYTE *pSessionKey; // Current session key
190 int nKeyLen; // Session key length in bytes
191 BYTE iv[EVP_MAX_IV_LENGTH]; // Current IV
192 } CSCP_ENCRYPTION_CONTEXT;
193
194
195 //
196 // Data types
197 //
198
199 #define CSCP_DT_INTEGER 0
200 #define CSCP_DT_STRING 1
201 #define CSCP_DT_INT64 2
202 #define CSCP_DT_INT16 3
203 #define CSCP_DT_BINARY 4
204 #define CSCP_DT_FLOAT 5
205
206
207 //
208 // Message flags
209 //
210
211 #define MF_BINARY 0x0001
212 #define MF_END_OF_FILE 0x0002
213 #define MF_DONT_ENCRYPT 0x0004
214 #define MF_END_OF_SEQUENCE 0x0008
215 #define MF_REVERSE_ORDER 0x0010
216 #define MF_CONTROL 0x0020
217
218
219 //
220 // Message (command) codes
221 //
222
223 #define CMD_LOGIN 0x0001
224 #define CMD_LOGIN_RESP 0x0002
225 #define CMD_KEEPALIVE 0x0003
226 #define CMD_SET_ALARM_HD_STATE 0x0004
227 #define CMD_GET_OBJECTS 0x0005
228 #define CMD_OBJECT 0x0006
229 #define CMD_DELETE_OBJECT 0x0007
230 #define CMD_MODIFY_OBJECT 0x0008
231 #define CMD_OBJECT_LIST_END 0x0009
232 #define CMD_OBJECT_UPDATE 0x000A
233 #define CMD_GET_EVENTS 0x000B
234 #define CMD_EVENTLOG_RECORDS 0x000C
235 #define CMD_GET_CONFIG_VARLIST 0x000D
236 #define CMD_SET_CONFIG_VARIABLE 0x000E
237 #define CMD_GET_OBJECT_TOOLS 0x000F
238 #define CMD_EXECUTE_ACTION 0x0010
239 #define CMD_DELETE_CONFIG_VARIABLE 0x0011
240 #define CMD_NOTIFY 0x0012
241 #define CMD_TRAP 0x0013
242 #define CMD_OPEN_EPP 0x0014
243 #define CMD_CLOSE_EPP 0x0015
244 #define CMD_SAVE_EPP 0x0016
245 #define CMD_EPP_RECORD 0x0017
246 #define CMD_EVENT_DB_UPDATE 0x0018
247 #define CMD_TRAP_CFG_UPDATE 0x0019
248 #define CMD_SET_EVENT_INFO 0x001A
249 #define CMD_EVENT_DB_RECORD 0x001B
250 #define CMD_LOAD_EVENT_DB 0x001C
251 #define CMD_REQUEST_COMPLETED 0x001D
252 #define CMD_LOAD_USER_DB 0x001E
253 #define CMD_USER_DATA 0x001F
254 #define CMD_GROUP_DATA 0x0020
255 #define CMD_USER_DB_EOF 0x0021
256 #define CMD_UPDATE_USER 0x0022
257 #define CMD_DELETE_USER 0x0023
258 #define CMD_CREATE_USER 0x0024
259 #define CMD_LOCK_USER_DB 0x0025
260 #define CMD_UNLOCK_USER_DB 0x0026
261 #define CMD_USER_DB_UPDATE 0x0027
262 #define CMD_SET_PASSWORD 0x0028
263 #define CMD_GET_NODE_DCI_LIST 0x0029
264 #define CMD_NODE_DCI 0x002A
265 #define CMD_GET_LOG_DATA 0x002B
266 #define CMD_DELETE_NODE_DCI 0x002C
267 #define CMD_MODIFY_NODE_DCI 0x002D
268 #define CMD_UNLOCK_NODE_DCI_LIST 0x002E
269 #define CMD_SET_OBJECT_MGMT_STATUS 0x002F
270 #define CMD_CREATE_NEW_DCI 0x0030
271 #define CMD_GET_DCI_DATA 0x0031
272 #define CMD_DCI_DATA 0x0032
273 #define CMD_GET_MIB_TIMESTAMP 0x0033
274 #define CMD_GET_MIB 0x0034
275 #define CMD_TEST_DCI_TRANSFORMATION 0x0035
276 #define CMD_GET_JOB_LIST 0x0036
277 #define CMD_CREATE_OBJECT 0x0037
278 #define CMD_GET_EVENT_NAMES 0x0038
279 #define CMD_EVENT_NAME_LIST 0x0039
280 #define CMD_BIND_OBJECT 0x003A
281 #define CMD_UNBIND_OBJECT 0x003B
282 #define CMD_UNINSTALL_AGENT_POLICY 0x003C
283 #define CMD_OPEN_SERVER_LOG 0x003D
284 #define CMD_CLOSE_SERVER_LOG 0x003E
285 #define CMD_QUERY_LOG 0x003F
286 #define CMD_AUTHENTICATE 0x0040
287 #define CMD_GET_PARAMETER 0x0041
288 #define CMD_GET_LIST 0x0042
289 #define CMD_ACTION 0x0043
290 #define CMD_GET_CURRENT_USER_ATTR 0x0044
291 #define CMD_SET_CURRENT_USER_ATTR 0x0045
292 #define CMD_GET_ALL_ALARMS 0x0046
293 #define CMD_GET_ALARM 0x0047
294 #define CMD_ACK_ALARM 0x0048
295 #define CMD_ALARM_UPDATE 0x0049
296 #define CMD_ALARM_DATA 0x004A
297 #define CMD_DELETE_ALARM 0x004B
298 //#define CMD_LOCK_ACTION_DB 0x004C
299 //#define CMD_UNLOCK_ACTION_DB 0x004D
300 #define CMD_LOAD_ACTIONS 0x004E
301 #define CMD_ACTION_DB_UPDATE 0x004F
302 #define CMD_MODIFY_ACTION 0x0050
303 #define CMD_CREATE_ACTION 0x0051
304 #define CMD_DELETE_ACTION 0x0052
305 #define CMD_ACTION_DATA 0x0053
306 #define CMD_GET_CONTAINER_CAT_LIST 0x0054
307 #define CMD_CONTAINER_CAT_DATA 0x0055
308 #define CMD_DELETE_CONTAINER_CAT 0x0056
309 #define CMD_CREATE_CONTAINER_CAT 0x0057
310 #define CMD_MODIFY_CONTAINER_CAT 0x0058
311 #define CMD_POLL_NODE 0x0059
312 #define CMD_POLLING_INFO 0x005A
313 #define CMD_COPY_DCI 0x005B
314 #define CMD_WAKEUP_NODE 0x005C
315 #define CMD_DELETE_EVENT_TEMPLATE 0x005D
316 #define CMD_GENERATE_EVENT_CODE 0x005E
317 //#define CMD_LOCK_TRAP_CFG 0x005F
318 //#define CMD_UNLOCK_TRAP_CFG 0x0060
319 #define CMD_CREATE_TRAP 0x0061
320 #define CMD_MODIFY_TRAP 0x0062
321 #define CMD_DELETE_TRAP 0x0063
322 #define CMD_LOAD_TRAP_CFG 0x0064
323 #define CMD_TRAP_CFG_RECORD 0x0065
324 #define CMD_QUERY_PARAMETER 0x0066
325 #define CMD_GET_SERVER_INFO 0x0067
326 #define CMD_SET_DCI_STATUS 0x0068
327 #define CMD_FILE_DATA 0x0069
328 #define CMD_TRANSFER_FILE 0x006A
329 #define CMD_UPGRADE_AGENT 0x006B
330 #define CMD_GET_PACKAGE_LIST 0x006C
331 #define CMD_PACKAGE_INFO 0x006D
332 #define CMD_REMOVE_PACKAGE 0x006E
333 #define CMD_INSTALL_PACKAGE 0x006F
334 #define CMD_LOCK_PACKAGE_DB 0x0070
335 #define CMD_UNLOCK_PACKAGE_DB 0x0071
336 #define CMD_ABORT_FILE_TRANSFER 0x0072
337 #define CMD_CHECK_NETWORK_SERVICE 0x0073
338 #define CMD_GET_AGENT_CONFIG 0x0074
339 #define CMD_UPDATE_AGENT_CONFIG 0x0075
340 #define CMD_GET_PARAMETER_LIST 0x0076
341 #define CMD_DEPLOY_PACKAGE 0x0077
342 #define CMD_INSTALLER_INFO 0x0078
343 #define CMD_GET_LAST_VALUES 0x0079
344 #define CMD_APPLY_TEMPLATE 0x007A
345 #define CMD_SET_USER_VARIABLE 0x007B
346 #define CMD_GET_USER_VARIABLE 0x007C
347 #define CMD_ENUM_USER_VARIABLES 0x007D
348 #define CMD_DELETE_USER_VARIABLE 0x007E
349 #define CMD_ADM_MESSAGE 0x007F
350 #define CMD_ADM_REQUEST 0x0080
351 #define CMD_CHANGE_IP_ADDR 0x0081
352 #define CMD_REQUEST_SESSION_KEY 0x0082
353 #define CMD_ENCRYPTED_MESSAGE 0x0083
354 #define CMD_SESSION_KEY 0x0084
355 #define CMD_REQUEST_ENCRYPTION 0x0085
356 #define CMD_GET_ROUTING_TABLE 0x0086
357 #define CMD_EXEC_TABLE_TOOL 0x0087
358 #define CMD_TABLE_DATA 0x0088
359 #define CMD_CANCEL_JOB 0x0089
360 #define CMD_CHANGE_SUBSCRIPTION 0x008A
361 #define CMD_GET_SYSLOG 0x008B
362 #define CMD_SYSLOG_RECORDS 0x008C
363 #define CMD_JOB_CHANGE_NOTIFICATION 0x008D
364 #define CMD_DEPLOY_AGENT_POLICY 0x008E
365 #define CMD_LOG_DATA 0x008F
366 #define CMD_GET_OBJECT_TOOL_DETAILS 0x0090
367 //#define CMD_LOCK_OBJECT_TOOLS 0x0091
368 //#define CMD_UNLOCK_OBJECT_TOOLS 0x0092
369 #define CMD_UPDATE_OBJECT_TOOL 0x0093
370 #define CMD_DELETE_OBJECT_TOOL 0x0094
371 #define CMD_SETUP_PROXY_CONNECTION 0x0095
372 #define CMD_GENERATE_OBJECT_TOOL_ID 0x0096
373 #define CMD_GET_SERVER_STATS 0x0097
374 #define CMD_GET_SCRIPT_LIST 0x0098
375 #define CMD_GET_SCRIPT 0x0099
376 #define CMD_UPDATE_SCRIPT 0x009A
377 #define CMD_DELETE_SCRIPT 0x009B
378 #define CMD_RENAME_SCRIPT 0x009C
379 #define CMD_GET_SESSION_LIST 0x009D
380 #define CMD_KILL_SESSION 0x009E
381 #define CMD_GET_TRAP_LOG 0x009F
382 #define CMD_TRAP_LOG_RECORDS 0x00A0
383 #define CMD_START_SNMP_WALK 0x00A1
384 #define CMD_SNMP_WALK_DATA 0x00A2
385 #define CMD_GET_MAP_LIST 0x00A3
386 #define CMD_LOAD_MAP 0x00A4
387 #define CMD_SAVE_MAP 0x00A5
388 #define CMD_DELETE_MAP 0x00A6
389 #define CMD_RESOLVE_MAP_NAME 0x00A7
390 #define CMD_SUBMAP_DATA 0x00A8
391 #define CMD_UPLOAD_SUBMAP_BK_IMAGE 0x00A9
392 #define CMD_GET_SUBMAP_BK_IMAGE 0x00AA
393 #define CMD_GET_MODULE_LIST 0x00AB
394 #define CMD_UPDATE_MODULE_INFO 0x00AC
395 #define CMD_COPY_USER_VARIABLE 0x00AD
396 #define CMD_RESOLVE_DCI_NAMES 0x00AE
397 #define CMD_GET_MY_CONFIG 0x00AF
398 #define CMD_GET_AGENT_CFG_LIST 0x00B0
399 #define CMD_OPEN_AGENT_CONFIG 0x00B1
400 #define CMD_SAVE_AGENT_CONFIG 0x00B2
401 #define CMD_DELETE_AGENT_CONFIG 0x00B3
402 #define CMD_SWAP_AGENT_CONFIGS 0x00B4
403 #define CMD_TERMINATE_ALARM 0x00B5
404 #define CMD_GET_NXCP_CAPS 0x00B6
405 #define CMD_NXCP_CAPS 0x00B7
406 #define CMD_GET_OBJECT_COMMENTS 0x00B8
407 #define CMD_UPDATE_OBJECT_COMMENTS 0x00B9
408 #define CMD_ENABLE_AGENT_TRAPS 0x00BA
409 #define CMD_PUSH_DCI_DATA 0x00BB
410 #define CMD_GET_ADDR_LIST 0x00BC
411 #define CMD_SET_ADDR_LIST 0x00BD
412 #define CMD_RESET_COMPONENT 0x00BE
413 #define CMD_GET_DCI_EVENTS_LIST 0x00BF
414 #define CMD_EXPORT_CONFIGURATION 0x00C0
415 #define CMD_IMPORT_CONFIGURATION 0x00C1
416 #define CMD_GET_TRAP_CFG_RO 0x00C2
417 #define CMD_SNMP_REQUEST 0x00C3
418 #define CMD_GET_DCI_INFO 0x00C4
419 #define CMD_GET_GRAPH_LIST 0x00C5
420 #define CMD_DEFINE_GRAPH 0x00C6
421 #define CMD_DELETE_GRAPH 0x00C7
422 #define CMD_GET_PERFTAB_DCI_LIST 0x00C8
423 #define CMD_ADD_CA_CERTIFICATE 0x00C9
424 #define CMD_DELETE_CERTIFICATE 0x00CA
425 #define CMD_GET_CERT_LIST 0x00CB
426 #define CMD_UPDATE_CERT_COMMENTS 0x00CC
427 #define CMD_QUERY_L2_TOPOLOGY 0x00CD
428 #define CMD_AUDIT_RECORD 0x00CE
429 #define CMD_GET_AUDIT_LOG 0x00CF
430 #define CMD_SEND_SMS 0x00D0
431 #define CMD_GET_COMMUNITY_LIST 0x00D1
432 #define CMD_UPDATE_COMMUNITY_LIST 0x00D2
433 #define CMD_GET_SITUATION_LIST 0x00D3
434 #define CMD_DELETE_SITUATION 0x00D4
435 #define CMD_CREATE_SITUATION 0x00D5
436 #define CMD_DEL_SITUATION_INSTANCE 0x00D6
437 #define CMD_UPDATE_SITUATION 0x00D7
438 #define CMD_SITUATION_DATA 0x00D8
439 #define CMD_SITUATION_CHANGE 0x00D9
440 #define CMD_CREATE_MAP 0x00DA
441 #define CMD_WEBMAP_ADD 0x00DB
442 #define CMD_WEBMAP_UPDATE_PROPS 0x00DC
443 #define CMD_WEBMAP_UPDATE_DATA 0x00DD
444 #define CMD_WEBMAP_DELETE 0x00DE
445 #define CMD_WEBMAP_GET_DATA 0x00DF
446 #define CMD_WEBMAP_GET_LIST 0x00E0
447 #define CMD_CONFIG_SET_CLOB 0x00E1
448 #define CMD_CONFIG_GET_CLOB 0x00E2
449 #define CMD_RENAME_MAP 0x00E3
450 #define CMD_CLEAR_DCI_DATA 0x00E4
451 #define CMD_GET_LICENSE 0x00E5
452 #define CMD_CHECK_LICENSE 0x00E6
453 #define CMD_RELEASE_LICENSE 0x00E7
454 #define CMD_ISC_CONNECT_TO_SERVICE 0x00E8
455 #define CMD_REGISTER_AGENT 0x00E9
456 #define CMD_GET_SERVER_FILE 0x00EA
457 #define CMD_FORWARD_EVENT 0x00EB
458 #define CMD_GET_USM_CREDENTIALS 0x00EC
459 #define CMD_UPDATE_USM_CREDENTIALS 0x00ED
460 #define CMD_GET_DCI_THRESHOLDS 0x00EE
461
462
463 //
464 // Variable identifiers
465 //
466
467 #define VID_LOGIN_NAME ((DWORD)1)
468 #define VID_PASSWORD ((DWORD)2)
469 #define VID_OBJECT_ID ((DWORD)3)
470 #define VID_OBJECT_NAME ((DWORD)4)
471 #define VID_OBJECT_CLASS ((DWORD)5)
472 #define VID_SNMP_VERSION ((DWORD)6)
473 #define VID_PARENT_CNT ((DWORD)7)
474 #define VID_IP_ADDRESS ((DWORD)8)
475 #define VID_IP_NETMASK ((DWORD)9)
476 #define VID_OBJECT_STATUS ((DWORD)10)
477 #define VID_IF_INDEX ((DWORD)11)
478 #define VID_IF_TYPE ((DWORD)12)
479 #define VID_FLAGS ((DWORD)13)
480 #define VID_CREATION_FLAGS ((DWORD)14)
481 #define VID_AGENT_PORT ((DWORD)15)
482 #define VID_AUTH_METHOD ((DWORD)16)
483 #define VID_SHARED_SECRET ((DWORD)17)
484 #define VID_SNMP_AUTH_OBJECT ((DWORD)18)
485 #define VID_SNMP_OID ((DWORD)19)
486 #define VID_NAME ((DWORD)20)
487 #define VID_VALUE ((DWORD)21)
488 #define VID_PEER_GATEWAY ((DWORD)22)
489 #define VID_NOTIFICATION_CODE ((DWORD)23)
490 #define VID_EVENT_CODE ((DWORD)24)
491 #define VID_SEVERITY ((DWORD)25)
492 #define VID_MESSAGE ((DWORD)26)
493 #define VID_DESCRIPTION ((DWORD)27)
494 #define VID_RCC ((DWORD)28) /* RCC == Request Completion Code */
495 #define VID_LOCKED_BY ((DWORD)29)
496 #define VID_IS_DELETED ((DWORD)30)
497 #define VID_CHILD_CNT ((DWORD)31)
498 #define VID_ACL_SIZE ((DWORD)32)
499 #define VID_INHERIT_RIGHTS ((DWORD)33)
500 #define VID_USER_NAME ((DWORD)34)
501 #define VID_USER_ID ((DWORD)35)
502 #define VID_USER_SYS_RIGHTS ((DWORD)36)
503 #define VID_USER_FLAGS ((DWORD)37)
504 #define VID_NUM_MEMBERS ((DWORD)38) /* Number of members in users group */
505 #define VID_IS_GROUP ((DWORD)39)
506 #define VID_USER_FULL_NAME ((DWORD)40)
507 #define VID_USER_DESCRIPTION ((DWORD)41)
508 #define VID_UPDATE_TYPE ((DWORD)42)
509 #define VID_DCI_ID ((DWORD)43)
510 #define VID_POLLING_INTERVAL ((DWORD)44)
511 #define VID_RETENTION_TIME ((DWORD)45)
512 #define VID_DCI_SOURCE_TYPE ((DWORD)46)
513 #define VID_DCI_DATA_TYPE ((DWORD)47)
514 #define VID_DCI_STATUS ((DWORD)48)
515 #define VID_MGMT_STATUS ((DWORD)49)
516 #define VID_MAX_ROWS ((DWORD)50)
517 #define VID_TIME_FROM ((DWORD)51)
518 #define VID_TIME_TO ((DWORD)52)
519 #define VID_DCI_DATA ((DWORD)53)
520 #define VID_NUM_THRESHOLDS ((DWORD)54)
521 #define VID_DCI_NUM_MAPS ((DWORD)55)
522 #define VID_DCI_MAP_IDS ((DWORD)56)
523 #define VID_DCI_MAP_INDEXES ((DWORD)57)
524 #define VID_NUM_MIBS ((DWORD)58)
525 #define VID_MIB_NAME ((DWORD)59)
526 #define VID_MIB_FILE_SIZE ((DWORD)60)
527 #define VID_MIB_FILE ((DWORD)61)
528 #define VID_PROPERTIES ((DWORD)62)
529 #define VID_ALARM_SEVERITY ((DWORD)63)
530 #define VID_ALARM_KEY ((DWORD)64)
531 #define VID_ALARM_TIMEOUT ((DWORD)65)
532 #define VID_ALARM_MESSAGE ((DWORD)66)
533 #define VID_RULE_ID ((DWORD)67)
534 #define VID_NUM_SOURCES ((DWORD)68)
535 #define VID_NUM_EVENTS ((DWORD)69)
536 #define VID_NUM_ACTIONS ((DWORD)70)
537 #define VID_RULE_SOURCES ((DWORD)71)
538 #define VID_RULE_EVENTS ((DWORD)72)
539 #define VID_RULE_ACTIONS ((DWORD)73)
540 #define VID_NUM_RULES ((DWORD)74)
541 #define VID_CATEGORY ((DWORD)75)
542 #define VID_UPDATED_CHILD_LIST ((DWORD)76)
543 #define VID_EVENT_NAME_TABLE ((DWORD)77)
544 #define VID_PARENT_ID ((DWORD)78)
545 #define VID_CHILD_ID ((DWORD)79)
546 #define VID_CONFIG_FILE_NAME ((DWORD)80)
547 #define VID_CONFIG_FILE_DATA ((DWORD)81)
548 #define VID_COMMENTS ((DWORD)82)
549 #define VID_POLICY_ID ((DWORD)83)
550 #define VID_SNMP_USM_METHODS ((DWORD)84)
551 #define VID_PARAMETER ((DWORD)85)
552 #define VID_NUM_STRINGS ((DWORD)86)
553 #define VID_ACTION_NAME ((DWORD)87)
554 #define VID_NUM_ARGS ((DWORD)88)
555 #define VID_SNMP_AUTH_PASSWORD ((DWORD)89)
556 #define VID_CLASS_ID_LIST ((DWORD)90)
557 #define VID_SNMP_PRIV_PASSWORD ((DWORD)91)
558 #define VID_NOTIFICATION_DATA ((DWORD)92)
559 #define VID_ALARM_ID ((DWORD)93)
560 #define VID_TIMESTAMP ((DWORD)94)
561 #define VID_ACK_BY_USER ((DWORD)95)
562 #define VID_IS_ACK ((DWORD)96)
563 #define VID_ACTION_ID ((DWORD)97)
564 #define VID_IS_DISABLED ((DWORD)98)
565 #define VID_ACTION_TYPE ((DWORD)99)
566 #define VID_ACTION_DATA ((DWORD)100)
567 #define VID_EMAIL_SUBJECT ((DWORD)101)
568 #define VID_RCPT_ADDR ((DWORD)102)
569 #define VID_CATEGORY_NAME ((DWORD)103)
570 #define VID_CATEGORY_ID ((DWORD)104)
571 #define VID_DCI_DELTA_CALCULATION ((DWORD)105)
572 #define VID_DCI_FORMULA ((DWORD)106)
573 #define VID_POLL_TYPE ((DWORD)107)
574 #define VID_POLLER_MESSAGE ((DWORD)108)
575 #define VID_SOURCE_OBJECT_ID ((DWORD)109)
576 #define VID_DESTINATION_OBJECT_ID ((DWORD)110)
577 #define VID_NUM_ITEMS ((DWORD)111)
578 #define VID_ITEM_LIST ((DWORD)112)
579 #define VID_MAC_ADDR ((DWORD)113)
580 #define VID_TEMPLATE_VERSION ((DWORD)114)
581 #define VID_NODE_TYPE ((DWORD)115)
582 #define VID_INSTANCE ((DWORD)116)
583 #define VID_TRAP_ID ((DWORD)117)
584 #define VID_TRAP_OID ((DWORD)118)
585 #define VID_TRAP_OID_LEN ((DWORD)119)
586 #define VID_TRAP_NUM_MAPS ((DWORD)120)
587 #define VID_SERVER_VERSION ((DWORD)121)
588 #define VID_SUPPORTED_ENCRYPTION ((DWORD)122)
589 #define VID_EVENT_ID ((DWORD)123)
590 #define VID_AGENT_VERSION ((DWORD)124)
591 #define VID_FILE_NAME ((DWORD)125)
592 #define VID_PACKAGE_ID ((DWORD)126)
593 #define VID_PACKAGE_VERSION ((DWORD)127)
594 #define VID_PLATFORM_NAME ((DWORD)128)
595 #define VID_PACKAGE_NAME ((DWORD)129)
596 #define VID_SERVICE_TYPE ((DWORD)130)
597 #define VID_IP_PROTO ((DWORD)131)
598 #define VID_IP_PORT ((DWORD)132)
599 #define VID_SERVICE_REQUEST ((DWORD)133)
600 #define VID_SERVICE_RESPONSE ((DWORD)134)
601 #define VID_POLLER_NODE_ID ((DWORD)135)
602 #define VID_SERVICE_STATUS ((DWORD)136)
603 #define VID_NUM_PARAMETERS ((DWORD)137)
604 #define VID_NUM_OBJECTS ((DWORD)138)
605 #define VID_OBJECT_LIST ((DWORD)139)
606 #define VID_DEPLOYMENT_STATUS ((DWORD)140)
607 #define VID_ERROR_MESSAGE ((DWORD)141)
608 #define VID_SERVER_ID ((DWORD)142)
609 #define VID_SEARCH_PATTERN ((DWORD)143)
610 #define VID_NUM_VARIABLES ((DWORD)144)
611 #define VID_COMMAND ((DWORD)145)
612 #define VID_PROTOCOL_VERSION ((DWORD)146)
613 #define VID_ZONE_GUID ((DWORD)147)
614 #define VID_ZONE_TYPE ((DWORD)148)
615 #define VID_CONTROLLER_IP_ADDR ((DWORD)149)
616 #define VID_ADDR_LIST_SIZE ((DWORD)150)
617 #define VID_IP_ADDR_LIST ((DWORD)151)
618 #define VID_REMOVE_DCI ((DWORD)152)
619 #define VID_TEMPLATE_ID ((DWORD)153)
620 #define VID_PUBLIC_KEY ((DWORD)154)
621 #define VID_SESSION_KEY ((DWORD)155)
622 #define VID_CIPHER ((DWORD)156)
623 #define VID_KEY_LENGTH ((DWORD)157)
624 #define VID_SESSION_IV ((DWORD)158)
625 #define VID_CONFIG_FILE ((DWORD)159)
626 #define VID_STATUS_CALCULATION_ALG ((DWORD)160)
627 #define VID_NUM_LOCAL_NETS ((DWORD)161)
628 #define VID_NUM_REMOTE_NETS ((DWORD)162)
629 #define VID_APPLY_FLAG ((DWORD)163)
630 #define VID_NUM_TOOLS ((DWORD)164)
631 #define VID_TOOL_ID ((DWORD)165)
632 #define VID_NUM_COLUMNS ((DWORD)166)
633 #define VID_NUM_ROWS ((DWORD)167)
634 #define VID_TABLE_TITLE ((DWORD)168)
635 #define VID_EVENT_NAME ((DWORD)169)
636 #define VID_AUTO_APPLY ((DWORD)170)
637 #define VID_LOG_NAME ((DWORD)171)
638 #define VID_OPERATION ((DWORD)172)
639 #define VID_MAX_RECORDS ((DWORD)173)
640 #define VID_NUM_RECORDS ((DWORD)174)
641 #define VID_CLIENT_INFO ((DWORD)175)
642 #define VID_OS_INFO ((DWORD)176)
643 #define VID_LIBNXCL_VERSION ((DWORD)177)
644 #define VID_VERSION ((DWORD)178)
645 #define VID_NUM_NODES ((DWORD)179)
646 #define VID_LOG_FILE ((DWORD)180)
647 #define VID_ADV_SCHEDULE ((DWORD)181)
648 #define VID_NUM_SCHEDULES ((DWORD)182)
649 #define VID_STATUS_PROPAGATION_ALG ((DWORD)183)
650 #define VID_FIXED_STATUS ((DWORD)184)
651 #define VID_STATUS_SHIFT ((DWORD)185)
652 #define VID_STATUS_TRANSLATION_1 ((DWORD)186)
653 #define VID_STATUS_TRANSLATION_2 ((DWORD)187)
654 #define VID_STATUS_TRANSLATION_3 ((DWORD)188)
655 #define VID_STATUS_TRANSLATION_4 ((DWORD)189)
656 #define VID_STATUS_SINGLE_THRESHOLD ((DWORD)190)
657 #define VID_STATUS_THRESHOLD_1 ((DWORD)191)
658 #define VID_STATUS_THRESHOLD_2 ((DWORD)192)
659 #define VID_STATUS_THRESHOLD_3 ((DWORD)193)
660 #define VID_STATUS_THRESHOLD_4 ((DWORD)194)
661 #define VID_PROXY_NODE ((DWORD)195)
662 #define VID_TOOL_TYPE ((DWORD)196)
663 #define VID_TOOL_DATA ((DWORD)197)
664 #define VID_ACL ((DWORD)198)
665 #define VID_TOOL_OID ((DWORD)199)
666 #define VID_SERVER_UPTIME ((DWORD)200)
667 #define VID_NUM_ALARMS ((DWORD)201)
668 #define VID_ALARMS_BY_SEVERITY ((DWORD)202)
669 #define VID_NETXMSD_PROCESS_WKSET ((DWORD)203)
670 #define VID_NETXMSD_PROCESS_VMSIZE ((DWORD)204)
671 #define VID_NUM_SESSIONS ((DWORD)205)
672 #define VID_NUM_SCRIPTS ((DWORD)206)
673 #define VID_SCRIPT_ID ((DWORD)207)
674 #define VID_SCRIPT_CODE ((DWORD)208)
675 #define VID_SESSION_ID ((DWORD)209)
676 #define VID_RECORDS_ORDER ((DWORD)210)
677 #define VID_NUM_SUBMAPS ((DWORD)211)
678 #define VID_SUBMAP_LIST ((DWORD)212)
679 #define VID_SUBMAP_ATTR ((DWORD)213)
680 #define VID_NUM_LINKS ((DWORD)214)
681 #define VID_LINK_LIST ((DWORD)215)
682 #define VID_MAP_ID ((DWORD)216)
683 #define VID_NUM_MAPS ((DWORD)217)
684 #define VID_NUM_MODULES ((DWORD)218)
685 #define VID_DST_USER_ID ((DWORD)219)
686 #define VID_MOVE_FLAG ((DWORD)220)
687 #define VID_CHANGE_PASSWD_FLAG ((DWORD)221)
688 #define VID_GUID ((DWORD)222)
689 #define VID_ACTIVATION_EVENT ((DWORD)223)
690 #define VID_DEACTIVATION_EVENT ((DWORD)224)
691 #define VID_SOURCE_OBJECT ((DWORD)225)
692 #define VID_ACTIVE_STATUS ((DWORD)226)
693 #define VID_INACTIVE_STATUS ((DWORD)227)
694 #define VID_SCRIPT ((DWORD)228)
695 #define VID_NODE_LIST ((DWORD)229)
696 #define VID_DCI_LIST ((DWORD)230)
697 #define VID_CONFIG_ID ((DWORD)231)
698 #define VID_FILTER ((DWORD)232)
699 #define VID_SEQUENCE_NUMBER ((DWORD)233)
700 #define VID_VERSION_MAJOR ((DWORD)234)
701 #define VID_VERSION_MINOR ((DWORD)235)
702 #define VID_VERSION_RELEASE ((DWORD)236)
703 #define VID_CONFIG_ID_2 ((DWORD)237)
704 #define VID_IV_LENGTH ((DWORD)238)
705 #define VID_DBCONN_STATUS ((DWORD)239)
706 #define VID_CREATION_TIME ((DWORD)240)
707 #define VID_LAST_CHANGE_TIME ((DWORD)241)
708 #define VID_TERMINATED_BY_USER ((DWORD)242)
709 #define VID_STATE ((DWORD)243)
710 #define VID_CURRENT_SEVERITY ((DWORD)244)
711 #define VID_ORIGINAL_SEVERITY ((DWORD)245)
712 #define VID_HELPDESK_STATE ((DWORD)246)
713 #define VID_HELPDESK_REF ((DWORD)247)
714 #define VID_REPEAT_COUNT ((DWORD)248)
715 #define VID_ALL_THRESHOLDS ((DWORD)249)
716 #define VID_CONFIRMATION_TEXT ((DWORD)250)
717 #define VID_FAILED_DCI_INDEX ((DWORD)251)
718 #define VID_ADDR_LIST_TYPE ((DWORD)252)
719 #define VID_COMPONENT_ID ((DWORD)253)
720 #define VID_SYNC_COMMENTS ((DWORD)254)
721 #define VID_EVENT_LIST ((DWORD)255)
722 #define VID_NUM_TRAPS ((DWORD)256)
723 #define VID_TRAP_LIST ((DWORD)257)
724 #define VID_NXMP_CONTENT ((DWORD)258)
725 #define VID_ERROR_TEXT ((DWORD)259)
726 #define VID_COMPONENT ((DWORD)260)
727 #define VID_CONSOLE_UPGRADE_URL ((DWORD)261)
728 #define VID_CLUSTER_TYPE ((DWORD)262)
729 #define VID_NUM_SYNC_SUBNETS ((DWORD)263)
730 #define VID_SYNC_SUBNETS ((DWORD)264)
731 #define VID_NUM_RESOURCES ((DWORD)265)
732 #define VID_RESOURCE_ID ((DWORD)266)
733 #define VID_SNMP_PROXY ((DWORD)267)
734 #define VID_PORT ((DWORD)268)
735 #define VID_PDU ((DWORD)269)
736 #define VID_PDU_SIZE ((DWORD)270)
737 #define VID_IS_SYSTEM ((DWORD)271)
738 #define VID_GRAPH_CONFIG ((DWORD)272)
739 #define VID_NUM_GRAPHS ((DWORD)273)
740 #define VID_GRAPH_ID ((DWORD)274)
741 #define VID_AUTH_TYPE ((DWORD)275)
742 #define VID_CERTIFICATE ((DWORD)276)
743 #define VID_SIGNATURE ((DWORD)277)
744 #define VID_CHALLENGE ((DWORD)278)
745 #define VID_CERT_MAPPING_METHOD ((DWORD)279)
746 #define VID_CERT_MAPPING_DATA ((DWORD)280)
747 #define VID_CERTIFICATE_ID ((DWORD)281)
748 #define VID_NUM_CERTIFICATES ((DWORD)282)
749 #define VID_ALARM_TIMEOUT_EVENT ((DWORD)283)
750 #define VID_NUM_GROUPS ((DWORD)284)
751 #define VID_QSIZE_CONDITION_POLLER ((DWORD)285)
752 #define VID_QSIZE_CONF_POLLER ((DWORD)286)
753 #define VID_QSIZE_DCI_POLLER ((DWORD)287)
754 #define VID_QSIZE_DBWRITER ((DWORD)288)
755 #define VID_QSIZE_EVENT ((DWORD)289)
756 #define VID_QSIZE_DISCOVERY ((DWORD)290)
757 #define VID_QSIZE_NODE_POLLER ((DWORD)291)
758 #define VID_QSIZE_ROUTE_POLLER ((DWORD)292)
759 #define VID_QSIZE_STATUS_POLLER ((DWORD)293)
760 #define VID_SYNTHETIC_MASK ((DWORD)294)
761 #define VID_SUBSYSTEM ((DWORD)295)
762 #define VID_SUCCESS_AUDIT ((DWORD)296)
763 #define VID_WORKSTATION ((DWORD)297)
764 #define VID_USER_TAG ((DWORD)298)
765 #define VID_REQUIRED_POLLS ((DWORD)299)
766 #define VID_SYS_DESCRIPTION ((DWORD)300)
767 #define VID_SITUATION_ID ((DWORD)301)
768 #define VID_SITUATION_INSTANCE ((DWORD)302)
769 #define VID_SITUATION_NUM_ATTRS ((DWORD)303)
770 #define VID_INSTANCE_COUNT ((DWORD)304)
771 #define VID_SITUATION_COUNT ((DWORD)305)
772 #define VID_NUM_TRUSTED_NODES ((DWORD)306)
773 #define VID_TRUSTED_NODES ((DWORD)307)
774 #define VID_TIMEZONE ((DWORD)308)
775 #define VID_NUM_CUSTOM_ATTRIBUTES ((DWORD)309)
776 #define VID_MAP_DATA ((DWORD)310)
777 #define VID_PRODUCT_ID ((DWORD)311)
778 #define VID_CLIENT_ID ((DWORD)312)
779 #define VID_LICENSE_DATA ((DWORD)313)
780 #define VID_TOKEN ((DWORD)314)
781 #define VID_SERVICE_ID ((DWORD)315)
782 #define VID_TOKEN_SOFTLIMIT ((DWORD)316)
783 #define VID_TOKEN_HARDLIMIT ((DWORD)317)
784 #define VID_USE_IFXTABLE ((DWORD)318)
785 #define VID_APPLY_FILTER ((DWORD)319)
786 #define VID_ENABLE_AUTO_BIND ((DWORD)320)
787 #define VID_AUTO_BIND_FILTER ((DWORD)321)
788 #define VID_BASE_UNITS ((DWORD)322)
789 #define VID_MULTIPLIER ((DWORD)323)
790 #define VID_CUSTOM_UNITS_NAME ((DWORD)324)
791 #define VID_PERFTAB_SETTINGS ((DWORD)325)
792 #define VID_EXECUTION_STATUS ((DWORD)326)
793 #define VID_EXECUTION_RESULT ((DWORD)327)
794 #define VID_TABLE_NUM_ROWS ((DWORD)328)
795 #define VID_TABLE_NUM_COLS ((DWORD)329)
796 #define VID_JOB_COUNT ((DWORD)330)
797 #define VID_JOB_ID ((DWORD)331)
798 #define VID_JOB_TYPE ((DWORD)332)
799 #define VID_JOB_STATUS ((DWORD)333)
800 #define VID_JOB_PROGRESS ((DWORD)334)
801 #define VID_FAILURE_MESSAGE ((DWORD)335)
802 #define VID_POLICY_TYPE ((DWORD)336)
803 #define VID_FIELDS ((DWORD)337)
804 #define VID_LOG_HANDLE ((DWORD)338)
805 #define VID_START_ROW ((DWORD)339)
806 #define VID_TABLE_OFFSET ((DWORD)340)
807 #define VID_NUM_FILTERS ((DWORD)341)
808 #define VID_GEOLOCATION_TYPE ((DWORD)342)
809 #define VID_LATITUDE ((DWORD)343)
810 #define VID_LONGITUDE ((DWORD)344)
811 #define VID_NUM_ORDERING_COLUMNS ((DWORD)345)
812 #define VID_SYSTEM_TAG ((DWORD)346)
813 #define VID_NUM_ENUMS ((DWORD)347)
814 #define VID_NUM_PUSH_PARAMETERS ((DWORD)348)
815 #define VID_OLD_PASSWORD ((DWORD)349)
816 #define VID_MIN_PASSWORD_LENGTH ((DWORD)350)
817 #define VID_LAST_LOGIN ((DWORD)351)
818 #define VID_LAST_PASSWORD_CHANGE ((DWORD)352)
819 #define VID_DISABLED_UNTIL ((DWORD)353)
820 #define VID_AUTH_FAILURES ((DWORD)354)
821 #define VID_RUNTIME_FLAGS ((DWORD)355)
822 #define VID_FILE_SIZE ((DWORD)356)
823
824 // Variable ranges for object's ACL
825 #define VID_ACL_USER_BASE ((DWORD)0x00001000)
826 #define VID_ACL_USER_LAST ((DWORD)0x00001FFF)
827 #define VID_ACL_RIGHTS_BASE ((DWORD)0x00002000)
828 #define VID_ACL_RIGHTS_LAST ((DWORD)0x00002FFF)
829
830 // Variable range for user group members
831 #define VID_GROUP_MEMBER_BASE ((DWORD)0x00004000)
832 #define VID_GROUP_MEMBER_LAST ((DWORD)0x00004FFF)
833
834 // Variable range for data collection thresholds
835 #define VID_DCI_THRESHOLD_BASE ((DWORD)0x20000000)
836 #define VID_DCI_SCHEDULE_BASE ((DWORD)0x10000000)
837
838 // Variable range for event argument list
839 #define VID_EVENT_ARG_BASE ((DWORD)0x00008000)
840 #define VID_EVENT_ARG_LAST ((DWORD)0x00008FFF)
841
842 // Variable range for trap parameter list
843 #define VID_TRAP_PLEN_BASE ((DWORD)0x00009000)
844 #define VID_TRAP_PLEN_LAST ((DWORD)0x000093FF)
845 #define VID_TRAP_PNAME_BASE ((DWORD)0x00009400)
846 #define VID_TRAP_PNAME_LAST ((DWORD)0x000097FF)
847 #define VID_TRAP_PDESCR_BASE ((DWORD)0x00009800)
848 #define VID_TRAP_PDESCR_LAST ((DWORD)0x00009BFF)
849
850 // Object information can contain variable number of parent and child objects' ids.
851 // Because each variable in message have to have unique identifier,
852 // we reserver a two range ids for this variables.
853 #define VID_PARENT_ID_BASE ((DWORD)0x00003000)
854 #define VID_PARENT_ID_LAST ((DWORD)0x00003FFF)
855
856 // Reservation of 0x7FFFFFFF ids for child object's list
857 #define VID_CHILD_ID_BASE ((DWORD)0x80000000)
858 #define VID_CHILD_ID_LAST ((DWORD)0xFFFFFFFE)
859
860 // Base value for custom attributes
861 #define VID_CUSTOM_ATTRIBUTES_BASE ((DWORD)0x70000000)
862
863 // Base value for cluster resource list
864 #define VID_RESOURCE_LIST_BASE ((DWORD)0x20000000)
865
866 // Base value for agent's enum values
867 #define VID_ENUM_VALUE_BASE ((DWORD)0x10000000)
868
869 // Base value for agent's action arguments
870 #define VID_ACTION_ARG_BASE ((DWORD)0x10000000)
871
872 // Base value for agent's parameter list
873 #define VID_PARAM_LIST_BASE ((DWORD)0x10000000)
874 #define VID_ENUM_LIST_BASE ((DWORD)0x20000000)
875 #define VID_PUSHPARAM_LIST_BASE ((DWORD)0x30000000)
876
877 // Base value for DCI last values
878 #define VID_DCI_VALUES_BASE ((DWORD)0x10000000)
879
880 // Base value for variable names
881 #define VID_VARLIST_BASE ((DWORD)0x10000000)
882
883 // Base value for network list
884 #define VID_VPN_NETWORK_BASE ((DWORD)0x10000000)
885
886 // Base value for network list
887 #define VID_OBJECT_TOOLS_BASE ((DWORD)0x10000000)
888
889 // Base values for table data
890 #define VID_COLUMN_INFO_BASE ((DWORD)0x10000000)
891 #define VID_COLUMN_NAME_BASE ((DWORD)0x10000000)
892 #define VID_COLUMN_FMT_BASE ((DWORD)0x20000000)
893 #define VID_ROW_DATA_BASE ((DWORD)0x30000000)
894
895 // Base value for event log records
896 #define VID_EVENTLOG_MSG_BASE ((DWORD)0x10000000)
897
898 // Base value for syslog records
899 #define VID_SYSLOG_MSG_BASE ((DWORD)0x10000000)
900
901 // Base value for trap log records
902 #define VID_TRAP_LOG_MSG_BASE ((DWORD)0x10000000)
903
904 // Base value for script list
905 #define VID_SCRIPT_LIST_BASE ((DWORD)0x10000000)
906
907 // Base value for session data
908 #define VID_SESSION_DATA_BASE ((DWORD)0x10000000)
909
910 // Base value for SNMP walker data
911 #define VID_SNMP_WALKER_DATA_BASE ((DWORD)0x10000000)
912
913 // Base value for map list
914 #define VID_MAP_LIST_BASE ((DWORD)0x10000000)
915
916 // Base value for module list
917 #define VID_MODULE_LIST_BASE ((DWORD)0x10000000)
918
919 // Base value for agent configs list
920 #define VID_AGENT_CFG_LIST_BASE ((DWORD)0x10000000)
921
922 // Base and last values for condition's DCI list
923 #define VID_DCI_LIST_BASE ((DWORD)0x40000000)
924 #define VID_DCI_LIST_LAST ((DWORD)0x4FFFFFFF)
925
926 // Base value for DCI push data
927 #define VID_PUSH_DCI_DATA_BASE ((DWORD)0x10000000)
928
929 // Base value for address list
930 #define VID_ADDR_LIST_BASE ((DWORD)0x10000000)
931
932 // Base value for trap configuration records
933 #define VID_TRAP_INFO_BASE ((DWORD)0x10000000)
934
935 // Base value for graph list
936 #define VID_GRAPH_LIST_BASE ((DWORD)0x10000000)
937 #define VID_GRAPH_ACL_BASE ((DWORD)0x20000000)
938
939 // Base value for system DCI list
940 #define VID_SYSDCI_LIST_BASE ((DWORD)0x10000000)
941
942 // Base value for certificate list
943 #define VID_CERT_LIST_BASE ((DWORD)0x10000000)
944
945 // Base value for various string lists
946 #define VID_STRING_LIST_BASE ((DWORD)0x10000000)
947
948 // Base values for situation lists
949 #define VID_SITUATION_ATTR_LIST_BASE ((DWORD)0x10000000)
950 #define VID_INSTANCE_LIST_BASE ((DWORD)0x20000000)
951
952 // Base value for object links list
953 #define VID_OBJECT_LINKS_BASE ((DWORD)0x10000000)
954 #define VID_SUBMAP_LINK_NAMES_BASE ((DWORD)0x20000000)
955
956 #define VID_WEBMAP_LIST_BASE ((DWORD)0x30000000)
957
958 #define VID_TABLE_COLUMN_INFO_BASE ((DWORD)0x10000000)
959 #define VID_TABLE_DATA_BASE ((DWORD)0x20000000)
960
961 #define VID_JOB_LIST_BASE ((DWORD)0x10000000)
962
963 #define VID_COLUMN_FILTERS_BASE ((DWORD)0x10000000)
964 #define VID_ORDERING_COLUMNS_BASE ((DWORD)0x40000000)
965
966 #define VID_USM_CRED_LIST_BASE ((DWORD)0x10000000)
967
968
969 //
970 // Inline functions
971 //
972
973 #ifdef __cplusplus
974
975 inline BOOL IsBinaryMsg(CSCP_MESSAGE *pMsg)
976 {
977 return ntohs(pMsg->wFlags) & MF_BINARY;
978 }
979
980 #endif
981
982
983 #endif /* _nms_cscp_h_ */