mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 13:26:17 +00:00
[PSDK]
Move NTSTATUS codes from DDK to PSDK, removing all the duplicated ones (and adding a couple of missing ones). Dedicated to arty svn path=/branches/header-work/; revision=46158
This commit is contained in:
parent
479c28b333
commit
c50973ffa4
2 changed files with 966 additions and 2040 deletions
File diff suppressed because it is too large
Load diff
|
@ -1,31 +1,47 @@
|
||||||
/*
|
/*
|
||||||
* Win32 definitions for Windows NT
|
* ntstatus.h
|
||||||
*
|
*
|
||||||
* Copyright 1996 Alexandre Julliard
|
* Windows NT status codes
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This file is part of the w32api package.
|
||||||
* modify it under the terms of the GNU Lesser General Public
|
|
||||||
* License as published by the Free Software Foundation; either
|
|
||||||
* version 2.1 of the License, or (at your option) any later version.
|
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* Contributors:
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* Created by Casper S. Hornstrup <chorns@users.sourceforge.net>
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
*
|
||||||
* Lesser General Public License for more details.
|
* THIS SOFTWARE IS NOT COPYRIGHTED
|
||||||
|
*
|
||||||
|
* This source code is offered for use in the public domain. You may
|
||||||
|
* use, modify or distribute it freely.
|
||||||
|
*
|
||||||
|
* This code is distributed in the hope that it will be useful but
|
||||||
|
* WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
|
||||||
|
* DISCLAIMED. This includes but is not limited to warranties of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with this library; if not, write to the Free Software
|
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _NTSTATUS_
|
#ifndef _NTSTATUS_
|
||||||
#define _NTSTATUS_
|
#define _NTSTATUS_
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef WIN32_NO_STATUS
|
#ifndef WIN32_NO_STATUS
|
||||||
|
|
||||||
/*
|
#define FACILITY_DEBUGGER 0x1
|
||||||
* Debug codes
|
#define FACILITY_RPC_RUNTIME 0x2
|
||||||
*/
|
#define FACILITY_RPC_STUBS 0x3
|
||||||
|
#define FACILITY_IO_ERROR_CODE 0x4
|
||||||
|
#define FACILITY_TERMINAL_SERVER 0xA
|
||||||
|
#define FACILITY_USB_ERROR_CODE 0x10
|
||||||
|
#define FACILITY_HID_ERROR_CODE 0x11
|
||||||
|
#define FACILITY_FIREWIRE_ERROR_CODE 0x12
|
||||||
|
#define FACILITY_CLUSTER_ERROR_CODE 0x13
|
||||||
|
#define FACILITY_ACPI_ERROR_CODE 0x14
|
||||||
|
#define FACILITY_SXS_ERROR_CODE 0x15
|
||||||
|
|
||||||
|
/* Debug codes */
|
||||||
|
|
||||||
#define DBG_EXCEPTION_HANDLED ((NTSTATUS)0x00010001)
|
#define DBG_EXCEPTION_HANDLED ((NTSTATUS)0x00010001)
|
||||||
#define DBG_CONTINUE ((NTSTATUS)0x00010002)
|
#define DBG_CONTINUE ((NTSTATUS)0x00010002)
|
||||||
|
@ -42,11 +58,11 @@
|
||||||
#define DBG_NO_STATE_CHANGE ((NTSTATUS)0xC0010001)
|
#define DBG_NO_STATE_CHANGE ((NTSTATUS)0xC0010001)
|
||||||
#define DBG_APP_NOT_IDLE ((NTSTATUS)0xC0010002)
|
#define DBG_APP_NOT_IDLE ((NTSTATUS)0xC0010002)
|
||||||
|
|
||||||
/*
|
/* Exception codes */
|
||||||
* Exception codes
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
#if !defined(STATUS_SUCCESS)
|
||||||
#define STATUS_SUCCESS ((NTSTATUS)0x00000000)
|
#define STATUS_SUCCESS ((NTSTATUS)0x00000000)
|
||||||
|
#endif
|
||||||
#define STATUS_SEVERITY_SUCCESS 0x0
|
#define STATUS_SEVERITY_SUCCESS 0x0
|
||||||
#define STATUS_SEVERITY_INFORMATIONAL 0x1
|
#define STATUS_SEVERITY_INFORMATIONAL 0x1
|
||||||
#define STATUS_SEVERITY_WARNING 0x2
|
#define STATUS_SEVERITY_WARNING 0x2
|
||||||
|
@ -1039,6 +1055,34 @@
|
||||||
#define STATUS_PNP_IRQ_TRANSLATION_FAILED ((NTSTATUS)0xC0040037)
|
#define STATUS_PNP_IRQ_TRANSLATION_FAILED ((NTSTATUS)0xC0040037)
|
||||||
#define STATUS_PNP_INVALID_ID ((NTSTATUS)0xC0040038)
|
#define STATUS_PNP_INVALID_ID ((NTSTATUS)0xC0040038)
|
||||||
|
|
||||||
|
#define STATUS_ACPI_INVALID_OPCODE ((NTSTATUS)0xC0140001L)
|
||||||
|
#define STATUS_ACPI_STACK_OVERFLOW ((NTSTATUS)0xC0140002L)
|
||||||
|
#define STATUS_ACPI_ASSERT_FAILED ((NTSTATUS)0xC0140003L)
|
||||||
|
#define STATUS_ACPI_INVALID_INDEX ((NTSTATUS)0xC0140004L)
|
||||||
|
#define STATUS_ACPI_INVALID_ARGUMENT ((NTSTATUS)0xC0140005L)
|
||||||
|
#define STATUS_ACPI_FATAL ((NTSTATUS)0xC0140006L)
|
||||||
|
#define STATUS_ACPI_INVALID_SUPERNAME ((NTSTATUS)0xC0140007L)
|
||||||
|
#define STATUS_ACPI_INVALID_ARGTYPE ((NTSTATUS)0xC0140008L)
|
||||||
|
#define STATUS_ACPI_INVALID_OBJTYPE ((NTSTATUS)0xC0140009L)
|
||||||
|
#define STATUS_ACPI_INVALID_TARGETTYPE ((NTSTATUS)0xC014000AL)
|
||||||
|
#define STATUS_ACPI_INCORRECT_ARGUMENT_COUNT ((NTSTATUS)0xC014000BL)
|
||||||
|
#define STATUS_ACPI_ADDRESS_NOT_MAPPED ((NTSTATUS)0xC014000CL)
|
||||||
|
#define STATUS_ACPI_INVALID_EVENTTYPE ((NTSTATUS)0xC014000DL)
|
||||||
|
#define STATUS_ACPI_HANDLER_COLLISION ((NTSTATUS)0xC014000EL)
|
||||||
|
#define STATUS_ACPI_INVALID_DATA ((NTSTATUS)0xC014000FL)
|
||||||
|
#define STATUS_ACPI_INVALID_REGION ((NTSTATUS)0xC0140010L)
|
||||||
|
#define STATUS_ACPI_INVALID_ACCESS_SIZE ((NTSTATUS)0xC0140011L)
|
||||||
|
#define STATUS_ACPI_ACQUIRE_GLOBAL_LOCK ((NTSTATUS)0xC0140012L)
|
||||||
|
#define STATUS_ACPI_ALREADY_INITIALIZED ((NTSTATUS)0xC0140013L)
|
||||||
|
#define STATUS_ACPI_NOT_INITIALIZED ((NTSTATUS)0xC0140014L)
|
||||||
|
#define STATUS_ACPI_INVALID_MUTEX_LEVEL ((NTSTATUS)0xC0140015L)
|
||||||
|
#define STATUS_ACPI_MUTEX_NOT_OWNED ((NTSTATUS)0xC0140016L)
|
||||||
|
#define STATUS_ACPI_MUTEX_NOT_OWNER ((NTSTATUS)0xC0140017L)
|
||||||
|
#define STATUS_ACPI_RS_ACCESS ((NTSTATUS)0xC0140018L)
|
||||||
|
#define STATUS_ACPI_INVALID_TABLE ((NTSTATUS)0xC0140019L)
|
||||||
|
#define STATUS_ACPI_REG_HANDLER_FAILED ((NTSTATUS)0xC0140020L)
|
||||||
|
#define STATUS_ACPI_POWER_REQUEST_FAILED ((NTSTATUS)0xC0140021L)
|
||||||
|
|
||||||
#define STATUS_CTX_WINSTATION_NAME_INVALID ((NTSTATUS)0xC00A0001)
|
#define STATUS_CTX_WINSTATION_NAME_INVALID ((NTSTATUS)0xC00A0001)
|
||||||
#define STATUS_CTX_INVALID_PD ((NTSTATUS)0xC00A0002)
|
#define STATUS_CTX_INVALID_PD ((NTSTATUS)0xC00A0002)
|
||||||
#define STATUS_CTX_PD_NOT_FOUND ((NTSTATUS)0xC00A0003)
|
#define STATUS_CTX_PD_NOT_FOUND ((NTSTATUS)0xC00A0003)
|
||||||
|
@ -1124,4 +1168,8 @@
|
||||||
|
|
||||||
#endif /* WIN32_NO_STATUS */
|
#endif /* WIN32_NO_STATUS */
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* _NTSTATUS_ */
|
#endif /* _NTSTATUS_ */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue