-
Notifications
You must be signed in to change notification settings - Fork 1
/
PythonServiceMessages.mc
483 lines (441 loc) · 7.72 KB
/
PythonServiceMessages.mc
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
; /*
MessageIdTypedef=DWORD
;-------------------------------------------------------------------------
; MESSAGE DEFINITION SECTION
;
; Following the header section is the body of the Message Compiler
; source file. The body consists of zero or more message definitions.
; Each message definition begins with one or more of the following
; statements:
;
; MessageId = [number|+number]
; Severity = severity_name
; Facility = facility_name
; SymbolicName = name
;
; The MessageId statement marks the beginning of the message
; definition. A MessageID statement is required for each message,
; although the value is optional. If no value is specified, the value
; used is the previous value for the facility plus one. If the value
; is specified as +number then the value used is the previous value
; for the facility, plus the number after the plus sign. Otherwise, if
; a numeric value is given, that value is used. Any MessageId value
; that does not fit in 16 bits is an error.
;
; The Severity and Facility statements are optional. These statements
; specify additional bits to OR into the final 32-bit message code. If
; not specified they default to the value last specified for a message
; definition. The initial values prior to processing the first message
; definition are:
;
; Severity=Success
; Facility=Application
;
; The value associated with Severity and Facility must match one of
; the names given in the FacilityNames and SeverityNames statements in
; the header section. The SymbolicName statement allows you to
; associate a C/C++ symbolic constant with the final 32-bit message
; code.
; */
MessageId=0xFF
Severity=Error
SymbolicName=PYS_E_GENERIC_ERROR
Language=English
%1
.
MessageId=0x1000
Severity=Informational
SymbolicName=PYS_SERVICE_STARTING
Language=English
The %1 service is starting%2.
.
MessageId=0x1002
Severity=Informational
SymbolicName=PYS_SERVICE_STARTED
Language=English
The %1 service has started%2.
.
MessageId=0x1003
Severity=Informational
SymbolicName=PYS_SERVICE_STOPPING
Language=English
The %1 service is stopping%2.
.
MessageId=0x1004
Severity=Informational
SymbolicName=PYS_SERVICE_STOPPED
Language=English
The %1 service has stopped%2.
.
MessageId=0xFF
Severity=Informational
SymbolicName=PYS_E_GENERIC_WARNING
Language=English
%1
.
MessageId=0x1
Severity=Error
SymbolicName=E_PYS_NOT_CONTROL_HANDLER
Language=English
The Python class did not register a service control handler.
%n%1
%n%2: %3
.
MessageId=0x2
Severity=Error
SymbolicName=E_PYS_NO_RUN_METHOD
Language=English
The instance does not have a SvcRun() method.
%n%1
%n%2: %3
.
MessageId=0x3
Severity=Error
SymbolicName=E_PYS_START_FAILED
Language=English
The instance's SvcRun() method failed
%n%1
%n%2: %3
.
MessageId=0x4
Severity=Error
SymbolicName=E_PYS_NO_MODULE
Language=English
Python could not import the service's module
%n%1
%n%2: %3
.
MessageId=0x5
Severity=Error
SymbolicName=E_PYS_NO_CLASS
Language=English
Python could find the service class in the module
%n%1
%n%2: %3
.
MessageId=0x6
Severity=Error
SymbolicName=E_PYS_NO_SERVICE
Language=English
An attempt was made to start the service '%1', but this service
is not hosted in this process.
.
MessageId=0x7
Severity=Error
SymbolicName=E_UNUSED2
Language=English
.
MessageId=0x8
Severity=Error
SymbolicName=PYS_E_NO_MEMORY_FOR_ARGS
Language=English
Python could not allocate memory for the argument tuple.
%n%1
%n%2: %3
.
MessageId=0x9
Severity=Error
SymbolicName=PYS_E_BAD_ARGS
Language=English
Python could not convert the service arguments
%n%1
%n%2: %3
.
MessageId=0xA
Severity=Error
SymbolicName=PYS_E_BAD_CLASS
Language=English
Python could not construct the class instance
%n%1
%n%2: %3
.
MessageId=0xB
Severity=Error
SymbolicName=PYS_E_SERVICE_CONTROL_FAILED
Language=English
The Python service control handler failed.
%n%1
%n%2: %3
.
MessageId=0xC
Severity=Error
SymbolicName=PYS_E_NO_MEMORY_FOR_SYS_PATH
Language=English
Python could not create a string with the modules path
%n%1
%n%2: %3
.
MessageId=0xD
Severity=Error
SymbolicName=PYS_E_NO_SYS_PATH
Language=English
Could not get the sys.path from Python.
%n%1
%n%2: %3
.
MessageId=0xE
Severity=Error
SymbolicName=PYS_E_NO_SERVICEMANAGER
Language=English
Could not locate the Python servicemanager.
%n%1
%n%2: %3
.
MessageId=0x80
Severity=Error
SymbolicName=PYS_E_CANT_LOCATE_MODULE_NAME
Language=English
Could not locate the module name in the Python class string (ie, no '.')
.
MessageId=0xF0
Severity=Error
SymbolicName=PYS_E_API_CANT_START_SERVICE
Language=English
StartServiceCtrlDispatcher could not start the service.
Error %1 - %2
.
MessageId=0xF1
Severity=Error
SymbolicName=PYS_E_API_CANT_SET_PENDING
Language=English
SetServiceStatus failed setting START_PENDING status
Error %1 - %2
.
MessageId=0xF2
Severity=Error
SymbolicName=PYS_E_API_CANT_SET_STOPPED
Language=English
SetServiceStatus failed setting STOPPED status
Error %1 - %2
.
MessageId=0xF3
Severity=Error
SymbolicName=PYS_E_API_CANT_CONVERT_ASCII
Language=English
WideCharToMultiByte could not convert service name to ASCII
Error %1 - %2
.
MessageId=0xF4
Severity=Error
SymbolicName=PYS_E_API_CANT_LOCATE_PYTHON_CLASS
Language=English
Could not find the service's PythonClass entry in the registry
Error %1 - %2
.
MessageId=0xF000
Severity=Error
SymbolicName=MSG_ER1
Language=English
%1
.
MessageId=
Severity=Error
SymbolicName=MSG_ER2
Language=English
%1
.
MessageId=
Severity=Error
SymbolicName=MSG_ER3
Language=English
%1
.
MessageId=
Severity=Error
SymbolicName=MSG_ER4
Language=English
%1
.
MessageId=
Severity=Error
SymbolicName=MSG_ER5
Language=English
%1
.
MessageId=
Severity=Error
SymbolicName=MSG_ER6
Language=English
%1
.
MessageId=
Severity=Error
SymbolicName=MSG_ER7
Language=English
%1
.
MessageId=
Severity=Error
SymbolicName=MSG_ER8
Language=English
%1
.
MessageId=
Severity=Error
SymbolicName=MSG_ER9
Language=English
%1
.
; // Informational messages
MessageId=0xF000
Severity=Informational
SymbolicName=MSG_IR1
Language=English
%1
.
MessageId=
Severity=Informational
SymbolicName=MSG_IR2
Language=English
%1
.
MessageId=
Severity=Informational
SymbolicName=MSG_IR3
Language=English
%1
.
MessageId=
Severity=Informational
SymbolicName=MSG_IR4
Language=English
%1
.
MessageId=
Severity=Informational
SymbolicName=MSG_IR5
Language=English
%1
.
MessageId=
Severity=Informational
SymbolicName=MSG_IR6
Language=English
%1
.
MessageId=
Severity=Informational
SymbolicName=MSG_IR7
Language=English
%1
.
MessageId=
Severity=Informational
SymbolicName=MSG_IR8
Language=English
%1
.
MessageId=
Severity=Informational
SymbolicName=MSG_IR9
Language=English
%1
.
MessageId=0xF000
Severity=Success
SymbolicName=MSG_SR1
Language=English
%1
.
MessageId=
Severity=Success
SymbolicName=MSG_SR2
Language=English
%1
.
MessageId=
Severity=Success
SymbolicName=MSG_SR3
Language=English
%1
.
MessageId=
Severity=Success
SymbolicName=MSG_SR4
Language=English
%1
.
MessageId=
Severity=Success
SymbolicName=MSG_SR5
Language=English
%1
.
MessageId=
Severity=Success
SymbolicName=MSG_SR6
Language=English
%1
.
MessageId=
Severity=Success
SymbolicName=MSG_SR7
Language=English
%1
.
MessageId=
Severity=Success
SymbolicName=MSG_SR8
Language=English
%1
.
MessageId=
Severity=Success
SymbolicName=MSG_SR9
Language=English
%1
.
MessageId=0xF000
Severity=Warning
SymbolicName=MSG_WR1
Language=English
%1
.
MessageId=
Severity=Warning
SymbolicName=MSG_WR2
Language=English
%1
.
MessageId=
Severity=Warning
SymbolicName=MSG_WR3
Language=English
%1
.
MessageId=
Severity=Warning
SymbolicName=MSG_WR4
Language=English
%1
.
MessageId=
Severity=Warning
SymbolicName=MSG_WR5
Language=English
%1
.
MessageId=
Severity=Warning
SymbolicName=MSG_WR6
Language=English
%1
.
MessageId=
Severity=Warning
SymbolicName=MSG_WR7
Language=English
%1
.
MessageId=
Severity=Warning
SymbolicName=MSG_WR8
Language=English
%1
.
MessageId=
Severity=Warning
SymbolicName=MSG_WR9
Language=English
%1
.