Made header file usage more consistent

Tried to reduce dependancies between layers by moving ntoskrnl's private
header files inside its directory
Removed the need to include windows.h for ddk code
Removed obsolete testing code

svn path=/trunk/; revision=1213
This commit is contained in:
David Welch 2000-06-29 23:35:53 +00:00
parent 109fef6e75
commit cc95f73421
214 changed files with 2260 additions and 1972 deletions

View file

@ -1,7 +1,8 @@
#include <ddk/ntddk.h>
#include <stdarg.h>
#include <string.h>
#include <stdio.h>
#include <windows.h>
#include <ddk/ntddk.h>
HANDLE OutputHandle;
HANDLE InputHandle;

View file

@ -1,7 +1,7 @@
#include <ddk/ntddk.h>
#include <stdarg.h>
#include <string.h>
#include <stdio.h>
#include <windows.h>
HANDLE OutputHandle;
HANDLE InputHandle;

View file

@ -1,9 +1,10 @@
/* $Id: lpcclt.c,v 1.6 2000/04/03 21:54:33 dwelch Exp $
/* $Id: lpcclt.c,v 1.7 2000/06/29 23:35:09 dwelch Exp $
*
* DESCRIPTION: Simple LPC Client
* PROGRAMMER: David Welch
*/
#include <ddk/ntddk.h>
#include <windows.h>
#include <napi/lpc.h>
#include <stdarg.h>
#include <string.h>

View file

@ -1,9 +1,10 @@
/* $Id: lpcsrv.c,v 1.6 2000/04/03 21:54:33 dwelch Exp $
/* $Id: lpcsrv.c,v 1.7 2000/06/29 23:35:10 dwelch Exp $
*
* DESCRIPTION: Simple LPC Server
* PROGRAMMER: David Welch
*/
#include <ddk/ntddk.h>
#include <windows.h>
#include <napi/lpc.h>
#include <stdarg.h>
#include <string.h>

View file

@ -1,4 +1,5 @@
#include <ddk/ntddk.h>
#include <windows.h>
#include <stdarg.h>
#include <string.h>
#include <stdio.h>

View file

@ -1,9 +1,10 @@
/* $Id: shmsrv.c,v 1.4 2000/05/13 13:50:54 dwelch Exp $
/* $Id: shmsrv.c,v 1.5 2000/06/29 23:35:10 dwelch Exp $
*
* FILE : reactos/apps/shm/shmsrv.c
* AUTHOR: David Welch
*/
#include <ddk/ntddk.h>
#include <windows.h>
#include <stdarg.h>
#include <string.h>
#include <stdio.h>

View file

@ -1,7 +1,7 @@
# $Id: Makefile,v 1.5 2000/01/29 20:32:12 phreak Exp $
# $Id: Makefile,v 1.6 2000/06/29 23:35:09 dwelch Exp $
#
BASE_CFLAGS = -I../../include
BASE_CFLAGS =
TARGETNAME=buildno
CLEAN_FILES= $(TARGETNAME).o $(TARGETNAME)$(EXE_POSTFIX) $(TARGETNAME).sym
@ -10,7 +10,7 @@ all: $(TARGETNAME)$(EXE_POSTFIX)
$(TARGETNAME)$(EXE_POSTFIX): $(TARGETNAME).c ../../include/reactos/version.h
$(NATIVE_CC) -I../../include -o $(TARGETNAME)$(EXE_POSTFIX) $(TARGETNAME).c
$(NATIVE_CC) -o $(TARGETNAME)$(EXE_POSTFIX) $(TARGETNAME).c

View file

