xref: /reactos/base/setup/lib/errorcode.h (revision a6726659)
1 /*
2  * PROJECT:     ReactOS Setup Library
3  * LICENSE:     GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
4  * PURPOSE:     Setup error codes
5  * COPYRIGHT:   Copyright 2007-2018 Johannes Anderwald <johannes.anderwald@reactos.org>
6  */
7 
8 #pragma once
9 
10 /* setupapi.h defines ERROR_NOT_INSTALLED with another meaning */
11 #ifdef ERROR_NOT_INSTALLED
12 #undef ERROR_NOT_INSTALLED
13 #endif
14 
15 typedef enum _ERROR_NUMBER
16 {
17     NOT_AN_ERROR = 0,   // ERROR_SUCCESS,
18     ERROR_NOT_INSTALLED,
19     ERROR_NO_HDD,
20     ERROR_NO_SOURCE_DRIVE,
21     ERROR_LOAD_TXTSETUPSIF,
22     ERROR_CORRUPT_TXTSETUPSIF,
23     ERROR_SIGNATURE_TXTSETUPSIF,
24     ERROR_DRIVE_INFORMATION,
25     ERROR_WRITE_BOOT,
26     ERROR_LOAD_COMPUTER,
27     ERROR_LOAD_DISPLAY,
28     ERROR_LOAD_KEYBOARD,
29     ERROR_LOAD_KBLAYOUT,
30     ERROR_WARN_PARTITION,
31     ERROR_NEW_PARTITION,
32     ERROR_DELETE_SPACE,
33     ERROR_INSTALL_BOOTCODE,
34     ERROR_NO_FLOPPY,
35     ERROR_UPDATE_KBSETTINGS,
36     ERROR_UPDATE_DISPLAY_SETTINGS,
37     ERROR_IMPORT_HIVE,
38     ERROR_FIND_REGISTRY,
39     ERROR_CREATE_HIVE,
40     ERROR_INITIALIZE_REGISTRY,
41     ERROR_INVALID_CABINET_INF,
42     ERROR_CABINET_MISSING,
43     ERROR_CABINET_SCRIPT,
44     ERROR_COPY_QUEUE,
45     ERROR_CREATE_DIR,
46     ERROR_TXTSETUP_SECTION,
47     ERROR_CABINET_SECTION,
48     ERROR_CREATE_INSTALL_DIR,
49     ERROR_WRITE_PTABLE,
50     ERROR_ADDING_CODEPAGE,
51     ERROR_UPDATE_LOCALESETTINGS,
52     ERROR_ADDING_KBLAYOUTS,
53     ERROR_UPDATE_GEOID,
54     ERROR_DIRECTORY_NAME,
55     ERROR_INSUFFICIENT_PARTITION_SIZE,
56     ERROR_PARTITION_TABLE_FULL,
57     ERROR_ONLY_ONE_EXTENDED,
58     ERROR_FORMATTING_PARTITION,
59 
60     ERROR_LAST_ERROR_CODE
61 } ERROR_NUMBER;
62 
63 /* EOF */
64