-
Notifications
You must be signed in to change notification settings - Fork 0
/
usererror.h
71 lines (47 loc) · 2.49 KB
/
usererror.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#ifndef __USERERROR_H
#define __USERERROR_H
// define base for application depended errors
#define USER_ERROR_BASE 0x20000000
// generated if new dails
#define NOT_ENOUGTH_MEMORY_ERROR USER_ERROR_BASE + 1
// generated if desired registry type does not complain with really type
#define WRONG_REGISTRY_TYPE_ERROR USER_ERROR_BASE + 2
// generated if pointer to a function is to big
#define ARGUMENT_TO_BIG_ERROR USER_ERROR_BASE + 3
// generated if pointer to a function is null but there is no null value expected
#define INVALID_ARGUMENT_PTR_ERROR USER_ERROR_BASE + 4
// generated if initialization for db library fails
#define ERROR_INIT_DBLIB USER_ERROR_BASE + 5
// generated if login in db library fails
#define ERROR_LOGIN_DBLIB USER_ERROR_BASE + 6
// generated if setting user name for db library fails
#define ERROR_SETUSER_DBLIB USER_ERROR_BASE + 7
// generated if setting Password for db library fails
#define ERROR_SETPASSWORD_DBLIB USER_ERROR_BASE + 8
// generated if setting application name for db library fails
#define ERROR_SETAPPLICATION_DBLIB USER_ERROR_BASE + 9
// generated if setting host name for db library fails
#define ERROR_SETHOST_DBLIB USER_ERROR_BASE + 10
// generated if setting login timeout for db library fails
#define ERROR_SETLOGINTIMEOUT_DBLIB USER_ERROR_BASE + 11
// generated if open database for db library fails
#define ERROR_ERROROPENDATABASE_DBLIB USER_ERROR_BASE + 11
// generated if database use for db library fails
#define ERROR_ERRORUSEDATABASE_DBLIB USER_ERROR_BASE + 11
// generated if an argument to a function is not right
#define INVALID_WRONG_ARGUMENTERROR USER_ERROR_BASE + 12
// generated if syntax for SendKeys is wrong
#define BAD_STR_FORMAT_ERROR USER_ERROR_BASE + 13
// generated on timeout failure
#define ERROR_TIMEOUT_ELAPSED USER_ERROR_BASE + 14
// generated if there is an unknown property to get
#define UNKNOWN_PROPERTY_ERROR USER_ERROR_BASE + 15
// generated if the value of an property has an invalid type
#define INVALID_PROPERTY_TYPE_ERROR USER_ERROR_BASE + 16
// generated if a sid is not valid
#define INVALID_SID_ERROR USER_ERROR_BASE + 17
// generated if a performance counter could not be found
#define PERF_COUNTER_NOT_FOUND_ERROR USER_ERROR_BASE + 18
// generated if a performance counter could not be found
#define INVALID_THREAD_HANDLE_ERROR USER_ERROR_BASE + 19
#endif