9 #define R_SUCCEEDED(res) ((res)>=0)
11 #define R_FAILED(res) ((res)<0)
13 #define R_LEVEL(res) (((res)>>27)&0x1F)
15 #define R_SUMMARY(res) (((res)>>21)&0x3F)
17 #define R_MODULE(res) (((res)>>10)&0xFF)
19 #define R_DESCRIPTION(res) ((res)&0x3FF)
22 #define MAKERESULT(level,summary,module,description) \
23 ((((level)&0x1F)<<27) | (((summary)&0x3F)<<21) | (((module)&0xFF)<<10) | ((description)&0x3FF))
34 RL_RESET = RL_FATAL - 1,
35 RL_REINITIALIZE = RL_FATAL - 2,
36 RL_USAGE = RL_FATAL - 3,
37 RL_PERMANENT = RL_FATAL - 4,
38 RL_TEMPORARY = RL_FATAL - 5,
39 RL_STATUS = RL_FATAL - 6,
55 RS_STATUSCHANGED = 10,
57 RS_INVALIDRESVAL = 63,
159 RM_APPLICATION = 254,
160 RM_INVALIDRESVAL = 255,
167 RD_INVALID_RESULT_VALUE = 0x3FF,
168 RD_TIMEOUT = RD_INVALID_RESULT_VALUE - 1,
169 RD_OUT_OF_RANGE = RD_INVALID_RESULT_VALUE - 2,
170 RD_ALREADY_EXISTS = RD_INVALID_RESULT_VALUE - 3,
171 RD_CANCEL_REQUESTED = RD_INVALID_RESULT_VALUE - 4,
172 RD_NOT_FOUND = RD_INVALID_RESULT_VALUE - 5,
173 RD_ALREADY_INITIALIZED = RD_INVALID_RESULT_VALUE - 6,
174 RD_NOT_INITIALIZED = RD_INVALID_RESULT_VALUE - 7,
175 RD_INVALID_HANDLE = RD_INVALID_RESULT_VALUE - 8,
176 RD_INVALID_POINTER = RD_INVALID_RESULT_VALUE - 9,
177 RD_INVALID_ADDRESS = RD_INVALID_RESULT_VALUE - 10,
178 RD_NOT_IMPLEMENTED = RD_INVALID_RESULT_VALUE - 11,
179 RD_OUT_OF_MEMORY = RD_INVALID_RESULT_VALUE - 12,
180 RD_MISALIGNED_SIZE = RD_INVALID_RESULT_VALUE - 13,
181 RD_MISALIGNED_ADDRESS = RD_INVALID_RESULT_VALUE - 14,
182 RD_BUSY = RD_INVALID_RESULT_VALUE - 15,
183 RD_NO_DATA = RD_INVALID_RESULT_VALUE - 16,
184 RD_INVALID_COMBINATION = RD_INVALID_RESULT_VALUE - 17,
185 RD_INVALID_ENUM_VALUE = RD_INVALID_RESULT_VALUE - 18,
186 RD_INVALID_SIZE = RD_INVALID_RESULT_VALUE - 19,
187 RD_ALREADY_DONE = RD_INVALID_RESULT_VALUE - 20,
188 RD_NOT_AUTHORIZED = RD_INVALID_RESULT_VALUE - 21,
189 RD_TOO_LARGE = RD_INVALID_RESULT_VALUE - 22,
190 RD_INVALID_SELECTION = RD_INVALID_RESULT_VALUE - 23,