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