Move some access rights so they are usable form kernel-mode.
[reactos.git] / reactos / include / defines.h
index 8ce4fc7..e9602eb 100644 (file)
@@ -165,6 +165,7 @@ extern "C" {
 #define MF_USECHECKBITMAPS     (0x200L)
 #define MF_RIGHTJUSTIFY MF_HELP
 
+
 /* Ternary Raster Operations - BitBlt */
 #define BLACKNESS      0x00000042
 #define NOTSRCERASE    0x001100A6
@@ -254,6 +255,13 @@ extern "C" {
 #define DISP_CHANGE_NOTUPDATED (-3)
 #define DISP_CHANGE_BADPARAM   (-5)
 
+/* ChangeMenu */
+#define MF_INSERT 0
+#define MF_CHANGE 128
+#define MF_APPEND 256
+#define MF_DELETE 512
+#define MF_REMOVE 4096
+
 /* ChangeServiceConfig */
 #define SERVICE_NO_CHANGE      (-1)
 #define SERVICE_KERNEL_DRIVER          (1)
@@ -460,10 +468,12 @@ extern "C" {
 #define SYMBOL_CHARSET (2)
 #define SHIFTJIS_CHARSET       (128)
 #define HANGEUL_CHARSET        (129)
+#define JOHAB_CHARSET  (130)
 #define GB2312_CHARSET (134)
 #define CHINESEBIG5_CHARSET    (136)
 #define GREEK_CHARSET  (161)
 #define TURKISH_CHARSET        (162)
+#define VIETNAMESE_CHARSET     (163)
 #define HEBREW_CHARSET (177)
 #define ARABIC_CHARSET (178)
 #define BALTIC_CHARSET (186)
@@ -524,8 +534,6 @@ extern "C" {
 #define PIPE_ACCESS_DUPLEX     (3)
 #define PIPE_ACCESS_INBOUND    (1)
 #define PIPE_ACCESS_OUTBOUND   (2)
-#define WRITE_DAC      (0x40000L)
-#define WRITE_OWNER    (0x80000L)
 #define ACCESS_SYSTEM_SECURITY (0x1000000L)
 #define PIPE_TYPE_BYTE (0)
 #define PIPE_TYPE_MESSAGE      (4)
@@ -973,6 +981,11 @@ extern "C" {
 #define DFCS_MONO      (32768)
 #define DFCS_PUSHED    (512)
 
+/* DrawIcon */
+#define ICON_SMALL     (0)
+#define ICON_BIG       (1)
+#define ICON_SMALL2    (2)
+
 /* DrawIconEx */
 #define DI_COMPAT      (4)
 #define DI_DEFAULTSIZE (8)
@@ -1077,19 +1090,20 @@ extern "C" {
 #define TRUETYPE_FONTTYPE      (4)
 
 /* EnumObjects, GetCurrentObject, GetObjectType */
-#define OBJ_BRUSH      (2)
 #define OBJ_PEN        (1)
+#define OBJ_BRUSH      (2)
+#define OBJ_DC (3)
+#define OBJ_METADC     (4)
 #define OBJ_PAL        (5)
 #define OBJ_FONT       (6)
 #define OBJ_BITMAP     (7)
-#define OBJ_EXTPEN     (11)
 #define OBJ_REGION     (8)
-#define OBJ_DC (3)
-#define OBJ_MEMDC      (10)
 #define OBJ_METAFILE   (9)
-#define OBJ_METADC     (4)
-#define OBJ_ENHMETAFILE        (13)
+#define OBJ_MEMDC      (10)
+#define OBJ_EXTPEN     (11)
 #define OBJ_ENHMETADC  (12)
+#define OBJ_ENHMETAFILE        (13)
+#define OBJ_COLORSPACE (14)
 
 /* EnumPrinters */
 
@@ -1298,6 +1312,7 @@ extern "C" {
 #define SCS_PIF_BINARY (3)
 #define SCS_POSIX_BINARY       (4)
 #define SCS_WOW_BINARY (2)
+#define SCS_64BIT_BINARY       (6)
 
 /* GetBoundsRect, SetBoundsRect */
 #define DCB_DISABLE    (8)
@@ -1957,6 +1972,11 @@ extern "C" {
 #define GMEM_LOCKCOUNT  (255)
 #define GlobalDiscard(h) GlobalReAlloc(h, 0, GMEM_MOVEABLE)
 
+/* GradientFill */
+#define GRADIENT_FILL_RECT_H   (0)
+#define GRADIENT_FILL_RECT_V   (1)
+#define GRADIENT_FILL_TRIANGLE (2)
+
 /* ImageList_Create */
 #define ILC_COLOR      (0)
 #define ILC_COLOR4     (4)
@@ -2066,6 +2086,13 @@ extern "C" {
 /* InitializeSecurityDescriptor */
 #define SECURITY_DESCRIPTOR_REVISION   (1)
 
+/* InSendMessageEx */
+#define ISMEX_NOSEND   (0)
+#define ISMEX_SEND     (1)
+#define ISMEX_NOTIFY   (2)
+#define ISMEX_CALLBACK (4)
+#define ISMEX_REPLIED  (8)
+
 /* JournalPlaybackProc, KeyboardProc */
 #define HC_GETNEXT     (1)
 #define HC_SKIP        (2)
@@ -2294,6 +2321,7 @@ extern "C" {
 #define EVENTLOG_BACKWARDS_READ        (8)
 #define EVENTLOG_SEEK_READ     (2)
 #define EVENTLOG_SEQUENTIAL_READ       (1)
+#define EVENTLOG_SUCCESS       (0)
 #define EVENTLOG_ERROR_TYPE    (1)
 #define EVENTLOG_WARNING_TYPE  (2)
 #define EVENTLOG_INFORMATION_TYPE      (4)
@@ -2800,13 +2828,25 @@ extern "C" {
 #define SPIF_SENDCHANGE        (2)
 
 /* TrackPopupMenu, TrackPopMenuEx */
-#define TPM_CENTERALIGN        (0x4L)
-#define TPM_LEFTALIGN  (0L)
-#define TPM_RIGHTALIGN (0x8L)
-#define TPM_LEFTBUTTON (0L)
-#define TPM_RIGHTBUTTON        (0x2L)
-#define TPM_HORIZONTAL (0L)
-#define TPM_VERTICAL   (0x40L)
+#define TPM_LEFTBUTTON (0)
+#define TPM_RIGHTBUTTON        (2)
+#define TPM_LEFTALIGN  (0)
+#define TPM_CENTERALIGN        (4)
+#define TPM_RIGHTALIGN (8)
+#define TPM_TOPALIGN   (0)
+#define TPM_VCENTERALIGN       (16)
+#define TPM_BOTTOMALIGN        (32)
+#define TPM_HORIZONTAL (0)
+#define TPM_VERTICAL   (64)
+#define TPM_NONOTIFY   (128)
+#define TPM_RETURNCMD  (256)
+#define TPM_RECURSE    (1)
+#define TPM_HORPOSANIMATION    (1024)
+#define TPM_HORNEGANIMATION    (2048)
+#define TPM_VERPOSANIMATION    (4096)
+#define TPM_VERNEGANIMATION    (8192)
+#define TPM_NOANIMATION        (16384)
+#define TPM_LAYOUTRTL  (32768)
 
 /* TranslateCharsetInfo */
 #define TCI_SRCCHARSET (1)
@@ -3074,6 +3114,7 @@ extern "C" {
 #define PSH_RTLREADING (2048)
 #define PSCB_INITIALIZED       (1)
 #define PSCB_PRECREATE (2)
+#define PSCB_BUTTONPRESSED     (3)
 
 /* PSN_APPLY message */
 #define PSNRET_NOERROR (0)
@@ -3237,6 +3278,18 @@ extern "C" {
 #define PAN_XHEIGHT_DUCKING_SMALL      (5)
 #define PAN_XHEIGHT_DUCKING_STD        (6)
 #define PAN_XHEIGHT_DUCKING_LARGE      (7)
+#define PANOSE_COUNT   (10)
+#define PAN_FAMILYTYPE_INDEX   (0)
+#define PAN_SERIFSTYLE_INDEX   (1)
+#define PAN_WEIGTH_INDEX       (2)
+#define PAN_PROPORTION_INDEX   (3)
+#define PAN_CONTRAST_INDEX     (4)
+#define PAN_STROKEVARIATION_INDEX      (5)
+#define PAN_ARMSTYLE_INDEX     (6)
+#define PAN_LETTERFORM_INDEX   (7)
+#define PAN_MIDLINE_INDEX      (8)
+#define PAN_XHEIGHT_INDEX      (9)
+#define PAN_CULTURE_LATIN      (0)
 
 /* PALETTENTRY structure */
 #define PC_EXPLICIT    (2)
@@ -4083,10 +4136,21 @@ extern "C" {
 #define SORT_KOREAN_UNICODE    (1)
 
 /* SYSTEM_INFO structure */
+#define PROCESSOR_ARCHITECTURE_IA64 (6)
+#define PROCESSOR_ARCHITECTURE_AMD64 (9)
+#define PROCESSOR_ARCHITECTURE_IA64_ON_WIN64 (10)
 #define PROCESSOR_INTEL_386    (386)
 #define PROCESSOR_INTEL_486    (486)
 #define PROCESSOR_INTEL_PENTIUM        (586)
+#define PROCESSOR_INTEL_PENTIUMII (686)
+#define PROCESSOR_INTEL_PENTIUMIII (786)
+#define PROCESSOR_PPC_601      (601)
+#define PROCESSOR_PPC_603      (603)
+#define PROCESSOR_PPC_604      (604)
+#define PROCESSOR_PPC_620      (620)
+#define PROCESSOR_INTEL_IA64   (2200)
 #define PROCESSOR_MIPS_R4000   (4000)
+#define PROCESSOR_AMD_X8664    (8664)
 #define PROCESSOR_ALPHA_21064  (21064)
 
 /* TAPE_GET_DRIVE_PARAMETERS structure */
@@ -4727,6 +4791,11 @@ extern "C" {
 #define TMPF_TRUETYPE          (0x4)
 #define TMPF_DEVICE            (0x8)
 
+/* NEWTEXTMETRIC structure */
+#define NTM_ITALIC             (0x01)
+#define NTM_BOLD               (0x20)
+#define NTM_REGULAR            (0x40)
+
 /* CopyFileEx options */
 #define COPY_FILE_FAIL_IF_EXISTS       (1)
 
@@ -4925,6 +4994,22 @@ extern "C" {
 
 #define _fmemcpy memcpy
 
+/* Control Panel */
+#define WM_CPL_LAUNCH (WM_USER+1000)
+#define WM_CPL_LAUNCHED (WM_USER+1001)
+#define CPL_DYNAMIC_RES 0
+#define CPL_INIT 1
+#define CPL_GETCOUNT 2
+#define CPL_INQUIRE 3
+#define CPL_SELECT 4
+#define CPL_DBLCLK 5
+#define CPL_STOP 6
+#define CPL_EXIT 7
+#define CPL_NEWINQUIRE 8
+#define CPL_STARTWPARMSA 9
+#define CPL_STARTWPARMSW 10
+#define CPL_SETUP 200
+
 /* Used by wxwindows. */
 #define SIZEFULLSCREEN SIZE_MAXIMIZED
 #define SIZENORMAL     SIZE_RESTORED