@ -1,4 +1,4 @@
/* $Id: buildno.c,v 1.3 2000/01/22 14:25:48 ea Exp $
/* $Id: buildno.c,v 1.4 2000/06/29 23:35:09 dwelch Exp $
*
* buildno - Generate the build number for ReactOS
*
@ -33,7 +33,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <reactos/version.h>
#include "../../include/reactos/version.h"
#define FALSE 0
#define TRUE 1

View file

@ -1,4 +1,4 @@
/* $Id: blue.c,v 1.23 2000/05/26 05:43:33 phreak Exp $
/* $Id: blue.c,v 1.24 2000/06/29 23:35:47 dwelch Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -17,7 +17,7 @@
#include <defines.h>
#define NDEBUG
#include <internal/debug.h>
#include <debug.h>
/* DEFINITIONS ***************************************************************/
@ -434,7 +434,7 @@ ScrIoControl (PDEVICE_OBJECT DeviceObject, PIRP Irp)
case IOCTL_CONSOLE_READ_OUTPUT_ATTRIBUTE:
{
POUTPUT_ATTRIBUTE Buf = (POUTPUT_ATTRIBUTE)Irp->AssociatedIrp.SystemBuffer;
LPWORD pAttr = (LPWORD)MmGetSystemAddressForMdl(Irp->MdlAddress);
PWORD pAttr = (PWORD)MmGetSystemAddressForMdl(Irp->MdlAddress);
char *vidmem;
int offset;
DWORD dwCount;
@ -458,7 +458,7 @@ ScrIoControl (PDEVICE_OBJECT DeviceObject, PIRP Irp)
case IOCTL_CONSOLE_WRITE_OUTPUT_ATTRIBUTE:
{
POUTPUT_ATTRIBUTE Buf = (POUTPUT_ATTRIBUTE)Irp->AssociatedIrp.SystemBuffer;
LPWORD pAttr = (LPWORD)MmGetSystemAddressForMdl(Irp->MdlAddress);
PWORD pAttr = (PWORD)MmGetSystemAddressForMdl(Irp->MdlAddress);
char *vidmem;
int offset;
DWORD dwCount;
@ -480,7 +480,7 @@ ScrIoControl (PDEVICE_OBJECT DeviceObject, PIRP Irp)
break;
case IOCTL_CONSOLE_SET_TEXT_ATTRIBUTE:
DeviceExtension->CharAttribute = (WORD)*(LPWORD)Irp->AssociatedIrp.SystemBuffer;
DeviceExtension->CharAttribute = (WORD)*(PWORD)Irp->AssociatedIrp.SystemBuffer;
Irp->IoStatus.Information = 0;
Status = STATUS_SUCCESS;
break;

View file

@ -1,4 +1,4 @@
/* $Id: ide.c,v 1.28 2000/06/19 22:15:50 ekohl Exp $
/* $Id: ide.c,v 1.29 2000/06/29 23:35:48 dwelch Exp $
*
* IDE.C - IDE Disk driver
* written by Rex Jolliff
@ -72,12 +72,11 @@ typedef DISK_GEOMETRY *PDISK_GEOMETRY;
// -------------------------------------------------------------------------
#include <internal/i386/io.h>
#include "../../../ntoskrnl/include/internal/i386/io.h"
#include <string.h>
#include <internal/string.h>
#define NDEBUG
#include <internal/debug.h>
#include <debug.h>
#include "ide.h"
#include "idep.h"

View file

@ -1,11 +1,11 @@
# $Id: makefile,v 1.10 1999/12/18 10:17:41 ea Exp $
# $Id: makefile,v 1.11 2000/06/29 23:35:48 dwelch Exp $
#
#
TARGET=ide
OBJECTS = $(TARGET).o $(TARGET).coff ../../../ntoskrnl/ntoskrnl.a
BASE_CFLAGS = -I../../../include
BASE_CFLAGS = -I. -I../../../include
all: $(TARGET).sys

View file

@ -10,14 +10,13 @@
/* INCLUDES ****************************************************************/
#include <ddk/ntddk.h>
#include <internal/mmhal.h>
#include <internal/halio.h>
#include <string.h>
#include <internal/string.h>
#include <defines.h>
#include <ntos/keyboard.h>
#include "../../../ntoskrnl/include/internal/i386/io.h"
#include <ntos/minmax.h>
#define NDEBUG
#include <internal/debug.h>
#include <debug.h>
#include "keyboard.h"

View file

@ -1,11 +1,11 @@
# $Id: makefile,v 1.8 1999/12/18 10:17:42 ea Exp $
# $Id: makefile,v 1.9 2000/06/29 23:35:48 dwelch Exp $
#
#
TARGET=keyboard
OBJECTS = $(TARGET).o $(TARGET).coff ../../../ntoskrnl/ntoskrnl.a
BASE_CFLAGS = -I../../../include
BASE_CFLAGS = -I. -I../../../include
all: $(TARGET).sys

View file

@ -1,10 +1,10 @@
# $Id: makefile,v 1.7 1999/12/04 20:58:40 ea Exp $
# $Id: makefile,v 1.8 2000/06/29 23:35:49 dwelch Exp $
#
#
TARGET=parallel
OBJECTS= $(TARGET).o $(TARGET).coff ../../../ntoskrnl/ntoskrnl.a
BASE_CFLAGS = -I../../../include
BASE_CFLAGS = -I. -I../../../include
all: $(TARGET).sys

View file

@ -1,4 +1,4 @@
/* $Id: parallel.c,v 1.4 1999/12/04 20:58:40 ea Exp $
/* $Id: parallel.c,v 1.5 2000/06/29 23:35:49 dwelch Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -13,12 +13,12 @@
/* FUNCTIONS **************************************************************/
#include <ddk/ntddk.h>
#include <internal/halio.h>
#include "../../../ntoskrnl/include/internal/i386/io.h"
#include "parallel.h"
#define NDEBUG
#include <internal/debug.h>
#include <debug.h>
#define LP_B (0x378)

View file

@ -1,10 +1,10 @@
# $Id: makefile,v 1.7 1999/12/04 20:58:40 ea Exp $
# $Id: makefile,v 1.8 2000/06/29 23:35:49 dwelch Exp $
#
#
TARGET= serial
OBJECTS= $(TARGET).o $(TARGET).coff ../../../ntoskrnl/ntoskrnl.a
BASE_CFLAGS = -I../../../include
BASE_CFLAGS = -I. -I../../../include
all: $(TARGET).sys

View file

@ -1,4 +1,4 @@
/* $Id: serial.c,v 1.7 1999/12/04 20:58:41 ea Exp $
/* $Id: serial.c,v 1.8 2000/06/29 23:35:49 dwelch Exp $
*
* Serial driver
* Written by Jason Filby (jasonfilby@yahoo.com)
@ -7,11 +7,11 @@
*/
#include <ddk/ntddk.h>
#include <internal/mmhal.h>
#include <internal/halio.h>
//#include <internal/mmhal.h>
#include "../../../ntoskrnl/include/internal/i386/io.h"
#define NDEBUG
#include <internal/debug.h>
#include <debug.h>
#define COM1 0x3F8

View file

@ -12,7 +12,7 @@
#include <ddk/ntddk.h>
//#define NDEBUG
#include <internal/debug.h>
#include <debug.h>
#include "minix.h"

View file

@ -11,10 +11,9 @@
#include <ddk/ntddk.h>
#include <string.h>
#include <internal/string.h>
#define NDEBUG
#include <internal/debug.h>
#include <debug.h>
#include "minix.h"

View file

@ -13,7 +13,7 @@
#include <ddk/ntifs.h>
//#define NDEBUG
#include <internal/debug.h>
#include <debug.h>
#include "minix.h"

View file

@ -13,7 +13,7 @@
#include <string.h>
//#define NDEBUG
#include <internal/debug.h>
#include <debug.h>
#include "minix.h"

View file

@ -11,12 +11,11 @@
#include <ddk/ntddk.h>
#include <string.h>
#include <internal/string.h>
#include <internal/bitops.h>
#include "../../../ntoskrnl/include/internal/bitops.h"
#include <ddk/ntifs.h>
#define NDEBUG
#include <internal/debug.h>
#include <debug.h>
#include "minix.h"

View file

@ -10,11 +10,10 @@
/* INCLUDES *****************************************************************/
#include <ddk/ntddk.h>
#include <internal/string.h>
#include <wstring.h>
//#define NDEBUG
#include <internal/debug.h>
#include <debug.h>
#include "minix_fs.h"

View file

@ -13,7 +13,7 @@
#include <ddk/ntifs.h>
//#define NDEBUG
#include <internal/debug.h>
#include <debug.h>
#include "minix.h"

View file

@ -11,9 +11,10 @@
#include <ddk/ntddk.h>
#include <string.h>
#include <ntos/minmax.h>
#define NDEBUG
#include <internal/debug.h>
#include <debug.h>
#include "minix.h"

View file

@ -12,7 +12,7 @@
#include <ddk/ntddk.h>
#define NDEBUG
#include <internal/debug.h>
#include <debug.h>
#include "vfat.h"

View file

@ -1,4 +1,4 @@
/* $Id: create.c,v 1.4 2000/06/17 22:00:46 phreak Exp $
/* $Id: create.c,v 1.5 2000/06/29 23:35:50 dwelch Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -13,10 +13,10 @@
#include <ddk/ntddk.h>
#include <ddk/cctypes.h>
#include <wchar.h>
#include <internal/string.h>
#include <limits.h>
#define NDEBUG
#include <internal/debug.h>
#include <debug.h>
#include "vfat.h"

View file

@ -10,10 +10,9 @@
#include <ddk/ntddk.h>
#include <wchar.h>
#include <internal/string.h>
#define NDEBUG
#include <internal/debug.h>
#include <debug.h>
#include "vfat.h"

View file

@ -1,4 +1,4 @@
/* $Id: dirwr.c,v 1.12 2000/06/17 22:02:09 phreak Exp $
/* $Id: dirwr.c,v 1.13 2000/06/29 23:35:50 dwelch Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -12,10 +12,10 @@
#include <ddk/ntddk.h>
#include <ctype.h>
#include <wchar.h>
#include <internal/string.h>
#include <string.h>
#define NDEBUG
#include <internal/debug.h>
#include <debug.h>
#include "vfat.h"

View file

@ -1,5 +1,5 @@
/*
* $Id: fat.c,v 1.5 2000/06/17 22:03:23 phreak Exp $
* $Id: fat.c,v 1.6 2000/06/29 23:35:50 dwelch Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -13,11 +13,10 @@
#include <ddk/ntddk.h>
#include <wchar.h>
#include <internal/string.h>
#include <ddk/cctypes.h>
#define NDEBUG
#include <internal/debug.h>
#include <debug.h>
#include "vfat.h"

View file

@ -1,4 +1,4 @@
/* $Id: finfo.c,v 1.2 2000/02/22 02:02:08 ekohl Exp $
/* $Id: finfo.c,v 1.3 2000/06/29 23:35:50 dwelch Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -12,11 +12,10 @@
#include <ddk/ntddk.h>
#include <wchar.h>
#include <internal/string.h>
#include <ddk/cctypes.h>
#define NDEBUG
#include <internal/debug.h>
#include <debug.h>
#include "vfat.h"
@ -117,7 +116,7 @@ NTSTATUS FsdSetDispositionInformation(PFILE_OBJECT FileObject,
{
DPRINT("FsdSetDispositionInformation()\n");
FileObject->DeletePending = DispositionInfo->DeleteFile;
FileObject->DeletePending = DispositionInfo->DoDeleteFile;
return(STATUS_SUCCESS);
}

View file

@ -1,4 +1,4 @@
/* $Id: iface.c,v 1.41 2000/02/21 22:42:15 ekohl Exp $
/* $Id: iface.c,v 1.42 2000/06/29 23:35:50 dwelch Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -24,10 +24,9 @@
#include <ddk/ntddk.h>
#include <wchar.h>
#include <internal/string.h>
#define NDEBUG
#include <internal/debug.h>
#include <debug.h>
#include "vfat.h"

View file

@ -1,4 +1,4 @@
# $Id: makefile,v 1.15 2000/06/04 17:15:47 ekohl Exp $
# $Id: makefile,v 1.16 2000/06/29 23:35:51 dwelch Exp $
#
#
TARGET=vfatfs
@ -6,7 +6,7 @@ TARGET=vfatfs
OBJECTS = blockdev.o dir.o dirwr.o iface.o string.o fat.o rw.o finfo.o volume.o create.o $(TARGET).coff
LIBS = ../../../ntoskrnl/ntoskrnl.a
BASE_CFLAGS = -I../../../include
BASE_CFLAGS = -I. -I../../../include
all: $(TARGET).sys

View file

@ -1,4 +1,4 @@
/* $Id: rw.c,v 1.6 2000/06/17 22:04:08 phreak Exp $
/* $Id: rw.c,v 1.7 2000/06/29 23:35:51 dwelch Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -12,11 +12,11 @@
#include <ddk/ntddk.h>
#include <wchar.h>
#include <internal/string.h>
#include <ddk/cctypes.h>
#include <ntos/minmax.h>
#define NDEBUG
#include <internal/debug.h>
#include <debug.h>
#include "vfat.h"

View file

@ -1,4 +1,4 @@
/* $Id: string.c,v 1.2 2000/02/22 02:02:08 ekohl Exp $
/* $Id: string.c,v 1.3 2000/06/29 23:35:51 dwelch Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -12,11 +12,10 @@
#include <ddk/ntddk.h>
#include <wchar.h>
#include <internal/string.h>
#include <ddk/cctypes.h>
#define NDEBUG
#include <internal/debug.h>
#include <debug.h>
#include "vfat.h"

View file

@ -1,4 +1,4 @@
/* $Id: volume.c,v 1.2 2000/02/22 02:02:08 ekohl Exp $
/* $Id: volume.c,v 1.3 2000/06/29 23:35:51 dwelch Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -11,11 +11,10 @@
#include <ddk/ntddk.h>
#include <wchar.h>
#include <internal/string.h>
#include <ddk/cctypes.h>
#define NDEBUG
#include <internal/debug.h>
#include <debug.h>
#include "vfat.h"

View file

@ -43,37 +43,7 @@ extern "C" {
#endif
#endif /* !NULL */
/*
* Definitions needed for the ddk includes (we miss out win32 only stuff to
* cut down on the compile time)
*/
typedef unsigned char UCHAR;
typedef unsigned int UINT;
typedef unsigned long ULONG;
typedef unsigned short USHORT;
typedef unsigned short WCHAR;
typedef unsigned short WORD;
typedef int WINBOOL;
typedef unsigned char BOOLEAN;
typedef unsigned int DWORD; /* was unsigned long */
typedef unsigned short *LPWSTR;
typedef unsigned short *PWSTR;
typedef unsigned char *PUCHAR;
typedef unsigned int *PUINT;
typedef unsigned long *PULONG;
typedef unsigned short *PUSHORT;
typedef void *PVOID;
typedef unsigned char BYTE;
typedef void *LPVOID;
typedef DWORD *PDWORD;
typedef float *PFLOAT;
typedef unsigned short *PWCH;
typedef unsigned short *PWORD;
typedef long long LONGLONG;
typedef unsigned long long ULONGLONG;
typedef long long *PLONGLONG;
typedef unsigned long long *PULONGLONG;
#include <ntos/types.h>
/* Check VOID before defining CHAR, SHORT, and LONG */
#ifndef VOID
@ -83,19 +53,7 @@ typedef short SHORT;
typedef long LONG;
#endif
typedef CHAR *PCHAR;
typedef CHAR *PCH;
typedef void *HANDLE;
typedef char CCHAR;
#define FALSE 0
#define TRUE 1
typedef const unsigned short *PCWSTR;
typedef char* PCSZ;
#define CONST const
#ifdef i386
@ -113,13 +71,7 @@ typedef char* PCSZ;
#define APIENTRY STDCALL
#define WINGDIAPI
typedef BYTE *PBOOLEAN;
typedef HANDLE *PHANDLE;
typedef DWORD CALLBACK (*PTHREAD_START_ROUTINE) (LPVOID);
typedef PTHREAD_START_ROUTINE LPTHREAD_START_ROUTINE;
typedef unsigned short ATOM;
#ifdef UNICODE
typedef unsigned short *LPTCH;
@ -129,36 +81,6 @@ typedef char *LPTCH;
typedef char *LPTSTR;
#endif /* UNICODE */
typedef long *PLONG;
typedef unsigned short *PWCHAR;
typedef char *LPSTR;
typedef enum _MEDIA_TYPE {
Unknown,
F5_1Pt2_512,
F3_1Pt44_512,
F3_2Pt88_512,
F3_20Pt8_512,
F3_720_512,
F5_360_512,
F5_320_512,
F5_320_1024,
F5_180_512,
F5_160_512,
RemovableMedia,
FixedMedia
} MEDIA_TYPE;
#ifndef max
#define max(a, b) (((a) > (b)) ? (a) : (b))
#endif
#ifndef min
#define min(a, b) (((a) < (b)) ? (a) : (b))
#endif
#ifndef RC_INVOKED
/* typedef ACMDRIVERENUMCB;
@ -232,17 +154,16 @@ typedef HANDLE HWINSTA;
typedef HANDLE HWND;
typedef int INT;
typedef unsigned short LANGID;
typedef DWORD LCID;
//typedef DWORD LCID;
typedef DWORD LCTYPE;
/* typedef LOCALHANDLE */
typedef unsigned short *LP;
typedef long LPARAM;
typedef int WINBOOL;
typedef WINBOOL *LPBOOL;
typedef BYTE *LPBYTE;
typedef CONST CHAR *LPCCH;
typedef CHAR *LPCH;
typedef COLORREF *LPCOLORREF;
typedef const char *LPCSTR;
#ifdef UNICODE
typedef const unsigned short *LPCTSTR;
@ -251,7 +172,6 @@ typedef const char *LPCTSTR;
#endif /* UNICODE */
typedef const unsigned short *LPCWCH;
typedef const unsigned short *LPCWSTR;
typedef DWORD *LPDWORD;
/* typedef LPFRHOOKPROC; */
typedef HANDLE *LPHANDLE;
@ -260,13 +180,11 @@ typedef int *LPINT;
typedef long *LPLONG;
typedef long LRESULT;
typedef const void *LPCVOID;
typedef unsigned short *LPWCH;
typedef unsigned short *LPWORD;
/* typedef NPSTR; */
typedef unsigned short *NWPSTR;
typedef WINBOOL *PWINBOOL;
typedef BYTE *PBYTE;
typedef const CHAR *PCCH;
typedef const char *PCSTR;
typedef const unsigned short *PCWCH;
@ -330,10 +248,6 @@ typedef unsigned int WPARAM;
/*
Enumerations
*/
typedef enum _ACL_INFORMATION_CLASS {
AclRevisionInformation = 1,
AclSizeInformation
} ACL_INFORMATION_CLASS;
#define RASCS_DONE 0x2000
@ -559,7 +473,6 @@ typedef WINBOOL CALLBACK (*PFNPROCESSPOLICIES) (HWND, LPCTSTR, LPCTSTR, LPCTSTR,
typedef void (*CALLB) (void);
typedef CALLB PFNCALLBACK;
typedef WINBOOL SECURITY_CONTEXT_TRACKING_MODE;
/* End of stuff from ddeml.h in old Cygnus headers */
/* ----------------------------------------------- */

View file

@ -3,6 +3,7 @@
#include <napi/lpc.h>
#include <ddk/ntddblue.h>
#include <ntos/keyboard.h>
#define CSR_PRIORITY_CLASS_NORMAL (0x10)
#define CSR_PRIORITY_CLASS_IDLE (0x20)

View file

@ -5,8 +5,6 @@
#define _WIN32_WINNT 0x0400
#include <internal/hal/irq.h>
#include <ddk/kedef.h>
#include <ddk/iodef.h>
@ -234,6 +232,8 @@ enum
#define MAXIMUM_VOLUME_LABEL_LENGTH (32)
#include <ddk/i386/irql.h>
/*
* IRQ levels
*/

View file

@ -1,4 +1,4 @@
/* $Id: ddk.h,v 1.15 2000/06/12 14:52:05 ekohl Exp $
/* $Id: halddk.h,v 1.1 2000/06/29 23:35:11 dwelch Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -13,8 +13,6 @@
#ifndef __INCLUDE_INTERNAL_HAL_DDK_H
#define __INCLUDE_INTERNAL_HAL_DDK_H
#include <internal/ntoskrnl.h>
/* HalReturnToFirmware */
#define FIRMWARE_HALT 1
#define FIRMWARE_REBOOT 3
@ -246,13 +244,6 @@ HalInitializeProcessor (
ULONG ProcessorNumber
);
BOOLEAN
STDCALL
HalInitSystem (
ULONG Phase,
boot_param *bp
);
BOOLEAN
STDCALL
HalMakeBeep (

View file

@ -0,0 +1,6 @@
#ifndef __INCLUDE_DDK_I386_PAGESIZE_H
#define __INCLUDE_DDK_I386_PAGESIZE_H
#define PAGESIZE (4096)
#endif /* __INCLUDE_DDK_I386_PAGESIZE_H */

View file

@ -2,9 +2,8 @@
*
*/
#ifndef __INTERNAL_HAL_HAL_H
#define __INTERNAL_HAL_HAL_H
#ifndef __INCLUDE_DDK_I386_TSS_H
#define __INCLUDE_DDK_I386_TSS_H
typedef struct
{
@ -46,33 +45,14 @@ typedef struct
unsigned short reserved11;
unsigned short trap;
unsigned short iomap_base;
unsigned short nr;
PVOID KernelStackBase;
PVOID SavedKernelEsp;
PVOID SavedKernelStackBase;
unsigned char io_bitmap[1];
} hal_thread_state;
/*
* FUNCTION: Probes for a PCI bus
* RETURNS: True if found
*/
BOOL HalPciProbe(void);
/*
* FUNCTION: Probes for a BIOS32 extension
*/
VOID Hal_bios32_probe(VOID);
/*
* FUNCTION: Determines if a a bios32 service is present
*/
BOOLEAN Hal_bios32_is_service_present(ULONG service);
/*
* FUNCTION: Initializes the text mode display (blue screen)
*/
VOID HalInitializeDisplay (boot_param *bp);
VOID HalResetDisplay (VOID)
#endif /* __INTERNAL_HAL_HAL_H */
#endif /* __INCLUDE_DDK_I386_TSS_H */

View file

@ -1,10 +1,13 @@
/* $Id: iotypes.h,v 1.17 2000/05/13 13:50:55 dwelch Exp $
/* $Id: iotypes.h,v 1.18 2000/06/29 23:35:11 dwelch Exp $
*
*/
#ifndef __INCLUDE_DDK_IOTYPES_H
#define __INCLUDE_DDK_IOTYPES_H
#include <ntos/disk.h>
#include <ntos/file.h>
#ifdef __NTOSKRNL__
extern POBJECT_TYPE EXPORTED IoAdapterObjectType;
extern POBJECT_TYPE EXPORTED IoDeviceHandlerObjectType;

View file

@ -1,9 +1,9 @@
#ifndef _INCLUDE_DDK_MMFUNCS_H
#define _INCLUDE_DDK_MMFUNCS_H
/* $Id: mmfuncs.h,v 1.5 2000/04/02 13:32:38 ea Exp $ */
/* $Id: mmfuncs.h,v 1.6 2000/06/29 23:35:12 dwelch Exp $ */
/* MEMORY MANAGMENT ******************************************************/
#include <internal/mmhal.h>
#include <ddk/i386/pagesize.h>
#define PAGE_ROUND_UP(x) ( (((ULONG)x)%PAGESIZE) ? ((((ULONG)x)&(~0xfff))+0x1000) : ((ULONG)x) )
#define PAGE_ROUND_DOWN(x) (((ULONG)x)&(~0xfff))

View file

@ -1,8 +1,10 @@
/* $Id: mmtypes.h,v 1.6 2000/05/09 16:12:47 ekohl Exp $ */
/* $Id: mmtypes.h,v 1.7 2000/06/29 23:35:12 dwelch Exp $ */
#ifndef _INCLUDE_DDK_MMTYPES_H
#define _INCLUDE_DDK_MMTYPES_H
#include <ntos/mm.h>
#ifdef __NTOSKRNL__
extern POBJECT_TYPE EXPORTED MmSectionObjectType;
#else

View file

@ -1,6 +1,7 @@
#ifndef _NTDDBLUE_H_INCLUDED_
#define _NTDDBLUE_H_INCLUDED_
#include <ntos/console.h>
#define IOCTL_CONSOLE_GET_SCREEN_BUFFER_INFO CTL_CODE(FILE_DEVICE_SCREEN, 0x801, METHOD_BUFFERED, FILE_READ_ACCESS)
#define IOCTL_CONSOLE_SET_SCREEN_BUFFER_INFO CTL_CODE(FILE_DEVICE_SCREEN, 0x802, METHOD_BUFFERED, FILE_WRITE_ACCESS)

View file

@ -1,4 +1,4 @@
/* $Id: ntddk.h,v 1.13 2000/03/01 22:52:25 ea Exp $
/* $Id: ntddk.h,v 1.14 2000/06/29 23:35:12 dwelch Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -19,15 +19,14 @@ extern "C"
/* INCLUDES ***************************************************************/
#define WIN32_NO_STATUS
#include <windows.h>
/* GCC can not handle __fastcall */
#ifndef FASTCALL
#define FASTCALL STDCALL
#endif
#include <internal/id.h>
#include <ntos/types.h>
#include <napi/types.h>
#include <ddk/status.h>
#include <ddk/ntdef.h>
#include <ddk/defines.h>
@ -35,6 +34,7 @@ extern "C"
// #include <ddk/cfgtypes.h>
#include <ddk/cmtypes.h>
#include <ddk/ketypes.h>
#include <ntos/security.h>
#include <ddk/obtypes.h>
#include <ddk/setypes.h>
#include <ddk/mmtypes.h>
@ -44,7 +44,7 @@ extern "C"
#include <ddk/zwtypes.h>
#include <ddk/ioctrl.h>
#include <ddk/rtl.h>
#include <internal/hal/ddk.h>
#include <ddk/halddk.h>
#include <ddk/zw.h>
#include <ddk/cmfuncs.h>

View file

@ -1,9 +1,10 @@
#ifndef __INCLUDE_DDK_PSTYPES_H
#define __INCLUDE_DDK_PSTYPES_H
#include <kernel32/atom.h>
#include <internal/hal.h>
#include <internal/teb.h>
#include <ntos/ps.h>
#include <ddk/i386/tss.h>
#include <napi/teb.h>
#ifndef TLS_MINIMUM_AVAILABLE
#define TLS_MINIMUM_AVAILABLE (64)

View file

@ -1,4 +1,4 @@
/* $Id: rtl.h,v 1.35 2000/06/18 15:20:10 ekohl Exp $
/* $Id: rtl.h,v 1.36 2000/06/29 23:35:12 dwelch Exp $
*
*/
@ -6,6 +6,9 @@
#define __DDK_RTL_H
#include <stddef.h>
#include <stdarg.h>
#include <pe.h>
typedef struct _CONTROLLER_OBJECT
{

View file

@ -1,6 +1,6 @@
#ifndef _INCLUDE_DDK_SEFUNCS_H
#define _INCLUDE_DDK_SEFUNCS_H
/* $Id: sefuncs.h,v 1.11 2000/05/09 21:29:44 ekohl Exp $ */
/* $Id: sefuncs.h,v 1.12 2000/06/29 23:35:12 dwelch Exp $ */
NTSTATUS STDCALL RtlCreateAcl(PACL Acl, ULONG AclSize, ULONG AclRevision);
NTSTATUS STDCALL RtlQueryInformationAcl (PACL Acl, PVOID Information, ULONG InformationLength, ACL_INFORMATION_CLASS InformationClass);
NTSTATUS STDCALL RtlSetInformationAcl (PACL Acl, PVOID Information, ULONG InformationLength, ACL_INFORMATION_CLASS InformationClass);
@ -30,15 +30,15 @@ NTSTATUS STDCALL RtlSetSaclSecurityDescriptor (PSECURITY_DESCRIPTOR SecurityDesc
NTSTATUS STDCALL RtlGetSaclSecurityDescriptor (PSECURITY_DESCRIPTOR SecurityDescriptor, PBOOLEAN SaclPresent, PACL* Sacl, PBOOLEAN SaclDefauted);
NTSTATUS STDCALL RtlSelfRelativeToAbsoluteSD (PSECURITY_DESCRIPTOR RelSD,
PSECURITY_DESCRIPTOR AbsSD,
LPDWORD AbsSDSize,
PDWORD AbsSDSize,
PACL Dacl,
LPDWORD DaclSize,
PDWORD DaclSize,
PACL Sacl,
LPDWORD SaclSize,
PDWORD SaclSize,
PSID Owner,
LPDWORD OwnerSize,
PDWORD OwnerSize,
PSID Group,
LPDWORD GroupSize);
PDWORD GroupSize);
NTSTATUS STDCALL RtlAllocateAndInitializeSid (PSID_IDENTIFIER_AUTHORITY IdentifierAuthority,
UCHAR SubAuthorityCount,

View file

@ -1,4 +1,4 @@
/* $Id: setypes.h,v 1.4 2000/01/05 21:56:58 dwelch Exp $
/* $Id: setypes.h,v 1.5 2000/06/29 23:35:12 dwelch Exp $
*
* COPYRIGHT: See COPYING in the top level directory for details
* PROJECT: ReactOS kernel
@ -12,7 +12,7 @@
#ifndef __INCLUDE_DDK_SETYPES_H
#define __INCLUDE_DDK_SETYPES_H
#include <security.h>
#include <ntos/security.h>
/* SID */
#define SECURITY_NULL_RID (0L)

View file

@ -1,6 +1,5 @@
/* SYSTEM STRUCTURES ******************************************************/
#include <internal/hal/hal.h>
#include <ddk/cfgtypes.h>
#include <ddk/ketypes.h>
#include <ddk/obtypes.h>

View file

@ -1,47 +1,16 @@
#ifndef __DDK_TYPES_H
#define __DDK_TYPES_H
#ifndef __INCLUDE_DDK_TYPES_H
#define __INCLUDE_DDK_TYPES_H
// these should be moved to a file like ntdef.h
typedef const int CINT;
typedef ULONG KAFFINITY, *PKAFFINITY;
typedef LONG NTSTATUS, *PNTSTATUS;
typedef ULONG DEVICE_TYPE;
enum
{
DIRECTORY_QUERY,
DIRECTORY_TRAVERSE,
DIRECTORY_CREATE_OBJECT,
DIRECTORY_CREATE_SUBDIRECTORY,
DIRECTORY_ALL_ACCESS,
};
/*
* General type for status information
*/
//typedef LONG NTSTATUS;
typedef struct _UNICODE_STRING
{
USHORT Length;
USHORT MaximumLength;
PWSTR Buffer;
} UNICODE_STRING, *PUNICODE_STRING;
typedef enum _SECTION_INHERIT {
ViewShare = 1,
ViewUnmap = 2
} SECTION_INHERIT;
/*
* Various other types (all quite pointless)
*/
@ -54,66 +23,10 @@ typedef ULONG TIMER_TYPE;
typedef ULONG MM_SYSTEM_SIZE;
typedef ULONG LOCK_OPERATION;
/* File information for IRP_MJ_QUERY_INFORMATION (and SET) */
typedef enum _FILE_INFORMATION_CLASS
{
FileDirectoryInformation = 1,
FileFullDirectoryInformation,
FileBothDirectoryInformation,
FileBasicInformation,
FileStandardInformation,
FileInternalInformation,
FileEaInformation,
FileAccessInformation,
FileNameInformation,
FileRenameInformation,
FileLinkInformation,
FileNamesInformation,
FileDispositionInformation,
FilePositionInformation,
FileFullEaInformation,
FileModeInformation,
FileAlignmentInformation,
FileAllInformation,
FileAllocationInformation,
FileEndOfFileInformation,
FileAlternateNameInformation,
FileStreamInformation,
FilePipeInformation,
FilePipeLocalInformation,
FilePipeRemoteInformation,
FileMailslotQueryInformation,
FileMailslotSetInformation,
FileCompressionInformation,
FileCopyOnWriteInformation,
FileCompletionInformation,
FileMoveClusterInformation,
FileOleClassIdInformation,
FileOleStateBitsInformation,
FileNetworkOpenInformation,
FileObjectIdInformation,
FileOleAllInformation,
FileOleDirectoryInformation,
FileContentIndexInformation,
FileInheritContentIndexInformation,
FileOleInformation,
FileMaximumInformation,
} FILE_INFORMATION_CLASS;
typedef LARGE_INTEGER PHYSICAL_ADDRESS;
typedef PHYSICAL_ADDRESS* PPHYSICAL_ADDRESS;
typedef ULONG WAIT_TYPE;
//typedef ULONG KINTERRUPT_MODE;
typedef USHORT CSHORT;
#if 0
typedef struct _TIME {
DWORD LowPart;
LONG HighPart;
} TIME, *PTIME;
#endif
typedef ULARGE_INTEGER TIME, *PTIME;
#endif
#endif /* __INCLUDE_DDK_TYPES_H */

View file

@ -1,5 +1,5 @@
/* $Id: zw.h,v 1.31 2000/06/27 19:20:42 dwelch Exp $
/* $Id: zw.h,v 1.32 2000/06/29 23:35:12 dwelch Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -17,10 +17,11 @@
#ifndef __DDK_ZW_H
#define __DDK_ZW_H
#include <security.h>
#include <ntos/security.h>
#include <ntos/atom.h>
#include <napi/npipe.h>
#define LCID ULONG
//#define LCID ULONG
//#define SECURITY_INFORMATION ULONG
//typedef ULONG SECURITY_INFORMATION;
@ -3053,7 +3054,7 @@ NTSTATUS
STDCALL
NtQueryMultipleValueKey(
HANDLE KeyHandle,
PVALENT ListOfValuesToQuery,
PWVALENT ListOfValuesToQuery,
ULONG NumberOfItems,
PVOID MultipleValueInformation,
ULONG Length,
@ -3064,7 +3065,7 @@ NTSTATUS
STDCALL
ZwQueryMultipleValueKey(
HANDLE KeyHandle,
PVALENT ListOfValuesToQuery,
PWVALENT ListOfValuesToQuery,
ULONG NumberOfItems,
PVOID MultipleValueInformation,
ULONG Length,

View file

@ -874,7 +874,7 @@ typedef struct _FILE_ALIGNMENT_INFORMATION
typedef struct _FILE_DISPOSITION_INFORMATION
{
BOOLEAN DeleteFile;
BOOLEAN DoDeleteFile;
} FILE_DISPOSITION_INFORMATION, *PFILE_DISPOSITION_INFORMATION;
typedef struct _FILE_END_OF_FILE_INFORMATION

98
reactos/include/debug.h Normal file
View file

@ -0,0 +1,98 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
* FILE: include/internal/debug.h
* PURPOSE: Useful debugging macros
* PROGRAMMER: David Welch (welch@mcmail.com)
* UPDATE HISTORY:
* 28/05/98: Created
*/
/*
* NOTE: Define NDEBUG before including this header to disable debugging
* macros
*/
#ifndef __INTERNAL_DEBUG
#define __INTERNAL_DEBUG
#define UNIMPLEMENTED do {DbgPrint("%s at %s:%d is unimplemented, have a nice day\n",__FUNCTION__,__FILE__,__LINE__); for(;;); } while(0);
/* FIXME: should probably remove this later */
#if !defined(CHECKED) && !defined(NDEBUG)
#define CHECKED
#endif
#ifndef NASSERT
#define assert(x) if (!(x)) {DbgPrint("Assertion "#x" failed at %s:%d\n", __FILE__,__LINE__); KeBugCheck(0); }
#else
#define assert(x)
#endif
#define DPRINT1(args...) do { DbgPrint("(%s:%d) ",__FILE__,__LINE__); DbgPrint(args); ExAllocatePool(NonPagedPool,0); } while(0);
#define CHECKPOINT1 do { DbgPrint("%s:%d\n",__FILE__,__LINE__); ExAllocatePool(NonPagedPool,0); } while(0);
extern unsigned int old_idt[256][2];
//extern unsigned int idt;
extern unsigned int old_idt_valid;
#ifdef __NTOSKRNL__
//#define DPRINT_CHECKS ExAllocatePool(NonPagedPool,0); assert(old_idt_valid || (!memcmp(old_idt,KiIdt,256*2)));
//#define DPRINT_CHECKS ExAllocatePool(NonPagedPool,0);
#define DPRINT_CHECKS
#else
#define DPRINT_CHECKS
#endif
#ifndef NDEBUG
#define OLD_DPRINT(fmt,args...) do { DbgPrint("(%s:%d) ",__FILE__,__LINE__); DbgPrint(fmt,args); } while(0);
#define DPRINT(args...) do { DbgPrint("(%s:%d) ",__FILE__,__LINE__); DbgPrint(args); DPRINT_CHECKS } while(0);
#define CHECKPOINT do { DbgPrint("%s:%d\n",__FILE__,__LINE__); ExAllocatePool(NonPagedPool,0); } while(0);
#else
//#define DPRINT(args...) do { DPRINT_CHECKS } while (0);
#define DPRINT(args...)
#define OLD_DPRINT(args...)
#define CHECKPOINT
#endif /* NDEBUG */
/*
* FUNCTION: Assert a maximum value for the current irql
* ARGUMENTS:
* x = Maximum irql
*/
#define ASSERT_IRQL(x) assert(KeGetCurrentIrql()<=(x))
#define assert_irql(x) assert(KeGetCurrentIrql()<=(x))
#define HBP_EXECUTE (0)
#define HBP_WRITE (1)
#define HBP_READWRITE (3)
#define HBP_BYTE (0)
#define HBP_WORD (1)
#define HBP_DWORD (3)
/*
* FUNCTION: Sets a hardware breakpoint
* ARGUMENTS:
* i = breakpoint to set (0 to 3)
* addr = linear address to break on
* type = Type of access to break on
* len = length of the variable to watch
* NOTES:
* The variable to watch must be aligned to its length (i.e. a dword
* breakpoint must be aligned to a dword boundary)
*
* A fatal exception will be generated on the access to the variable.
* It is (at the moment) only really useful for catching undefined
* pointers if you know the variable effected but not the buggy
* routine.
*
* FIXME: Extend to call out to kernel debugger on breakpoint
* Add support for I/O breakpoints
* REFERENCES: See the i386 programmer manual for more details
*/
void set_breakpoint(unsigned int i, unsigned int addr, unsigned int type,
unsigned int len);
#endif /* __INTERNAL_DEBUG */

View file

@ -34,62 +34,17 @@
#define WINBASEAPI
#define EXCEPTION_MAXIMUM_PARAMETERS (15)
#define ANYSIZE_ARRAY (1)
#ifndef WIN32_NO_STATUS
#define STATUS_WAIT_0 (0x00000000L)
#define STATUS_ABANDONED_WAIT_0 (0x00000080L)
#define STATUS_USER_APC (0x000000C0L)
#define STATUS_TIMEOUT (0x00000102L)
#define STATUS_PENDING (0x00000103L)
//#define STATUS_WAIT_0 (0x00000000L)
//#define STATUS_ABANDONED_WAIT_0 (0x00000080L)
//#define STATUS_USER_APC (0x000000C0L)
//#define STATUS_TIMEOUT (0x00000102L)
//#define STATUS_PENDING (0x00000103L)
#endif /* WIN32_NO_STATUS */
#define SEC_COMMIT (134217728)
#define SEC_IMAGE (16777216)
#define SEC_NOCACHE (268435456)
#define SEC_RESERVE (67108864)
#define PAGE_READONLY (2)
#define PAGE_READWRITE (4)
#define PAGE_WRITECOPY (8)
#define PAGE_EXECUTE (16)
#define PAGE_EXECUTE_READ (32)
#define PAGE_EXECUTE_READWRITE (64)
#define PAGE_EXECUTE_WRITECOPY (128)
#define PAGE_GUARD (256)
#define PAGE_NOACCESS (1)
#define PAGE_NOCACHE (512)
#define MEM_COMMIT (4096)
#define MEM_FREE (65536)
#define MEM_RESERVE (8192)
#define MEM_IMAGE (16777216)
#define MEM_MAPPED (262144)
#define MEM_PRIVATE (131072)
#define MEM_DECOMMIT (16384)
#define MEM_RELEASE (32768)
#define MEM_TOP_DOWN (1048576)
#define EXCEPTION_GUARD_PAGE (0x80000001L)
#define SECTION_EXTEND_SIZE (0x10)
#define SECTION_MAP_READ (0x4)
#define SECTION_MAP_WRITE (0x2)
#define SECTION_QUERY (0x1)
#define SECTION_ALL_ACCESS (0xf001fL)
/* DuplicateHandle, MapViewOfFile */
#define DUPLICATE_CLOSE_SOURCE (1)
#define DUPLICATE_SAME_ACCESS (2)
#define FILE_MAP_ALL_ACCESS (0xf001fL)
#define FILE_MAP_READ (4)
#define FILE_MAP_WRITE (2)
#define FILE_MAP_COPY (1)
#define MUTEX_ALL_ACCESS (0x1f0001L)
#define MUTEX_MODIFY_STATE (1)
#define SYNCHRONIZE (0x100000L)
#define SEMAPHORE_ALL_ACCESS (0x1f0003L)
#define SEMAPHORE_MODIFY_STATE (2)
#define EVENT_ALL_ACCESS (0x1f0003L)
#define EVENT_MODIFY_STATE (2)
#define KEY_ALL_ACCESS (0xf003fL)
#define KEY_CREATE_LINK (32)
#define KEY_CREATE_SUB_KEY (4)
@ -100,121 +55,10 @@
#define KEY_READ (0x20019L)
#define KEY_SET_VALUE (2)
#define KEY_WRITE (0x20006L)
#define PROCESS_ALL_ACCESS (0x1f0fffL)
#define PROCESS_CREATE_PROCESS (128)
#define PROCESS_CREATE_THREAD (2)
#define PROCESS_DUP_HANDLE (64)
#define PROCESS_QUERY_INFORMATION (1024)
#define PROCESS_SET_INFORMATION (512)
#define PROCESS_TERMINATE (1)
#define PROCESS_VM_OPERATION (8)
#define PROCESS_VM_READ (16)
#define PROCESS_VM_WRITE (32)
#define THREAD_ALL_ACCESS (0x1f03ffL)
#define THREAD_DIRECT_IMPERSONATION (512)
#define THREAD_GET_CONTEXT (8)
#define THREAD_IMPERSONATE (256)
#define THREAD_QUERY_INFORMATION (64)
#define THREAD_SET_CONTEXT (16)
#define THREAD_SET_INFORMATION (32)
#define THREAD_SET_THREAD_TOKEN (128)
#define THREAD_SUSPEND_RESUME (2)
#define THREAD_TERMINATE (1)
#define PACKED __attribute__((packed))
#define THREAD_PRIORITY_ABOVE_NORMAL (1)
#define THREAD_PRIORITY_BELOW_NORMAL (-1)
#define THREAD_PRIORITY_HIGHEST (2)
#define THREAD_PRIORITY_IDLE (-15)
#define THREAD_PRIORITY_LOWEST (-2)
#define THREAD_PRIORITY_NORMAL (0)
#define THREAD_PRIORITY_TIME_CRITICAL (15)
#define THREAD_PRIORITY_ERROR_RETURN (2147483647)
/* CreateFile, GetFileAttributes, SetFileAttributes */
#define GENERIC_READ (0x80000000L)
#define GENERIC_WRITE (0x40000000L)
#define FILE_READ_DATA ( 0x0001 ) /* file & pipe */
#define FILE_LIST_DIRECTORY ( 0x0001 ) /* directory */
#define FILE_WRITE_DATA ( 0x0002 ) /* file & pipe */
#define FILE_ADD_FILE ( 0x0002 ) /* directory */
#define FILE_APPEND_DATA ( 0x0004 ) /* file */
#define FILE_ADD_SUBDIRECTORY ( 0x0004 ) /* directory */
#define FILE_CREATE_PIPE_INSTANCE ( 0x0004 ) /* named pipe */
#define FILE_READ_EA ( 0x0008 ) /* file & directory */
#define FILE_READ_PROPERTIES FILE_READ_EA
#define FILE_WRITE_EA ( 0x0010 ) /* file & directory */
#define FILE_WRITE_PROPERTIES FILE_WRITE_EA
#define FILE_EXECUTE ( 0x0020 ) /* file */
#define FILE_TRAVERSE ( 0x0020 ) /* directory */
#define FILE_DELETE_CHILD ( 0x0040 ) /* directory */
#define FILE_READ_ATTRIBUTES ( 0x0080 ) /* all */
#define FILE_WRITE_ATTRIBUTES ( 0x0100 ) /* all */
#define FILE_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED | SYNCHRONIZE | 0x1FF)
#define FILE_GENERIC_READ (STANDARD_RIGHTS_READ |\
FILE_READ_DATA |\
FILE_READ_ATTRIBUTES |\
FILE_READ_EA |\
SYNCHRONIZE)
#define FILE_GENERIC_WRITE (STANDARD_RIGHTS_WRITE |\
FILE_WRITE_DATA |\
FILE_WRITE_ATTRIBUTES |\
FILE_WRITE_EA |\
FILE_APPEND_DATA |\
SYNCHRONIZE)
#define FILE_GENERIC_EXECUTE (STANDARD_RIGHTS_EXECUTE |\
FILE_READ_ATTRIBUTES |\
FILE_EXECUTE |\
SYNCHRONIZE)
#define FILE_SHARE_DELETE (4)
#define FILE_SHARE_READ (1)
#define FILE_SHARE_WRITE (2)
#define CONSOLE_TEXTMODE_BUFFER (1)
#define CREATE_NEW (1)
#define CREATE_ALWAYS (2)
#define OPEN_EXISTING (3)
#define OPEN_ALWAYS (4)
#define TRUNCATE_EXISTING (5)
#define FILE_ATTRIBUTE_ARCHIVE (32)
#define FILE_ATTRIBUTE_COMPRESSED (2048)
#define FILE_ATTRIBUTE_DEVICE (64)
#define FILE_ATTRIBUTE_NORMAL (128)
#define FILE_ATTRIBUTE_DIRECTORY (16)
#define FILE_ATTRIBUTE_ENCRYPTED (16384)
#define FILE_ATTRIBUTE_HIDDEN (2)
#define FILE_ATTRIBUTE_NOT_CONTENT_INDEXED (8192)
#define FILE_ATTRIBUTE_OFFLINE (4096)
#define FILE_ATTRIBUTE_READONLY (1)
#define FILE_ATTRIBUTE_REPARSE_POINT (1024)
#define FILE_ATTRIBUTE_SPARSE_FILE (512)
#define FILE_ATTRIBUTE_SYSTEM (4)
#define FILE_ATTRIBUTE_TEMPORARY (256)
#define FILE_ATTRIBUTE_VALID_FLAGS 0x00007fb7
#define FILE_ATTRIBUTE_VALID_SET_FLAGS 0x000031a7
#define FILE_FLAG_WRITE_THROUGH (2147483648)
#define FILE_FLAG_OVERLAPPED (1073741824)
#define FILE_FLAG_NO_BUFFERING (536870912)
#define FILE_FLAG_RANDOM_ACCESS (268435456)
#define FILE_FLAG_SEQUENTIAL_SCAN (134217728)
#define FILE_FLAG_DELETE_ON_CLOSE (67108864)
#define FILE_FLAG_BACKUP_SEMANTICS (33554432)
#define FILE_FLAG_POSIX_SEMANTICS (16777216)
#define SECURITY_ANONYMOUS (0)
#define SECURITY_IDENTIFICATION (65536)
#define SECURITY_IMPERSONATION (131072)
@ -223,18 +67,7 @@
#define SECURITY_EFFECTIVE_ONLY (524288)
#define SECURITY_SQOS_PRESENT (1048576)
/* Standard rights */
#define STANDARD_RIGHTS_REQUIRED (0xf0000L)
#define STANDARD_RIGHTS_WRITE (0x20000L)
#define STANDARD_RIGHTS_READ (0x20000L)
#define STANDARD_RIGHTS_EXECUTE (0x20000L)
#define STANDARD_RIGHTS_ALL (0x1f0000L)
#define SPECIFIC_RIGHTS_ALL (0xffffL)
/* ACCESS_MASK */
#define MAXIMUM_ALLOWED (0x2000000L)
#define GENERIC_ALL (0x10000000L)
#define GENERIC_EXECUTE (0x20000000L)
#ifndef WIN32_LEAN_AND_MEAN
@ -248,8 +81,6 @@ extern "C" {
#define LF_FACESIZE (32)
#define LF_FULLFACESIZE (64)
#define ELF_VENDOR_SIZE (4)
#define SECURITY_STATIC_TRACKING (0)
#define SECURITY_DYNAMIC_TRACKING (1)
#define MAX_DEFAULTCHAR (2)
#define MAX_LEADBYTES (12)
#define CCHDEVICENAME (32)
@ -706,20 +537,6 @@ extern "C" {
#define ALTERNATE (1)
#define WINDING (2)
/* CreateProcess */
#define CREATE_DEFAULT_ERROR_MODE (67108864)
#define CREATE_NEW_CONSOLE (16)
#define CREATE_NEW_PROCESS_GROUP (512)
#define CREATE_SEPARATE_WOW_VDM (2048)
#define CREATE_SUSPENDED (4)
#define CREATE_UNICODE_ENVIRONMENT (1024)
#define DEBUG_PROCESS (1)
#define DEBUG_ONLY_THIS_PROCESS (2)
#define DETACHED_PROCESS (8)
#define HIGH_PRIORITY_CLASS (128)
#define IDLE_PRIORITY_CLASS (64)
#define NORMAL_PRIORITY_CLASS (32)
#define REALTIME_PRIORITY_CLASS (256)
/* CreateService */
#define SERVICE_ALL_ACCESS (0xf01ffL)
@ -1460,14 +1277,6 @@ extern "C" {
/* GetComputerName */
#define MAX_COMPUTERNAME_LENGTH (15)
/* GetConsoleMode */
#define ENABLE_LINE_INPUT (2)
#define ENABLE_ECHO_INPUT (4)
#define ENABLE_PROCESSED_INPUT (1)
#define ENABLE_WINDOW_INPUT (8)
#define ENABLE_MOUSE_INPUT (16)
#define ENABLE_PROCESSED_OUTPUT (1)
#define ENABLE_WRAP_AT_EOL_OUTPUT (2)
/* GetCPInfo */
#define CP_ACP (0)
@ -1740,7 +1549,6 @@ extern "C" {
#define STD_INPUT_HANDLE (DWORD)(-10)
#define STD_OUTPUT_HANDLE (DWORD)(-11)
#define STD_ERROR_HANDLE (DWORD)(-12)
#define INVALID_HANDLE_VALUE ((HANDLE)-1)
/* GetStockObject */
#define BLACK_BRUSH (4)
@ -1969,14 +1777,6 @@ extern "C" {
#define UOI_NAME (2)
#define UOI_TYPE (3)
/* GetVolumeInformation */
#define FS_CASE_IS_PRESERVED (2)
#define FS_CASE_SENSITIVE (1)
#define FS_UNICODE_STORED_ON_DISK (4)
#define FS_PERSISTENT_ACLS (8)
#define FS_FILE_COMPRESSION (16)
#define FS_VOL_IS_COMPRESSED (32768)
/* GetWindowLong */
#define GWL_EXSTYLE (-20)
#define GWL_STYLE (-16)
@ -2006,13 +1806,6 @@ extern "C" {
#define GMEM_DISCARDED (16384)
#define GMEM_INVALID_HANDLE (32768)
#define GMEM_LOCKCOUNT (255)
/* HeapAlloc, HeapReAlloc */
#define HEAP_GENERATE_EXCEPTIONS (4)
#define HEAP_NO_SERIALIZE (1)
#define HEAP_ZERO_MEMORY (8)
#define HEAP_REALLOC_IN_PLACE_ONLY (16)
#define HEAP_GROWABLE (32)
/* ImageList_Create */
#define ILC_COLOR (0)
@ -4354,124 +4147,6 @@ extern "C" {
#define SW_PARENTCLOSING (1)
#define SW_PARENTOPENING (3)
/* Virtual Key codes */
#define VK_LBUTTON (1)
#define VK_RBUTTON (2)
#define VK_CANCEL (3)
#define VK_MBUTTON (4)
#define VK_BACK (8)
#define VK_TAB (9)
#define VK_CLEAR (12)
#define VK_RETURN (13)
#define VK_SHIFT (16)
#define VK_CONTROL (17)
#define VK_MENU (18)
#define VK_PAUSE (19)
#define VK_CAPITAL (20)
#define VK_ESCAPE (27)
#define VK_SPACE (32)
#define VK_PRIOR (33)
#define VK_NEXT (34)
#define VK_END (35)
#define VK_HOME (36)
#define VK_LEFT (37)
#define VK_UP (38)
#define VK_RIGHT (39)
#define VK_DOWN (40)
#define VK_SELECT (41)
#define VK_PRINT (42)
#define VK_EXECUTE (43)
#define VK_SNAPSHOT (44)
#define VK_INSERT (45)
#define VK_DELETE (46)
#define VK_HELP (47)
#define VK_0 (48)
#define VK_1 (49)
#define VK_2 (50)
#define VK_3 (51)
#define VK_4 (52)
#define VK_5 (53)
#define VK_6 (54)
#define VK_7 (55)
#define VK_8 (56)
#define VK_9 (57)
#define VK_A (65)
#define VK_B (66)
#define VK_C (67)
#define VK_D (68)
#define VK_E (69)
#define VK_F (70)
#define VK_G (71)
#define VK_H (72)
#define VK_I (73)
#define VK_J (74)
#define VK_K (75)
#define VK_L (76)
#define VK_M (77)
#define VK_N (78)
#define VK_O (79)
#define VK_P (80)
#define VK_Q (81)
#define VK_R (82)
#define VK_S (83)
#define VK_T (84)
#define VK_U (85)
#define VK_V (86)
#define VK_W (87)
#define VK_X (88)
#define VK_Y (89)
#define VK_Z (90)
#define VK_NUMPAD0 (96)
#define VK_NUMPAD1 (97)
#define VK_NUMPAD2 (98)
#define VK_NUMPAD3 (99)
#define VK_NUMPAD4 (100)
#define VK_NUMPAD5 (101)
#define VK_NUMPAD6 (102)
#define VK_NUMPAD7 (103)
#define VK_NUMPAD8 (104)
#define VK_NUMPAD9 (105)
#define VK_MULTIPLY (106)
#define VK_ADD (107)
#define VK_SEPARATOR (108)
#define VK_SUBTRACT (109)
#define VK_DECIMAL (110)
#define VK_DIVIDE (111)
#define VK_F1 (112)
#define VK_F2 (113)
#define VK_F3 (114)
#define VK_F4 (115)
#define VK_F5 (116)
#define VK_F6 (117)
#define VK_F7 (118)
#define VK_F8 (119)
#define VK_F9 (120)
#define VK_F10 (121)
#define VK_F11 (122)
#define VK_F12 (123)
#define VK_F13 (124)
#define VK_F14 (125)
#define VK_F15 (126)
#define VK_F16 (127)
#define VK_F17 (128)
#define VK_F18 (129)
#define VK_F19 (130)
#define VK_F20 (131)
#define VK_F21 (132)
#define VK_F22 (133)
#define VK_F23 (134)
#define VK_F24 (135)
/* GetAsyncKeyState */
#define VK_NUMLOCK (144)
#define VK_SCROLL (145)
#define VK_LSHIFT (160)
#define VK_LCONTROL (162)
#define VK_LMENU (164)
#define VK_RSHIFT (161)
#define VK_RCONTROL (163)
#define VK_RMENU (165)
/* ImmGetVirtualKey */
#define VK_PROCESSKEY (229)
@ -4790,33 +4465,6 @@ extern "C" {
#define RESOURCEDISPLAYTYPE_SERVER (2)
#define RESOURCEDISPLAYTYPE_SHARE (3)
/* KEY_EVENT_RECORD structure */
#define CAPSLOCK_ON (128)
#define ENHANCED_KEY (256)
#define LEFT_ALT_PRESSED (2)
#define LEFT_CTRL_PRESSED (8)
#define NUMLOCK_ON (32)
#define RIGHT_ALT_PRESSED (1)
#define RIGHT_CTRL_PRESSED (4)
#define SCROLLLOCK_ON (64)
#define SHIFT_PRESSED (16)
/* MOUSE_EVENT_RECORD structure */
#define FROM_LEFT_1ST_BUTTON_PRESSED (1)
#define RIGHTMOST_BUTTON_PRESSED (2)
#define FROM_LEFT_2ND_BUTTON_PRESSED (4)
#define FROM_LEFT_3RD_BUTTON_PRESSED (8)
#define FROM_LEFT_4TH_BUTTON_PRESSED (16)
#define DOUBLE_CLICK (2)
#define MOUSE_MOVED (1)
/* INPUT_RECORD structure */
#define KEY_EVENT (1)
#define MOUSE_EVENT (2)
#define WINDOW_BUFFER_SIZE_EVENT (4)
#define MENU_EVENT (8)
#define FOCUS_EVENT (16)
/* BITMAPINFOHEADER structure */
#define BI_RGB (0L)
#define BI_RLE8 (1L)

View file

@ -1,25 +0,0 @@
%macro DECLARE_EXTERNAL_SYMBOL 1
%ifdef coff
extern _%1
%elifdef win32
extern _%1
%elifdef elf
extern %1
_%1:
call %1
ret
%endif
%endmacro
%macro DECLARE_GLOBAL_SYMBOL 1
%ifdef coff
global _%1
_%1:
%elifdef win32
global _%1
_%1:
%elifdef elf
global %1
%1:
%endif
%endmacro

View file

@ -1,91 +0,0 @@
/*
*
*/
#ifndef __INTERNAL_HAL_HAL_H
#define __INTERNAL_HAL_HAL_H
#include <internal/service.h>
#include <internal/ntoskrnl.h>
typedef struct
{
unsigned short previous_task;
unsigned short reserved1;
unsigned long esp0;
unsigned short ss0;
unsigned short reserved2;
unsigned long esp1;
unsigned short ss1;
unsigned short reserved3;
unsigned long esp2;
unsigned short ss2;
unsigned short reserved4;
unsigned long cr3;
unsigned long eip;
unsigned long eflags;
unsigned long eax;
unsigned long ecx;
unsigned long edx;
unsigned long ebx;
unsigned long esp;
unsigned long ebp;
unsigned long esi;
unsigned long edi;
unsigned short es;
unsigned short reserved5;
unsigned short cs;
unsigned short reserved6;
unsigned short ss;
unsigned short reserved7;
unsigned short ds;
unsigned short reserved8;
unsigned short fs;
unsigned short reserved9;
unsigned short gs;
unsigned short reserved10;
unsigned short ldt;
unsigned short reserved11;
unsigned short trap;
unsigned short iomap_base;
unsigned short nr;
PVOID KernelStackBase;
PVOID SavedKernelEsp;
PVOID SavedKernelStackBase;
unsigned char io_bitmap[1];
} hal_thread_state;
/*
* FUNCTION: Probes for a PCI bus
* RETURNS: True if found
*/
BOOL HalPciProbe(void);
/*
* FUNCTION: Probes for a BIOS32 extension
*/
VOID Hal_bios32_probe(VOID);
/*
* FUNCTION: Determines if a a bios32 service is present
*/
BOOLEAN Hal_bios32_is_service_present(ULONG service);
VOID HalInitializeDisplay (boot_param *bp);
VOID HalResetDisplay (VOID);
VOID
HalpInitBusHandlers (VOID);
/* udelay.c */
VOID HalpCalibrateStallExecution(VOID);
/* irq.c */
VOID HalpDispatchInterrupt (ULONG irq);
VOID HalpInitIRQs (VOID);
#endif /* __INTERNAL_HAL_HAL_H */

View file

@ -1,6 +0,0 @@
;
; Useful prototypes and definitions
;
%define KERNEL_DS 028h
%define KERNEL_CS 020h

View file

@ -1,5 +0,0 @@
#ifdef __cplusplus
#define asmlinkage extern "C"
#else
#define asmlinkage
#endif

View file

@ -1,22 +0,0 @@
#ifndef __INTERNAL_POOL_H
#define __INTERNAL_POOL_H
#include <internal/linkage.h>
PVOID
__stdcall
ExAllocateNonPagedPoolWithTag (
POOL_TYPE type,
ULONG size,
ULONG Tag,
PVOID Caller
);
PVOID
__stdcall
ExAllocatePagedPoolWithTag (
POOL_TYPE Type,
ULONG size,
ULONG Tag
);
#endif /* __INTERNAL_POOL_H */

View file

@ -1,7 +1,7 @@
#ifndef __INCLUDE_NAPI_LPC_H
#define __INCLUDE_NAPI_LPC_H
#include <security.h>
#include <ntos/security.h>
#define MAX_MESSAGE_DATA (0x130)

View file

@ -2,6 +2,8 @@
#ifndef __INCLUDE_INTERNAL_TEB
#define __INCLUDE_INTERNAL_TEB
#include <napi/types.h>
typedef struct _CLIENT_ID
{
HANDLE UniqueProcess;

View file

@ -0,0 +1,102 @@
#ifndef __INCLUDE_NAPI_TYPES_H
#define __INCLUDE_NAPI_TYPES_H
// these should be moved to a file like ntdef.h
typedef const int CINT;
typedef LONG NTSTATUS, *PNTSTATUS;
typedef ULONG DEVICE_TYPE;
enum
{
DIRECTORY_QUERY,
DIRECTORY_TRAVERSE,
DIRECTORY_CREATE_OBJECT,
DIRECTORY_CREATE_SUBDIRECTORY,
DIRECTORY_ALL_ACCESS,
};
/*
* General type for status information
*/
//typedef LONG NTSTATUS;
typedef struct _UNICODE_STRING
{
USHORT Length;
USHORT MaximumLength;
PWSTR Buffer;
} UNICODE_STRING, *PUNICODE_STRING;
typedef enum _SECTION_INHERIT {
ViewShare = 1,
ViewUnmap = 2
} SECTION_INHERIT;
/* File information for IRP_MJ_QUERY_INFORMATION (and SET) */
typedef enum _FILE_INFORMATION_CLASS
{
FileDirectoryInformation = 1,
FileFullDirectoryInformation,
FileBothDirectoryInformation,
FileBasicInformation,
FileStandardInformation,
FileInternalInformation,
FileEaInformation,
FileAccessInformation,
FileNameInformation,
FileRenameInformation,
FileLinkInformation,
FileNamesInformation,
FileDispositionInformation,
FilePositionInformation,
FileFullEaInformation,
FileModeInformation,
FileAlignmentInformation,
FileAllInformation,
FileAllocationInformation,
FileEndOfFileInformation,
FileAlternateNameInformation,
FileStreamInformation,
FilePipeInformation,
FilePipeLocalInformation,
FilePipeRemoteInformation,
FileMailslotQueryInformation,
FileMailslotSetInformation,
FileCompressionInformation,
FileCopyOnWriteInformation,
FileCompletionInformation,
FileMoveClusterInformation,
FileOleClassIdInformation,
FileOleStateBitsInformation,
FileNetworkOpenInformation,
FileObjectIdInformation,
FileOleAllInformation,
FileOleDirectoryInformation,
FileContentIndexInformation,
FileInheritContentIndexInformation,
FileOleInformation,
FileMaximumInformation,
} FILE_INFORMATION_CLASS;
typedef ULONG WAIT_TYPE;
typedef USHORT CSHORT;
#if 0
typedef struct _TIME {
DWORD LowPart;
LONG HighPart;
} TIME, *PTIME;
#endif
typedef ULARGE_INTEGER TIME, *PTIME;
#endif /* __INCLUDE_NAPI_TYPES_H */

View file

@ -1,4 +1,6 @@
#include <ntos/ntdef.h>
#define UNIMPLEMENTED DbgPrint("%s in %s:%d is unimplemented\n",__FUNCTION__,__FILE__,__LINE__);
#ifdef NDEBUG

View file

@ -1,10 +1,33 @@
/* $Id: rtl.h,v 1.16 2000/05/25 15:50:22 ekohl Exp $
/* $Id: rtl.h,v 1.17 2000/06/29 23:35:22 dwelch Exp $
*
*/
#ifndef __INCLUDE_NTDLL_RTL_H
#define __INCLUDE_NTDLL_RTL_H
#include <napi/teb.h>
typedef struct _CRITICAL_SECTION_DEBUG {
WORD Type;
WORD CreatorBackTraceIndex;
struct _CRITICAL_SECTION *CriticalSection;
LIST_ENTRY ProcessLocksList;
DWORD EntryCount;
DWORD ContentionCount;
DWORD Depth;
PVOID OwnerBackTrace[ 5 ];
} CRITICAL_SECTION_DEBUG, *PCRITICAL_SECTION_DEBUG;
typedef struct _CRITICAL_SECTION {
PCRITICAL_SECTION_DEBUG DebugInfo;
LONG LockCount;
LONG RecursionCount;
HANDLE OwningThread;
HANDLE LockSemaphore;
DWORD Reserved;
} CRITICAL_SECTION, *PCRITICAL_SECTION, *LPCRITICAL_SECTION;
/*
* Preliminary data type!!
*
@ -256,7 +279,7 @@ RtlCreateUserProcess (
PRTL_USER_PROCESS_PARAMETERS ProcessParameters, // verified
PSECURITY_DESCRIPTOR ProcessSd,
PSECURITY_DESCRIPTOR ThreadSd,
WINBOOL bInheritHandles,
BOOL bInheritHandles,
DWORD dwCreationFlags,
ULONG Unknown8,
ULONG Unknown9,

View file

@ -1,7 +1,11 @@
#ifndef _NTOS_H
#define _NTOS_H
/* $Id: ntos.h,v 1.1 1999/08/29 07:02:52 ea Exp $ */
/* $Id: ntos.h,v 1.2 2000/06/29 23:35:11 dwelch Exp $ */
#include <ddk/ntddk.h>
#include <ntos/heap.h>
#include <ntos/synch.h>
#include <ntos/keyboard.h>
#include <ntos/console.h>
#endif /* ndef _NTOS_H */

View file

@ -0,0 +1,17 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
* FILE: include/atom.h
* PURPOSE: Atom declarations used by all the parts of the system
* PROGRAMMER: David Welch <welch@cwcom.net>
* UPDATE HISTORY:
* 27/06/00: Created
*/
#ifndef __INCLUDE_ATOM_H
#define __INCLUDE_ATOM_H
typedef unsigned short ATOM;
#endif /* __INCLUDE_ATOM_H */

View file

@ -0,0 +1,41 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
* FILE: include/console.h
* PURPOSE: Console declarations used by all the parts of the
* system
* PROGRAMMER: David Welch <welch@cwcom.net>
* UPDATE HISTORY:
* 27/06/00: Created
*/
#ifndef __INCLUDE_CONSOLE_H
#define __INCLUDE_CONSOLE_H
/* GetConsoleMode */
#define ENABLE_LINE_INPUT (2)
#define ENABLE_ECHO_INPUT (4)
#define ENABLE_PROCESSED_INPUT (1)
#define ENABLE_WINDOW_INPUT (8)
#define ENABLE_MOUSE_INPUT (16)
#define ENABLE_PROCESSED_OUTPUT (1)
#define ENABLE_WRAP_AT_EOL_OUTPUT (2)
typedef struct _CONSOLE_SCREEN_BUFFER_INFO {
COORD dwSize;
COORD dwCursorPosition;
WORD wAttributes;
SMALL_RECT srWindow;
COORD dwMaximumWindowSize;
} CONSOLE_SCREEN_BUFFER_INFO, *PCONSOLE_SCREEN_BUFFER_INFO ;
typedef struct _CONSOLE_CURSOR_INFO {
DWORD dwSize;
BOOL bVisible;
} CONSOLE_CURSOR_INFO, *PCONSOLE_CURSOR_INFO;
#endif /* __INCLUDE_CONSOLE_H */

View file

@ -0,0 +1,56 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
* FILE: include/disk.h
* PURPOSE: Disk related definitions used by all the parts of the system
* PROGRAMMER: David Welch <welch@cwcom.net>
* UPDATE HISTORY:
* 27/06/00: Created
*/
#ifndef __INCLUDE_DISK_H
#define __INCLUDE_DISK_H
typedef enum _MEDIA_TYPE {
Unknown,
F5_1Pt2_512,
F3_1Pt44_512,
F3_2Pt88_512,
F3_20Pt8_512,
F3_720_512,
F5_360_512,
F5_320_512,
F5_320_1024,
F5_180_512,
F5_160_512,
RemovableMedia,
FixedMedia
} MEDIA_TYPE;
typedef struct _PARTITION_INFORMATION {
BYTE PartitionType;
BOOLEAN BootIndicator;
BOOLEAN RecognizedPartition;
BOOLEAN RewritePartition;
LARGE_INTEGER StartingOffset;
LARGE_INTEGER PartitionLength;
LARGE_INTEGER HiddenSectors;
} PARTITION_INFORMATION;
typedef struct _DRIVE_LAYOUT_INFORMATION {
DWORD PartitionCount;
DWORD Signature;
PARTITION_INFORMATION PartitionEntry[1];
} DRIVE_LAYOUT_INFORMATION;
typedef struct _DISK_GEOMETRY {
LARGE_INTEGER Cylinders;
MEDIA_TYPE MediaType;
DWORD TracksPerCylinder;
DWORD SectorsPerTrack;
DWORD BytesPerSector;
} DISK_GEOMETRY ;
#endif /* __INCLUDE_DISK_H */

108
reactos/include/ntos/file.h Normal file
View file

@ -0,0 +1,108 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
* FILE: include/ps.h
* PURPOSE: Filesystem declarations used by all the parts of the
* system
* PROGRAMMER: David Welch <welch@cwcom.net>
* UPDATE HISTORY:
* 27/06/00: Created
*/
#ifndef __INCLUDE_FILE_H
#define __INCLUDE_FILE_H
#define GENERIC_READ (0x80000000L)
#define GENERIC_WRITE (0x40000000L)
#define FILE_READ_DATA ( 0x0001 ) /* file & pipe */
#define FILE_LIST_DIRECTORY ( 0x0001 ) /* directory */
#define FILE_WRITE_DATA ( 0x0002 ) /* file & pipe */
#define FILE_ADD_FILE ( 0x0002 ) /* directory */
#define FILE_APPEND_DATA ( 0x0004 ) /* file */
#define FILE_ADD_SUBDIRECTORY ( 0x0004 ) /* directory */
#define FILE_CREATE_PIPE_INSTANCE ( 0x0004 ) /* named pipe */
#define FILE_READ_EA ( 0x0008 ) /* file & directory */
#define FILE_READ_PROPERTIES FILE_READ_EA
#define FILE_WRITE_EA ( 0x0010 ) /* file & directory */
#define FILE_WRITE_PROPERTIES FILE_WRITE_EA
#define FILE_EXECUTE ( 0x0020 ) /* file */
#define FILE_TRAVERSE ( 0x0020 ) /* directory */
#define FILE_DELETE_CHILD ( 0x0040 ) /* directory */
#define FILE_READ_ATTRIBUTES ( 0x0080 ) /* all */
#define FILE_WRITE_ATTRIBUTES ( 0x0100 ) /* all */
#define FILE_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED | SYNCHRONIZE | 0x1FF)
#define FILE_GENERIC_READ (STANDARD_RIGHTS_READ |\
FILE_READ_DATA |\
FILE_READ_ATTRIBUTES |\
FILE_READ_EA |\
SYNCHRONIZE)
#define FILE_GENERIC_WRITE (STANDARD_RIGHTS_WRITE |\
FILE_WRITE_DATA |\
FILE_WRITE_ATTRIBUTES |\
FILE_WRITE_EA |\
FILE_APPEND_DATA |\
SYNCHRONIZE)
#define FILE_GENERIC_EXECUTE (STANDARD_RIGHTS_EXECUTE |\
FILE_READ_ATTRIBUTES |\
FILE_EXECUTE |\
SYNCHRONIZE)
#define FILE_SHARE_DELETE (4)
#define FILE_SHARE_READ (1)
#define FILE_SHARE_WRITE (2)
#define CONSOLE_TEXTMODE_BUFFER (1)
#define CREATE_NEW (1)
#define CREATE_ALWAYS (2)
#define OPEN_EXISTING (3)
#define OPEN_ALWAYS (4)
#define TRUNCATE_EXISTING (5)
#define FILE_ATTRIBUTE_ARCHIVE (32)
#define FILE_ATTRIBUTE_COMPRESSED (2048)
#define FILE_ATTRIBUTE_DEVICE (64)
#define FILE_ATTRIBUTE_NORMAL (128)
#define FILE_ATTRIBUTE_DIRECTORY (16)
#define FILE_ATTRIBUTE_ENCRYPTED (16384)
#define FILE_ATTRIBUTE_HIDDEN (2)
#define FILE_ATTRIBUTE_NOT_CONTENT_INDEXED (8192)
#define FILE_ATTRIBUTE_OFFLINE (4096)
#define FILE_ATTRIBUTE_READONLY (1)
#define FILE_ATTRIBUTE_REPARSE_POINT (1024)
#define FILE_ATTRIBUTE_SPARSE_FILE (512)
#define FILE_ATTRIBUTE_SYSTEM (4)
#define FILE_ATTRIBUTE_TEMPORARY (256)
#define FILE_ATTRIBUTE_VALID_FLAGS 0x00007fb7
#define FILE_ATTRIBUTE_VALID_SET_FLAGS 0x000031a7
#define FILE_FLAG_WRITE_THROUGH (2147483648)
#define FILE_FLAG_OVERLAPPED (1073741824)
#define FILE_FLAG_NO_BUFFERING (536870912)
#define FILE_FLAG_RANDOM_ACCESS (268435456)
#define FILE_FLAG_SEQUENTIAL_SCAN (134217728)
#define FILE_FLAG_DELETE_ON_CLOSE (67108864)
#define FILE_FLAG_BACKUP_SEMANTICS (33554432)
#define FILE_FLAG_POSIX_SEMANTICS (16777216)
/* GetVolumeInformation */
#define FS_CASE_IS_PRESERVED (2)
#define FS_CASE_SENSITIVE (1)
#define FS_UNICODE_STORED_ON_DISK (4)
#define FS_PERSISTENT_ACLS (8)
#define FS_FILE_COMPRESSION (16)
#define FS_VOL_IS_COMPRESSED (32768)
#endif /* __INCLUDE_FILE_H */

View file

@ -0,0 +1,24 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
* FILE: include/heap.h
* PURPOSE: Heap declarations used by all the parts of the
* system
* PROGRAMMER: David Welch <welch@cwcom.net>
* UPDATE HISTORY:
* 27/06/00: Created
*/
#ifndef __INCLUDE_HEAP_H
#define __INCLUDE_HEAP_H
/* HeapAlloc, HeapReAlloc */
#define HEAP_GENERATE_EXCEPTIONS (4)
#define HEAP_NO_SERIALIZE (1)
#define HEAP_ZERO_MEMORY (8)
#define HEAP_REALLOC_IN_PLACE_ONLY (16)
#define HEAP_GROWABLE (32)
#endif /* __INCLUDE_HEAP_H */

View file

@ -0,0 +1,213 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
* FILE: include/keyboard.h
* PURPOSE: Keyboard declarations used by all the parts of the
* system
* PROGRAMMER: David Welch <welch@cwcom.net>
* UPDATE HISTORY:
* 27/06/00: Created
*/
#ifndef __INCLUDE_KEYBOARD_H
#define __INCLUDE_KEYBOARD_H
#include <ntos/types.h>
/* KEY_EVENT_RECORD structure */
#define CAPSLOCK_ON (128)
#define ENHANCED_KEY (256)
#define LEFT_ALT_PRESSED (2)
#define LEFT_CTRL_PRESSED (8)
#define NUMLOCK_ON (32)
#define RIGHT_ALT_PRESSED (1)
#define RIGHT_CTRL_PRESSED (4)
#define SCROLLLOCK_ON (64)
#define SHIFT_PRESSED (16)
/* MOUSE_EVENT_RECORD structure */
#define FROM_LEFT_1ST_BUTTON_PRESSED (1)
#define RIGHTMOST_BUTTON_PRESSED (2)
#define FROM_LEFT_2ND_BUTTON_PRESSED (4)
#define FROM_LEFT_3RD_BUTTON_PRESSED (8)
#define FROM_LEFT_4TH_BUTTON_PRESSED (16)
#define DOUBLE_CLICK (2)
#define MOUSE_MOVED (1)
/* INPUT_RECORD structure */
#define KEY_EVENT (1)
#define MOUSE_EVENT (2)
#define WINDOW_BUFFER_SIZE_EVENT (4)
#define MENU_EVENT (8)
#define FOCUS_EVENT (16)
typedef struct _KEY_EVENT_RECORD {
BOOL bKeyDown;
WORD wRepeatCount;
WORD wVirtualKeyCode;
WORD wVirtualScanCode;
union {
WCHAR UnicodeChar;
CHAR AsciiChar;
} uChar;
DWORD dwControlKeyState;
} KEY_EVENT_RECORD PACKED;
typedef struct _MOUSE_EVENT_RECORD {
COORD dwMousePosition;
DWORD dwButtonState;
DWORD dwControlKeyState;
DWORD dwEventFlags;
} MOUSE_EVENT_RECORD;
typedef struct _WINDOW_BUFFER_SIZE_RECORD {
COORD dwSize;
} WINDOW_BUFFER_SIZE_RECORD;
typedef struct _MENU_EVENT_RECORD {
UINT dwCommandId;
} MENU_EVENT_RECORD, *PMENU_EVENT_RECORD;
typedef struct _FOCUS_EVENT_RECORD {
BOOL bSetFocus;
} FOCUS_EVENT_RECORD;
typedef struct _INPUT_RECORD {
WORD EventType;
union {
#ifndef __cplus_plus
/* this will be the wrong size in c++ */
KEY_EVENT_RECORD KeyEvent;
#endif
MOUSE_EVENT_RECORD MouseEvent;
WINDOW_BUFFER_SIZE_RECORD WindowBufferSizeEvent;
MENU_EVENT_RECORD MenuEvent;
FOCUS_EVENT_RECORD FocusEvent;
} Event;
} INPUT_RECORD, *PINPUT_RECORD;
/* Virtual Key codes */
#define VK_LBUTTON (1)
#define VK_RBUTTON (2)
#define VK_CANCEL (3)
#define VK_MBUTTON (4)
#define VK_BACK (8)
#define VK_TAB (9)
#define VK_CLEAR (12)
#define VK_RETURN (13)
#define VK_SHIFT (16)
#define VK_CONTROL (17)
#define VK_MENU (18)
#define VK_PAUSE (19)
#define VK_CAPITAL (20)
#define VK_ESCAPE (27)
#define VK_SPACE (32)
#define VK_PRIOR (33)
#define VK_NEXT (34)
#define VK_END (35)
#define VK_HOME (36)
#define VK_LEFT (37)
#define VK_UP (38)
#define VK_RIGHT (39)
#define VK_DOWN (40)
#define VK_SELECT (41)
#define VK_PRINT (42)
#define VK_EXECUTE (43)
#define VK_SNAPSHOT (44)
#define VK_INSERT (45)
#define VK_DELETE (46)
#define VK_HELP (47)
#define VK_0 (48)
#define VK_1 (49)
#define VK_2 (50)
#define VK_3 (51)
#define VK_4 (52)
#define VK_5 (53)
#define VK_6 (54)
#define VK_7 (55)
#define VK_8 (56)
#define VK_9 (57)
#define VK_A (65)
#define VK_B (66)
#define VK_C (67)
#define VK_D (68)
#define VK_E (69)
#define VK_F (70)
#define VK_G (71)
#define VK_H (72)
#define VK_I (73)
#define VK_J (74)
#define VK_K (75)
#define VK_L (76)
#define VK_M (77)
#define VK_N (78)
#define VK_O (79)
#define VK_P (80)
#define VK_Q (81)
#define VK_R (82)
#define VK_S (83)
#define VK_T (84)
#define VK_U (85)
#define VK_V (86)
#define VK_W (87)
#define VK_X (88)
#define VK_Y (89)
#define VK_Z (90)
#define VK_NUMPAD0 (96)
#define VK_NUMPAD1 (97)
#define VK_NUMPAD2 (98)
#define VK_NUMPAD3 (99)
#define VK_NUMPAD4 (100)
#define VK_NUMPAD5 (101)
#define VK_NUMPAD6 (102)
#define VK_NUMPAD7 (103)
#define VK_NUMPAD8 (104)
#define VK_NUMPAD9 (105)
#define VK_MULTIPLY (106)
#define VK_ADD (107)
#define VK_SEPARATOR (108)
#define VK_SUBTRACT (109)
#define VK_DECIMAL (110)
#define VK_DIVIDE (111)
#define VK_F1 (112)
#define VK_F2 (113)
#define VK_F3 (114)
#define VK_F4 (115)
#define VK_F5 (116)
#define VK_F6 (117)
#define VK_F7 (118)
#define VK_F8 (119)
#define VK_F9 (120)
#define VK_F10 (121)
#define VK_F11 (122)
#define VK_F12 (123)
#define VK_F13 (124)
#define VK_F14 (125)
#define VK_F15 (126)
#define VK_F16 (127)
#define VK_F17 (128)
#define VK_F18 (129)
#define VK_F19 (130)
#define VK_F20 (131)
#define VK_F21 (132)
#define VK_F22 (133)
#define VK_F23 (134)
#define VK_F24 (135)
/* GetAsyncKeyState */
#define VK_NUMLOCK (144)
#define VK_SCROLL (145)
#define VK_LSHIFT (160)
#define VK_LCONTROL (162)
#define VK_LMENU (164)
#define VK_RSHIFT (161)
#define VK_RCONTROL (163)
#define VK_RMENU (165)
#endif /* __INCLUDE_KEYBOARD_H */

View file

@ -0,0 +1,7 @@
#ifndef max
#define max(a, b) (((a) > (b)) ? (a) : (b))
#endif
#ifndef min
#define min(a, b) (((a) < (b)) ? (a) : (b))
#endif

62
reactos/include/ntos/mm.h Normal file
View file

@ -0,0 +1,62 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
* FILE: include/mm.h
* PURPOSE: Memory managment declarations used by all the parts of the
* system
* PROGRAMMER: David Welch <welch@cwcom.net>
* UPDATE HISTORY:
* 27/06/00: Created
*/
#ifndef __INCLUDE_MM_H
#define __INCLUDE_MM_H
#define SEC_COMMIT (134217728)
#define SEC_IMAGE (16777216)
#define SEC_NOCACHE (268435456)
#define SEC_RESERVE (67108864)
#define PAGE_READONLY (2)
#define PAGE_READWRITE (4)
#define PAGE_WRITECOPY (8)
#define PAGE_EXECUTE (16)
#define PAGE_EXECUTE_READ (32)
#define PAGE_EXECUTE_READWRITE (64)
#define PAGE_EXECUTE_WRITECOPY (128)
#define PAGE_GUARD (256)
#define PAGE_NOACCESS (1)
#define PAGE_NOCACHE (512)
#define MEM_COMMIT (4096)
#define MEM_FREE (65536)
#define MEM_RESERVE (8192)
#define MEM_IMAGE (16777216)
#define MEM_MAPPED (262144)
#define MEM_PRIVATE (131072)
#define MEM_DECOMMIT (16384)
#define MEM_RELEASE (32768)
#define MEM_TOP_DOWN (1048576)
#define EXCEPTION_GUARD_PAGE (0x80000001L)
#define SECTION_EXTEND_SIZE (0x10)
#define SECTION_MAP_READ (0x4)
#define SECTION_MAP_WRITE (0x2)
#define SECTION_QUERY (0x1)
#define SECTION_ALL_ACCESS (0xf001fL)
typedef struct _MEMORY_BASIC_INFORMATION {
PVOID BaseAddress;
PVOID AllocationBase;
DWORD AllocationProtect;
DWORD RegionSize;
DWORD State;
DWORD Protect;
DWORD Type;
} MEMORY_BASIC_INFORMATION, *PMEMORY_BASIC_INFORMATION;
#define FILE_MAP_ALL_ACCESS (0xf001fL)
#define FILE_MAP_READ (4)
#define FILE_MAP_WRITE (2)
#define FILE_MAP_COPY (1)
#endif /* __INCLUDE_MM_H */

View file

@ -0,0 +1,25 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
* FILE: include/ntdef.h
* PURPOSE: Defines used by all the parts of the system
* PROGRAMMER: David Welch <welch@cwcom.net>
* UPDATE HISTORY:
* 27/06/00: Created
*/
#ifndef __INCLUDE_NTDEF_H
#define __INCLUDE_NTDEF_H
#define ANYSIZE_ARRAY (1)
#define SYNCHRONIZE (0x100000L)
#define DUPLICATE_CLOSE_SOURCE (1)
#define DUPLICATE_SAME_ACCESS (2)
#define PACKED __attribute__((packed))
#define INVALID_HANDLE_VALUE ((HANDLE)-1)
#endif /* __INCLUDE_NTDEF_H */

63
reactos/include/ntos/ps.h Normal file
View file

@ -0,0 +1,63 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
* FILE: include/ps.h
* PURPOSE: Process/thread declarations used by all the parts of the
* system
* PROGRAMMER: David Welch <welch@cwcom.net>
* UPDATE HISTORY:
* 27/06/00: Created
*/
#ifndef __INCLUDE_PS_H
#define __INCLUDE_PS_H
#define THREAD_ALL_ACCESS (0x1f03ffL)
#define THREAD_DIRECT_IMPERSONATION (512)
#define THREAD_GET_CONTEXT (8)
#define THREAD_IMPERSONATE (256)
#define THREAD_QUERY_INFORMATION (64)
#define THREAD_SET_CONTEXT (16)
#define THREAD_SET_INFORMATION (32)
#define THREAD_SET_THREAD_TOKEN (128)
#define THREAD_SUSPEND_RESUME (2)
#define THREAD_TERMINATE (1)
#define PROCESS_ALL_ACCESS (0x1f0fffL)
#define PROCESS_CREATE_PROCESS (128)
#define PROCESS_CREATE_THREAD (2)
#define PROCESS_DUP_HANDLE (64)
#define PROCESS_QUERY_INFORMATION (1024)
#define PROCESS_SET_INFORMATION (512)
#define PROCESS_TERMINATE (1)
#define PROCESS_VM_OPERATION (8)
#define PROCESS_VM_READ (16)
#define PROCESS_VM_WRITE (32)
#define THREAD_PRIORITY_ABOVE_NORMAL (1)
#define THREAD_PRIORITY_BELOW_NORMAL (-1)
#define THREAD_PRIORITY_HIGHEST (2)
#define THREAD_PRIORITY_IDLE (-15)
#define THREAD_PRIORITY_LOWEST (-2)
#define THREAD_PRIORITY_NORMAL (0)
#define THREAD_PRIORITY_TIME_CRITICAL (15)
#define THREAD_PRIORITY_ERROR_RETURN (2147483647)
/* CreateProcess */
#define CREATE_DEFAULT_ERROR_MODE (67108864)
#define CREATE_NEW_CONSOLE (16)
#define CREATE_NEW_PROCESS_GROUP (512)
#define CREATE_SEPARATE_WOW_VDM (2048)
#define CREATE_SUSPENDED (4)
#define CREATE_UNICODE_ENVIRONMENT (1024)
#define DEBUG_PROCESS (1)
#define DEBUG_ONLY_THIS_PROCESS (2)
#define DETACHED_PROCESS (8)
#define HIGH_PRIORITY_CLASS (128)
#define IDLE_PRIORITY_CLASS (64)
#define NORMAL_PRIORITY_CLASS (32)
#define REALTIME_PRIORITY_CLASS (256)
#endif /* __INCLUDE_PS_H */

View file

@ -1,6 +1,28 @@
#ifndef __INCLUDE_SECURITY_H
#define __INCLUDE_SECURITY_H
#include <ntos/ntdef.h>
#include <ntos/types.h>
/* ACCESS_MASK */
#define MAXIMUM_ALLOWED (0x2000000L)
#define GENERIC_ALL (0x10000000L)
#define GENERIC_EXECUTE (0x20000000L)
#define SECURITY_STATIC_TRACKING (0)
#define SECURITY_DYNAMIC_TRACKING (1)
/* Standard rights */
#define STANDARD_RIGHTS_REQUIRED (0xf0000L)
#define STANDARD_RIGHTS_WRITE (0x20000L)
#define STANDARD_RIGHTS_READ (0x20000L)
#define STANDARD_RIGHTS_EXECUTE (0x20000L)
#define STANDARD_RIGHTS_ALL (0x1f0000L)
#define SPECIFIC_RIGHTS_ALL (0xffffL)
typedef BOOL SECURITY_CONTEXT_TRACKING_MODE;
typedef ULONG SECURITY_INFORMATION, *PSECURITY_INFORMATION;
typedef enum _TOKEN_INFORMATION_CLASS {
@ -157,4 +179,29 @@ typedef struct _TOKEN_STATISTICS {
LUID ModifiedId;
} TOKEN_STATISTICS, *PTOKEN_STATISTICS;
typedef struct _GENERIC_MAPPING {
ACCESS_MASK GenericRead;
ACCESS_MASK GenericWrite;
ACCESS_MASK GenericExecute;
ACCESS_MASK GenericAll;
} GENERIC_MAPPING, *PGENERIC_MAPPING;
typedef struct _PRIVILEGE_SET {
DWORD PrivilegeCount;
DWORD Control;
LUID_AND_ATTRIBUTES Privilege[ANYSIZE_ARRAY];
} PRIVILEGE_SET, *PPRIVILEGE_SET, *LPPRIVILEGE_SET;
typedef enum _ACL_INFORMATION_CLASS {
AclRevisionInformation = 1,
AclSizeInformation
} ACL_INFORMATION_CLASS;
typedef struct _SECURITY_ATTRIBUTES {
DWORD nLength;
LPVOID lpSecurityDescriptor;
BOOL bInheritHandle;
} SECURITY_ATTRIBUTES, *LPSECURITY_ATTRIBUTES;
#endif /* __INCLUDE_SECURITY_H */

View file

@ -0,0 +1,24 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
* FILE: include/synch.h
* PURPOSE: Synchronization declarations used by all the parts of the
* system
* PROGRAMMER: David Welch <welch@cwcom.net>
* UPDATE HISTORY:
* 27/06/00: Created
*/
#ifndef __INCLUDE_SYNCH_H
#define __INCLUDE_SYNCH_H
#define MUTEX_ALL_ACCESS (0x1f0001L)
#define MUTEX_MODIFY_STATE (1)
#define SEMAPHORE_ALL_ACCESS (0x1f0003L)
#define SEMAPHORE_MODIFY_STATE (2)
#define EVENT_ALL_ACCESS (0x1f0003L)
#define EVENT_MODIFY_STATE (2)
#endif /* __INCLUDE_PS_H */

View file

@ -0,0 +1,38 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
* FILE: include/time.h
* PURPOSE: Time declarations used by all the parts of the system
* PROGRAMMER: David Welch <welch@cwcom.net>
* UPDATE HISTORY:
* 27/06/00: Created
*/
#ifndef __INCLUDE_TIME_H
#define __INCLUDE_TIME_H
#include <ntos/types.h>
typedef struct _SYSTEMTIME {
WORD wYear;
WORD wMonth;
WORD wDayOfWeek;
WORD wDay;
WORD wHour;
WORD wMinute;
WORD wSecond;
WORD wMilliseconds;
} SYSTEMTIME, *LPSYSTEMTIME;
typedef struct _TIME_ZONE_INFORMATION {
LONG Bias;
WCHAR StandardName[ 32 ];
SYSTEMTIME StandardDate;
LONG StandardBias;
WCHAR DaylightName[ 32 ];
SYSTEMTIME DaylightDate;
LONG DaylightBias;
} TIME_ZONE_INFORMATION, *LPTIME_ZONE_INFORMATION;
#endif /* __INCLUDE_TIME_H */

View file

@ -0,0 +1,303 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
* FILE: include/types.h
* PURPOSE: Types used by all the parts of the system
* PROGRAMMER: David Welch <welch@cwcom.net>
* UPDATE HISTORY:
* 27/06/00: Created
*/
#ifndef __INCLUDE_TYPES_H
#define __INCLUDE_TYPES_H
typedef unsigned char UCHAR;
typedef unsigned int UINT;
typedef unsigned long ULONG;
typedef unsigned short USHORT;
typedef unsigned short WCHAR;
typedef unsigned short WORD;
typedef int BOOL;
typedef unsigned char BOOLEAN;
typedef BOOLEAN* PBOOLEAN;
typedef unsigned int DWORD; /* was unsigned long */
typedef unsigned short *LPWSTR;
typedef unsigned short *PWSTR;
typedef unsigned char *PUCHAR;
typedef unsigned int *PUINT;
typedef unsigned long *PULONG;
typedef unsigned short *PUSHORT;
typedef void *PVOID;
typedef unsigned char BYTE;
typedef void *LPVOID;
typedef DWORD *PDWORD;
typedef float *PFLOAT;
typedef unsigned short *PWCH;
typedef unsigned short *PWORD;
typedef long long LONGLONG;
typedef unsigned long long ULONGLONG;
typedef long long *PLONGLONG;
typedef unsigned long long *PULONGLONG;
/* Check VOID before defining CHAR, SHORT, and LONG */
#ifndef VOID
#define VOID void
typedef char CHAR;
typedef short SHORT;
typedef long LONG;
#endif
typedef CHAR *PCHAR;
typedef CHAR *PCH;
typedef void *HANDLE;
typedef char CCHAR;
#define FALSE 0
#define TRUE 1
typedef const unsigned short *PCWSTR;
typedef char* PCSZ;
typedef union _LARGE_INTEGER
{
struct
{
DWORD LowPart;
LONG HighPart;
} u;
LONGLONG QuadPart;
} LARGE_INTEGER, *PLARGE_INTEGER;
typedef union _ULARGE_INTEGER
{
struct
{
DWORD LowPart;
DWORD HighPart;
} u;
ULONGLONG QuadPart;
} ULARGE_INTEGER, *PULARGE_INTEGER;
#define CONST const
#ifdef i386
#define STDCALL __attribute__ ((stdcall))
#define CDECL __attribute((cdecl))
#define CALLBACK WINAPI
#define PASCAL WINAPI
#else
#define STDCALL
#define CDECL
#define CALLBACK
#define PASCAL
#endif
typedef struct _LIST_ENTRY {
struct _LIST_ENTRY *Flink;
struct _LIST_ENTRY *Blink;
} LIST_ENTRY, *PLIST_ENTRY;
typedef struct _SINGLE_LIST_ENTRY {
struct _SINGLE_LIST_ENTRY *Next;
} SINGLE_LIST_ENTRY, *PSINGLE_LIST_ENTRY;
typedef DWORD STDCALL (*PTHREAD_START_ROUTINE) (LPVOID);
typedef PTHREAD_START_ROUTINE LPTHREAD_START_ROUTINE;
typedef unsigned short *PWCHAR;
#ifdef __i386__
typedef struct _FLOATING_SAVE_AREA {
DWORD ControlWord;
DWORD StatusWord;
DWORD TagWord;
DWORD ErrorOffset;
DWORD ErrorSelector;
DWORD DataOffset;
DWORD DataSelector;
BYTE RegisterArea[80];
DWORD Cr0NpxState;
} FLOATING_SAVE_AREA;
typedef struct _CONTEXT {
DWORD ContextFlags;
DWORD Dr0;
DWORD Dr1;
DWORD Dr2;
DWORD Dr3;
DWORD Dr6;
DWORD Dr7;
FLOATING_SAVE_AREA FloatSave;
DWORD SegGs;
DWORD SegFs;
DWORD SegEs;
DWORD SegDs;
DWORD Edi;
DWORD Esi;
DWORD Ebx;
DWORD Edx;
DWORD Ecx;
DWORD Eax;
DWORD Ebp;
DWORD Eip;
DWORD SegCs;
DWORD EFlags;
DWORD Esp;
DWORD SegSs;
} CONTEXT, *PCONTEXT, *LPCONTEXT;
#else /* __ppc__ */
typedef struct
{
/* Floating point registers returned when CONTEXT_FLOATING_POINT is set */
double Fpr0;
double Fpr1;
double Fpr2;
double Fpr3;
double Fpr4;
double Fpr5;
double Fpr6;
double Fpr7;
double Fpr8;
double Fpr9;
double Fpr10;
double Fpr11;
double Fpr12;
double Fpr13;
double Fpr14;
double Fpr15;
double Fpr16;
double Fpr17;
double Fpr18;
double Fpr19;
double Fpr20;
double Fpr21;
double Fpr22;
double Fpr23;
double Fpr24;
double Fpr25;
double Fpr26;
double Fpr27;
double Fpr28;
double Fpr29;
double Fpr30;
double Fpr31;
double Fpscr;
/* Integer registers returned when CONTEXT_INTEGER is set. */
DWORD Gpr0;
DWORD Gpr1;
DWORD Gpr2;
DWORD Gpr3;
DWORD Gpr4;
DWORD Gpr5;
DWORD Gpr6;
DWORD Gpr7;
DWORD Gpr8;
DWORD Gpr9;
DWORD Gpr10;
DWORD Gpr11;
DWORD Gpr12;
DWORD Gpr13;
DWORD Gpr14;
DWORD Gpr15;
DWORD Gpr16;
DWORD Gpr17;
DWORD Gpr18;
DWORD Gpr19;
DWORD Gpr20;
DWORD Gpr21;
DWORD Gpr22;
DWORD Gpr23;
DWORD Gpr24;
DWORD Gpr25;
DWORD Gpr26;
DWORD Gpr27;
DWORD Gpr28;
DWORD Gpr29;
DWORD Gpr30;
DWORD Gpr31;
DWORD Cr; /* Condition register */
DWORD Xer; /* Fixed point exception register */
/* The following are set when CONTEXT_CONTROL is set. */
DWORD Msr; /* Machine status register */
DWORD Iar; /* Instruction address register */
DWORD Lr; /* Link register */
DWORD Ctr; /* Control register */
/* Control which context values are returned */
DWORD ContextFlags;
DWORD Fill[3];
/* Registers returned if CONTEXT_DEBUG_REGISTERS is set. */
DWORD Dr0; /* Breakpoint Register 1 */
DWORD Dr1; /* Breakpoint Register 2 */
DWORD Dr2; /* Breakpoint Register 3 */
DWORD Dr3; /* Breakpoint Register 4 */
DWORD Dr4; /* Breakpoint Register 5 */
DWORD Dr5; /* Breakpoint Register 6 */
DWORD Dr6; /* Debug Status Register */
DWORD Dr7; /* Debug Control Register */
} CONTEXT, *PCONTEXT, *LPCONTEXT;
#endif
typedef HANDLE *PHANDLE;
typedef struct value_ent {
LPWSTR ve_valuename;
DWORD ve_valuelen;
DWORD ve_valueptr;
DWORD ve_type;
} WVALENT, *PWVALENT;
#define EXCEPTION_MAXIMUM_PARAMETERS (15)
typedef struct _EXCEPTION_RECORD {
DWORD ExceptionCode;
DWORD ExceptionFlags;
struct _EXCEPTION_RECORD *ExceptionRecord;
PVOID ExceptionAddress;
DWORD NumberParameters;
DWORD ExceptionInformation[EXCEPTION_MAXIMUM_PARAMETERS];
} EXCEPTION_RECORD, *PEXCEPTION_RECORD, *LPEXCEPTION_RECORD;
typedef long *PLONG;
typedef const void *LPCVOID;
typedef BYTE *LPBYTE;
typedef BYTE *PBYTE;
typedef DWORD LCID;
typedef const char *LPCSTR;
typedef char *LPSTR;
typedef const unsigned short *LPCWSTR;
typedef struct _COORD {
SHORT X;
SHORT Y;
} COORD;
typedef struct _SMALL_RECT {
SHORT Left;
SHORT Top;
SHORT Right;
SHORT Bottom;
} SMALL_RECT, *PSMALL_RECT;
#endif /* __INCLUDE_TYPES_H */

View file

@ -33,313 +33,26 @@
#ifndef _GNU_H_WINDOWS32_STRUCTURES
#define _GNU_H_WINDOWS32_STRUCTURES
typedef union _LARGE_INTEGER
#include <ntos/security.h>
#include <ntos/time.h>
#include <ntdll/rtl.h>
#include <ntos/console.h>
#include <ntos/keyboard.h>
#include <ntos/heap.h>
#include <ntos/atom.h>
#include <ntos/mm.h>
#include <ntos/file.h>
#include <ntos/ps.h>
#include <ntos/disk.h>
typedef struct _VALENT
{
struct
{
DWORD LowPart;
LONG HighPart;
} u;
LONGLONG QuadPart;
} LARGE_INTEGER, *PLARGE_INTEGER;
typedef union _ULARGE_INTEGER
{
struct
{
DWORD LowPart;
DWORD HighPart;
} u;
ULONGLONG QuadPart;
} ULARGE_INTEGER, *PULARGE_INTEGER;
#include <security.h>
typedef struct _LIST_ENTRY {
struct _LIST_ENTRY *Flink;
struct _LIST_ENTRY *Blink;
} LIST_ENTRY, *PLIST_ENTRY;
typedef struct _PARTITION_INFORMATION {
BYTE PartitionType;
BOOLEAN BootIndicator;
BOOLEAN RecognizedPartition;
BOOLEAN RewritePartition;
LARGE_INTEGER StartingOffset;
LARGE_INTEGER PartitionLength;
LARGE_INTEGER HiddenSectors;
} PARTITION_INFORMATION;
typedef struct _SINGLE_LIST_ENTRY {
struct _SINGLE_LIST_ENTRY *Next;
} SINGLE_LIST_ENTRY, *PSINGLE_LIST_ENTRY;
typedef struct _CRITICAL_SECTION_DEBUG {
WORD Type;
WORD CreatorBackTraceIndex;
struct _CRITICAL_SECTION *CriticalSection;
LIST_ENTRY ProcessLocksList;
DWORD EntryCount;
DWORD ContentionCount;
DWORD Depth;
PVOID OwnerBackTrace[ 5 ];
} CRITICAL_SECTION_DEBUG, *PCRITICAL_SECTION_DEBUG;
typedef struct _CRITICAL_SECTION {
PCRITICAL_SECTION_DEBUG DebugInfo;
LONG LockCount;
LONG RecursionCount;
HANDLE OwningThread;
HANDLE LockSemaphore;
DWORD Reserved;
} CRITICAL_SECTION, *PCRITICAL_SECTION, *LPCRITICAL_SECTION;
typedef struct _GENERIC_MAPPING {
ACCESS_MASK GenericRead;
ACCESS_MASK GenericWrite;
ACCESS_MASK GenericExecute;
ACCESS_MASK GenericAll;
} GENERIC_MAPPING, *PGENERIC_MAPPING;
typedef struct _PRIVILEGE_SET {
DWORD PrivilegeCount;
DWORD Control;
LUID_AND_ATTRIBUTES Privilege[ANYSIZE_ARRAY];
} PRIVILEGE_SET, *PPRIVILEGE_SET, *LPPRIVILEGE_SET;
#ifdef __i386__
typedef struct _FLOATING_SAVE_AREA {
DWORD ControlWord;
DWORD StatusWord;
DWORD TagWord;
DWORD ErrorOffset;
DWORD ErrorSelector;
DWORD DataOffset;
DWORD DataSelector;
BYTE RegisterArea[80];
DWORD Cr0NpxState;
} FLOATING_SAVE_AREA;
typedef struct _CONTEXT {
DWORD ContextFlags;
DWORD Dr0;
DWORD Dr1;
DWORD Dr2;
DWORD Dr3;
DWORD Dr6;
DWORD Dr7;
FLOATING_SAVE_AREA FloatSave;
DWORD SegGs;
DWORD SegFs;
DWORD SegEs;
DWORD SegDs;
DWORD Edi;
DWORD Esi;
DWORD Ebx;
DWORD Edx;
DWORD Ecx;
DWORD Eax;
DWORD Ebp;
DWORD Eip;
DWORD SegCs;
DWORD EFlags;
DWORD Esp;
DWORD SegSs;
} CONTEXT, *PCONTEXT, *LPCONTEXT;
#else /* __ppc__ */
typedef struct
{
/* Floating point registers returned when CONTEXT_FLOATING_POINT is set */
double Fpr0;
double Fpr1;
double Fpr2;
double Fpr3;
double Fpr4;
double Fpr5;
double Fpr6;
double Fpr7;
double Fpr8;
double Fpr9;
double Fpr10;
double Fpr11;
double Fpr12;
double Fpr13;
double Fpr14;
double Fpr15;
double Fpr16;
double Fpr17;
double Fpr18;
double Fpr19;
double Fpr20;
double Fpr21;
double Fpr22;
double Fpr23;
double Fpr24;
double Fpr25;
double Fpr26;
double Fpr27;
double Fpr28;
double Fpr29;
double Fpr30;
double Fpr31;
double Fpscr;
/* Integer registers returned when CONTEXT_INTEGER is set. */
DWORD Gpr0;
DWORD Gpr1;
DWORD Gpr2;
DWORD Gpr3;
DWORD Gpr4;
DWORD Gpr5;
DWORD Gpr6;
DWORD Gpr7;
DWORD Gpr8;
DWORD Gpr9;
DWORD Gpr10;
DWORD Gpr11;
DWORD Gpr12;
DWORD Gpr13;
DWORD Gpr14;
DWORD Gpr15;
DWORD Gpr16;
DWORD Gpr17;
DWORD Gpr18;
DWORD Gpr19;
DWORD Gpr20;
DWORD Gpr21;
DWORD Gpr22;
DWORD Gpr23;
DWORD Gpr24;
DWORD Gpr25;
DWORD Gpr26;
DWORD Gpr27;
DWORD Gpr28;
DWORD Gpr29;
DWORD Gpr30;
DWORD Gpr31;
DWORD Cr; /* Condition register */
DWORD Xer; /* Fixed point exception register */
/* The following are set when CONTEXT_CONTROL is set. */
DWORD Msr; /* Machine status register */
DWORD Iar; /* Instruction address register */
DWORD Lr; /* Link register */
DWORD Ctr; /* Control register */
/* Control which context values are returned */
DWORD ContextFlags;
DWORD Fill[3];
/* Registers returned if CONTEXT_DEBUG_REGISTERS is set. */
DWORD Dr0; /* Breakpoint Register 1 */
DWORD Dr1; /* Breakpoint Register 2 */
DWORD Dr2; /* Breakpoint Register 3 */
DWORD Dr3; /* Breakpoint Register 4 */
DWORD Dr4; /* Breakpoint Register 5 */
DWORD Dr5; /* Breakpoint Register 6 */
DWORD Dr6; /* Debug Status Register */
DWORD Dr7; /* Debug Control Register */
} CONTEXT, *PCONTEXT, *LPCONTEXT;
#endif
typedef struct value_ent {
LPTSTR ve_valuename;
DWORD ve_valuelen;
DWORD ve_valueptr;
DWORD ve_type;
LPTSTR ve_valuename;
DWORD ve_valuelen;
DWORD ve_valueptr;
DWORD ve_type;
} VALENT, *PVALENT;
typedef struct _EXCEPTION_RECORD {
DWORD ExceptionCode;
DWORD ExceptionFlags;
struct _EXCEPTION_RECORD *ExceptionRecord;
PVOID ExceptionAddress;
DWORD NumberParameters;
DWORD ExceptionInformation[EXCEPTION_MAXIMUM_PARAMETERS];
} EXCEPTION_RECORD, *PEXCEPTION_RECORD, *LPEXCEPTION_RECORD;
typedef struct _DRIVE_LAYOUT_INFORMATION {
DWORD PartitionCount;
DWORD Signature;
PARTITION_INFORMATION PartitionEntry[1];
} DRIVE_LAYOUT_INFORMATION;
typedef struct _KEY_EVENT_RECORD {
WINBOOL bKeyDown;
WORD wRepeatCount;
WORD wVirtualKeyCode;
WORD wVirtualScanCode;
union {
WCHAR UnicodeChar;
CHAR AsciiChar;
} uChar;
DWORD dwControlKeyState;
} KEY_EVENT_RECORD PACKED;
typedef struct _COORD {
SHORT X;
SHORT Y;
} COORD;
typedef struct _MOUSE_EVENT_RECORD {
COORD dwMousePosition;
DWORD dwButtonState;
DWORD dwControlKeyState;
DWORD dwEventFlags;
} MOUSE_EVENT_RECORD;
typedef struct _DISK_GEOMETRY {
LARGE_INTEGER Cylinders;
MEDIA_TYPE MediaType;
DWORD TracksPerCylinder;
DWORD SectorsPerTrack;
DWORD BytesPerSector;
} DISK_GEOMETRY ;
typedef struct _MEMORY_BASIC_INFORMATION {
PVOID BaseAddress;
PVOID AllocationBase;
DWORD AllocationProtect;
DWORD RegionSize;
DWORD State;
DWORD Protect;
DWORD Type;
} MEMORY_BASIC_INFORMATION;
typedef MEMORY_BASIC_INFORMATION *PMEMORY_BASIC_INFORMATION;
typedef struct _SYSTEMTIME {
WORD wYear;
WORD wMonth;
WORD wDayOfWeek;
WORD wDay;
WORD wHour;
WORD wMinute;
WORD wSecond;
WORD wMilliseconds;
} SYSTEMTIME, *LPSYSTEMTIME;
typedef struct _TIME_ZONE_INFORMATION {
LONG Bias;
WCHAR StandardName[ 32 ];
SYSTEMTIME StandardDate;
LONG StandardBias;
WCHAR DaylightName[ 32 ];
SYSTEMTIME DaylightDate;
LONG DaylightBias;
} TIME_ZONE_INFORMATION, *LPTIME_ZONE_INFORMATION;
#ifndef WIN32_LEAN_AND_MEAN
#ifdef __cplusplus
@ -904,27 +617,7 @@ typedef struct _COMSTAT {
DWORD cbInQue;
DWORD cbOutQue;
} COMSTAT, *LPCOMSTAT;
typedef struct _CONSOLE_CURSOR_INFO {
DWORD dwSize;
WINBOOL bVisible;
} CONSOLE_CURSOR_INFO, *PCONSOLE_CURSOR_INFO;
typedef struct _SMALL_RECT {
SHORT Left;
SHORT Top;
SHORT Right;
SHORT Bottom;
} SMALL_RECT, *PSMALL_RECT;
typedef struct _CONSOLE_SCREEN_BUFFER_INFO {
COORD dwSize;
COORD dwCursorPosition;
WORD wAttributes;
SMALL_RECT srWindow;
COORD dwMaximumWindowSize;
} CONSOLE_SCREEN_BUFFER_INFO, *PCONSOLE_SCREEN_BUFFER_INFO ;
typedef struct tagCONVCONTEXT {
UINT cb;
UINT wFlags;
@ -2293,9 +1986,6 @@ typedef struct _FMS_TOOLBARLOAD {
HBITMAP hBitmap;
} FMS_TOOLBARLOAD;
typedef struct _FOCUS_EVENT_RECORD {
WINBOOL bSetFocus;
} FOCUS_EVENT_RECORD;
typedef struct _FORM_INFO_1 {
DWORD Flags;
@ -2436,29 +2126,7 @@ typedef struct _IMAGEINFO {
int Unused2;
RECT rcImage;
} IMAGEINFO;
typedef struct _WINDOW_BUFFER_SIZE_RECORD {
COORD dwSize;
} WINDOW_BUFFER_SIZE_RECORD;
typedef struct _MENU_EVENT_RECORD {
UINT dwCommandId;
} MENU_EVENT_RECORD, *PMENU_EVENT_RECORD;
typedef struct _INPUT_RECORD {
WORD EventType;
union {
#ifndef __cplus_plus
/* this will be the wrong size in c++ */
KEY_EVENT_RECORD KeyEvent;
#endif
MOUSE_EVENT_RECORD MouseEvent;
WINDOW_BUFFER_SIZE_RECORD WindowBufferSizeEvent;
MENU_EVENT_RECORD MenuEvent;
FOCUS_EVENT_RECORD FocusEvent;
} Event;
} INPUT_RECORD, *PINPUT_RECORD;
typedef struct _JOB_INFO_1 {
DWORD JobId;
LPTSTR pPrinterName;
@ -3764,11 +3432,6 @@ typedef struct tagSCROLLINFO {
} SCROLLINFO, *LPSCROLLINFO;
typedef SCROLLINFO const *LPCSCROLLINFO;
typedef struct _SECURITY_ATTRIBUTES {
DWORD nLength;
LPVOID lpSecurityDescriptor;
WINBOOL bInheritHandle;
} SECURITY_ATTRIBUTES, *LPSECURITY_ATTRIBUTES;
typedef struct _selchange {
NMHDR nmhdr;

View file

@ -0,0 +1,98 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
* FILE: include/internal/debug.h
* PURPOSE: Useful debugging macros
* PROGRAMMER: David Welch (welch@mcmail.com)
* UPDATE HISTORY:
* 28/05/98: Created
*/
/*
* NOTE: Define NDEBUG before including this header to disable debugging
* macros
*/
#ifndef __INTERNAL_DEBUG
#define __INTERNAL_DEBUG
#define UNIMPLEMENTED do {DbgPrint("%s at %s:%d is unimplemented, have a nice day\n",__FUNCTION__,__FILE__,__LINE__); for(;;); } while(0);
/* FIXME: should probably remove this later */
#if !defined(CHECKED) && !defined(NDEBUG)
#define CHECKED
#endif
#ifndef NASSERT
#define assert(x) if (!(x)) {DbgPrint("Assertion "#x" failed at %s:%d\n", __FILE__,__LINE__); KeBugCheck(0); }
#else
#define assert(x)
#endif
#define DPRINT1(args...) do { DbgPrint("(%s:%d) ",__FILE__,__LINE__); DbgPrint(args); ExAllocatePool(NonPagedPool,0); } while(0);
#define CHECKPOINT1 do { DbgPrint("%s:%d\n",__FILE__,__LINE__); ExAllocatePool(NonPagedPool,0); } while(0);
extern unsigned int old_idt[256][2];
//extern unsigned int idt;
extern unsigned int old_idt_valid;
#ifdef __NTOSKRNL__
//#define DPRINT_CHECKS ExAllocatePool(NonPagedPool,0); assert(old_idt_valid || (!memcmp(old_idt,KiIdt,256*2)));
//#define DPRINT_CHECKS ExAllocatePool(NonPagedPool,0);
#define DPRINT_CHECKS
#else
#define DPRINT_CHECKS
#endif
#ifndef NDEBUG
#define OLD_DPRINT(fmt,args...) do { DbgPrint("(%s:%d) ",__FILE__,__LINE__); DbgPrint(fmt,args); } while(0);
#define DPRINT(args...) do { DbgPrint("(%s:%d) ",__FILE__,__LINE__); DbgPrint(args); DPRINT_CHECKS } while(0);
#define CHECKPOINT do { DbgPrint("%s:%d\n",__FILE__,__LINE__); ExAllocatePool(NonPagedPool,0); } while(0);
#else
//#define DPRINT(args...) do { DPRINT_CHECKS } while (0);
#define DPRINT(args...)
#define OLD_DPRINT(args...)
#define CHECKPOINT
#endif /* NDEBUG */
/*
* FUNCTION: Assert a maximum value for the current irql
* ARGUMENTS:
* x = Maximum irql
*/
#define ASSERT_IRQL(x) assert(KeGetCurrentIrql()<=(x))
#define assert_irql(x) assert(KeGetCurrentIrql()<=(x))
#define HBP_EXECUTE (0)
#define HBP_WRITE (1)
#define HBP_READWRITE (3)
#define HBP_BYTE (0)
#define HBP_WORD (1)
#define HBP_DWORD (3)
/*
* FUNCTION: Sets a hardware breakpoint
* ARGUMENTS:
* i = breakpoint to set (0 to 3)
* addr = linear address to break on
* type = Type of access to break on
* len = length of the variable to watch
* NOTES:
* The variable to watch must be aligned to its length (i.e. a dword
* breakpoint must be aligned to a dword boundary)
*
* A fatal exception will be generated on the access to the variable.
* It is (at the moment) only really useful for catching undefined
* pointers if you know the variable effected but not the buggy
* routine.
*
* FIXME: Extend to call out to kernel debugger on breakpoint
* Add support for I/O breakpoints
* REFERENCES: See the i386 programmer manual for more details
*/
void set_breakpoint(unsigned int i, unsigned int addr, unsigned int type,
unsigned int len);
#endif /* __INTERNAL_DEBUG */

View file

@ -84,7 +84,7 @@
using Objective-C then you must use WINBOOL for Win32 operations.
*/
#ifndef __OBJC__
typedef WINBOOL BOOL;
//typedef WINBOOL BOOL;
#endif /* !__OBJC__ */
/* How do we get the VM page size on NT? */

View file

@ -1,4 +1,4 @@
/* $Id: delete.c,v 1.7 2000/06/03 14:47:32 ea Exp $
/* $Id: delete.c,v 1.8 2000/06/29 23:35:23 dwelch Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
@ -104,7 +104,7 @@ DeleteFileW (
return FALSE;
}
FileDispInfo.DeleteFile = TRUE;
FileDispInfo.DoDeleteFile = TRUE;
Status = NtSetInformationFile (FileHandle,
&IoStatusBlock,

View file

@ -1,4 +1,4 @@
/* $Id: dir.c,v 1.26 2000/06/03 14:47:32 ea Exp $
/* $Id: dir.c,v 1.27 2000/06/29 23:35:23 dwelch Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
@ -276,7 +276,7 @@ RemoveDirectoryW (
return FALSE;
}
FileDispInfo.DeleteFile = TRUE;
FileDispInfo.DoDeleteFile = TRUE;
Status = NtSetInformationFile (DirectoryHandle,
&IoStatusBlock,

View file

@ -1,4 +1,4 @@
/* $Id: move.c,v 1.3 2000/03/14 23:09:23 ekohl Exp $
/* $Id: move.c,v 1.4 2000/06/29 23:35:24 dwelch Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
@ -13,6 +13,7 @@
#include <ddk/ntddk.h>
#include <windows.h>
#include <ntos/minmax.h>
#define NDEBUG
#include <kernel32/kernel32.h>

View file

@ -1,4 +1,4 @@
/* $Id: volume.c,v 1.16 2000/06/03 14:47:32 ea Exp $
/* $Id: volume.c,v 1.17 2000/06/29 23:35:24 dwelch Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
@ -21,6 +21,7 @@
#include <ddk/ntddk.h>
#include <windows.h>
#include <ntos/minmax.h>
#define NDEBUG
#include <kernel32/kernel32.h>

View file

@ -1,4 +1,4 @@
/* $Id: section.c,v 1.10 2000/03/15 18:30:14 ekohl Exp $
/* $Id: section.c,v 1.11 2000/06/29 23:35:25 dwelch Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -10,6 +10,7 @@
/* INCLUDES ******************************************************************/
#include <ddk/ntddk.h>
#include <windows.h>
/* FUNCTIONS *****************************************************************/

View file

@ -13,7 +13,6 @@
#include <ddk/ntddk.h>
#include <windows.h>
#include <internal/string.h>
#include <string.h>
#define NDEBUG

View file

@ -1,4 +1,4 @@
/* $Id: cmdline.c,v 1.11 2000/01/26 10:07:23 dwelch Exp $
/* $Id: cmdline.c,v 1.12 2000/06/29 23:35:26 dwelch Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
@ -17,7 +17,7 @@
#include <kernel32/thread.h>
#include <wchar.h>
#include <string.h>
#include <internal/teb.h>
#include <napi/teb.h>
#include <ntdll/rtl.h>
#define NDEBUG

View file

@ -1,4 +1,4 @@
/* $Id: create.c,v 1.28 2000/06/03 14:47:33 ea Exp $
/* $Id: create.c,v 1.29 2000/06/29 23:35:26 dwelch Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
@ -17,9 +17,9 @@
#include <kernel32/thread.h>
#include <wchar.h>
#include <string.h>
#include <internal/i386/segment.h>
#include <napi/i386/segment.h>
#include <ntdll/ldr.h>
#include <internal/teb.h>
#include <napi/teb.h>
#include <ntdll/base.h>
#include <ntdll/rtl.h>
#include <csrss/csrss.h>

View file

@ -1,4 +1,4 @@
/* $Id: lib.c,v 1.6 2000/04/14 01:49:18 ekohl Exp $
/* $Id: lib.c,v 1.7 2000/06/29 23:35:26 dwelch Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
@ -18,8 +18,8 @@
#include <kernel32/thread.h>
#include <wchar.h>
#include <string.h>
#include <internal/i386/segment.h>
#include <internal/teb.h>
#include <napi/i386/segment.h>
#include <napi/teb.h>
#include <kernel32/kernel32.h>

View file

@ -1,4 +1,4 @@
/* $Id: proc.c,v 1.32 2000/04/25 23:22:54 ea Exp $
/* $Id: proc.c,v 1.33 2000/06/29 23:35:26 dwelch Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
@ -19,8 +19,8 @@
#include <kernel32/error.h>
#include <wchar.h>
#include <string.h>
#include <internal/i386/segment.h>
#include <internal/teb.h>
#include <napi/i386/segment.h>
#include <napi/teb.h>
#include <ntdll/csr.h>

View file

@ -1,4 +1,4 @@
/* $Id: thread.c,v 1.15 2000/05/30 23:41:06 ea Exp $
/* $Id: thread.c,v 1.16 2000/06/29 23:35:26 dwelch Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
@ -16,7 +16,7 @@
#include <windows.h>
#include <kernel32/thread.h>
#include <string.h>
#include <internal/i386/segment.h>
#include <napi/i386/segment.h>
#define NDEBUG
#include <kernel32/kernel32.h>

View file

@ -1,4 +1,4 @@
/* $Id: api.c,v 1.7 2000/04/26 06:56:11 ea Exp $
/* $Id: api.c,v 1.8 2000/06/29 23:35:27 dwelch Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -11,7 +11,6 @@
#include <ddk/ntddk.h>
#include <ntdll/csr.h>
#include <string.h>
#include <internal/ps.h>
#include <csrss/csrss.h>
@ -86,12 +85,8 @@ NTSTATUS STDCALL CsrClientConnectToServer(VOID)
}
NTSTATUS
STDCALL
CsrSetPriorityClass (
HANDLE hProcess,
DWORD * PriorityClass
)
NTSTATUS STDCALL CsrSetPriorityClass (HANDLE hProcess,
DWORD * PriorityClass)
{
/* FIXME: call csrss to get hProcess' priority */
*PriorityClass = CSR_PRIORITY_CLASS_NORMAL;

Some files were not shown because too many files have changed in this diff Show more