reactos/base/setup/lib/errorcode.h

66 lines
1.6 KiB
C
Raw Normal View History

/*
* PROJECT: ReactOS Setup Library
* LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
* PURPOSE: Setup error codes
* COPYRIGHT: Copyright 2007-2018 Johannes Anderwald <johannes.anderwald@reactos.org>
*/
#pragma once
[USETUP][SETUPLIB] Split the registry helper code. Split the registry helper code into registry utility functions (create/mount/unmount/verify hives) and registry creation code (the rest: initializing the system hives) and move it in the setup library. svn path=/branches/setup_improvements/; revision=75247 [USETUP][SETUPLIB] Improve how the Setup* INF APIs are interfaced in the code. Define prototypes compatible (including their calling convention) with the ones defined by setupapi (.h/.dll) so that it can be possible to either use an internal implementation of these functions (via the INFLIB library) as currently being done, or using imported setupapi functions, as would be done by the future 1st-stage GUI installer. [SETUPLIB] Cleanup the registry.c file and use the infsupp.h header. svn path=/branches/setup_improvements/; revision=75345 svn path=/branches/setup_improvements/; revision=75346 [USETUP][SETUPLIB] Move some INF-related code from usetup to the setuplib. - Move the generic INF_GetDataField() and INF_GetData() helpers to setuplib, and rework them a bit so that they explicitly call setupapi functions (or implementations thereof when being used in usetup); - Rework the headers in accordance; - Fix compilation in lib/registry.c . - Fix compilation when these headers are used withing usetup (who doesn't use setupapi.dll) and "reactos" (the 1st-stage GUI installer that uses setupapi.dll). svn path=/branches/setup_improvements/; revision=75515 svn path=/branches/setup_improvements/; revision=75537 svn path=/branches/setup_improvements/; revision=75538
2017-06-30 19:07:02 +00:00
/* setupapi.h defines ERROR_NOT_INSTALLED with another meaning */
#ifdef ERROR_NOT_INSTALLED
#undef ERROR_NOT_INSTALLED
#endif
typedef enum _ERROR_NUMBER
{
NOT_AN_ERROR = 0, // ERROR_SUCCESS,
ERROR_NOT_INSTALLED,
ERROR_NO_BUILD_PATH,
ERROR_SOURCE_PATH,
ERROR_SOURCE_DIR,
ERROR_NO_HDD,
ERROR_NO_SOURCE_DRIVE,
ERROR_LOAD_TXTSETUPSIF,
ERROR_CORRUPT_TXTSETUPSIF,
ERROR_SIGNATURE_TXTSETUPSIF,
ERROR_DRIVE_INFORMATION,
ERROR_WRITE_BOOT,
ERROR_LOAD_COMPUTER,
ERROR_LOAD_DISPLAY,
ERROR_LOAD_KEYBOARD,
ERROR_LOAD_KBLAYOUT,
ERROR_WARN_PARTITION,
ERROR_NEW_PARTITION,
ERROR_INSTALL_BOOTCODE,
ERROR_NO_FLOPPY,
ERROR_UPDATE_KBSETTINGS,
ERROR_UPDATE_DISPLAY_SETTINGS,
ERROR_IMPORT_HIVE,
ERROR_FIND_REGISTRY,
ERROR_CREATE_HIVE,
ERROR_INITIALIZE_REGISTRY,
ERROR_INVALID_CABINET_INF,
ERROR_CABINET_MISSING,
ERROR_CABINET_SCRIPT,
ERROR_COPY_QUEUE,
ERROR_CREATE_DIR,
ERROR_TXTSETUP_SECTION,
ERROR_CABINET_SECTION,
ERROR_CREATE_INSTALL_DIR,
ERROR_WRITE_PTABLE,
ERROR_ADDING_CODEPAGE,
ERROR_UPDATE_LOCALESETTINGS,
ERROR_ADDING_KBLAYOUTS,
ERROR_UPDATE_GEOID,
ERROR_DIRECTORY_NAME,
ERROR_INSUFFICIENT_PARTITION_SIZE,
ERROR_PARTITION_TABLE_FULL,
ERROR_ONLY_ONE_EXTENDED,
ERROR_FORMATTING_PARTITION,
ERROR_LAST_ERROR_CODE
} ERROR_NUMBER;
/* EOF */