Naveen Neel / shedskin
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers cfg.h Source File

cfg.h

00001 /*
00002  * cfg.h
00003  *
00004  * PnP Configuration Manager shared definitions between user mode and kernel mode code
00005  *
00006  * This file is part of the w32api package.
00007  *
00008  * Contributors:
00009  *   Created by Casper S. Hornstrup <chorns@users.sourceforge.net>
00010  *
00011  * THIS SOFTWARE IS NOT COPYRIGHTED
00012  *
00013  * This source code is offered for use in the public domain. You may
00014  * use, modify or distribute it freely.
00015  *
00016  * This code is distributed in the hope that it will be useful but
00017  * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
00018  * DISCLAIMED. This includes but is not limited to warranties of
00019  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00020  *
00021  */
00022 
00023 #ifndef __CFG_H
00024 #define __CFG_H
00025 
00026 #if __GNUC__ >=3
00027 #pragma GCC system_header
00028 #endif
00029 
00030 #ifdef __cplusplus
00031 extern "C" {
00032 #endif
00033 
00034 #define CM_PROB_NOT_CONFIGURED                      0x00000001
00035 #define CM_PROB_DEVLOADER_FAILED            0x00000002
00036 #define CM_PROB_OUT_OF_MEMORY               0x00000003
00037 #define CM_PROB_ENTRY_IS_WRONG_TYPE         0x00000004
00038 #define CM_PROB_LACKED_ARBITRATOR           0x00000005
00039 #define CM_PROB_BOOT_CONFIG_CONFLICT        0x00000006
00040 #define CM_PROB_FAILED_FILTER               0x00000007
00041 #define CM_PROB_DEVLOADER_NOT_FOUND         0x00000008
00042 #define CM_PROB_INVALID_DATA                0x00000009
00043 #define CM_PROB_FAILED_START                0x0000000A
00044 #define CM_PROB_LIAR                        0x0000000B
00045 #define CM_PROB_NORMAL_CONFLICT             0x0000000C
00046 #define CM_PROB_NOT_VERIFIED                0x0000000D
00047 #define CM_PROB_NEED_RESTART                0x0000000E
00048 #define CM_PROB_REENUMERATION               0x0000000F
00049 #define CM_PROB_PARTIAL_LOG_CONF            0x00000010
00050 #define CM_PROB_UNKNOWN_RESOURCE            0x00000011
00051 #define CM_PROB_REINSTALL                   0x00000012
00052 #define CM_PROB_REGISTRY                    0x00000013
00053 #define CM_PROB_VXDLDR                      0x00000014
00054 #define CM_PROB_WILL_BE_REMOVED             0x00000015
00055 #define CM_PROB_DISABLED                    0x00000016
00056 #define CM_PROB_DEVLOADER_NOT_READY         0x00000017
00057 #define CM_PROB_DEVICE_NOT_THERE            0x00000018
00058 #define CM_PROB_MOVED                       0x00000019
00059 #define CM_PROB_TOO_EARLY                   0x0000001A
00060 #define CM_PROB_NO_VALID_LOG_CONF           0x0000001B
00061 #define CM_PROB_FAILED_INSTALL              0x0000001C
00062 #define CM_PROB_HARDWARE_DISABLED           0x0000001D
00063 #define CM_PROB_CANT_SHARE_IRQ              0x0000001E
00064 #define CM_PROB_FAILED_ADD                  0x0000001F
00065 #define CM_PROB_DISABLED_SERVICE            0x00000020
00066 #define CM_PROB_TRANSLATION_FAILED          0x00000021
00067 #define CM_PROB_NO_SOFTCONFIG               0x00000022
00068 #define CM_PROB_BIOS_TABLE                  0x00000023
00069 #define CM_PROB_IRQ_TRANSLATION_FAILED      0x00000024
00070 #define CM_PROB_FAILED_DRIVER_ENTRY         0x00000025
00071 #define CM_PROB_DRIVER_FAILED_PRIOR_UNLOAD  0x00000026
00072 #define CM_PROB_DRIVER_FAILED_LOAD          0x00000027
00073 #define CM_PROB_DRIVER_SERVICE_KEY_INVALID  0x00000028
00074 #define CM_PROB_LEGACY_SERVICE_NO_DEVICES   0x00000029
00075 #define CM_PROB_DUPLICATE_DEVICE            0x0000002A
00076 #define CM_PROB_FAILED_POST_START           0x0000002B
00077 #define CM_PROB_HALTED                      0x0000002C
00078 #define CM_PROB_PHANTOM                     0x0000002D
00079 #define CM_PROB_SYSTEM_SHUTDOWN             0x0000002E
00080 #define CM_PROB_HELD_FOR_EJECT              0x0000002F
00081 #define CM_PROB_DRIVER_BLOCKED              0x00000030
00082 #define CM_PROB_REGISTRY_TOO_LARGE          0x00000031
00083 
00084 #define LCPRI_FORCECONFIG                 0x00000000
00085 #define LCPRI_BOOTCONFIG                  0x00000001
00086 #define LCPRI_DESIRED                     0x00002000
00087 #define LCPRI_NORMAL                      0x00003000
00088 #define LCPRI_LASTBESTCONFIG              0x00003FFF
00089 #define LCPRI_SUBOPTIMAL                  0x00005000
00090 #define LCPRI_LASTSOFTCONFIG              0x00007FFF
00091 #define LCPRI_RESTART                     0x00008000
00092 #define LCPRI_REBOOT                      0x00009000
00093 #define LCPRI_POWEROFF                    0x0000A000
00094 #define LCPRI_HARDRECONFIG                0x0000C000
00095 #define LCPRI_HARDWIRED                   0x0000E000
00096 #define LCPRI_IMPOSSIBLE                  0x0000F000
00097 #define LCPRI_DISABLED                    0x0000FFFF
00098 #define MAX_LCPRI                         0x0000FFFF
00099 
00100 #define DN_ROOT_ENUMERATED  0x00000001  /* Was enumerated by ROOT */
00101 #define DN_DRIVER_LOADED    0x00000002  /* Has Register_Device_Driver */
00102 #define DN_ENUM_LOADED      0x00000004  /* Has Register_Enumerator */
00103 #define DN_STARTED      0x00000008  /* Is currently configured */
00104 #define DN_MANUAL       0x00000010  /* Manually installed */
00105 #define DN_NEED_TO_ENUM     0x00000020  /* May need reenumeration */
00106 #define DN_NOT_FIRST_TIME   0x00000040  /* Has received a config */
00107 #define DN_HARDWARE_ENUM    0x00000080  /* Enum generates hardware ID */
00108 #define DN_LIAR         0x00000100  /* Lied about can reconfig once */
00109 #define DN_HAS_MARK     0x00000200  /* Not CM_Create_DevNode lately */
00110 #define DN_HAS_PROBLEM      0x00000400  /* Need device installer */
00111 #define DN_FILTERED     0x00000800  /* Is filtered */
00112 #define DN_MOVED        0x00001000  /* Has been moved */
00113 #define DN_DISABLEABLE      0x00002000  /* Can be rebalanced */
00114 #define DN_REMOVABLE        0x00004000  /* Can be removed */
00115 #define DN_PRIVATE_PROBLEM  0x00008000  /* Has a private problem */
00116 #define DN_MF_PARENT        0x00010000  /* Multi function parent */
00117 #define DN_MF_CHILD     0x00020000  /* Multi function child */
00118 #define DN_WILL_BE_REMOVED  0x00040000  /* Devnode is being removed */
00119 
00120 typedef enum _PNP_VETO_TYPE {
00121   PNP_VetoTypeUnknown,
00122   PNP_VetoLegacyDevice,
00123   PNP_VetoPendingClose,
00124   PNP_VetoWindowsApp,
00125   PNP_VetoWindowsService,
00126   PNP_VetoOutstandingOpen,
00127   PNP_VetoDevice,
00128   PNP_VetoDriver,
00129   PNP_VetoIllegalDeviceRequest,
00130   PNP_VetoInsufficientPower,
00131   PNP_VetoNonDisableable,
00132   PNP_VetoLegacyDriver
00133 } PNP_VETO_TYPE, *PPNP_VETO_TYPE;
00134 
00135 #ifdef __cplusplus
00136 }
00137 #endif
00138 
00139 #endif /* __CFG_H */