Replace BOOL by BOOLEAN and STDCALL by NTAPI
authorHervé Poussineau <hpoussin@reactos.org>
Tue, 16 May 2006 23:09:41 +0000 (23:09 +0000)
committerHervé Poussineau <hpoussin@reactos.org>
Tue, 16 May 2006 23:09:41 +0000 (23:09 +0000)
(Use native types instead of Win32 ones)

svn path=/trunk/; revision=21917

76 files changed:
reactos/boot/freeldr/freeldr/arch/i386/hardware.c
reactos/boot/freeldr/freeldr/arch/i386/hwacpi.c
reactos/boot/freeldr/freeldr/arch/i386/hwapm.c
reactos/boot/freeldr/freeldr/arch/i386/hwcpu.c
reactos/boot/freeldr/freeldr/arch/i386/hwpci.c
reactos/boot/freeldr/freeldr/arch/i386/i386disk.c
reactos/boot/freeldr/freeldr/arch/i386/loader.c
reactos/boot/freeldr/freeldr/arch/i386/pccons.c
reactos/boot/freeldr/freeldr/arch/i386/pcdisk.c
reactos/boot/freeldr/freeldr/arch/i386/pcvideo.c
reactos/boot/freeldr/freeldr/arch/i386/xboxcons.c
reactos/boot/freeldr/freeldr/arch/i386/xboxdisk.c
reactos/boot/freeldr/freeldr/arch/i386/xboxi2c.c
reactos/boot/freeldr/freeldr/arch/i386/xboxvideo.c
reactos/boot/freeldr/freeldr/arch/powerpc/mach.c
reactos/boot/freeldr/freeldr/arch/powerpc/mboot.c
reactos/boot/freeldr/freeldr/bootmgr.c
reactos/boot/freeldr/freeldr/cache/blocklist.c
reactos/boot/freeldr/freeldr/cache/cache.c
reactos/boot/freeldr/freeldr/comm/rs232.c
reactos/boot/freeldr/freeldr/debug.c
reactos/boot/freeldr/freeldr/disk/disk.c
reactos/boot/freeldr/freeldr/disk/partition.c
reactos/boot/freeldr/freeldr/drivemap.c
reactos/boot/freeldr/freeldr/fs/ext2.c
reactos/boot/freeldr/freeldr/fs/fat.c
reactos/boot/freeldr/freeldr/fs/fs.c
reactos/boot/freeldr/freeldr/fs/fsrec.c
reactos/boot/freeldr/freeldr/fs/iso.c
reactos/boot/freeldr/freeldr/fs/ntfs.c
reactos/boot/freeldr/freeldr/include/arch/i386/i386.h
reactos/boot/freeldr/freeldr/include/arch/i386/machpc.h
reactos/boot/freeldr/freeldr/include/arch/i386/machxbox.h
reactos/boot/freeldr/freeldr/include/bootmgr.h
reactos/boot/freeldr/freeldr/include/cache.h
reactos/boot/freeldr/freeldr/include/comm.h
reactos/boot/freeldr/freeldr/include/disk.h
reactos/boot/freeldr/freeldr/include/drivemap.h
reactos/boot/freeldr/freeldr/include/freeldr.h
reactos/boot/freeldr/freeldr/include/fs.h
reactos/boot/freeldr/freeldr/include/fs/ext2.h
reactos/boot/freeldr/freeldr/include/fs/fat.h
reactos/boot/freeldr/freeldr/include/fs/iso.h
reactos/boot/freeldr/freeldr/include/fs/ntfs.h
reactos/boot/freeldr/freeldr/include/fsrec.h
reactos/boot/freeldr/freeldr/include/inifile.h
reactos/boot/freeldr/freeldr/include/linux.h
reactos/boot/freeldr/freeldr/include/machine.h
reactos/boot/freeldr/freeldr/include/mm.h
reactos/boot/freeldr/freeldr/include/oslist.h
reactos/boot/freeldr/freeldr/include/reactos.h
reactos/boot/freeldr/freeldr/include/registry.h
reactos/boot/freeldr/freeldr/include/rtl.h
reactos/boot/freeldr/freeldr/include/ui.h
reactos/boot/freeldr/freeldr/include/ui/gui.h
reactos/boot/freeldr/freeldr/include/ui/tui.h
reactos/boot/freeldr/freeldr/inifile/ini_init.c
reactos/boot/freeldr/freeldr/inifile/inifile.c
reactos/boot/freeldr/freeldr/inifile/parse.c
reactos/boot/freeldr/freeldr/linuxboot.c
reactos/boot/freeldr/freeldr/machine.c
reactos/boot/freeldr/freeldr/math/i386.h
reactos/boot/freeldr/freeldr/math/libgcc2.c
reactos/boot/freeldr/freeldr/math/powerpc.h
reactos/boot/freeldr/freeldr/mm/meminit.c
reactos/boot/freeldr/freeldr/oslist.c
reactos/boot/freeldr/freeldr/reactos/arcname.c
reactos/boot/freeldr/freeldr/reactos/binhive.c
reactos/boot/freeldr/freeldr/reactos/reactos.c
reactos/boot/freeldr/freeldr/reactos/registry.c
reactos/boot/freeldr/freeldr/reactos/setupldr.c
reactos/boot/freeldr/freeldr/rtl/list.c
reactos/boot/freeldr/freeldr/ui/gui.c
reactos/boot/freeldr/freeldr/ui/tui.c
reactos/boot/freeldr/freeldr/ui/tuimenu.c
reactos/boot/freeldr/freeldr/ui/ui.c

index d2d1c5b..0d71948 100644 (file)
@@ -583,7 +583,7 @@ DetectBiosDisks(FRLDRHKEY SystemKey,
   ULONG Size;
   ULONG i;
   LONG Error;
   ULONG Size;
   ULONG i;
   LONG Error;
-  BOOL Changed;
+  BOOLEAN Changed;
 
   /* Count the number of visible drives */
   DiskReportError(FALSE);
 
   /* Count the number of visible drives */
   DiskReportError(FALSE);
index 86dec5d..5140326 100644 (file)
@@ -25,7 +25,7 @@
 
 BOOLEAN AcpiPresent = FALSE;
 
 
 BOOLEAN AcpiPresent = FALSE;
 
-static BOOL
+static BOOLEAN
 FindAcpiBios(VOID)
 {
   PUCHAR Ptr;
 FindAcpiBios(VOID)
 {
   PUCHAR Ptr;
index 5034b96..e2a4637 100644 (file)
@@ -23,7 +23,7 @@
 #define NDEBUG
 #include <debug.h>
 
 #define NDEBUG
 #include <debug.h>
 
-static BOOL
+static BOOLEAN
 FindApmBios(VOID)
 {
   REGS  RegsIn;
 FindApmBios(VOID)
 {
   REGS  RegsIn;
index 7c502d6..842bbfa 100644 (file)
@@ -117,7 +117,7 @@ DetectCPU(FRLDRHKEY CpuKey,
   ULONG edx = 0;
   ULONG *Ptr;
   LONG Error;
   ULONG edx = 0;
   ULONG *Ptr;
   LONG Error;
-  BOOL SupportTSC = FALSE;
+  BOOLEAN SupportTSC = FALSE;
   ULONG CpuSpeed;
 
 
   ULONG CpuSpeed;
 
 
@@ -495,7 +495,7 @@ GetMpConfigurationTable(PMP_FLOATING_POINT_TABLE FpTable)
 }
 
 
 }
 
 
-static BOOL
+static BOOLEAN
 DetectMps(FRLDRHKEY CpuKey,
          FRLDRHKEY FpuKey)
 {
 DetectMps(FRLDRHKEY CpuKey,
          FRLDRHKEY FpuKey)
 {
index acac5dc..55d8fa1 100644 (file)
@@ -105,7 +105,7 @@ GetPciIrqRoutingTable(VOID)
 }
 
 
 }
 
 
-static BOOL
+static BOOLEAN
 FindPciBios(PCM_PCI_BUS_DATA BusData)
 {
   REGS  RegsIn;
 FindPciBios(PCM_PCI_BUS_DATA BusData)
 {
   REGS  RegsIn;
index c1c0c5a..7162621 100644 (file)
@@ -28,7 +28,7 @@
 
 #ifdef __i386__
 
 
 #ifdef __i386__
 
-BOOL DiskResetController(ULONG DriveNumber)
+BOOLEAN DiskResetController(ULONG DriveNumber)
 {
        REGS    RegsIn;
        REGS    RegsOut;
 {
        REGS    RegsIn;
        REGS    RegsOut;
@@ -51,7 +51,7 @@ BOOL DiskResetController(ULONG DriveNumber)
        return INT386_SUCCESS(RegsOut);
 }
 
        return INT386_SUCCESS(RegsOut);
 }
 
-BOOL DiskInt13ExtensionsSupported(ULONG DriveNumber)
+BOOLEAN DiskInt13ExtensionsSupported(ULONG DriveNumber)
 {
        REGS    RegsIn;
        REGS    RegsOut;
 {
        REGS    RegsIn;
        REGS    RegsOut;
@@ -129,7 +129,7 @@ VOID DiskStopFloppyMotor(VOID)
        WRITE_PORT_UCHAR((PUCHAR)0x3F2, 0);
 }
 
        WRITE_PORT_UCHAR((PUCHAR)0x3F2, 0);
 }
 
-BOOL DiskGetExtendedDriveParameters(ULONG DriveNumber, PVOID Buffer, USHORT BufferSize)
+BOOLEAN DiskGetExtendedDriveParameters(ULONG DriveNumber, PVOID Buffer, USHORT BufferSize)
 {
        REGS    RegsIn;
        REGS    RegsOut;
 {
        REGS    RegsIn;
        REGS    RegsOut;
@@ -200,7 +200,7 @@ BOOL DiskGetExtendedDriveParameters(ULONG DriveNumber, PVOID Buffer, USHORT Buff
        return TRUE;
 }
 
        return TRUE;
 }
 
-BOOL i386DiskGetBootVolume(PULONG DriveNumber, PULONGLONG StartSector, PULONGLONG SectorCount, int *FsType)
+BOOLEAN i386DiskGetBootVolume(PULONG DriveNumber, PULONGLONG StartSector, PULONGLONG SectorCount, int *FsType)
 {
        PARTITION_TABLE_ENTRY   PartitionTableEntry;
        UCHAR                   VolumeType;
 {
        PARTITION_TABLE_ENTRY   PartitionTableEntry;
        UCHAR                   VolumeType;
@@ -318,7 +318,7 @@ i386DiskGetBootDevice(PULONG BootDevice)
   ((char *)BootDevice)[1] = (char)i386BootPartition;
 }
 
   ((char *)BootDevice)[1] = (char)i386BootPartition;
 }
 
-BOOL
+BOOLEAN
 i386DiskBootingFromFloppy(VOID)
 {
   return i386BootDrive < 0x80;
 i386DiskBootingFromFloppy(VOID)
 {
   return i386BootDrive < 0x80;
@@ -338,7 +338,7 @@ i386DiskBootingFromFloppy(VOID)
     ((P) == PARTITION_EXTENDED         || \
      (P) == PARTITION_XINT13_EXTENDED)
 
     ((P) == PARTITION_EXTENDED         || \
      (P) == PARTITION_XINT13_EXTENDED)
 
-BOOL i386DiskGetSystemVolume(char *SystemPath,
+BOOLEAN i386DiskGetSystemVolume(char *SystemPath,
                              char *RemainingPath,
                              PULONG Device,
                              PULONG DriveNumber,
                              char *RemainingPath,
                              PULONG Device,
                              PULONG DriveNumber,
@@ -445,7 +445,7 @@ BOOL i386DiskGetSystemVolume(char *SystemPath,
        return FALSE;
 }
 
        return FALSE;
 }
 
-BOOL
+BOOLEAN
 i386DiskGetBootPath(char *BootPath, unsigned Size)
 {
        static char Path[] = "multi(0)disk(0)";
 i386DiskGetBootPath(char *BootPath, unsigned Size)
 {
        static char Path[] = "multi(0)disk(0)";
@@ -463,7 +463,7 @@ i386DiskGetBootPath(char *BootPath, unsigned Size)
        return TRUE;
 }
 
        return TRUE;
 }
 
-BOOL
+BOOLEAN
 i386DiskNormalizeSystemPath(char *SystemPath, unsigned Size)
 {
        CHAR BootPath[256];
 i386DiskNormalizeSystemPath(char *SystemPath, unsigned Size)
 {
        CHAR BootPath[256];
index 8324074..7035679 100644 (file)
@@ -150,7 +150,7 @@ extern PAGE_DIRECTORY_X64 kpcr_pagetable_pae;
  *
  *--*/
 VOID
  *
  *--*/
 VOID
-STDCALL
+NTAPI
 FrLdrStartup(ULONG Magic)
 {
     /* Disable Interrupts */
 FrLdrStartup(ULONG Magic)
 {
     /* Disable Interrupts */
@@ -543,8 +543,8 @@ FrLdrSetupPageDirectory(VOID)
  *     None.
  *
  *--*/
  *     None.
  *
  *--*/
-BOOL
-STDCALL
+BOOLEAN
+NTAPI
 FrLdrMapKernel(FILE *KernelImage)
 {
     PIMAGE_DOS_HEADER ImageHeader;
 FrLdrMapKernel(FILE *KernelImage)
 {
     PIMAGE_DOS_HEADER ImageHeader;
@@ -701,7 +701,7 @@ FrLdrMapKernel(FILE *KernelImage)
 }
 
 ULONG_PTR
 }
 
 ULONG_PTR
-STDCALL
+NTAPI
 FrLdrLoadModule(FILE *ModuleImage,
                 LPCSTR ModuleName,
                 PULONG ModuleSize)
 FrLdrLoadModule(FILE *ModuleImage,
                 LPCSTR ModuleName,
                 PULONG ModuleSize)
@@ -753,7 +753,7 @@ FrLdrLoadModule(FILE *ModuleImage,
 }
 
 ULONG_PTR
 }
 
 ULONG_PTR
-STDCALL
+NTAPI
 FrLdrCreateModule(LPCSTR ModuleName)
 {
     PLOADER_MODULE ModuleData;
 FrLdrCreateModule(LPCSTR ModuleName)
 {
     PLOADER_MODULE ModuleData;
@@ -778,8 +778,8 @@ FrLdrCreateModule(LPCSTR ModuleName)
     return(ModuleData->ModStart);
 }
 
     return(ModuleData->ModStart);
 }
 
-BOOL
-STDCALL
+BOOLEAN
+NTAPI
 FrLdrCloseModule(ULONG_PTR ModuleBase,
                  ULONG ModuleSize)
 {
 FrLdrCloseModule(ULONG_PTR ModuleBase,
                  ULONG ModuleSize)
 {
index 325ba62..7e3321c 100644 (file)
@@ -66,7 +66,7 @@ PcConsPutChar(int Ch)
   Int386(0x10, &Regs, &Regs);
 }
 
   Int386(0x10, &Regs, &Regs);
 }
 
-BOOL
+BOOLEAN
 PcConsKbHit(VOID)
 {
   REGS Regs;
 PcConsKbHit(VOID)
 {
   REGS Regs;
@@ -91,7 +91,7 @@ int
 PcConsGetCh(void)
 {
   REGS Regs;
 PcConsGetCh(void)
 {
   REGS Regs;
-  static BOOL ExtendedKey = FALSE;
+  static BOOLEAN ExtendedKey = FALSE;
   static char ExtendedScanCode = 0;
 
   /* If the last time we were called an
   static char ExtendedScanCode = 0;
 
   /* If the last time we were called an
index 5792030..4edfa01 100644 (file)
@@ -38,7 +38,7 @@ typedef struct
 // FUNCTIONS
 /////////////////////////////////////////////////////////////////////////////////////////////
 
 // FUNCTIONS
 /////////////////////////////////////////////////////////////////////////////////////////////
 
-static BOOL PcDiskResetController(ULONG DriveNumber)
+static BOOLEAN PcDiskResetController(ULONG DriveNumber)
 {
        REGS    RegsIn;
        REGS    RegsOut;
 {
        REGS    RegsIn;
        REGS    RegsOut;
@@ -61,7 +61,7 @@ static BOOL PcDiskResetController(ULONG DriveNumber)
        return INT386_SUCCESS(RegsOut);
 }
 
        return INT386_SUCCESS(RegsOut);
 }
 
-static BOOL PcDiskReadLogicalSectorsLBA(ULONG DriveNumber, ULONGLONG SectorNumber, ULONG SectorCount, PVOID Buffer)
+static BOOLEAN PcDiskReadLogicalSectorsLBA(ULONG DriveNumber, ULONGLONG SectorNumber, ULONG SectorCount, PVOID Buffer)
 {
        REGS                                            RegsIn;
        REGS                                            RegsOut;
 {
        REGS                                            RegsIn;
        REGS                                            RegsOut;
@@ -125,7 +125,7 @@ static BOOL PcDiskReadLogicalSectorsLBA(ULONG DriveNumber, ULONGLONG SectorNumbe
        return FALSE;
 }
 
        return FALSE;
 }
 
-static BOOL PcDiskReadLogicalSectorsCHS(ULONG DriveNumber, ULONGLONG SectorNumber, ULONG SectorCount, PVOID Buffer)
+static BOOLEAN PcDiskReadLogicalSectorsCHS(ULONG DriveNumber, ULONGLONG SectorNumber, ULONG SectorCount, PVOID Buffer)
 {
        ULONG                   PhysicalSector;
        ULONG                   PhysicalHead;
 {
        ULONG                   PhysicalSector;
        ULONG                   PhysicalHead;
@@ -261,10 +261,10 @@ static BOOL PcDiskReadLogicalSectorsCHS(ULONG DriveNumber, ULONGLONG SectorNumbe
        return TRUE;
 }
 
        return TRUE;
 }
 
-static BOOL PcDiskInt13ExtensionsSupported(ULONG DriveNumber)
+static BOOLEAN PcDiskInt13ExtensionsSupported(ULONG DriveNumber)
 {
        static ULONG    LastDriveNumber = 0xffffffff;
 {
        static ULONG    LastDriveNumber = 0xffffffff;
-       static BOOL     LastSupported;
+       static BOOLEAN  LastSupported;
        REGS    RegsIn;
        REGS    RegsOut;
 
        REGS    RegsIn;
        REGS    RegsOut;
 
@@ -350,7 +350,7 @@ static BOOL PcDiskInt13ExtensionsSupported(ULONG DriveNumber)
        return TRUE;
 }
 
        return TRUE;
 }
 
-BOOL PcDiskReadLogicalSectors(ULONG DriveNumber, ULONGLONG SectorNumber, ULONG SectorCount, PVOID Buffer)
+BOOLEAN PcDiskReadLogicalSectors(ULONG DriveNumber, ULONGLONG SectorNumber, ULONG SectorCount, PVOID Buffer)
 {
 
        DbgPrint((DPRINT_DISK, "PcDiskReadLogicalSectors() DriveNumber: 0x%x SectorNumber: %I64d SectorCount: %d Buffer: 0x%x\n", DriveNumber, SectorNumber, SectorCount, Buffer));
 {
 
        DbgPrint((DPRINT_DISK, "PcDiskReadLogicalSectors() DriveNumber: 0x%x SectorNumber: %I64d SectorCount: %d Buffer: 0x%x\n", DriveNumber, SectorNumber, SectorCount, Buffer));
@@ -379,14 +379,14 @@ BOOL PcDiskReadLogicalSectors(ULONG DriveNumber, ULONGLONG SectorNumber, ULONG S
        return TRUE;
 }
 
        return TRUE;
 }
 
-BOOL
+BOOLEAN
 PcDiskGetPartitionEntry(ULONG DriveNumber, ULONG PartitionNumber, PPARTITION_TABLE_ENTRY PartitionTableEntry)
 {
   /* Just use the standard routine */
   return DiskGetPartitionEntry(DriveNumber, PartitionNumber, PartitionTableEntry);
 }
 
 PcDiskGetPartitionEntry(ULONG DriveNumber, ULONG PartitionNumber, PPARTITION_TABLE_ENTRY PartitionTableEntry)
 {
   /* Just use the standard routine */
   return DiskGetPartitionEntry(DriveNumber, PartitionNumber, PartitionTableEntry);
 }
 
-BOOL
+BOOLEAN
 PcDiskGetDriveGeometry(ULONG DriveNumber, PGEOMETRY Geometry)
 {
   REGS RegsIn;
 PcDiskGetDriveGeometry(ULONG DriveNumber, PGEOMETRY Geometry)
 {
   REGS RegsIn;
index c64f12c..2bee2b7 100644 (file)
@@ -111,7 +111,7 @@ static ULONG ScreenWidth = 80;                             /* Screen Width in charact
 static ULONG ScreenHeight = 25;                          /* Screen Height in characters */
 static ULONG BytesPerScanLine = 160;                     /* Number of bytes per scanline (delta) */
 static VIDEODISPLAYMODE DisplayMode = VideoTextMode;   /* Current display mode */
 static ULONG ScreenHeight = 25;                          /* Screen Height in characters */
 static ULONG BytesPerScanLine = 160;                     /* Number of bytes per scanline (delta) */
 static VIDEODISPLAYMODE DisplayMode = VideoTextMode;   /* Current display mode */
-static BOOL VesaVideoMode = FALSE;                     /* Are we using a VESA mode? */
+static BOOLEAN VesaVideoMode = FALSE;                     /* Are we using a VESA mode? */
 static SVGA_MODE_INFORMATION VesaVideoModeInformation; /* Only valid when in VESA mode */
 static ULONG CurrentMemoryBank = 0;                      /* Currently selected VESA bank */
 
 static SVGA_MODE_INFORMATION VesaVideoModeInformation; /* Only valid when in VESA mode */
 static ULONG CurrentMemoryBank = 0;                      /* Currently selected VESA bank */
 
@@ -437,7 +437,7 @@ PcVideoSetDisplayEnd(VOID)
   WRITE_PORT_UCHAR((PUCHAR)CRTC+1, 0xDF);
 }
 
   WRITE_PORT_UCHAR((PUCHAR)CRTC+1, 0xDF);
 }
 
-static BOOL
+static BOOLEAN
 PcVideoVesaGetSVGAModeInformation(USHORT Mode, PSVGA_MODE_INFORMATION ModeInformation)
 {
   REGS Regs;
 PcVideoVesaGetSVGAModeInformation(USHORT Mode, PSVGA_MODE_INFORMATION ModeInformation)
 {
   REGS Regs;
@@ -509,7 +509,7 @@ PcVideoVesaGetSVGAModeInformation(USHORT Mode, PSVGA_MODE_INFORMATION ModeInform
   return TRUE;
 }
 
   return TRUE;
 }
 
-static BOOL
+static BOOLEAN
 PcVideoSetBiosVesaMode(USHORT Mode)
 {
   REGS Regs;
 PcVideoSetBiosVesaMode(USHORT Mode)
 {
   REGS Regs;
@@ -581,7 +581,7 @@ PcVideoSetBiosVesaMode(USHORT Mode)
   return TRUE;
 }
 
   return TRUE;
 }
 
-static BOOL
+static BOOLEAN
 PcVideoSetMode80x25(VOID)
 {
   PcVideoSetBiosMode(0x03);
 PcVideoSetMode80x25(VOID)
 {
   PcVideoSetBiosMode(0x03);
@@ -591,7 +591,7 @@ PcVideoSetMode80x25(VOID)
   return TRUE;
 }
 
   return TRUE;
 }
 
-static BOOL
+static BOOLEAN
 PcVideoSetMode80x50_80x43(VOID)
 {
   if (VIDEOCARD_VGA == PcVideoDetectVideoCard())
 PcVideoSetMode80x50_80x43(VOID)
 {
   if (VIDEOCARD_VGA == PcVideoDetectVideoCard())
@@ -622,7 +622,7 @@ PcVideoSetMode80x50_80x43(VOID)
   return TRUE;
 }
 
   return TRUE;
 }
 
-static BOOL
+static BOOLEAN
 PcVideoSetMode80x28(VOID)
 {
   /* FIXME: Is this VGA-only? */
 PcVideoSetMode80x28(VOID)
 {
   /* FIXME: Is this VGA-only? */
@@ -635,7 +635,7 @@ PcVideoSetMode80x28(VOID)
   return TRUE;
 }
 
   return TRUE;
 }
 
-static BOOL
+static BOOLEAN
 PcVideoSetMode80x30(VOID)
 {
   /* FIXME: Is this VGA-only? */
 PcVideoSetMode80x30(VOID)
 {
   /* FIXME: Is this VGA-only? */
@@ -647,7 +647,7 @@ PcVideoSetMode80x30(VOID)
   return TRUE;
 }
 
   return TRUE;
 }
 
-static BOOL
+static BOOLEAN
 PcVideoSetMode80x34(VOID)
 {
   /* FIXME: Is this VGA-only? */
 PcVideoSetMode80x34(VOID)
 {
   /* FIXME: Is this VGA-only? */
@@ -662,7 +662,7 @@ PcVideoSetMode80x34(VOID)
   return TRUE;
 }
 
   return TRUE;
 }
 
-static BOOL
+static BOOLEAN
 PcVideoSetMode80x43(VOID)
 {
   /* FIXME: Is this VGA-only? */
 PcVideoSetMode80x43(VOID)
 {
   /* FIXME: Is this VGA-only? */
@@ -678,7 +678,7 @@ PcVideoSetMode80x43(VOID)
   return TRUE;
 }
 
   return TRUE;
 }
 
-static BOOL
+static BOOLEAN
 PcVideoSetMode80x60(VOID)
 {
   /* FIXME: Is this VGA-only? */
 PcVideoSetMode80x60(VOID)
 {
   /* FIXME: Is this VGA-only? */
@@ -695,7 +695,7 @@ PcVideoSetMode80x60(VOID)
   return TRUE;
 }
 
   return TRUE;
 }
 
-static BOOL
+static BOOLEAN
 PcVideoSetMode(ULONG NewMode)
 {
   CurrentMemoryBank = 0;
 PcVideoSetMode(ULONG NewMode)
 {
   CurrentMemoryBank = 0;
@@ -804,7 +804,7 @@ PcVideoSetMode(ULONG NewMode)
 }
 
 static VOID
 }
 
 static VOID
-PcVideoSetBlinkBit(BOOL Enable)
+PcVideoSetBlinkBit(BOOLEAN Enable)
 {
   REGS Regs;
 
 {
   REGS Regs;
 
@@ -867,7 +867,7 @@ PcVideoSetMemoryBank(USHORT BankNumber)
 }
 
 VIDEODISPLAYMODE
 }
 
 VIDEODISPLAYMODE
-PcVideoSetDisplayMode(char *DisplayModeName, BOOL Init)
+PcVideoSetDisplayMode(char *DisplayModeName, BOOLEAN Init)
 {
   ULONG VideoMode = VIDEOMODE_NORMAL_TEXT;
 
 {
   ULONG VideoMode = VIDEOMODE_NORMAL_TEXT;
 
@@ -981,7 +981,7 @@ PcVideoSetTextCursorPosition(ULONG X, ULONG Y)
 }
 
 VOID
 }
 
 VOID
-PcVideoHideShowTextCursor(BOOL Show)
+PcVideoHideShowTextCursor(BOOLEAN Show)
 {
   if (Show)
     {
 {
   if (Show)
     {
@@ -1058,7 +1058,7 @@ PcVideoPutChar(int Ch, UCHAR Attr, unsigned X, unsigned Y)
   *BufPtr = ((USHORT) Attr << 8) | (Ch & 0xff);
 }
 
   *BufPtr = ((USHORT) Attr << 8) | (Ch & 0xff);
 }
 
-BOOL
+BOOLEAN
 PcVideoIsPaletteFixed(VOID)
 {
   return FALSE;
 PcVideoIsPaletteFixed(VOID)
 {
   return FALSE;
index 546ef2c..453a069 100644 (file)
@@ -56,7 +56,7 @@ XboxConsPutChar(int c)
     }
 }
 
     }
 }
 
-BOOL
+BOOLEAN
 XboxConsKbHit(VOID)
 {
   /* No keyboard support yet */
 XboxConsKbHit(VOID)
 {
   /* No keyboard support yet */
index 7fb4bcf..9ae21bc 100644 (file)
@@ -258,10 +258,10 @@ typedef struct _IDE_DRIVE_IDENTIFY
  *    PVOID Buffer        Buffer for output data
  *
  *  RETURNS:
  *    PVOID Buffer        Buffer for output data
  *
  *  RETURNS:
- *    BOOL: TRUE success, FALSE error
+ *    BOOLEAN: TRUE success, FALSE error
  */
 
  */
 
-static BOOL
+static BOOLEAN
 XboxDiskPolledRead(ULONG CommandPort,
                    ULONG ControlPort,
                    UCHAR PreComp,
 XboxDiskPolledRead(ULONG CommandPort,
                    ULONG ControlPort,
                    UCHAR PreComp,
@@ -275,7 +275,7 @@ XboxDiskPolledRead(ULONG CommandPort,
 {
   ULONG SectorCount = 0;
   ULONG RetryCount;
 {
   ULONG SectorCount = 0;
   ULONG RetryCount;
-  BOOL Junk = FALSE;
+  BOOLEAN Junk = FALSE;
   UCHAR Status;
 
   /* Wait for BUSY to clear */
   UCHAR Status;
 
   /* Wait for BUSY to clear */
@@ -434,7 +434,7 @@ XboxDiskPolledRead(ULONG CommandPort,
     }
 }
 
     }
 }
 
-BOOL
+BOOLEAN
 XboxDiskReadLogicalSectors(ULONG DriveNumber, ULONGLONG SectorNumber, ULONG SectorCount, PVOID Buffer)
 {
   ULONG StartSector;
 XboxDiskReadLogicalSectors(ULONG DriveNumber, ULONGLONG SectorNumber, ULONG SectorCount, PVOID Buffer)
 {
   ULONG StartSector;
@@ -477,7 +477,7 @@ XboxDiskReadLogicalSectors(ULONG DriveNumber, ULONGLONG SectorNumber, ULONG Sect
   return TRUE;
 }
 
   return TRUE;
 }
 
-BOOL
+BOOLEAN
 XboxDiskGetPartitionEntry(ULONG DriveNumber, ULONG PartitionNumber, PPARTITION_TABLE_ENTRY PartitionTableEntry)
 {
   UCHAR SectorData[IDE_SECTOR_BUF_SZ];
 XboxDiskGetPartitionEntry(ULONG DriveNumber, ULONG PartitionNumber, PPARTITION_TABLE_ENTRY PartitionTableEntry)
 {
   UCHAR SectorData[IDE_SECTOR_BUF_SZ];
@@ -502,12 +502,12 @@ XboxDiskGetPartitionEntry(ULONG DriveNumber, ULONG PartitionNumber, PPARTITION_T
   return DiskGetPartitionEntry(DriveNumber, PartitionNumber, PartitionTableEntry);
 }
 
   return DiskGetPartitionEntry(DriveNumber, PartitionNumber, PartitionTableEntry);
 }
 
-BOOL
+BOOLEAN
 XboxDiskGetDriveGeometry(ULONG DriveNumber, PGEOMETRY Geometry)
 {
   IDE_DRIVE_IDENTIFY DrvParms;
   ULONG i;
 XboxDiskGetDriveGeometry(ULONG DriveNumber, PGEOMETRY Geometry)
 {
   IDE_DRIVE_IDENTIFY DrvParms;
   ULONG i;
-  BOOL Atapi;
+  BOOLEAN Atapi;
 
   Atapi = FALSE; /* FIXME */
   /*  Get the Drive Identify block from drive or die  */
 
   Atapi = FALSE; /* FIXME */
   /*  Get the Drive Identify block from drive or die  */
index a8e17cc..ac8e3b3 100644 (file)
@@ -24,7 +24,7 @@
 
 #define I2C_IO_BASE 0xc000
 
 
 #define I2C_IO_BASE 0xc000
 
-static BOOL
+static BOOLEAN
 WriteToSMBus(UCHAR Address, UCHAR bRegister, UCHAR Size, ULONG Data_to_smbus)
 {
   int nRetriesToLive=50;
 WriteToSMBus(UCHAR Address, UCHAR bRegister, UCHAR Size, ULONG Data_to_smbus)
 {
   int nRetriesToLive=50;
@@ -95,7 +95,7 @@ WriteToSMBus(UCHAR Address, UCHAR bRegister, UCHAR Size, ULONG Data_to_smbus)
 }
 
 
 }
 
 
-static BOOL
+static BOOLEAN
 ReadfromSMBus(UCHAR Address, UCHAR bRegister, UCHAR Size, ULONG *Data_to_smbus)
 {
   int nRetriesToLive=50;
 ReadfromSMBus(UCHAR Address, UCHAR bRegister, UCHAR Size, ULONG *Data_to_smbus)
 {
   int nRetriesToLive=50;
@@ -172,14 +172,14 @@ ReadfromSMBus(UCHAR Address, UCHAR bRegister, UCHAR Size, ULONG *Data_to_smbus)
   return FALSE;
 }
 
   return FALSE;
 }
 
-BOOL
+BOOLEAN
 I2CTransmitByteGetReturn(UCHAR bPicAddressI2cFormat, UCHAR bDataToWrite, ULONG *Return)
 {
   return ReadfromSMBus(bPicAddressI2cFormat, bDataToWrite, 1, Return);
 }
 
 // transmit a word, no returned data from I2C device
 I2CTransmitByteGetReturn(UCHAR bPicAddressI2cFormat, UCHAR bDataToWrite, ULONG *Return)
 {
   return ReadfromSMBus(bPicAddressI2cFormat, bDataToWrite, 1, Return);
 }
 
 // transmit a word, no returned data from I2C device
-static BOOL
+static BOOLEAN
 I2CTransmitWord(UCHAR bPicAddressI2cFormat, USHORT wDataToWrite)
 {
   return WriteToSMBus(bPicAddressI2cFormat,(wDataToWrite>>8)&0xff,1,(wDataToWrite&0xff));
 I2CTransmitWord(UCHAR bPicAddressI2cFormat, USHORT wDataToWrite)
 {
   return WriteToSMBus(bPicAddressI2cFormat,(wDataToWrite>>8)&0xff,1,(wDataToWrite&0xff));
index bbcf8fe..21ffa56 100644 (file)
@@ -37,7 +37,7 @@ static ULONG Delta;
 
 #define MAKE_COLOR(Red, Green, Blue) (0xff000000 | (((Red) & 0xff) << 16) | (((Green) & 0xff) << 8) | ((Blue) & 0xff))
 
 
 #define MAKE_COLOR(Red, Green, Blue) (0xff000000 | (((Red) & 0xff) << 16) | (((Green) & 0xff) << 8) | ((Blue) & 0xff))
 
-BOOL I2CTransmitByteGetReturn(UCHAR bPicAddressI2cFormat, UCHAR bDataToWrite, ULONG *Return);
+BOOLEAN I2CTransmitByteGetReturn(UCHAR bPicAddressI2cFormat, UCHAR bDataToWrite, ULONG *Return);
 
 static VOID
 XboxVideoOutputChar(UCHAR Char, unsigned X, unsigned Y, ULONG FgColor, ULONG BgColor)
 
 static VOID
 XboxVideoOutputChar(UCHAR Char, unsigned X, unsigned Y, ULONG FgColor, ULONG BgColor)
@@ -84,7 +84,7 @@ XboxVideoAttrToColors(UCHAR Attr, ULONG *FgColor, ULONG *BgColor)
 }
 
 static VOID
 }
 
 static VOID
-XboxVideoClearScreenColor(ULONG Color, BOOL FullScreen)
+XboxVideoClearScreenColor(ULONG Color, BOOLEAN FullScreen)
 {
   ULONG Line, Col;
   PULONG p;
 {
   ULONG Line, Col;
   PULONG p;
@@ -161,7 +161,7 @@ XboxVideoInit(VOID)
 }
 
 VIDEODISPLAYMODE
 }
 
 VIDEODISPLAYMODE
-XboxVideoSetDisplayMode(char *DisplayMode, BOOL Init)
+XboxVideoSetDisplayMode(char *DisplayMode, BOOLEAN Init)
 {
   /* We only have one mode, semi-text */
   return VideoTextMode;
 {
   /* We only have one mode, semi-text */
   return VideoTextMode;
@@ -188,7 +188,7 @@ XboxVideoSetTextCursorPosition(ULONG X, ULONG Y)
 }
 
 VOID
 }
 
 VOID
-XboxVideoHideShowTextCursor(BOOL Show)
+XboxVideoHideShowTextCursor(BOOLEAN Show)
 {
   /* We don't have a cursor yet */
 }
 {
   /* We don't have a cursor yet */
 }
@@ -209,7 +209,7 @@ XboxVideoCopyOffScreenBufferToVRAM(PVOID Buffer)
     }
 }
 
     }
 }
 
-BOOL
+BOOLEAN
 XboxVideoIsPaletteFixed(VOID)
 {
   return FALSE;
 XboxVideoIsPaletteFixed(VOID)
 {
   return FALSE;
index 4ab512c..0f33944 100644 (file)
@@ -175,7 +175,7 @@ int PpcFindDevice( int depth, int parent, char *devname, int *nth ) {
     return 0;
 }
 
     return 0;
 }
 
-BOOL PpcConsKbHit() {
+BOOLEAN PpcConsKbHit() {
     return TRUE;
 }
 
     return TRUE;
 }
 
@@ -189,7 +189,7 @@ void PpcVideoClearScreen( UCHAR Attr ) {
     ofw_print_string("ClearScreen\n");
 }
 
     ofw_print_string("ClearScreen\n");
 }
 
-VIDEODISPLAYMODE PpcVideoSetDisplayMode( char *DisplayMode, BOOL Init ) {
+VIDEODISPLAYMODE PpcVideoSetDisplayMode( char *DisplayMode, BOOLEAN Init ) {
     printf( "DisplayMode: %s %s\n", DisplayMode, Init ? "true" : "false" );
     return VideoGraphicsMode;
 }
     printf( "DisplayMode: %s %s\n", DisplayMode, Init ? "true" : "false" );
     return VideoGraphicsMode;
 }
@@ -213,7 +213,7 @@ VOID PpcVideoSetTextCursorPosition( ULONG X, ULONG Y ) {
     printf("SetTextCursorPosition(%d,%d)\n", X,Y);
 }
 
     printf("SetTextCursorPosition(%d,%d)\n", X,Y);
 }
 
-VOID PpcVideoHideShowTextCursor( BOOL Show ) {
+VOID PpcVideoHideShowTextCursor( BOOLEAN Show ) {
     printf("HideShowTextCursor(%s)\n", Show ? "true" : "false");
 }
 
     printf("HideShowTextCursor(%s)\n", Show ? "true" : "false");
 }
 
@@ -225,7 +225,7 @@ VOID PpcVideoCopyOffScreenBufferToVRAM( PVOID Buffer ) {
     printf( "CopyOffScreenBufferToVRAM(%x)\n", Buffer );
 }
 
     printf( "CopyOffScreenBufferToVRAM(%x)\n", Buffer );
 }
 
-BOOL PpcVideoIsPaletteFixed() {
+BOOLEAN PpcVideoIsPaletteFixed() {
     return FALSE;
 }
 
     return FALSE;
 }
 
@@ -273,7 +273,7 @@ ULONG PpcGetMemoryMap( PBIOS_MEMORY_MAP BiosMemoryMap,
  * away with grabbing a partition image by tftp in this scenario.
  */
 
  * away with grabbing a partition image by tftp in this scenario.
  */
 
-BOOL PpcDiskGetBootVolume( PULONG DriveNumber, PULONGLONG StartSector, PULONGLONG SectorCount, int *FsType ) {
+BOOLEAN PpcDiskGetBootVolume( PULONG DriveNumber, PULONGLONG StartSector, PULONGLONG SectorCount, int *FsType ) {
     *DriveNumber = 0;
     *StartSector = 0;
     *SectorCount = 0;
     *DriveNumber = 0;
     *StartSector = 0;
     *SectorCount = 0;
@@ -281,7 +281,7 @@ BOOL PpcDiskGetBootVolume( PULONG DriveNumber, PULONGLONG StartSector, PULONGLON
     return TRUE;
 }
 
     return TRUE;
 }
 
-BOOL PpcDiskGetSystemVolume( char *SystemPath,
+BOOLEAN PpcDiskGetSystemVolume( char *SystemPath,
                              char *RemainingPath,
                              PULONG Device,
                              PULONG DriveNumber, 
                              char *RemainingPath,
                              PULONG Device,
                              PULONG DriveNumber, 
@@ -291,7 +291,7 @@ BOOL PpcDiskGetSystemVolume( char *SystemPath,
     return FALSE;
 }
 
     return FALSE;
 }
 
-BOOL PpcDiskGetBootPath( char *OutBootPath, unsigned Size ) {
+BOOLEAN PpcDiskGetBootPath( char *OutBootPath, unsigned Size ) {
     strncpy( OutBootPath, BootPath, Size );
     return TRUE;
 }
     strncpy( OutBootPath, BootPath, Size );
     return TRUE;
 }
@@ -300,11 +300,11 @@ VOID PpcDiskGetBootDevice( PULONG BootDevice ) {
     BootDevice[0] = BootDevice[1] = 0;
 }
 
     BootDevice[0] = BootDevice[1] = 0;
 }
 
-BOOL PpcDiskBootingFromFloppy(VOID) {
+BOOLEAN PpcDiskBootingFromFloppy(VOID) {
     return FALSE;
 }
 
     return FALSE;
 }
 
-BOOL PpcDiskReadLogicalSectors( ULONG DriveNumber, ULONGLONG SectorNumber,
+BOOLEAN PpcDiskReadLogicalSectors( ULONG DriveNumber, ULONGLONG SectorNumber,
                                 ULONG SectorCount, PVOID Buffer ) {
     int rlen = 0;
 
                                 ULONG SectorCount, PVOID Buffer ) {
     int rlen = 0;
 
@@ -330,13 +330,13 @@ BOOL PpcDiskReadLogicalSectors( ULONG DriveNumber, ULONGLONG SectorNumber,
     return rlen > 0;
 }
 
     return rlen > 0;
 }
 
-BOOL PpcDiskGetPartitionEntry( ULONG DriveNumber, ULONG PartitionNumber,
+BOOLEAN PpcDiskGetPartitionEntry( ULONG DriveNumber, ULONG PartitionNumber,
                                PPARTITION_TABLE_ENTRY PartitionTableEntry ) {
     printf("GetPartitionEntry(%d,%d)\n", DriveNumber, PartitionNumber);
     return FALSE;
 }
 
                                PPARTITION_TABLE_ENTRY PartitionTableEntry ) {
     printf("GetPartitionEntry(%d,%d)\n", DriveNumber, PartitionNumber);
     return FALSE;
 }
 
-BOOL PpcDiskGetDriveGeometry( ULONG DriveNumber, PGEOMETRY DriveGeometry ) {
+BOOLEAN PpcDiskGetDriveGeometry( ULONG DriveNumber, PGEOMETRY DriveGeometry ) {
     printf("GetGeometry(%d)\n", DriveNumber);
     DriveGeometry->BytesPerSector = 512;
     DriveGeometry->Heads = 16;
     printf("GetGeometry(%d)\n", DriveNumber);
     DriveGeometry->BytesPerSector = 512;
     DriveGeometry->Heads = 16;
@@ -463,7 +463,7 @@ void MachInit(const char *CmdLine) {
 void beep() {
 }
 
 void beep() {
 }
 
-UCHAR STDCALL READ_PORT_UCHAR(PUCHAR Address) {
+UCHAR NTAPI READ_PORT_UCHAR(PUCHAR Address) {
     return 0xff;
 }
 
     return 0xff;
 }
 
index 0c8b2e9..23997df 100644 (file)
@@ -89,7 +89,7 @@ ULONG_PTR KernelEntry;
  *
  *--*/
 VOID
  *
  *--*/
 VOID
-STDCALL
+NTAPI
 FrLdrStartup(ULONG Magic)
 {   
 #if 0   
 FrLdrStartup(ULONG Magic)
 {   
 #if 0   
@@ -377,8 +377,8 @@ FrLdrSetupPageDirectory(VOID)
  *     None.
  *
  *--*/
  *     None.
  *
  *--*/
-BOOL
-STDCALL
+BOOLEAN
+NTAPI
 FrLdrMapKernel(FILE *KernelImage)
 {
 #if 0
 FrLdrMapKernel(FILE *KernelImage)
 {
 #if 0
@@ -540,7 +540,7 @@ FrLdrMapKernel(FILE *KernelImage)
 }
 
 ULONG_PTR
 }
 
 ULONG_PTR
-STDCALL
+NTAPI
 FrLdrLoadModule(FILE *ModuleImage, 
                 LPCSTR ModuleName, 
                 PULONG ModuleSize)
 FrLdrLoadModule(FILE *ModuleImage, 
                 LPCSTR ModuleName, 
                 PULONG ModuleSize)
@@ -596,7 +596,7 @@ FrLdrLoadModule(FILE *ModuleImage,
 }
 
 ULONG_PTR
 }
 
 ULONG_PTR
-STDCALL
+NTAPI
 FrLdrCreateModule(LPCSTR ModuleName)
 {
 #if 0
 FrLdrCreateModule(LPCSTR ModuleName)
 {
 #if 0
@@ -625,8 +625,8 @@ FrLdrCreateModule(LPCSTR ModuleName)
 #endif
 }
 
 #endif
 }
 
-BOOL
-STDCALL
+BOOLEAN
+NTAPI
 FrLdrCloseModule(ULONG_PTR ModuleBase, 
                  ULONG ModuleSize)
 {
 FrLdrCloseModule(ULONG_PTR ModuleBase, 
                  ULONG ModuleSize)
 {
index a191b18..ac2585b 100644 (file)
@@ -214,7 +214,7 @@ LONG GetTimeOut(VOID)
        return TimeOut;
 }
 
        return TimeOut;
 }
 
-BOOL MainBootMenuKeyPressFilter(ULONG KeyPress)
+BOOLEAN MainBootMenuKeyPressFilter(ULONG KeyPress)
 {
        if (KeyPress == KEY_F8)
        {
 {
        if (KeyPress == KEY_F8)
        {
index 213eba4..9478dba 100644 (file)
@@ -145,7 +145,7 @@ PCACHE_BLOCK CacheInternalAddBlockToCache(PCACHE_DRIVE CacheDrive, ULONG BlockNu
        return CacheBlock;
 }
 
        return CacheBlock;
 }
 
-BOOL CacheInternalFreeBlock(PCACHE_DRIVE CacheDrive)
+BOOLEAN CacheInternalFreeBlock(PCACHE_DRIVE CacheDrive)
 {
        PCACHE_BLOCK    CacheBlockToFree;
 
 {
        PCACHE_BLOCK    CacheBlockToFree;
 
index 44cdefe..ac02a72 100644 (file)
 //
 ///////////////////////////////////////////////////////////////////////////////////////
 CACHE_DRIVE            CacheManagerDrive;
 //
 ///////////////////////////////////////////////////////////////////////////////////////
 CACHE_DRIVE            CacheManagerDrive;
-BOOL                   CacheManagerInitialized = FALSE;
-BOOL                   CacheManagerDataInvalid = FALSE;
+BOOLEAN                        CacheManagerInitialized = FALSE;
+BOOLEAN                        CacheManagerDataInvalid = FALSE;
 ULONG                  CacheBlockCount = 0;
 ULONG                  CacheSizeLimit = 0;
 ULONG                  CacheSizeCurrent = 0;
 
 ULONG                  CacheBlockCount = 0;
 ULONG                  CacheSizeLimit = 0;
 ULONG                  CacheSizeCurrent = 0;
 
-BOOL CacheInitializeDrive(ULONG DriveNumber)
+BOOLEAN CacheInitializeDrive(ULONG DriveNumber)
 {
        PCACHE_BLOCK    NextCacheBlock;
        GEOMETRY        DriveGeometry;
 {
        PCACHE_BLOCK    NextCacheBlock;
        GEOMETRY        DriveGeometry;
@@ -112,7 +112,7 @@ VOID CacheInvalidateCacheData(VOID)
        CacheManagerDataInvalid = TRUE;
 }
 
        CacheManagerDataInvalid = TRUE;
 }
 
-BOOL CacheReadDiskSectors(ULONG DiskNumber, ULONG StartSector, ULONG SectorCount, PVOID Buffer)
+BOOLEAN CacheReadDiskSectors(ULONG DiskNumber, ULONG StartSector, ULONG SectorCount, PVOID Buffer)
 {
        PCACHE_BLOCK    CacheBlock;
        ULONG                           StartBlock;
 {
        PCACHE_BLOCK    CacheBlock;
        ULONG                           StartBlock;
@@ -244,7 +244,7 @@ BOOL CacheReadDiskSectors(ULONG DiskNumber, ULONG StartSector, ULONG SectorCount
        return TRUE;
 }
 
        return TRUE;
 }
 
-BOOL CacheForceDiskSectorsIntoCache(ULONG DiskNumber, ULONG StartSector, ULONG SectorCount)
+BOOLEAN CacheForceDiskSectorsIntoCache(ULONG DiskNumber, ULONG StartSector, ULONG SectorCount)
 {
        PCACHE_BLOCK    CacheBlock;
        ULONG                           StartBlock;
 {
        PCACHE_BLOCK    CacheBlock;
        ULONG                           StartBlock;
@@ -290,7 +290,7 @@ BOOL CacheForceDiskSectorsIntoCache(ULONG DiskNumber, ULONG StartSector, ULONG S
        return TRUE;
 }
 
        return TRUE;
 }
 
-BOOL CacheReleaseMemory(ULONG MinimumAmountToRelease)
+BOOLEAN CacheReleaseMemory(ULONG MinimumAmountToRelease)
 {
        ULONG                           AmountReleased;
 
 {
        ULONG                           AmountReleased;
 
index a50a3ce..4fd0994 100644 (file)
@@ -69,7 +69,7 @@ static BOOLEAN PortInitialized = FALSE;
 
 /* STATIC FUNCTIONS *********************************************************/
 
 
 /* STATIC FUNCTIONS *********************************************************/
 
-static BOOL Rs232DoesComPortExist(PUCHAR BaseAddress)
+static BOOLEAN Rs232DoesComPortExist(PUCHAR BaseAddress)
 {
         BOOLEAN found;
         UCHAR mcr;
 {
         BOOLEAN found;
         UCHAR mcr;
@@ -117,7 +117,7 @@ static BOOL Rs232DoesComPortExist(PUCHAR BaseAddress)
 
 /* FUNCTIONS *********************************************************/
 
 
 /* FUNCTIONS *********************************************************/
 
-BOOL Rs232PortInitialize(ULONG ComPort, ULONG BaudRate)
+BOOLEAN Rs232PortInitialize(ULONG ComPort, ULONG BaudRate)
 {
         ULONG BaseArray[5] = {0, 0x3F8, 0x2F8, 0x3E8, 0x2E8};
         //char buffer[80];
 {
         ULONG BaseArray[5] = {0, 0x3F8, 0x2F8, 0x3E8, 0x2E8};
         //char buffer[80];
@@ -237,7 +237,7 @@ BOOL Rs232PortInitialize(ULONG ComPort, ULONG BaudRate)
         return TRUE;
 }
 
         return TRUE;
 }
 
-BOOL Rs232PortGetByte(PUCHAR ByteRecieved)
+BOOLEAN Rs232PortGetByte(PUCHAR ByteRecieved)
 {
        if (PortInitialized == FALSE)
                return FALSE;
 {
        if (PortInitialized == FALSE)
                return FALSE;
@@ -251,7 +251,7 @@ BOOL Rs232PortGetByte(PUCHAR ByteRecieved)
        return FALSE;
 }
 
        return FALSE;
 }
 
-BOOL Rs232PortPollByte(PUCHAR ByteRecieved)
+BOOLEAN Rs232PortPollByte(PUCHAR ByteRecieved)
 {
        if (PortInitialized == FALSE)
                return FALSE;
 {
        if (PortInitialized == FALSE)
                return FALSE;
@@ -277,7 +277,7 @@ VOID Rs232PortPutByte(UCHAR ByteToSend)
 
 #endif
 
 
 #endif
 
-BOOL Rs232PortInUse(ULONG Base)
+BOOLEAN Rs232PortInUse(ULONG Base)
 {
 #ifdef DEBUG
     return PortInitialized && Rs232PortBase == (PUCHAR)Base ? TRUE : FALSE;
 {
 #ifdef DEBUG
     return PortInitialized && Rs232PortBase == (PUCHAR)Base ? TRUE : FALSE;
index 89e2715..073f612 100644 (file)
@@ -62,7 +62,7 @@ ULONG         ComPort = COM1;
 //ULONG                BaudRate = 19200;
 ULONG          BaudRate = 115200;
 
 //ULONG                BaudRate = 19200;
 ULONG          BaudRate = 115200;
 
-BOOL   DebugStartOfLine = TRUE;
+BOOLEAN        DebugStartOfLine = TRUE;
 
 VOID DebugInit(VOID)
 {
 
 VOID DebugInit(VOID)
 {
index 79c743c..1380849 100644 (file)
 #undef  UNIMPLEMENTED
 #define UNIMPLEMENTED   BugCheck((DPRINT_WARNING, "Unimplemented\n"));
 
 #undef  UNIMPLEMENTED
 #define UNIMPLEMENTED   BugCheck((DPRINT_WARNING, "Unimplemented\n"));
 
-static BOOL bReportError = TRUE;
+static BOOLEAN bReportError = TRUE;
 
 /////////////////////////////////////////////////////////////////////////////////////////////
 // FUNCTIONS
 /////////////////////////////////////////////////////////////////////////////////////////////
 
 
 /////////////////////////////////////////////////////////////////////////////////////////////
 // FUNCTIONS
 /////////////////////////////////////////////////////////////////////////////////////////////
 
-VOID DiskReportError (BOOL bError)
+VOID DiskReportError (BOOLEAN bError)
 {
        bReportError = bError;
 }
 {
        bReportError = bError;
 }
@@ -86,9 +86,9 @@ PCSTR DiskGetErrorCodeString(ULONG ErrorCode)
 }
 
 // This function is in arch/i386/i386disk.c
 }
 
 // This function is in arch/i386/i386disk.c
-//BOOL DiskReadLogicalSectors(ULONG DriveNumber, U64 SectorNumber, ULONG SectorCount, PVOID Buffer)
+//BOOLEAN DiskReadLogicalSectors(ULONG DriveNumber, U64 SectorNumber, ULONG SectorCount, PVOID Buffer)
 
 
-BOOL DiskIsDriveRemovable(ULONG DriveNumber)
+BOOLEAN DiskIsDriveRemovable(ULONG DriveNumber)
 {
        // Hard disks use drive numbers >= 0x80
        // So if the drive number indicates a hard disk
 {
        // Hard disks use drive numbers >= 0x80
        // So if the drive number indicates a hard disk
index b4247ca..7927750 100644 (file)
@@ -22,7 +22,7 @@
 #define NDEBUG
 #include <debug.h>
 
 #define NDEBUG
 #include <debug.h>
 
-BOOL DiskGetActivePartitionEntry(ULONG DriveNumber,
+BOOLEAN DiskGetActivePartitionEntry(ULONG DriveNumber,
                                  PPARTITION_TABLE_ENTRY PartitionTableEntry,
                                  ULONG *ActivePartition)
 {
                                  PPARTITION_TABLE_ENTRY PartitionTableEntry,
                                  ULONG *ActivePartition)
 {
@@ -78,7 +78,7 @@ BOOL DiskGetActivePartitionEntry(ULONG DriveNumber,
        return TRUE;
 }
 
        return TRUE;
 }
 
-BOOL DiskGetPartitionEntry(ULONG DriveNumber, ULONG PartitionNumber, PPARTITION_TABLE_ENTRY PartitionTableEntry)
+BOOLEAN DiskGetPartitionEntry(ULONG DriveNumber, ULONG PartitionNumber, PPARTITION_TABLE_ENTRY PartitionTableEntry)
 {
        MASTER_BOOT_RECORD              MasterBootRecord;
        PARTITION_TABLE_ENTRY   ExtendedPartitionTableEntry;
 {
        MASTER_BOOT_RECORD              MasterBootRecord;
        PARTITION_TABLE_ENTRY   ExtendedPartitionTableEntry;
@@ -156,7 +156,7 @@ BOOL DiskGetPartitionEntry(ULONG DriveNumber, ULONG PartitionNumber, PPARTITION_
 
 }
 
 
 }
 
-BOOL DiskGetFirstPartitionEntry(PMASTER_BOOT_RECORD MasterBootRecord, PPARTITION_TABLE_ENTRY PartitionTableEntry)
+BOOLEAN DiskGetFirstPartitionEntry(PMASTER_BOOT_RECORD MasterBootRecord, PPARTITION_TABLE_ENTRY PartitionTableEntry)
 {
        ULONG           Index;
 
 {
        ULONG           Index;
 
@@ -177,7 +177,7 @@ BOOL DiskGetFirstPartitionEntry(PMASTER_BOOT_RECORD MasterBootRecord, PPARTITION
        return FALSE;
 }
 
        return FALSE;
 }
 
-BOOL DiskGetFirstExtendedPartitionEntry(PMASTER_BOOT_RECORD MasterBootRecord, PPARTITION_TABLE_ENTRY PartitionTableEntry)
+BOOLEAN DiskGetFirstExtendedPartitionEntry(PMASTER_BOOT_RECORD MasterBootRecord, PPARTITION_TABLE_ENTRY PartitionTableEntry)
 {
        ULONG           Index;
 
 {
        ULONG           Index;
 
@@ -196,7 +196,7 @@ BOOL DiskGetFirstExtendedPartitionEntry(PMASTER_BOOT_RECORD MasterBootRecord, PP
        return FALSE;
 }
 
        return FALSE;
 }
 
-BOOL DiskReadBootRecord(ULONG DriveNumber, ULONGLONG LogicalSectorNumber, PMASTER_BOOT_RECORD BootRecord)
+BOOLEAN DiskReadBootRecord(ULONG DriveNumber, ULONGLONG LogicalSectorNumber, PMASTER_BOOT_RECORD BootRecord)
 {
        char            ErrMsg[64];
 #ifdef DEBUG
 {
        char            ErrMsg[64];
 #ifdef DEBUG
index 95a8460..a10a5cc 100644 (file)
@@ -22,7 +22,7 @@
 #define NDEBUG
 #include <debug.h>
 
 #define NDEBUG
 #include <debug.h>
 
-BOOL   DriveMapInstalled = FALSE;      // Tells us if we have already installed our drive map int 13h handler code
+BOOLEAN        DriveMapInstalled = FALSE;      // Tells us if we have already installed our drive map int 13h handler code
 ULONG          OldInt13HandlerAddress = 0;     // Address of BIOS int 13h handler
 ULONG          DriveMapHandlerAddress = 0;     // Linear address of our drive map handler
 ULONG          DriveMapHandlerSegOff = 0;      // Segment:offset style address of our drive map handler
 ULONG          OldInt13HandlerAddress = 0;     // Address of BIOS int 13h handler
 ULONG          DriveMapHandlerAddress = 0;     // Linear address of our drive map handler
 ULONG          DriveMapHandlerSegOff = 0;      // Segment:offset style address of our drive map handler
@@ -114,7 +114,7 @@ VOID DriveMapMapDrivesInSection(PCSTR SectionName)
        }
 }
 
        }
 }
 
-BOOL DriveMapIsValidDriveString(PCSTR DriveString)
+BOOLEAN DriveMapIsValidDriveString(PCSTR DriveString)
 {
        ULONG           Index;
 
 {
        ULONG           Index;
 
index 50c7988..78d929c 100644 (file)
@@ -37,7 +37,7 @@ ULONG                                 Ext2GroupCount = 0;                             // Number of groups in this file system
 ULONG                                  Ext2InodesPerBlock = 0;                 // Number of inodes in one block
 ULONG                                  Ext2GroupDescPerBlock = 0;              // Number of group descriptors in one block
 
 ULONG                                  Ext2InodesPerBlock = 0;                 // Number of inodes in one block
 ULONG                                  Ext2GroupDescPerBlock = 0;              // Number of group descriptors in one block
 
-BOOL Ext2OpenVolume(UCHAR DriveNumber, ULONGLONG VolumeStartSector)
+BOOLEAN Ext2OpenVolume(UCHAR DriveNumber, ULONGLONG VolumeStartSector)
 {
 
        DbgPrint((DPRINT_FILESYSTEM, "Ext2OpenVolume() DriveNumber = 0x%x VolumeStartSector = %d\n", DriveNumber, VolumeStartSector));
 {
 
        DbgPrint((DPRINT_FILESYSTEM, "Ext2OpenVolume() DriveNumber = 0x%x VolumeStartSector = %d\n", DriveNumber, VolumeStartSector));
@@ -182,7 +182,7 @@ FILE* Ext2OpenFile(PCSTR FileName)
  * with info describing the file, etc. returns true
  * if the file exists or false otherwise
  */
  * with info describing the file, etc. returns true
  * if the file exists or false otherwise
  */
-BOOL Ext2LookupFile(PCSTR FileName, PEXT2_FILE_INFO Ext2FileInfoPointer)
+BOOLEAN Ext2LookupFile(PCSTR FileName, PEXT2_FILE_INFO Ext2FileInfoPointer)
 {
        UINT                            i;
        ULONG                           NumberOfPathParts;
 {
        UINT                            i;
        ULONG                           NumberOfPathParts;
@@ -281,7 +281,7 @@ BOOL Ext2LookupFile(PCSTR FileName, PEXT2_FILE_INFO Ext2FileInfoPointer)
        return TRUE;
 }
 
        return TRUE;
 }
 
-BOOL Ext2SearchDirectoryBufferForFile(PVOID DirectoryBuffer, ULONG DirectorySize, PCHAR FileName, PEXT2_DIR_ENTRY DirectoryEntry)
+BOOLEAN Ext2SearchDirectoryBufferForFile(PVOID DirectoryBuffer, ULONG DirectorySize, PCHAR FileName, PEXT2_DIR_ENTRY DirectoryEntry)
 {
        ULONG                           CurrentOffset;
        PEXT2_DIR_ENTRY CurrentDirectoryEntry;
 {
        ULONG                           CurrentOffset;
        PEXT2_DIR_ENTRY CurrentDirectoryEntry;
@@ -337,7 +337,7 @@ BOOL Ext2SearchDirectoryBufferForFile(PVOID DirectoryBuffer, ULONG DirectorySize
  * Reads BytesToRead from open file and
  * returns the number of bytes read in BytesRead
  */
  * Reads BytesToRead from open file and
  * returns the number of bytes read in BytesRead
  */
-BOOL Ext2ReadFile(FILE *FileHandle, ULONGLONG BytesToRead, ULONGLONG* BytesRead, PVOID Buffer)
+BOOLEAN Ext2ReadFile(FILE *FileHandle, ULONGLONG BytesToRead, ULONGLONG* BytesRead, PVOID Buffer)
 {
        PEXT2_FILE_INFO Ext2FileInfo = (PEXT2_FILE_INFO)FileHandle;
        ULONG                           BlockNumber;
 {
        PEXT2_FILE_INFO Ext2FileInfo = (PEXT2_FILE_INFO)FileHandle;
        ULONG                           BlockNumber;
@@ -548,10 +548,10 @@ ULONGLONG Ext2GetFilePointer(FILE *FileHandle)
        return Ext2FileHandle->FilePointer;
 }
 
        return Ext2FileHandle->FilePointer;
 }
 
-BOOL Ext2ReadVolumeSectors(UCHAR DriveNumber, ULONGLONG SectorNumber, ULONGLONG SectorCount, PVOID Buffer)
+BOOLEAN Ext2ReadVolumeSectors(UCHAR DriveNumber, ULONGLONG SectorNumber, ULONGLONG SectorCount, PVOID Buffer)
 {
        //GEOMETRY      DiskGeometry;
 {
        //GEOMETRY      DiskGeometry;
-       //BOOL          ReturnValue;
+       //BOOLEAN               ReturnValue;
        //if (!DiskGetDriveGeometry(DriveNumber, &DiskGeometry))
        //{
        //      return FALSE;
        //if (!DiskGetDriveGeometry(DriveNumber, &DiskGeometry))
        //{
        //      return FALSE;
@@ -563,7 +563,7 @@ BOOL Ext2ReadVolumeSectors(UCHAR DriveNumber, ULONGLONG SectorNumber, ULONGLONG
        return CacheReadDiskSectors(DriveNumber, SectorNumber + Ext2VolumeStartSector, SectorCount, Buffer);
 }
 
        return CacheReadDiskSectors(DriveNumber, SectorNumber + Ext2VolumeStartSector, SectorCount, Buffer);
 }
 
-BOOL Ext2ReadSuperBlock(VOID)
+BOOLEAN Ext2ReadSuperBlock(VOID)
 {
 
        DbgPrint((DPRINT_FILESYSTEM, "Ext2ReadSuperBlock()\n"));
 {
 
        DbgPrint((DPRINT_FILESYSTEM, "Ext2ReadSuperBlock()\n"));
@@ -724,7 +724,7 @@ BOOL Ext2ReadSuperBlock(VOID)
        return TRUE;
 }
 
        return TRUE;
 }
 
-BOOL Ext2ReadGroupDescriptors(VOID)
+BOOLEAN Ext2ReadGroupDescriptors(VOID)
 {
        ULONG           GroupDescBlockCount;
        ULONG           CurrentGroupDescBlock;
 {
        ULONG           GroupDescBlockCount;
        ULONG           CurrentGroupDescBlock;
@@ -770,7 +770,7 @@ BOOL Ext2ReadGroupDescriptors(VOID)
        return TRUE;
 }
 
        return TRUE;
 }
 
-BOOL Ext2ReadDirectory(ULONG Inode, PVOID* DirectoryBuffer, PEXT2_INODE InodePointer)
+BOOLEAN Ext2ReadDirectory(ULONG Inode, PVOID* DirectoryBuffer, PEXT2_INODE InodePointer)
 {
        EXT2_FILE_INFO  DirectoryFileInfo;
 
 {
        EXT2_FILE_INFO  DirectoryFileInfo;
 
@@ -829,7 +829,7 @@ BOOL Ext2ReadDirectory(ULONG Inode, PVOID* DirectoryBuffer, PEXT2_INODE InodePoi
        return TRUE;
 }
 
        return TRUE;
 }
 
-BOOL Ext2ReadBlock(ULONG BlockNumber, PVOID Buffer)
+BOOLEAN Ext2ReadBlock(ULONG BlockNumber, PVOID Buffer)
 {
        CHAR                    ErrorString[80];
 
 {
        CHAR                    ErrorString[80];
 
@@ -860,7 +860,7 @@ BOOL Ext2ReadBlock(ULONG BlockNumber, PVOID Buffer)
  * Ext2ReadPartialBlock()
  * Reads part of a block into memory
  */
  * Ext2ReadPartialBlock()
  * Reads part of a block into memory
  */
-BOOL Ext2ReadPartialBlock(ULONG BlockNumber, ULONG StartingOffset, ULONG Length, PVOID Buffer)
+BOOLEAN Ext2ReadPartialBlock(ULONG BlockNumber, ULONG StartingOffset, ULONG Length, PVOID Buffer)
 {
 
        DbgPrint((DPRINT_FILESYSTEM, "Ext2ReadPartialBlock() BlockNumber = %d StartingOffset = %d Length = %d Buffer = 0x%x\n", BlockNumber, StartingOffset, Length, Buffer));
 {
 
        DbgPrint((DPRINT_FILESYSTEM, "Ext2ReadPartialBlock() BlockNumber = %d StartingOffset = %d Length = %d Buffer = 0x%x\n", BlockNumber, StartingOffset, Length, Buffer));
@@ -900,7 +900,7 @@ ULONG Ext2GetInodeOffsetInBlock(ULONG Inode)
        return (((Inode - 1) % Ext2SuperBlock->s_inodes_per_group) % Ext2InodesPerBlock);
 }
 
        return (((Inode - 1) % Ext2SuperBlock->s_inodes_per_group) % Ext2InodesPerBlock);
 }
 
-BOOL Ext2ReadInode(ULONG Inode, PEXT2_INODE InodeBuffer)
+BOOLEAN Ext2ReadInode(ULONG Inode, PEXT2_INODE InodeBuffer)
 {
        ULONG                           InodeGroupNumber;
        ULONG                           InodeBlockNumber;
 {
        ULONG                           InodeGroupNumber;
        ULONG                           InodeBlockNumber;
@@ -970,7 +970,7 @@ BOOL Ext2ReadInode(ULONG Inode, PEXT2_INODE InodeBuffer)
        return TRUE;
 }
 
        return TRUE;
 }
 
-BOOL Ext2ReadGroupDescriptor(ULONG Group, PEXT2_GROUP_DESC GroupBuffer)
+BOOLEAN Ext2ReadGroupDescriptor(ULONG Group, PEXT2_GROUP_DESC GroupBuffer)
 {
        DbgPrint((DPRINT_FILESYSTEM, "Ext2ReadGroupDescriptor()\n"));
 
 {
        DbgPrint((DPRINT_FILESYSTEM, "Ext2ReadGroupDescriptor()\n"));
 
@@ -1076,7 +1076,7 @@ ULONGLONG Ext2GetInodeFileSize(PEXT2_INODE Inode)
        }
 }
 
        }
 }
 
-BOOL Ext2CopyIndirectBlockPointers(ULONG* BlockList, ULONG* CurrentBlockInList, ULONG BlockCount, ULONG IndirectBlock)
+BOOLEAN Ext2CopyIndirectBlockPointers(ULONG* BlockList, ULONG* CurrentBlockInList, ULONG BlockCount, ULONG IndirectBlock)
 {
        ULONG*  BlockBuffer = (ULONG*)FILESYSBUFFER;
        ULONG           CurrentBlock;
 {
        ULONG*  BlockBuffer = (ULONG*)FILESYSBUFFER;
        ULONG           CurrentBlock;
@@ -1100,7 +1100,7 @@ BOOL Ext2CopyIndirectBlockPointers(ULONG* BlockList, ULONG* CurrentBlockInList,
        return TRUE;
 }
 
        return TRUE;
 }
 
-BOOL Ext2CopyDoubleIndirectBlockPointers(ULONG* BlockList, ULONG* CurrentBlockInList, ULONG BlockCount, ULONG DoubleIndirectBlock)
+BOOLEAN Ext2CopyDoubleIndirectBlockPointers(ULONG* BlockList, ULONG* CurrentBlockInList, ULONG BlockCount, ULONG DoubleIndirectBlock)
 {
        ULONG*  BlockBuffer;
        ULONG           CurrentBlock;
 {
        ULONG*  BlockBuffer;
        ULONG           CurrentBlock;
@@ -1135,7 +1135,7 @@ BOOL Ext2CopyDoubleIndirectBlockPointers(ULONG* BlockList, ULONG* CurrentBlockIn
        return TRUE;
 }
 
        return TRUE;
 }
 
-BOOL Ext2CopyTripleIndirectBlockPointers(ULONG* BlockList, ULONG* CurrentBlockInList, ULONG BlockCount, ULONG TripleIndirectBlock)
+BOOLEAN Ext2CopyTripleIndirectBlockPointers(ULONG* BlockList, ULONG* CurrentBlockInList, ULONG BlockCount, ULONG TripleIndirectBlock)
 {
        ULONG*  BlockBuffer;
        ULONG           CurrentBlock;
 {
        ULONG*  BlockBuffer;
        ULONG           CurrentBlock;
index b068641..c3e2744 100644 (file)
@@ -37,7 +37,7 @@ ULONG                 DataSectorStart;                /* Starting sector of the data area */
 ULONG                  FatType = 0;                    /* FAT12, FAT16, FAT32, FATX16 or FATX32 */
 ULONG                  FatDriveNumber = 0;
 
 ULONG                  FatType = 0;                    /* FAT12, FAT16, FAT32, FATX16 or FATX32 */
 ULONG                  FatDriveNumber = 0;
 
-BOOL FatOpenVolume(ULONG DriveNumber, ULONG VolumeStartSector, ULONG PartitionSectorCount)
+BOOLEAN FatOpenVolume(ULONG DriveNumber, ULONG VolumeStartSector, ULONG PartitionSectorCount)
 {
        char ErrMsg[80];
        ULONG FatSize;
 {
        char ErrMsg[80];
        ULONG FatSize;
@@ -336,7 +336,7 @@ ULONG FatDetermineFatType(PFAT_BOOTSECTOR FatBootSector, ULONG PartitionSectorCo
        }
 }
 
        }
 }
 
-PVOID FatBufferDirectory(ULONG DirectoryStartCluster, ULONG *DirectorySize, BOOL RootDirectory)
+PVOID FatBufferDirectory(ULONG DirectoryStartCluster, ULONG *DirectorySize, BOOLEAN RootDirectory)
 {
        PVOID   DirectoryBuffer;
 
 {
        PVOID   DirectoryBuffer;
 
@@ -398,7 +398,7 @@ PVOID FatBufferDirectory(ULONG DirectoryStartCluster, ULONG *DirectorySize, BOOL
        return DirectoryBuffer;
 }
 
        return DirectoryBuffer;
 }
 
-BOOL FatSearchDirectoryBufferForFile(PVOID DirectoryBuffer, ULONG DirectorySize, PCHAR FileName, PFAT_FILE_INFO FatFileInfoPointer)
+BOOLEAN FatSearchDirectoryBufferForFile(PVOID DirectoryBuffer, ULONG DirectorySize, PCHAR FileName, PFAT_FILE_INFO FatFileInfoPointer)
 {
        ULONG           EntryCount;
        ULONG           CurrentEntry;
 {
        ULONG           EntryCount;
        ULONG           CurrentEntry;
@@ -609,7 +609,7 @@ BOOL FatSearchDirectoryBufferForFile(PVOID DirectoryBuffer, ULONG DirectorySize,
        return FALSE;
 }
 
        return FALSE;
 }
 
-static BOOL FatXSearchDirectoryBufferForFile(PVOID DirectoryBuffer, ULONG DirectorySize, PCHAR FileName, PFAT_FILE_INFO FatFileInfoPointer)
+static BOOLEAN FatXSearchDirectoryBufferForFile(PVOID DirectoryBuffer, ULONG DirectorySize, PCHAR FileName, PFAT_FILE_INFO FatFileInfoPointer)
 {
        ULONG           EntryCount;
        ULONG           CurrentEntry;
 {
        ULONG           EntryCount;
        ULONG           CurrentEntry;
@@ -680,7 +680,7 @@ static BOOL FatXSearchDirectoryBufferForFile(PVOID DirectoryBuffer, ULONG Direct
  * with info describing the file, etc. returns true
  * if the file exists or false otherwise
  */
  * with info describing the file, etc. returns true
  * if the file exists or false otherwise
  */
-BOOL FatLookupFile(PCSTR FileName, PFAT_FILE_INFO FatFileInfoPointer)
+BOOLEAN FatLookupFile(PCSTR FileName, PFAT_FILE_INFO FatFileInfoPointer)
 {
        UINT            i;
        ULONG           NumberOfPathParts;
 {
        UINT            i;
        ULONG           NumberOfPathParts;
@@ -817,7 +817,7 @@ void FatParseShortFileName(PCHAR Buffer, PDIRENTRY DirEntry)
  * FatGetFatEntry()
  * returns the Fat entry for a given cluster number
  */
  * FatGetFatEntry()
  * returns the Fat entry for a given cluster number
  */
-BOOL FatGetFatEntry(ULONG Cluster, ULONG* ClusterPointer)
+BOOLEAN FatGetFatEntry(ULONG Cluster, ULONG* ClusterPointer)
 {
        ULONG           fat = 0;
        UINT            FatOffset;
 {
        ULONG           fat = 0;
        UINT            FatOffset;
@@ -1029,7 +1029,7 @@ ULONG* FatGetClusterChainArray(ULONG StartCluster)
  * FatReadCluster()
  * Reads the specified cluster into memory
  */
  * FatReadCluster()
  * Reads the specified cluster into memory
  */
-BOOL FatReadCluster(ULONG ClusterNumber, PVOID Buffer)
+BOOLEAN FatReadCluster(ULONG ClusterNumber, PVOID Buffer)
 {
        ULONG           ClusterStartSector;
 
 {
        ULONG           ClusterStartSector;
 
@@ -1051,7 +1051,7 @@ BOOL FatReadCluster(ULONG ClusterNumber, PVOID Buffer)
  * FatReadClusterChain()
  * Reads the specified clusters into memory
  */
  * FatReadClusterChain()
  * Reads the specified clusters into memory
  */
-BOOL FatReadClusterChain(ULONG StartClusterNumber, ULONG NumberOfClusters, PVOID Buffer)
+BOOLEAN FatReadClusterChain(ULONG StartClusterNumber, ULONG NumberOfClusters, PVOID Buffer)
 {
        ULONG           ClusterStartSector;
 
 {
        ULONG           ClusterStartSector;
 
@@ -1112,7 +1112,7 @@ BOOL FatReadClusterChain(ULONG StartClusterNumber, ULONG NumberOfClusters, PVOID
  * FatReadPartialCluster()
  * Reads part of a cluster into memory
  */
  * FatReadPartialCluster()
  * Reads part of a cluster into memory
  */
-BOOL FatReadPartialCluster(ULONG ClusterNumber, ULONG StartingOffset, ULONG Length, PVOID Buffer)
+BOOLEAN FatReadPartialCluster(ULONG ClusterNumber, ULONG StartingOffset, ULONG Length, PVOID Buffer)
 {
        ULONG           ClusterStartSector;
 
 {
        ULONG           ClusterStartSector;
 
@@ -1135,7 +1135,7 @@ BOOL FatReadPartialCluster(ULONG ClusterNumber, ULONG StartingOffset, ULONG Leng
  * Reads BytesToRead from open file and
  * returns the number of bytes read in BytesRead
  */
  * Reads BytesToRead from open file and
  * returns the number of bytes read in BytesRead
  */
-BOOL FatReadFile(FILE *FileHandle, ULONG BytesToRead, ULONG* BytesRead, PVOID Buffer)
+BOOLEAN FatReadFile(FILE *FileHandle, ULONG BytesToRead, ULONG* BytesRead, PVOID Buffer)
 {
        PFAT_FILE_INFO  FatFileInfo = (PFAT_FILE_INFO)FileHandle;
        ULONG                   ClusterNumber;
 {
        PFAT_FILE_INFO  FatFileInfo = (PFAT_FILE_INFO)FileHandle;
        ULONG                   ClusterNumber;
@@ -1316,7 +1316,7 @@ ULONG FatGetFilePointer(FILE *FileHandle)
        return FatFileHandle->FilePointer;
 }
 
        return FatFileHandle->FilePointer;
 }
 
-BOOL FatReadVolumeSectors(ULONG DriveNumber, ULONG SectorNumber, ULONG SectorCount, PVOID Buffer)
+BOOLEAN FatReadVolumeSectors(ULONG DriveNumber, ULONG SectorNumber, ULONG SectorCount, PVOID Buffer)
 {
        return CacheReadDiskSectors(DriveNumber, SectorNumber + FatVolumeStartSector, SectorCount, Buffer);
 }
 {
        return CacheReadDiskSectors(DriveNumber, SectorNumber + FatVolumeStartSector, SectorCount, Buffer);
 }
index b6234fa..6cc669a 100644 (file)
@@ -41,13 +41,13 @@ VOID FileSystemError(PCSTR ErrorString)
 
 /*
  *
 
 /*
  *
- * BOOL FsOpenVolume(ULONG DriveNumber, ULONGLONG StartSector, ULONGLONG SectorCount, int Type);
+ * BOOLEAN FsOpenVolume(ULONG DriveNumber, ULONGLONG StartSector, ULONGLONG SectorCount, int Type);
  *
  * This function is called to open a disk volume for file access.
  * It must be called before any of the file functions will work.
  *
  */
  *
  * This function is called to open a disk volume for file access.
  * It must be called before any of the file functions will work.
  *
  */
-static BOOL FsOpenVolume(ULONG DriveNumber, ULONGLONG StartSector, ULONGLONG SectorCount, int Type)
+static BOOLEAN FsOpenVolume(ULONG DriveNumber, ULONGLONG StartSector, ULONGLONG SectorCount, int Type)
 {
        CHAR ErrorText[80];
 
 {
        CHAR ErrorText[80];
 
@@ -73,12 +73,12 @@ static BOOL FsOpenVolume(ULONG DriveNumber, ULONGLONG StartSector, ULONGLONG Sec
 }
 /*
  *
 }
 /*
  *
- * BOOL FsOpenBootVolume()
+ * BOOLEAN FsOpenBootVolume()
  *
  * This function is called to open the boot disk volume for file access.
  * It must be called before any of the file functions will work.
  */
  *
  * This function is called to open the boot disk volume for file access.
  * It must be called before any of the file functions will work.
  */
-BOOL FsOpenBootVolume()
+BOOLEAN FsOpenBootVolume()
 {
        ULONG DriveNumber;
        ULONGLONG StartSector;
 {
        ULONG DriveNumber;
        ULONGLONG StartSector;
@@ -94,7 +94,7 @@ BOOL FsOpenBootVolume()
        return FsOpenVolume(DriveNumber, StartSector, SectorCount, Type);
 }
 
        return FsOpenVolume(DriveNumber, StartSector, SectorCount, Type);
 }
 
-BOOL FsOpenSystemVolume(char *SystemPath, char *RemainingPath, PULONG Device)
+BOOLEAN FsOpenSystemVolume(char *SystemPath, char *RemainingPath, PULONG Device)
 {
        ULONG DriveNumber;
        ULONGLONG StartSector;
 {
        ULONG DriveNumber;
        ULONGLONG StartSector;
@@ -177,10 +177,10 @@ VOID FsCloseFile(PFILE FileHandle)
  * ReadFile()
  * returns number of bytes read or EOF
  */
  * ReadFile()
  * returns number of bytes read or EOF
  */
-BOOL FsReadFile(PFILE FileHandle, ULONG BytesToRead, ULONG* BytesRead, PVOID Buffer)
+BOOLEAN FsReadFile(PFILE FileHandle, ULONG BytesToRead, ULONG* BytesRead, PVOID Buffer)
 {
        ULONGLONG               BytesReadBig;
 {
        ULONGLONG               BytesReadBig;
-       BOOL    Success;
+       BOOLEAN Success;
 
        //
        // Set the number of bytes read equal to zero
 
        //
        // Set the number of bytes read equal to zero
@@ -310,7 +310,7 @@ ULONG FsGetFilePointer(PFILE FileHandle)
        return 0;
 }
 
        return 0;
 }
 
-BOOL FsIsEndOfFile(PFILE FileHandle)
+BOOLEAN FsIsEndOfFile(PFILE FileHandle)
 {
        if (FsGetFilePointer(FileHandle) >= FsGetFileSize(FileHandle))
        {
 {
        if (FsGetFilePointer(FileHandle) >= FsGetFileSize(FileHandle))
        {
index ace0bc8..32a7354 100644 (file)
 
 /*
  *
 
 /*
  *
- * BOOL FsRecognizeVolume(ULONG DriveNumber, ULONG VolumeStartSector, UCHAR* VolumeType);
+ * BOOLEAN FsRecognizeVolume(ULONG DriveNumber, ULONG VolumeStartSector, UCHAR* VolumeType);
  *
  */
  *
  */
-BOOL FsRecognizeVolume(ULONG DriveNumber, ULONG VolumeStartSector, UCHAR* VolumeType)
+BOOLEAN FsRecognizeVolume(ULONG DriveNumber, ULONG VolumeStartSector, UCHAR* VolumeType)
 {
 
        DbgPrint((DPRINT_FILESYSTEM, "FsRecognizeVolume() DriveNumber: 0x%x VolumeStartSector: %d\n", DriveNumber, VolumeStartSector));
 {
 
        DbgPrint((DPRINT_FILESYSTEM, "FsRecognizeVolume() DriveNumber: 0x%x VolumeStartSector: %d\n", DriveNumber, VolumeStartSector));
@@ -55,7 +55,7 @@ BOOL FsRecognizeVolume(ULONG DriveNumber, ULONG VolumeStartSector, UCHAR* Volume
        return FALSE;
 }
 
        return FALSE;
 }
 
-BOOL FsRecIsIso9660(ULONG DriveNumber)
+BOOLEAN FsRecIsIso9660(ULONG DriveNumber)
 {
        PUCHAR Sector = (PUCHAR)DISKREADBUFFER;
 
 {
        PUCHAR Sector = (PUCHAR)DISKREADBUFFER;
 
@@ -73,7 +73,7 @@ BOOL FsRecIsIso9660(ULONG DriveNumber)
                Sector[5] == '1');
 }
 
                Sector[5] == '1');
 }
 
-BOOL FsRecIsExt2(ULONG DriveNumber, ULONG VolumeStartSector)
+BOOLEAN FsRecIsExt2(ULONG DriveNumber, ULONG VolumeStartSector)
 {
        PEXT2_SUPER_BLOCK       SuperBlock = (PEXT2_SUPER_BLOCK)DISKREADBUFFER;
 
 {
        PEXT2_SUPER_BLOCK       SuperBlock = (PEXT2_SUPER_BLOCK)DISKREADBUFFER;
 
@@ -91,7 +91,7 @@ BOOL FsRecIsExt2(ULONG DriveNumber, ULONG VolumeStartSector)
        return FALSE;
 }
 
        return FALSE;
 }
 
-BOOL FsRecIsFat(ULONG DriveNumber, ULONG VolumeStartSector)
+BOOLEAN FsRecIsFat(ULONG DriveNumber, ULONG VolumeStartSector)
 {
        PFAT_BOOTSECTOR BootSector = (PFAT_BOOTSECTOR)DISKREADBUFFER;
        PFAT32_BOOTSECTOR BootSector32 = (PFAT32_BOOTSECTOR)DISKREADBUFFER;
 {
        PFAT_BOOTSECTOR BootSector = (PFAT_BOOTSECTOR)DISKREADBUFFER;
        PFAT32_BOOTSECTOR BootSector32 = (PFAT32_BOOTSECTOR)DISKREADBUFFER;
@@ -113,7 +113,7 @@ BOOL FsRecIsFat(ULONG DriveNumber, ULONG VolumeStartSector)
        return FALSE;
 }
 
        return FALSE;
 }
 
-BOOL FsRecIsNtfs(ULONG DriveNumber, ULONG VolumeStartSector)
+BOOLEAN FsRecIsNtfs(ULONG DriveNumber, ULONG VolumeStartSector)
 {
        PNTFS_BOOTSECTOR BootSector = (PNTFS_BOOTSECTOR)DISKREADBUFFER;
        if (!MachDiskReadLogicalSectors(DriveNumber, VolumeStartSector, 1, BootSector))
 {
        PNTFS_BOOTSECTOR BootSector = (PNTFS_BOOTSECTOR)DISKREADBUFFER;
        if (!MachDiskReadLogicalSectors(DriveNumber, VolumeStartSector, 1, BootSector))
index f21b7a2..2f475a7 100644 (file)
@@ -30,7 +30,7 @@ static ULONG          IsoRootLength;          // Length of the root directory
 ULONG                  IsoDriveNumber = 0;
 
 
 ULONG                  IsoDriveNumber = 0;
 
 
-BOOL IsoOpenVolume(ULONG DriveNumber)
+BOOLEAN IsoOpenVolume(ULONG DriveNumber)
 {
        PPVD Pvd = (PPVD)DISKREADBUFFER;
 
 {
        PPVD Pvd = (PPVD)DISKREADBUFFER;
 
@@ -57,7 +57,7 @@ BOOL IsoOpenVolume(ULONG DriveNumber)
 }
 
 
 }
 
 
-static BOOL IsoSearchDirectoryBufferForFile(PVOID DirectoryBuffer, ULONG DirectoryLength, PCHAR FileName, PISO_FILE_INFO IsoFileInfoPointer)
+static BOOLEAN IsoSearchDirectoryBufferForFile(PVOID DirectoryBuffer, ULONG DirectoryLength, PCHAR FileName, PISO_FILE_INFO IsoFileInfoPointer)
 {
        PDIR_RECORD     Record;
        ULONG           Offset;
 {
        PDIR_RECORD     Record;
        ULONG           Offset;
@@ -172,7 +172,7 @@ static PVOID IsoBufferDirectory(ULONG DirectoryStartSector, ULONG DirectoryLengt
  * with info describing the file, etc. returns true
  * if the file exists or false otherwise
  */
  * with info describing the file, etc. returns true
  * if the file exists or false otherwise
  */
-static BOOL IsoLookupFile(PCSTR FileName, PISO_FILE_INFO IsoFileInfoPointer)
+static BOOLEAN IsoLookupFile(PCSTR FileName, PISO_FILE_INFO IsoFileInfoPointer)
 {
        UINT            i;
        ULONG                   NumberOfPathParts;
 {
        UINT            i;
        ULONG                   NumberOfPathParts;
@@ -285,7 +285,7 @@ FILE* IsoOpenFile(PCSTR FileName)
  * Reads BytesToRead from open file and
  * returns the number of bytes read in BytesRead
  */
  * Reads BytesToRead from open file and
  * returns the number of bytes read in BytesRead
  */
-BOOL IsoReadFile(FILE *FileHandle, ULONG BytesToRead, ULONG* BytesRead, PVOID Buffer)
+BOOLEAN IsoReadFile(FILE *FileHandle, ULONG BytesToRead, ULONG* BytesRead, PVOID Buffer)
 {
        PISO_FILE_INFO  IsoFileInfo = (PISO_FILE_INFO)FileHandle;
        ULONG           SectorNumber;
 {
        PISO_FILE_INFO  IsoFileInfo = (PISO_FILE_INFO)FileHandle;
        ULONG           SectorNumber;
index d941f01..7a450c7 100644 (file)
@@ -80,7 +80,7 @@ static PUCHAR NtfsDecodeRun(PUCHAR DataRun, LONGLONG *DataRunOffset, ULONGLONG *
 }
 
 /* FIXME: Add support for attribute lists! */
 }
 
 /* FIXME: Add support for attribute lists! */
-static BOOL NtfsFindAttribute(PNTFS_ATTR_CONTEXT Context, PNTFS_MFT_RECORD MftRecord, ULONG Type, const WCHAR *Name)
+static BOOLEAN NtfsFindAttribute(PNTFS_ATTR_CONTEXT Context, PNTFS_MFT_RECORD MftRecord, ULONG Type, const WCHAR *Name)
 {
     PNTFS_ATTR_RECORD AttrRecord;
     PNTFS_ATTR_RECORD AttrRecordEnd;
 {
     PNTFS_ATTR_RECORD AttrRecord;
     PNTFS_ATTR_RECORD AttrRecordEnd;
@@ -141,7 +141,7 @@ static BOOL NtfsFindAttribute(PNTFS_ATTR_CONTEXT Context, PNTFS_MFT_RECORD MftRe
 }
 
 /* FIXME: Optimize for multisector reads. */
 }
 
 /* FIXME: Optimize for multisector reads. */
-static BOOL NtfsDiskRead(ULONGLONG Offset, ULONGLONG Length, PCHAR Buffer)
+static BOOLEAN NtfsDiskRead(ULONGLONG Offset, ULONGLONG Length, PCHAR Buffer)
 {
     USHORT ReadLength;
 
 {
     USHORT ReadLength;
 
@@ -307,7 +307,7 @@ static ULONGLONG NtfsReadAttribute(PNTFS_ATTR_CONTEXT Context, ULONGLONG Offset,
     return AlreadyRead;
 }
 
     return AlreadyRead;
 }
 
-static BOOL NtfsFixupRecord(PNTFS_RECORD Record)
+static BOOLEAN NtfsFixupRecord(PNTFS_RECORD Record)
 {
     USHORT *USA;
     USHORT USANumber;
 {
     USHORT *USA;
     USHORT USANumber;
@@ -331,7 +331,7 @@ static BOOL NtfsFixupRecord(PNTFS_RECORD Record)
     return TRUE;
 }
 
     return TRUE;
 }
 
-static BOOL NtfsReadMftRecord(ULONG MFTIndex, PNTFS_MFT_RECORD Buffer)
+static BOOLEAN NtfsReadMftRecord(ULONG MFTIndex, PNTFS_MFT_RECORD Buffer)
 {
     ULONGLONG BytesRead;
 
 {
     ULONGLONG BytesRead;
 
@@ -362,7 +362,7 @@ VOID NtfsPrintFile(PNTFS_INDEX_ENTRY IndexEntry)
 }
 #endif
 
 }
 #endif
 
-static BOOL NtfsCompareFileName(PCHAR FileName, PNTFS_INDEX_ENTRY IndexEntry)
+static BOOLEAN NtfsCompareFileName(PCHAR FileName, PNTFS_INDEX_ENTRY IndexEntry)
 {
     PWCHAR EntryFileName;
     UCHAR EntryFileNameLength;
 {
     PWCHAR EntryFileName;
     UCHAR EntryFileNameLength;
@@ -395,7 +395,7 @@ static BOOL NtfsCompareFileName(PCHAR FileName, PNTFS_INDEX_ENTRY IndexEntry)
     return TRUE;
 }
 
     return TRUE;
 }
 
-static BOOL NtfsFindMftRecord(ULONG MFTIndex, PCHAR FileName, ULONG *OutMFTIndex)
+static BOOLEAN NtfsFindMftRecord(ULONG MFTIndex, PCHAR FileName, ULONG *OutMFTIndex)
 {
     PNTFS_MFT_RECORD MftRecord;
     ULONG Magic;
 {
     PNTFS_MFT_RECORD MftRecord;
     ULONG Magic;
@@ -556,7 +556,7 @@ static BOOL NtfsFindMftRecord(ULONG MFTIndex, PCHAR FileName, ULONG *OutMFTIndex
     return FALSE;
 }
 
     return FALSE;
 }
 
-static BOOL NtfsLookupFile(PCSTR FileName, PNTFS_MFT_RECORD MftRecord, PNTFS_ATTR_CONTEXT DataContext)
+static BOOLEAN NtfsLookupFile(PCSTR FileName, PNTFS_MFT_RECORD MftRecord, PNTFS_ATTR_CONTEXT DataContext)
 {
     ULONG NumberOfPathParts;
     CHAR PathPart[261];
 {
     ULONG NumberOfPathParts;
     CHAR PathPart[261];
@@ -599,7 +599,7 @@ static BOOL NtfsLookupFile(PCSTR FileName, PNTFS_MFT_RECORD MftRecord, PNTFS_ATT
     return TRUE;
 }
 
     return TRUE;
 }
 
-BOOL NtfsOpenVolume(ULONG DriveNumber, ULONG VolumeStartSector)
+BOOLEAN NtfsOpenVolume(ULONG DriveNumber, ULONG VolumeStartSector)
 {
     NtfsBootSector = (PNTFS_BOOTSECTOR)DISKREADBUFFER;
 
 {
     NtfsBootSector = (PNTFS_BOOTSECTOR)DISKREADBUFFER;
 
@@ -696,7 +696,7 @@ FILE* NtfsOpenFile(PCSTR FileName)
     return (FILE*)FileHandle;
 }
 
     return (FILE*)FileHandle;
 }
 
-BOOL NtfsReadFile(FILE *File, ULONG BytesToRead, ULONG* BytesRead, PVOID Buffer)
+BOOLEAN NtfsReadFile(FILE *File, ULONG BytesToRead, ULONG* BytesRead, PVOID Buffer)
 {
     PNTFS_FILE_HANDLE FileHandle = (PNTFS_FILE_HANDLE)File;
     ULONGLONG BytesRead64;
 {
     PNTFS_FILE_HANDLE FileHandle = (PNTFS_FILE_HANDLE)File;
     ULONGLONG BytesRead64;
index 90067bd..ec4106b 100644 (file)
 extern ULONG i386BootDrive;
 extern ULONG i386BootPartition;
 
 extern ULONG i386BootDrive;
 extern ULONG i386BootPartition;
 
-extern BOOL i386DiskGetBootVolume(PULONG DriveNumber, PULONGLONG StartSector,
+extern BOOLEAN i386DiskGetBootVolume(PULONG DriveNumber, PULONGLONG StartSector,
                                   PULONGLONG SectorCount, int *FsType);
                                   PULONGLONG SectorCount, int *FsType);
-extern BOOL i386DiskGetSystemVolume(char *SystemPath, char *RemainingPath,
+extern BOOLEAN i386DiskGetSystemVolume(char *SystemPath, char *RemainingPath,
                                     PULONG Device, PULONG DriveNumber,
                                     PULONGLONG StartSector,
                                     PULONGLONG SectorCount, int *FsType);
                                     PULONG Device, PULONG DriveNumber,
                                     PULONGLONG StartSector,
                                     PULONGLONG SectorCount, int *FsType);
-extern BOOL i386DiskGetBootPath(char *BootPath, unsigned Size);
+extern BOOLEAN i386DiskGetBootPath(char *BootPath, unsigned Size);
 extern VOID i386DiskGetBootDevice(PULONG BootDevice);
 extern VOID i386DiskGetBootDevice(PULONG BootDevice);
-extern BOOL i386DiskBootingFromFloppy(VOID);
-extern BOOL i386DiskNormalizeSystemPath(char *SystemPath, unsigned Size);
+extern BOOLEAN i386DiskBootingFromFloppy(VOID);
+extern BOOLEAN i386DiskNormalizeSystemPath(char *SystemPath, unsigned Size);
 
 #endif /* __I386_I386_H_ */
 
 
 #endif /* __I386_I386_H_ */
 
index 85c9ca8..c87e756 100644 (file)
 VOID PcMachInit(const char *CmdLine);
 
 VOID PcConsPutChar(int Ch);
 VOID PcMachInit(const char *CmdLine);
 
 VOID PcConsPutChar(int Ch);
-BOOL PcConsKbHit();
+BOOLEAN PcConsKbHit();
 int PcConsGetCh();
 
 VOID PcVideoClearScreen(UCHAR Attr);
 int PcConsGetCh();
 
 VOID PcVideoClearScreen(UCHAR Attr);
-VIDEODISPLAYMODE PcVideoSetDisplayMode(char *DisplayMode, BOOL Init);
+VIDEODISPLAYMODE PcVideoSetDisplayMode(char *DisplayMode, BOOLEAN Init);
 VOID PcVideoGetDisplaySize(PULONG Width, PULONG Height, PULONG Depth);
 ULONG PcVideoGetBufferSize(VOID);
 VOID PcVideoSetTextCursorPosition(ULONG X, ULONG Y);
 VOID PcVideoGetDisplaySize(PULONG Width, PULONG Height, PULONG Depth);
 ULONG PcVideoGetBufferSize(VOID);
 VOID PcVideoSetTextCursorPosition(ULONG X, ULONG Y);
-VOID PcVideoHideShowTextCursor(BOOL Show);
+VOID PcVideoHideShowTextCursor(BOOLEAN Show);
 VOID PcVideoPutChar(int Ch, UCHAR Attr, unsigned X, unsigned Y);
 VOID PcVideoCopyOffScreenBufferToVRAM(PVOID Buffer);
 VOID PcVideoPutChar(int Ch, UCHAR Attr, unsigned X, unsigned Y);
 VOID PcVideoCopyOffScreenBufferToVRAM(PVOID Buffer);
-BOOL PcVideoIsPaletteFixed(VOID);
+BOOLEAN PcVideoIsPaletteFixed(VOID);
 VOID PcVideoSetPaletteColor(UCHAR Color, UCHAR Red, UCHAR Green, UCHAR Blue);
 VOID PcVideoGetPaletteColor(UCHAR Color, UCHAR* Red, UCHAR* Green, UCHAR* Blue);
 VOID PcVideoSync(VOID);
 VOID PcVideoSetPaletteColor(UCHAR Color, UCHAR Red, UCHAR Green, UCHAR Blue);
 VOID PcVideoGetPaletteColor(UCHAR Color, UCHAR* Red, UCHAR* Green, UCHAR* Blue);
 VOID PcVideoSync(VOID);
@@ -48,9 +48,9 @@ VOID PcVideoPrepareForReactOS(VOID);
 
 ULONG PcMemGetMemoryMap(PBIOS_MEMORY_MAP BiosMemoryMap, ULONG MaxMemoryMapSize);
 
 
 ULONG PcMemGetMemoryMap(PBIOS_MEMORY_MAP BiosMemoryMap, ULONG MaxMemoryMapSize);
 
-BOOL PcDiskReadLogicalSectors(ULONG DriveNumber, ULONGLONG SectorNumber, ULONG SectorCount, PVOID Buffer);
-BOOL PcDiskGetPartitionEntry(ULONG DriveNumber, ULONG PartitionNumber, PPARTITION_TABLE_ENTRY PartitionTableEntry);
-BOOL PcDiskGetDriveGeometry(ULONG DriveNumber, PGEOMETRY DriveGeometry);
+BOOLEAN PcDiskReadLogicalSectors(ULONG DriveNumber, ULONGLONG SectorNumber, ULONG SectorCount, PVOID Buffer);
+BOOLEAN PcDiskGetPartitionEntry(ULONG DriveNumber, ULONG PartitionNumber, PPARTITION_TABLE_ENTRY PartitionTableEntry);
+BOOLEAN PcDiskGetDriveGeometry(ULONG DriveNumber, PGEOMETRY DriveGeometry);
 ULONG PcDiskGetCacheableBlockCount(ULONG DriveNumber);
 
 VOID PcRTCGetCurrentDateTime(PULONG Year, PULONG Month, PULONG Day, PULONG Hour, PULONG Minute, PULONG Second);
 ULONG PcDiskGetCacheableBlockCount(ULONG DriveNumber);
 
 VOID PcRTCGetCurrentDateTime(PULONG Year, PULONG Month, PULONG Day, PULONG Hour, PULONG Minute, PULONG Second);
index fef0ca5..4f24dab 100644 (file)
@@ -29,19 +29,19 @@ UCHAR XboxFont8x16[256 * 16];
 VOID XboxMachInit(const char *CmdLine);
 
 VOID XboxConsPutChar(int Ch);
 VOID XboxMachInit(const char *CmdLine);
 
 VOID XboxConsPutChar(int Ch);
-BOOL XboxConsKbHit();
+BOOLEAN XboxConsKbHit();
 int XboxConsGetCh();
 
 VOID XboxVideoInit(VOID);
 VOID XboxVideoClearScreen(UCHAR Attr);
 int XboxConsGetCh();
 
 VOID XboxVideoInit(VOID);
 VOID XboxVideoClearScreen(UCHAR Attr);
-VIDEODISPLAYMODE XboxVideoSetDisplayMode(char *DisplayModem, BOOL Init);
+VIDEODISPLAYMODE XboxVideoSetDisplayMode(char *DisplayModem, BOOLEAN Init);
 VOID XboxVideoGetDisplaySize(PULONG Width, PULONG Height, PULONG Depth);
 ULONG XboxVideoGetBufferSize(VOID);
 VOID XboxVideoSetTextCursorPosition(ULONG X, ULONG Y);
 VOID XboxVideoGetDisplaySize(PULONG Width, PULONG Height, PULONG Depth);
 ULONG XboxVideoGetBufferSize(VOID);
 VOID XboxVideoSetTextCursorPosition(ULONG X, ULONG Y);
-VOID XboxVideoHideShowTextCursor(BOOL Show);
+VOID XboxVideoHideShowTextCursor(BOOLEAN Show);
 VOID XboxVideoPutChar(int Ch, UCHAR Attr, unsigned X, unsigned Y);
 VOID XboxVideoCopyOffScreenBufferToVRAM(PVOID Buffer);
 VOID XboxVideoPutChar(int Ch, UCHAR Attr, unsigned X, unsigned Y);
 VOID XboxVideoCopyOffScreenBufferToVRAM(PVOID Buffer);
-BOOL XboxVideoIsPaletteFixed(VOID);
+BOOLEAN XboxVideoIsPaletteFixed(VOID);
 VOID XboxVideoSetPaletteColor(UCHAR Color, UCHAR Red, UCHAR Green, UCHAR Blue);
 VOID XboxVideoGetPaletteColor(UCHAR Color, UCHAR* Red, UCHAR* Green, UCHAR* Blue);
 VOID XboxVideoSync(VOID);
 VOID XboxVideoSetPaletteColor(UCHAR Color, UCHAR Red, UCHAR Green, UCHAR Blue);
 VOID XboxVideoGetPaletteColor(UCHAR Color, UCHAR* Red, UCHAR* Green, UCHAR* Blue);
 VOID XboxVideoSync(VOID);
@@ -51,9 +51,9 @@ VOID XboxMemInit(VOID);
 PVOID XboxMemReserveMemory(ULONG MbToReserve);
 ULONG XboxMemGetMemoryMap(PBIOS_MEMORY_MAP BiosMemoryMap, ULONG MaxMemoryMapSize);
 
 PVOID XboxMemReserveMemory(ULONG MbToReserve);
 ULONG XboxMemGetMemoryMap(PBIOS_MEMORY_MAP BiosMemoryMap, ULONG MaxMemoryMapSize);
 
-BOOL XboxDiskReadLogicalSectors(ULONG DriveNumber, ULONGLONG SectorNumber, ULONG SectorCount, PVOID Buffer);
-BOOL XboxDiskGetPartitionEntry(ULONG DriveNumber, ULONG PartitionNumber, PPARTITION_TABLE_ENTRY PartitionTableEntry);
-BOOL XboxDiskGetDriveGeometry(ULONG DriveNumber, PGEOMETRY DriveGeometry);
+BOOLEAN XboxDiskReadLogicalSectors(ULONG DriveNumber, ULONGLONG SectorNumber, ULONG SectorCount, PVOID Buffer);
+BOOLEAN XboxDiskGetPartitionEntry(ULONG DriveNumber, ULONG PartitionNumber, PPARTITION_TABLE_ENTRY PartitionTableEntry);
+BOOLEAN XboxDiskGetDriveGeometry(ULONG DriveNumber, PGEOMETRY DriveGeometry);
 ULONG XboxDiskGetCacheableBlockCount(ULONG DriveNumber);
 
 VOID XboxRTCGetCurrentDateTime(PULONG Year, PULONG Month, PULONG Day, PULONG Hour, PULONG Minute, PULONG Second);
 ULONG XboxDiskGetCacheableBlockCount(ULONG DriveNumber);
 
 VOID XboxRTCGetCurrentDateTime(PULONG Year, PULONG Month, PULONG Day, PULONG Hour, PULONG Minute, PULONG Second);
index 9945c9f..7049983 100644 (file)
@@ -23,7 +23,7 @@
 
 ULONG          GetDefaultOperatingSystem(PCSTR OperatingSystemList[], ULONG OperatingSystemCount);
 LONG           GetTimeOut(VOID);
 
 ULONG          GetDefaultOperatingSystem(PCSTR OperatingSystemList[], ULONG OperatingSystemCount);
 LONG           GetTimeOut(VOID);
-BOOL   MainBootMenuKeyPressFilter(ULONG KeyPress);
+BOOLEAN        MainBootMenuKeyPressFilter(ULONG KeyPress);
 
 
 #endif // #defined __BOOTMGR_H
 
 
 #endif // #defined __BOOTMGR_H
index 3e96e7d..7c5db27 100644 (file)
@@ -35,7 +35,7 @@ typedef struct
        LIST_ITEM       ListEntry;                                      // Doubly linked list synchronization member
 
        ULONG                   BlockNumber;                            // Track index for CHS, 64k block index for LBA
        LIST_ITEM       ListEntry;                                      // Doubly linked list synchronization member
 
        ULONG                   BlockNumber;                            // Track index for CHS, 64k block index for LBA
-       BOOL            LockedInCache;                          // Indicates that this block is locked in cache memory
+       BOOLEAN         LockedInCache;                          // Indicates that this block is locked in cache memory
        ULONG                   AccessCount;                            // Access count for this block
 
        PVOID           BlockData;                                      // Pointer to block data
        ULONG                   AccessCount;                            // Access count for this block
 
        PVOID           BlockData;                                      // Pointer to block data
@@ -66,7 +66,7 @@ typedef struct
 //
 ///////////////////////////////////////////////////////////////////////////////////////
 extern CACHE_DRIVE             CacheManagerDrive;
 //
 ///////////////////////////////////////////////////////////////////////////////////////
 extern CACHE_DRIVE             CacheManagerDrive;
-extern BOOL                    CacheManagerInitialized;
+extern BOOLEAN                 CacheManagerInitialized;
 extern ULONG                           CacheBlockCount;
 extern ULONG                           CacheSizeLimit;
 extern ULONG                           CacheSizeCurrent;
 extern ULONG                           CacheBlockCount;
 extern ULONG                           CacheSizeLimit;
 extern ULONG                           CacheSizeCurrent;
@@ -79,16 +79,16 @@ extern      ULONG                           CacheSizeCurrent;
 PCACHE_BLOCK   CacheInternalGetBlockPointer(PCACHE_DRIVE CacheDrive, ULONG BlockNumber);                               // Returns a pointer to a CACHE_BLOCK structure given a block number
 PCACHE_BLOCK   CacheInternalFindBlock(PCACHE_DRIVE CacheDrive, ULONG BlockNumber);                                     // Searches the block list for a particular block
 PCACHE_BLOCK   CacheInternalAddBlockToCache(PCACHE_DRIVE CacheDrive, ULONG BlockNumber);                               // Adds a block to the cache's block list
 PCACHE_BLOCK   CacheInternalGetBlockPointer(PCACHE_DRIVE CacheDrive, ULONG BlockNumber);                               // Returns a pointer to a CACHE_BLOCK structure given a block number
 PCACHE_BLOCK   CacheInternalFindBlock(PCACHE_DRIVE CacheDrive, ULONG BlockNumber);                                     // Searches the block list for a particular block
 PCACHE_BLOCK   CacheInternalAddBlockToCache(PCACHE_DRIVE CacheDrive, ULONG BlockNumber);                               // Adds a block to the cache's block list
-BOOL                   CacheInternalFreeBlock(PCACHE_DRIVE CacheDrive);                                                                        // Removes a block from the cache's block list & frees the memory
+BOOLEAN                        CacheInternalFreeBlock(PCACHE_DRIVE CacheDrive);                                                                        // Removes a block from the cache's block list & frees the memory
 VOID                   CacheInternalCheckCacheSizeLimits(PCACHE_DRIVE CacheDrive);                                                     // Checks the cache size limits to see if we can add a new block, if not calls CacheInternalFreeBlock()
 VOID                   CacheInternalDumpBlockList(PCACHE_DRIVE CacheDrive);                                                            // Dumps the list of cached blocks to the debug output port
 VOID                   CacheInternalOptimizeBlockList(PCACHE_DRIVE CacheDrive, PCACHE_BLOCK CacheBlock);       // Moves the specified block to the head of the list
 
 
 VOID                   CacheInternalCheckCacheSizeLimits(PCACHE_DRIVE CacheDrive);                                                     // Checks the cache size limits to see if we can add a new block, if not calls CacheInternalFreeBlock()
 VOID                   CacheInternalDumpBlockList(PCACHE_DRIVE CacheDrive);                                                            // Dumps the list of cached blocks to the debug output port
 VOID                   CacheInternalOptimizeBlockList(PCACHE_DRIVE CacheDrive, PCACHE_BLOCK CacheBlock);       // Moves the specified block to the head of the list
 
 
-BOOL   CacheInitializeDrive(ULONG DriveNumber);
+BOOLEAN        CacheInitializeDrive(ULONG DriveNumber);
 VOID   CacheInvalidateCacheData(VOID);
 VOID   CacheInvalidateCacheData(VOID);
-BOOL   CacheReadDiskSectors(ULONG DiskNumber, ULONG StartSector, ULONG SectorCount, PVOID Buffer);
-BOOL   CacheForceDiskSectorsIntoCache(ULONG DiskNumber, ULONG StartSector, ULONG SectorCount);
-BOOL   CacheReleaseMemory(ULONG MinimumAmountToRelease);
+BOOLEAN        CacheReadDiskSectors(ULONG DiskNumber, ULONG StartSector, ULONG SectorCount, PVOID Buffer);
+BOOLEAN        CacheForceDiskSectorsIntoCache(ULONG DiskNumber, ULONG StartSector, ULONG SectorCount);
+BOOLEAN        CacheReleaseMemory(ULONG MinimumAmountToRelease);
 
 #endif // defined __CACHE_H
 
 #endif // defined __CACHE_H
index f044f40..dc881dc 100644 (file)
 #ifndef __RS232_H
 #define __RS232_H
 
 #ifndef __RS232_H
 #define __RS232_H
 
-BOOL Rs232PortInitialize(ULONG ComPort, ULONG BaudRate);
-BOOL Rs232PortGetByte(PUCHAR ByteRecieved);
-BOOL Rs232PortPollByte(PUCHAR ByteRecieved);
+BOOLEAN Rs232PortInitialize(ULONG ComPort, ULONG BaudRate);
+BOOLEAN Rs232PortGetByte(PUCHAR ByteRecieved);
+BOOLEAN Rs232PortPollByte(PUCHAR ByteRecieved);
 VOID Rs232PortPutByte(UCHAR ByteToSend);
 VOID Rs232PortPutByte(UCHAR ByteToSend);
-BOOL Rs232PortInUse(ULONG Base);
+BOOLEAN Rs232PortInUse(ULONG Base);
 
 
 #endif // defined __RS232_H
 
 
 #endif // defined __RS232_H
index a1aee25..7aa01e4 100644 (file)
@@ -106,10 +106,10 @@ typedef struct _MASTER_BOOT_RECORD
 ///////////////////////////////////////////////////////////////////////////////////////
 #ifdef __i386__
 
 ///////////////////////////////////////////////////////////////////////////////////////
 #ifdef __i386__
 
-BOOL   DiskResetController(ULONG DriveNumber);
-BOOL   DiskInt13ExtensionsSupported(ULONG DriveNumber);
+BOOLEAN        DiskResetController(ULONG DriveNumber);
+BOOLEAN        DiskInt13ExtensionsSupported(ULONG DriveNumber);
 //VOID DiskStopFloppyMotor(VOID);
 //VOID DiskStopFloppyMotor(VOID);
-BOOL   DiskGetExtendedDriveParameters(ULONG DriveNumber, PVOID Buffer, USHORT BufferSize);
+BOOLEAN        DiskGetExtendedDriveParameters(ULONG DriveNumber, PVOID Buffer, USHORT BufferSize);
 
 #endif // defined __i386__
 
 
 #endif // defined __i386__
 
@@ -118,11 +118,11 @@ BOOL      DiskGetExtendedDriveParameters(ULONG DriveNumber, PVOID Buffer, USHORT Buff
 // FreeLoader Disk Functions
 //
 ///////////////////////////////////////////////////////////////////////////////////////
 // FreeLoader Disk Functions
 //
 ///////////////////////////////////////////////////////////////////////////////////////
-VOID   DiskReportError (BOOL bError);
+VOID   DiskReportError (BOOLEAN bError);
 VOID   DiskError(PCSTR ErrorString, ULONG ErrorCode);
 PCSTR  DiskGetErrorCodeString(ULONG ErrorCode);
 VOID   DiskError(PCSTR ErrorString, ULONG ErrorCode);
 PCSTR  DiskGetErrorCodeString(ULONG ErrorCode);
-BOOL   DiskReadLogicalSectors(ULONG DriveNumber, ULONGLONG SectorNumber, ULONG SectorCount, PVOID Buffer); // Implemented in i386disk.c
-BOOL   DiskIsDriveRemovable(ULONG DriveNumber);
+BOOLEAN        DiskReadLogicalSectors(ULONG DriveNumber, ULONGLONG SectorNumber, ULONG SectorCount, PVOID Buffer); // Implemented in i386disk.c
+BOOLEAN        DiskIsDriveRemovable(ULONG DriveNumber);
 VOID   DiskStopFloppyMotor(VOID);      // Implemented in i386disk.c
 
 ///////////////////////////////////////////////////////////////////////////////////////
 VOID   DiskStopFloppyMotor(VOID);      // Implemented in i386disk.c
 
 ///////////////////////////////////////////////////////////////////////////////////////
@@ -130,10 +130,10 @@ VOID      DiskStopFloppyMotor(VOID);      // Implemented in i386disk.c
 // Fixed Disk Partition Management Functions
 //
 ///////////////////////////////////////////////////////////////////////////////////////
 // Fixed Disk Partition Management Functions
 //
 ///////////////////////////////////////////////////////////////////////////////////////
-BOOL   DiskGetActivePartitionEntry(ULONG DriveNumber, PPARTITION_TABLE_ENTRY PartitionTableEntry, ULONG *ActivePartition);
-BOOL   DiskGetPartitionEntry(ULONG DriveNumber, ULONG PartitionNumber, PPARTITION_TABLE_ENTRY PartitionTableEntry);
-BOOL   DiskGetFirstPartitionEntry(PMASTER_BOOT_RECORD MasterBootRecord, PPARTITION_TABLE_ENTRY PartitionTableEntry);
-BOOL   DiskGetFirstExtendedPartitionEntry(PMASTER_BOOT_RECORD MasterBootRecord, PPARTITION_TABLE_ENTRY PartitionTableEntry);
-BOOL   DiskReadBootRecord(ULONG DriveNumber, ULONGLONG LogicalSectorNumber, PMASTER_BOOT_RECORD BootRecord);
+BOOLEAN        DiskGetActivePartitionEntry(ULONG DriveNumber, PPARTITION_TABLE_ENTRY PartitionTableEntry, ULONG *ActivePartition);
+BOOLEAN        DiskGetPartitionEntry(ULONG DriveNumber, ULONG PartitionNumber, PPARTITION_TABLE_ENTRY PartitionTableEntry);
+BOOLEAN        DiskGetFirstPartitionEntry(PMASTER_BOOT_RECORD MasterBootRecord, PPARTITION_TABLE_ENTRY PartitionTableEntry);
+BOOLEAN        DiskGetFirstExtendedPartitionEntry(PMASTER_BOOT_RECORD MasterBootRecord, PPARTITION_TABLE_ENTRY PartitionTableEntry);
+BOOLEAN        DiskReadBootRecord(ULONG DriveNumber, ULONGLONG LogicalSectorNumber, PMASTER_BOOT_RECORD BootRecord);
 
 #endif  // defined __DISK_H
 
 #endif  // defined __DISK_H
index 11d6a1b..1d25f1f 100644 (file)
@@ -30,7 +30,7 @@ typedef struct
 } PACKED DRIVE_MAP_LIST, *PDRIVE_MAP_LIST;
 
 VOID   DriveMapMapDrivesInSection(PCSTR SectionName);
 } PACKED DRIVE_MAP_LIST, *PDRIVE_MAP_LIST;
 
 VOID   DriveMapMapDrivesInSection(PCSTR SectionName);
-BOOL   DriveMapIsValidDriveString(PCSTR DriveString);                  // Checks the drive string ("hd0") for validity
+BOOLEAN        DriveMapIsValidDriveString(PCSTR DriveString);                  // Checks the drive string ("hd0") for validity
 ULONG          DriveMapGetBiosDriveNumber(PCSTR DeviceName);                   // Returns a BIOS drive number for any given device name (e.g. 0x80 for 'hd0')
 VOID   DriveMapInstallInt13Handler(PDRIVE_MAP_LIST DriveMap);  // Installs the int 13h handler for the drive mapper
 VOID   DriveMapRemoveInt13Handler(VOID);                                               // Removes a previously installed int 13h drive map handler
 ULONG          DriveMapGetBiosDriveNumber(PCSTR DeviceName);                   // Returns a BIOS drive number for any given device name (e.g. 0x80 for 'hd0')
 VOID   DriveMapInstallInt13Handler(PDRIVE_MAP_LIST DriveMap);  // Installs the int 13h handler for the drive mapper
 VOID   DriveMapRemoveInt13Handler(VOID);                                               // Removes a previously installed int 13h drive map handler
index d27d4ff..c2cf1e1 100644 (file)
@@ -82,7 +82,7 @@
 
 #define Ke386EraseFlags(x)     __asm__ __volatile__("pushl $0 ; popfl\n")
 
 
 #define Ke386EraseFlags(x)     __asm__ __volatile__("pushl $0 ; popfl\n")
 
-extern BOOL UserInterfaceUp;   /* Tells us if the user interface is displayed */
+extern BOOLEAN UserInterfaceUp;        /* Tells us if the user interface is displayed */
 
 VOID BootMain(LPSTR CmdLine);
 VOID RunLoader(VOID);
 
 VOID BootMain(LPSTR CmdLine);
 VOID RunLoader(VOID);
index 09a6e2b..b30a4b6 100644 (file)
 #define PFILE                  FILE *
 
 VOID   FileSystemError(PCSTR ErrorString);
 #define PFILE                  FILE *
 
 VOID   FileSystemError(PCSTR ErrorString);
-BOOL   FsOpenBootVolume();
-BOOL   FsOpenSystemVolume(PCHAR SystemPath, PCHAR RemainingPath, PULONG BootDevice);
+BOOLEAN        FsOpenBootVolume();
+BOOLEAN        FsOpenSystemVolume(PCHAR SystemPath, PCHAR RemainingPath, PULONG BootDevice);
 PFILE  FsOpenFile(PCSTR FileName);
 VOID   FsCloseFile(PFILE FileHandle);
 PFILE  FsOpenFile(PCSTR FileName);
 VOID   FsCloseFile(PFILE FileHandle);
-BOOL   FsReadFile(PFILE FileHandle, ULONG BytesToRead, ULONG* BytesRead, PVOID Buffer);
+BOOLEAN        FsReadFile(PFILE FileHandle, ULONG BytesToRead, ULONG* BytesRead, PVOID Buffer);
 ULONG          FsGetFileSize(PFILE FileHandle);
 VOID   FsSetFilePointer(PFILE FileHandle, ULONG NewFilePointer);
 ULONG          FsGetFilePointer(PFILE FileHandle);
 ULONG          FsGetFileSize(PFILE FileHandle);
 VOID   FsSetFilePointer(PFILE FileHandle, ULONG NewFilePointer);
 ULONG          FsGetFilePointer(PFILE FileHandle);
-BOOL   FsIsEndOfFile(PFILE FileHandle);
+BOOLEAN        FsIsEndOfFile(PFILE FileHandle);
 ULONG          FsGetNumPathParts(PCSTR Path);
 VOID   FsGetFirstNameFromPath(PCHAR Buffer, PCSTR Path);
 
 ULONG          FsGetNumPathParts(PCSTR Path);
 VOID   FsGetFirstNameFromPath(PCHAR Buffer, PCSTR Path);
 
index 5d033b7..f6bc1fb 100644 (file)
@@ -666,32 +666,32 @@ typedef struct
 
 
 
 
 
 
-BOOL   Ext2OpenVolume(UCHAR DriveNumber, ULONGLONG VolumeStartSector);
+BOOLEAN        Ext2OpenVolume(UCHAR DriveNumber, ULONGLONG VolumeStartSector);
 FILE*  Ext2OpenFile(PCSTR FileName);
 FILE*  Ext2OpenFile(PCSTR FileName);
-BOOL   Ext2LookupFile(PCSTR FileName, PEXT2_FILE_INFO Ext2FileInfoPointer);
-BOOL   Ext2SearchDirectoryBufferForFile(PVOID DirectoryBuffer, ULONG DirectorySize, PCHAR FileName, PEXT2_DIR_ENTRY DirectoryEntry);
-BOOL   Ext2ReadFile(FILE *FileHandle, ULONGLONG BytesToRead, ULONGLONG* BytesRead, PVOID Buffer);
+BOOLEAN        Ext2LookupFile(PCSTR FileName, PEXT2_FILE_INFO Ext2FileInfoPointer);
+BOOLEAN        Ext2SearchDirectoryBufferForFile(PVOID DirectoryBuffer, ULONG DirectorySize, PCHAR FileName, PEXT2_DIR_ENTRY DirectoryEntry);
+BOOLEAN        Ext2ReadFile(FILE *FileHandle, ULONGLONG BytesToRead, ULONGLONG* BytesRead, PVOID Buffer);
 ULONGLONG              Ext2GetFileSize(FILE *FileHandle);
 VOID   Ext2SetFilePointer(FILE *FileHandle, ULONGLONG NewFilePointer);
 ULONGLONG              Ext2GetFilePointer(FILE *FileHandle);
 ULONGLONG              Ext2GetFileSize(FILE *FileHandle);
 VOID   Ext2SetFilePointer(FILE *FileHandle, ULONGLONG NewFilePointer);
 ULONGLONG              Ext2GetFilePointer(FILE *FileHandle);
-BOOL   Ext2ReadVolumeSectors(UCHAR DriveNumber, ULONGLONG SectorNumber, ULONGLONG SectorCount, PVOID Buffer);
+BOOLEAN        Ext2ReadVolumeSectors(UCHAR DriveNumber, ULONGLONG SectorNumber, ULONGLONG SectorCount, PVOID Buffer);
 
 
-BOOL   Ext2ReadSuperBlock(VOID);
-BOOL   Ext2ReadGroupDescriptors(VOID);
-BOOL   Ext2ReadDirectory(ULONG Inode, PVOID* DirectoryBuffer, PEXT2_INODE InodePointer);
-BOOL   Ext2ReadBlock(ULONG BlockNumber, PVOID Buffer);
-BOOL   Ext2ReadPartialBlock(ULONG BlockNumber, ULONG StartingOffset, ULONG Length, PVOID Buffer);
+BOOLEAN        Ext2ReadSuperBlock(VOID);
+BOOLEAN        Ext2ReadGroupDescriptors(VOID);
+BOOLEAN        Ext2ReadDirectory(ULONG Inode, PVOID* DirectoryBuffer, PEXT2_INODE InodePointer);
+BOOLEAN        Ext2ReadBlock(ULONG BlockNumber, PVOID Buffer);
+BOOLEAN        Ext2ReadPartialBlock(ULONG BlockNumber, ULONG StartingOffset, ULONG Length, PVOID Buffer);
 ULONG          Ext2GetGroupDescBlockNumber(ULONG Group);
 ULONG          Ext2GetGroupDescOffsetInBlock(ULONG Group);
 ULONG          Ext2GetInodeGroupNumber(ULONG Inode);
 ULONG          Ext2GetInodeBlockNumber(ULONG Inode);
 ULONG          Ext2GetInodeOffsetInBlock(ULONG Inode);
 ULONG          Ext2GetGroupDescBlockNumber(ULONG Group);
 ULONG          Ext2GetGroupDescOffsetInBlock(ULONG Group);
 ULONG          Ext2GetInodeGroupNumber(ULONG Inode);
 ULONG          Ext2GetInodeBlockNumber(ULONG Inode);
 ULONG          Ext2GetInodeOffsetInBlock(ULONG Inode);
-BOOL   Ext2ReadInode(ULONG Inode, PEXT2_INODE InodeBuffer);
-BOOL   Ext2ReadGroupDescriptor(ULONG Group, PEXT2_GROUP_DESC GroupBuffer);
+BOOLEAN        Ext2ReadInode(ULONG Inode, PEXT2_INODE InodeBuffer);
+BOOLEAN        Ext2ReadGroupDescriptor(ULONG Group, PEXT2_GROUP_DESC GroupBuffer);
 ULONG* Ext2ReadBlockPointerList(PEXT2_INODE Inode);
 ULONGLONG              Ext2GetInodeFileSize(PEXT2_INODE Inode);
 ULONG* Ext2ReadBlockPointerList(PEXT2_INODE Inode);
 ULONGLONG              Ext2GetInodeFileSize(PEXT2_INODE Inode);
-BOOL   Ext2CopyIndirectBlockPointers(ULONG* BlockList, ULONG* CurrentBlockInList, ULONG BlockCount, ULONG IndirectBlock);
-BOOL   Ext2CopyDoubleIndirectBlockPointers(ULONG* BlockList, ULONG* CurrentBlockInList, ULONG BlockCount, ULONG DoubleIndirectBlock);
-BOOL   Ext2CopyTripleIndirectBlockPointers(ULONG* BlockList, ULONG* CurrentBlockInList, ULONG BlockCount, ULONG TripleIndirectBlock);
+BOOLEAN        Ext2CopyIndirectBlockPointers(ULONG* BlockList, ULONG* CurrentBlockInList, ULONG BlockCount, ULONG IndirectBlock);
+BOOLEAN        Ext2CopyDoubleIndirectBlockPointers(ULONG* BlockList, ULONG* CurrentBlockInList, ULONG BlockCount, ULONG DoubleIndirectBlock);
+BOOLEAN        Ext2CopyTripleIndirectBlockPointers(ULONG* BlockList, ULONG* CurrentBlockInList, ULONG BlockCount, ULONG TripleIndirectBlock);
 
 #endif // #defined __EXT2_H
 
 #endif // #defined __EXT2_H
index a57ed0b..1d4a7e7 100644 (file)
@@ -152,24 +152,24 @@ typedef struct
 
 
 
 
 
 
-BOOL   FatOpenVolume(ULONG DriveNumber, ULONG VolumeStartSector, ULONG PartitionSectorCount);
+BOOLEAN        FatOpenVolume(ULONG DriveNumber, ULONG VolumeStartSector, ULONG PartitionSectorCount);
 ULONG  FatDetermineFatType(PFAT_BOOTSECTOR FatBootSector, ULONG PartitionSectorCount);
 ULONG  FatDetermineFatType(PFAT_BOOTSECTOR FatBootSector, ULONG PartitionSectorCount);
-PVOID  FatBufferDirectory(ULONG DirectoryStartCluster, ULONG* EntryCountPointer, BOOL RootDirectory);
-BOOL   FatSearchDirectoryBufferForFile(PVOID DirectoryBuffer, ULONG EntryCount, PCHAR FileName, PFAT_FILE_INFO FatFileInfoPointer);
-BOOL   FatLookupFile(PCSTR FileName, PFAT_FILE_INFO FatFileInfoPointer);
+PVOID  FatBufferDirectory(ULONG DirectoryStartCluster, ULONG* EntryCountPointer, BOOLEAN RootDirectory);
+BOOLEAN        FatSearchDirectoryBufferForFile(PVOID DirectoryBuffer, ULONG EntryCount, PCHAR FileName, PFAT_FILE_INFO FatFileInfoPointer);
+BOOLEAN        FatLookupFile(PCSTR FileName, PFAT_FILE_INFO FatFileInfoPointer);
 void   FatParseShortFileName(PCHAR Buffer, PDIRENTRY DirEntry);
 void   FatParseShortFileName(PCHAR Buffer, PDIRENTRY DirEntry);
-BOOL   FatGetFatEntry(ULONG Cluster, ULONG* ClusterPointer);
+BOOLEAN        FatGetFatEntry(ULONG Cluster, ULONG* ClusterPointer);
 FILE*  FatOpenFile(PCSTR FileName);
 ULONG  FatCountClustersInChain(ULONG StartCluster);
 ULONG* FatGetClusterChainArray(ULONG StartCluster);
 FILE*  FatOpenFile(PCSTR FileName);
 ULONG  FatCountClustersInChain(ULONG StartCluster);
 ULONG* FatGetClusterChainArray(ULONG StartCluster);
-BOOL   FatReadCluster(ULONG ClusterNumber, PVOID Buffer);
-BOOL   FatReadClusterChain(ULONG StartClusterNumber, ULONG NumberOfClusters, PVOID Buffer);
-BOOL   FatReadPartialCluster(ULONG ClusterNumber, ULONG StartingOffset, ULONG Length, PVOID Buffer);
-BOOL   FatReadFile(FILE *FileHandle, ULONG BytesToRead, ULONG* BytesRead, PVOID Buffer);
+BOOLEAN        FatReadCluster(ULONG ClusterNumber, PVOID Buffer);
+BOOLEAN        FatReadClusterChain(ULONG StartClusterNumber, ULONG NumberOfClusters, PVOID Buffer);
+BOOLEAN        FatReadPartialCluster(ULONG ClusterNumber, ULONG StartingOffset, ULONG Length, PVOID Buffer);
+BOOLEAN        FatReadFile(FILE *FileHandle, ULONG BytesToRead, ULONG* BytesRead, PVOID Buffer);
 ULONG          FatGetFileSize(FILE *FileHandle);
 VOID   FatSetFilePointer(FILE *FileHandle, ULONG NewFilePointer);
 ULONG          FatGetFilePointer(FILE *FileHandle);
 ULONG          FatGetFileSize(FILE *FileHandle);
 VOID   FatSetFilePointer(FILE *FileHandle, ULONG NewFilePointer);
 ULONG          FatGetFilePointer(FILE *FileHandle);
-BOOL   FatReadVolumeSectors(ULONG DriveNumber, ULONG SectorNumber, ULONG SectorCount, PVOID Buffer);
+BOOLEAN        FatReadVolumeSectors(ULONG DriveNumber, ULONG SectorNumber, ULONG SectorCount, PVOID Buffer);
 
 
 #define        ATTR_NORMAL             0x00
 
 
 #define        ATTR_NORMAL             0x00
index 9cde9a8..572e60d 100644 (file)
@@ -100,14 +100,14 @@ typedef struct
        ULONG           FileStart;              // File start sector
        ULONG           FileSize;               // File size
        ULONG           FilePointer;            // File pointer
        ULONG           FileStart;              // File start sector
        ULONG           FileSize;               // File size
        ULONG           FilePointer;            // File pointer
-       BOOL    Directory;
+       BOOLEAN Directory;
        ULONG           DriveNumber;
 } ISO_FILE_INFO, * PISO_FILE_INFO;
 
 
        ULONG           DriveNumber;
 } ISO_FILE_INFO, * PISO_FILE_INFO;
 
 
-BOOL   IsoOpenVolume(ULONG DriveNumber);
+BOOLEAN        IsoOpenVolume(ULONG DriveNumber);
 FILE*  IsoOpenFile(PCSTR FileName);
 FILE*  IsoOpenFile(PCSTR FileName);
-BOOL   IsoReadFile(FILE *FileHandle, ULONG BytesToRead, ULONG* BytesRead, PVOID Buffer);
+BOOLEAN        IsoReadFile(FILE *FileHandle, ULONG BytesToRead, ULONG* BytesRead, PVOID Buffer);
 ULONG          IsoGetFileSize(FILE *FileHandle);
 VOID   IsoSetFilePointer(FILE *FileHandle, ULONG NewFilePointer);
 ULONG          IsoGetFilePointer(FILE *FileHandle);
 ULONG          IsoGetFileSize(FILE *FileHandle);
 VOID   IsoSetFilePointer(FILE *FileHandle, ULONG NewFilePointer);
 ULONG          IsoGetFilePointer(FILE *FileHandle);
index fe04ac7..f847905 100644 (file)
@@ -218,9 +218,9 @@ typedef struct
        ULONGLONG                       Offset;
 } PACKED NTFS_FILE_HANDLE, *PNTFS_FILE_HANDLE;
 
        ULONGLONG                       Offset;
 } PACKED NTFS_FILE_HANDLE, *PNTFS_FILE_HANDLE;
 
-BOOL   NtfsOpenVolume(ULONG DriveNumber, ULONG VolumeStartSector);
+BOOLEAN        NtfsOpenVolume(ULONG DriveNumber, ULONG VolumeStartSector);
 FILE*  NtfsOpenFile(PCSTR FileName);
 FILE*  NtfsOpenFile(PCSTR FileName);
-BOOL   NtfsReadFile(FILE *FileHandle, ULONG BytesToRead, ULONG* BytesRead, PVOID Buffer);
+BOOLEAN        NtfsReadFile(FILE *FileHandle, ULONG BytesToRead, ULONG* BytesRead, PVOID Buffer);
 ULONG  NtfsGetFileSize(FILE *FileHandle);
 VOID   NtfsSetFilePointer(FILE *FileHandle, ULONG NewFilePointer);
 ULONG  NtfsGetFilePointer(FILE *FileHandle);
 ULONG  NtfsGetFileSize(FILE *FileHandle);
 VOID   NtfsSetFilePointer(FILE *FileHandle, ULONG NewFilePointer);
 ULONG  NtfsGetFilePointer(FILE *FileHandle);
index 2f8dd0b..11e055e 100644 (file)
 #ifndef __FSREC_H
 #define __FSREC_H
 
 #ifndef __FSREC_H
 #define __FSREC_H
 
-BOOL   FsRecognizeVolume(ULONG DriveNumber, ULONG VolumeStartSector, UCHAR* VolumeType);
-BOOL   FsRecIsIso9660(ULONG DriveNumber);
-BOOL   FsRecIsExt2(ULONG DriveNumber, ULONG VolumeStartSector);
-BOOL   FsRecIsFat(ULONG DriveNumber, ULONG VolumeStartSector);
-BOOL   FsRecIsNtfs(ULONG DriveNumber, ULONG VolumeStartSector);
+BOOLEAN        FsRecognizeVolume(ULONG DriveNumber, ULONG VolumeStartSector, UCHAR* VolumeType);
+BOOLEAN        FsRecIsIso9660(ULONG DriveNumber);
+BOOLEAN        FsRecIsExt2(ULONG DriveNumber, ULONG VolumeStartSector);
+BOOLEAN        FsRecIsFat(ULONG DriveNumber, ULONG VolumeStartSector);
+BOOLEAN        FsRecIsNtfs(ULONG DriveNumber, ULONG VolumeStartSector);
 
 #endif // #defined __FSREC_H
 
 #endif // #defined __FSREC_H
index ec0a22e..d3a5bc7 100644 (file)
@@ -55,30 +55,30 @@ extern      ULONG                                   IniFileSettingCount;
 
 PFILE  IniOpenIniFile();
 
 
 PFILE  IniOpenIniFile();
 
-BOOL   IniParseFile(PCHAR IniFileData, ULONG IniFileSize);
+BOOLEAN        IniParseFile(PCHAR IniFileData, ULONG IniFileSize);
 ULONG          IniGetNextLineSize(PCHAR IniFileData, ULONG IniFileSize, ULONG CurrentOffset);
 ULONG          IniGetNextLine(PCHAR IniFileData, ULONG IniFileSize, PCHAR Buffer, ULONG BufferSize, ULONG CurrentOffset);
 ULONG          IniGetNextLineSize(PCHAR IniFileData, ULONG IniFileSize, ULONG CurrentOffset);
 ULONG          IniGetNextLine(PCHAR IniFileData, ULONG IniFileSize, PCHAR Buffer, ULONG BufferSize, ULONG CurrentOffset);
-BOOL   IniIsLineEmpty(PCHAR LineOfText, ULONG TextLength);
-BOOL   IniIsCommentLine(PCHAR LineOfText, ULONG TextLength);
-BOOL   IniIsSectionName(PCHAR LineOfText, ULONG TextLength);
+BOOLEAN        IniIsLineEmpty(PCHAR LineOfText, ULONG TextLength);
+BOOLEAN        IniIsCommentLine(PCHAR LineOfText, ULONG TextLength);
+BOOLEAN        IniIsSectionName(PCHAR LineOfText, ULONG TextLength);
 ULONG          IniGetSectionNameSize(PCHAR SectionNameLine, ULONG LineLength);
 VOID   IniExtractSectionName(PCHAR SectionName, PCHAR SectionNameLine, ULONG LineLength);
 ULONG          IniGetSectionNameSize(PCHAR SectionNameLine, ULONG LineLength);
 VOID   IniExtractSectionName(PCHAR SectionName, PCHAR SectionNameLine, ULONG LineLength);
-BOOL   IniIsSetting(PCHAR LineOfText, ULONG TextLength);
+BOOLEAN        IniIsSetting(PCHAR LineOfText, ULONG TextLength);
 ULONG          IniGetSettingNameSize(PCHAR SettingNameLine, ULONG LineLength);
 ULONG          IniGetSettingValueSize(PCHAR SettingValueLine, ULONG LineLength);
 VOID   IniExtractSettingName(PCHAR SettingName, PCHAR SettingNameLine, ULONG LineLength);
 VOID   IniExtractSettingValue(PCHAR SettingValue, PCHAR SettingValueLine, ULONG LineLength);
 
 ULONG          IniGetSettingNameSize(PCHAR SettingNameLine, ULONG LineLength);
 ULONG          IniGetSettingValueSize(PCHAR SettingValueLine, ULONG LineLength);
 VOID   IniExtractSettingName(PCHAR SettingName, PCHAR SettingNameLine, ULONG LineLength);
 VOID   IniExtractSettingValue(PCHAR SettingValue, PCHAR SettingValueLine, ULONG LineLength);
 
-BOOL   IniFileInitialize(VOID);
+BOOLEAN        IniFileInitialize(VOID);
 
 
-BOOL   IniOpenSection(PCSTR SectionName, ULONG* SectionId);
+BOOLEAN        IniOpenSection(PCSTR SectionName, ULONG* SectionId);
 ULONG          IniGetNumSectionItems(ULONG SectionId);
 ULONG          IniGetSectionSettingNameSize(ULONG SectionId, ULONG SettingIndex);
 ULONG          IniGetSectionSettingValueSize(ULONG SectionId, ULONG SettingIndex);
 ULONG          IniGetNumSectionItems(ULONG SectionId);
 ULONG          IniGetSectionSettingNameSize(ULONG SectionId, ULONG SettingIndex);
 ULONG          IniGetSectionSettingValueSize(ULONG SectionId, ULONG SettingIndex);
-BOOL   IniReadSettingByNumber(ULONG SectionId, ULONG SettingNumber, PCHAR SettingName, ULONG NameSize, PCHAR SettingValue, ULONG ValueSize);
-BOOL   IniReadSettingByName(ULONG SectionId, PCSTR SettingName, PCHAR Buffer, ULONG BufferSize);
-BOOL   IniAddSection(PCSTR SectionName, ULONG* SectionId);
-BOOL   IniAddSettingValueToSection(ULONG SectionId, PCSTR SettingName, PCSTR SettingValue);
+BOOLEAN        IniReadSettingByNumber(ULONG SectionId, ULONG SettingNumber, PCHAR SettingName, ULONG NameSize, PCHAR SettingValue, ULONG ValueSize);
+BOOLEAN        IniReadSettingByName(ULONG SectionId, PCSTR SettingName, PCHAR Buffer, ULONG BufferSize);
+BOOLEAN        IniAddSection(PCSTR SectionName, ULONG* SectionId);
+BOOLEAN        IniAddSettingValueToSection(ULONG SectionId, PCSTR SettingName, PCSTR SettingValue);
 
 
 #endif // defined __PARSEINI_H
 
 
 #endif // defined __PARSEINI_H
index c518933..90c6a8a 100644 (file)
@@ -129,11 +129,11 @@ VOID      BootOldLinuxKernel(ULONG KernelSize);           // Implemented in linux.S
 
 VOID   LoadAndBootLinux(PCSTR OperatingSystemName, PCSTR Description);
 
 
 VOID   LoadAndBootLinux(PCSTR OperatingSystemName, PCSTR Description);
 
-BOOL   LinuxParseIniSection(PCSTR OperatingSystemName);
-BOOL   LinuxReadBootSector(PFILE LinuxKernelFile);
-BOOL   LinuxReadSetupSector(PFILE LinuxKernelFile);
-BOOL   LinuxReadKernel(PFILE LinuxKernelFile);
-BOOL   LinuxCheckKernelVersion(VOID);
-BOOL   LinuxReadInitrd(PFILE LinuxInitrdFile);
+BOOLEAN        LinuxParseIniSection(PCSTR OperatingSystemName);
+BOOLEAN        LinuxReadBootSector(PFILE LinuxKernelFile);
+BOOLEAN        LinuxReadSetupSector(PFILE LinuxKernelFile);
+BOOLEAN        LinuxReadKernel(PFILE LinuxKernelFile);
+BOOLEAN        LinuxCheckKernelVersion(VOID);
+BOOLEAN        LinuxReadInitrd(PFILE LinuxInitrdFile);
 
 #endif // defined __LINUX_H
 
 #endif // defined __LINUX_H
index a103368..51996a7 100644 (file)
@@ -37,18 +37,18 @@ typedef enum tagVIDEODISPLAYMODE
 typedef struct tagMACHVTBL
 {
   VOID (*ConsPutChar)(int Ch);
 typedef struct tagMACHVTBL
 {
   VOID (*ConsPutChar)(int Ch);
-  BOOL (*ConsKbHit)(VOID);
+  BOOLEAN (*ConsKbHit)(VOID);
   int (*ConsGetCh)(VOID);
 
   VOID (*VideoClearScreen)(UCHAR Attr);
   int (*ConsGetCh)(VOID);
 
   VOID (*VideoClearScreen)(UCHAR Attr);
-  VIDEODISPLAYMODE (*VideoSetDisplayMode)(char *DisplayMode, BOOL Init);
+  VIDEODISPLAYMODE (*VideoSetDisplayMode)(char *DisplayMode, BOOLEAN Init);
   VOID (*VideoGetDisplaySize)(PULONG Width, PULONG Height, PULONG Depth);
   ULONG (*VideoGetBufferSize)(VOID);
   VOID (*VideoSetTextCursorPosition)(ULONG X, ULONG Y);
   VOID (*VideoGetDisplaySize)(PULONG Width, PULONG Height, PULONG Depth);
   ULONG (*VideoGetBufferSize)(VOID);
   VOID (*VideoSetTextCursorPosition)(ULONG X, ULONG Y);
-  VOID (*VideoHideShowTextCursor)(BOOL Show);
+  VOID (*VideoHideShowTextCursor)(BOOLEAN Show);
   VOID (*VideoPutChar)(int Ch, UCHAR Attr, unsigned X, unsigned Y);
   VOID (*VideoCopyOffScreenBufferToVRAM)(PVOID Buffer);
   VOID (*VideoPutChar)(int Ch, UCHAR Attr, unsigned X, unsigned Y);
   VOID (*VideoCopyOffScreenBufferToVRAM)(PVOID Buffer);
-  BOOL (*VideoIsPaletteFixed)(VOID);
+  BOOLEAN (*VideoIsPaletteFixed)(VOID);
   VOID (*VideoSetPaletteColor)(UCHAR Color, UCHAR Red, UCHAR Green, UCHAR Blue);
   VOID (*VideoGetPaletteColor)(UCHAR Color, UCHAR* Red, UCHAR* Green, UCHAR* Blue);
   VOID (*VideoSync)(VOID);
   VOID (*VideoSetPaletteColor)(UCHAR Color, UCHAR Red, UCHAR Green, UCHAR Blue);
   VOID (*VideoGetPaletteColor)(UCHAR Color, UCHAR* Red, UCHAR* Green, UCHAR* Blue);
   VOID (*VideoSync)(VOID);
@@ -56,15 +56,15 @@ typedef struct tagMACHVTBL
 
   ULONG (*GetMemoryMap)(PBIOS_MEMORY_MAP BiosMemoryMap, ULONG MaxMemoryMapSize);
 
 
   ULONG (*GetMemoryMap)(PBIOS_MEMORY_MAP BiosMemoryMap, ULONG MaxMemoryMapSize);
 
-  BOOL (*DiskGetBootVolume)(PULONG DriveNumber, PULONGLONG StartSector, PULONGLONG SectorCount, int *FsType);
-  BOOL (*DiskGetSystemVolume)(char *SystemPath, char *RemainingPath, PULONG Device, PULONG DriveNumber, PULONGLONG StartSector, PULONGLONG SectorCount, int *FsType);
-  BOOL (*DiskGetBootPath)(char *BootPath, unsigned Size);
+  BOOLEAN (*DiskGetBootVolume)(PULONG DriveNumber, PULONGLONG StartSector, PULONGLONG SectorCount, int *FsType);
+  BOOLEAN (*DiskGetSystemVolume)(char *SystemPath, char *RemainingPath, PULONG Device, PULONG DriveNumber, PULONGLONG StartSector, PULONGLONG SectorCount, int *FsType);
+  BOOLEAN (*DiskGetBootPath)(char *BootPath, unsigned Size);
   VOID (*DiskGetBootDevice)(PULONG BootDevice);
   VOID (*DiskGetBootDevice)(PULONG BootDevice);
-  BOOL (*DiskBootingFromFloppy)(VOID);
-  BOOL (*DiskNormalizeSystemPath)(char *SystemPath, unsigned Size);
-  BOOL (*DiskReadLogicalSectors)(ULONG DriveNumber, ULONGLONG SectorNumber, ULONG SectorCount, PVOID Buffer);
-  BOOL (*DiskGetPartitionEntry)(ULONG DriveNumber, ULONG PartitionNumber, PPARTITION_TABLE_ENTRY PartitionTableEntry);
-  BOOL (*DiskGetDriveGeometry)(ULONG DriveNumber, PGEOMETRY DriveGeometry);
+  BOOLEAN (*DiskBootingFromFloppy)(VOID);
+  BOOLEAN (*DiskNormalizeSystemPath)(char *SystemPath, unsigned Size);
+  BOOLEAN (*DiskReadLogicalSectors)(ULONG DriveNumber, ULONGLONG SectorNumber, ULONG SectorCount, PVOID Buffer);
+  BOOLEAN (*DiskGetPartitionEntry)(ULONG DriveNumber, ULONG PartitionNumber, PPARTITION_TABLE_ENTRY PartitionTableEntry);
+  BOOLEAN (*DiskGetDriveGeometry)(ULONG DriveNumber, PGEOMETRY DriveGeometry);
   ULONG (*DiskGetCacheableBlockCount)(ULONG DriveNumber);
 
   VOID (*RTCGetCurrentDateTime)(PULONG Year, PULONG Month, PULONG Day, PULONG Hour, PULONG Minute, PULONG Second);
   ULONG (*DiskGetCacheableBlockCount)(ULONG DriveNumber);
 
   VOID (*RTCGetCurrentDateTime)(PULONG Year, PULONG Month, PULONG Day, PULONG Hour, PULONG Minute, PULONG Second);
@@ -77,24 +77,24 @@ VOID MachInit(const char *CmdLine);
 extern MACHVTBL MachVtbl;
 
 VOID MachConsPutChar(int Ch);
 extern MACHVTBL MachVtbl;
 
 VOID MachConsPutChar(int Ch);
-BOOL MachConsKbHit();
+BOOLEAN MachConsKbHit();
 int MachConsGetCh();
 VOID MachVideoClearScreen(UCHAR Attr);
 int MachConsGetCh();
 VOID MachVideoClearScreen(UCHAR Attr);
-VIDEODISPLAYMODE MachVideoSetDisplayMode(char *DisplayMode, BOOL Init);
+VIDEODISPLAYMODE MachVideoSetDisplayMode(char *DisplayMode, BOOLEAN Init);
 VOID MachVideoGetDisplaySize(PULONG Width, PULONG Height, PULONG Depth);
 ULONG MachVideoGetBufferSize(VOID);
 VOID MachVideoSetTextCursorPosition(ULONG X, ULONG Y);
 VOID MachVideoGetDisplaySize(PULONG Width, PULONG Height, PULONG Depth);
 ULONG MachVideoGetBufferSize(VOID);
 VOID MachVideoSetTextCursorPosition(ULONG X, ULONG Y);
-VOID MachVideoHideShowTextCursor(BOOL Show);
+VOID MachVideoHideShowTextCursor(BOOLEAN Show);
 VOID MachVideoPutChar(int Ch, UCHAR Attr, unsigned X, unsigned Y);
 VOID MachVideoCopyOffScreenBufferToVRAM(PVOID Buffer);
 VOID MachVideoPutChar(int Ch, UCHAR Attr, unsigned X, unsigned Y);
 VOID MachVideoCopyOffScreenBufferToVRAM(PVOID Buffer);
-BOOL MachVideoIsPaletteFixed(VOID);
+BOOLEAN MachVideoIsPaletteFixed(VOID);
 VOID MachVideoSetPaletteColor(UCHAR Color, UCHAR Red, UCHAR Green, UCHAR Blue);
 VOID MachVideoGetPaletteColor(UCHAR Color, UCHAR *Red, UCHAR *Green, UCHAR *Blue);
 VOID MachVideoSync(VOID);
 VOID MachVideoPrepareForReactOS(VOID);
 ULONG MachGetMemoryMap(PBIOS_MEMORY_MAP BiosMemoryMap, ULONG MaxMemoryMapSize);
 VOID MachVideoSetPaletteColor(UCHAR Color, UCHAR Red, UCHAR Green, UCHAR Blue);
 VOID MachVideoGetPaletteColor(UCHAR Color, UCHAR *Red, UCHAR *Green, UCHAR *Blue);
 VOID MachVideoSync(VOID);
 VOID MachVideoPrepareForReactOS(VOID);
 ULONG MachGetMemoryMap(PBIOS_MEMORY_MAP BiosMemoryMap, ULONG MaxMemoryMapSize);
-BOOL MachDiskGetBootVolume(PULONG DriveNumber, PULONGLONG StartSector, PULONGLONG SectorCount, int *FsType);
-BOOL
+BOOLEAN MachDiskGetBootVolume(PULONG DriveNumber, PULONGLONG StartSector, PULONGLONG SectorCount, int *FsType);
+BOOLEAN
 MachDiskGetSystemVolume(char *SystemPath,
                         char *RemainingPath,
                         PULONG Device,
 MachDiskGetSystemVolume(char *SystemPath,
                         char *RemainingPath,
                         PULONG Device,
@@ -102,13 +102,13 @@ MachDiskGetSystemVolume(char *SystemPath,
                         PULONGLONG StartSector,
                         PULONGLONG SectorCount,
                         int *FsType);
                         PULONGLONG StartSector,
                         PULONGLONG SectorCount,
                         int *FsType);
-BOOL MachDiskGetBootPath(char *BootPath, unsigned Size);
+BOOLEAN MachDiskGetBootPath(char *BootPath, unsigned Size);
 VOID MachDiskGetBootDevice(PULONG BootDevice);
 VOID MachDiskGetBootDevice(PULONG BootDevice);
-BOOL MachDiskBootingFromFloppy();
-BOOL MachDiskNormalizeSystemPath(char *SystemPath, unsigned Size);
-BOOL MachDiskReadLogicalSectors(ULONG DriveNumber, ULONGLONG SectorNumber, ULONG SectorCount, PVOID Buffer);
-BOOL MachDiskGetPartitionEntry(ULONG DriveNumber, ULONG PartitionNumber, PPARTITION_TABLE_ENTRY PartitionTableEntry);
-BOOL MachDiskGetDriveGeometry(ULONG DriveNumber, PGEOMETRY DriveGeometry);
+BOOLEAN MachDiskBootingFromFloppy();
+BOOLEAN MachDiskNormalizeSystemPath(char *SystemPath, unsigned Size);
+BOOLEAN MachDiskReadLogicalSectors(ULONG DriveNumber, ULONGLONG SectorNumber, ULONG SectorCount, PVOID Buffer);
+BOOLEAN MachDiskGetPartitionEntry(ULONG DriveNumber, ULONG PartitionNumber, PPARTITION_TABLE_ENTRY PartitionTableEntry);
+BOOLEAN MachDiskGetDriveGeometry(ULONG DriveNumber, PGEOMETRY DriveGeometry);
 ULONG MachDiskGetCacheableBlockCount(ULONG DriveNumber);
 VOID MachRTCGetCurrentDateTime(PULONG Year, PULONG Month, PULONG Day, PULONG Hour, PULONG Minute, PULONG Second);
 VOID MachHwDetect(VOID);
 ULONG MachDiskGetCacheableBlockCount(ULONG DriveNumber);
 VOID MachRTCGetCurrentDateTime(PULONG Year, PULONG Month, PULONG Day, PULONG Hour, PULONG Minute, PULONG Second);
 VOID MachHwDetect(VOID);
index 599f9e1..f9e8f05 100644 (file)
@@ -78,13 +78,13 @@ ULONG               MmFindAvailablePagesFromEnd(PVOID PageLookupTable, ULONG TotalPageCount,
 ULONG          MmFindAvailablePagesBeforePage(PVOID PageLookupTable, ULONG TotalPageCount, ULONG PagesNeeded, ULONG LastPage); // Returns the page number of the first available page range before the specified page
 VOID   MmFixupSystemMemoryMap(PBIOS_MEMORY_MAP BiosMemoryMap, ULONG* MapCount);        // Removes entries in the memory map that describe memory above 4G
 VOID   MmUpdateLastFreePageHint(PVOID PageLookupTable, ULONG TotalPageCount);  // Sets the LastFreePageHint to the last usable page of memory
 ULONG          MmFindAvailablePagesBeforePage(PVOID PageLookupTable, ULONG TotalPageCount, ULONG PagesNeeded, ULONG LastPage); // Returns the page number of the first available page range before the specified page
 VOID   MmFixupSystemMemoryMap(PBIOS_MEMORY_MAP BiosMemoryMap, ULONG* MapCount);        // Removes entries in the memory map that describe memory above 4G
 VOID   MmUpdateLastFreePageHint(PVOID PageLookupTable, ULONG TotalPageCount);  // Sets the LastFreePageHint to the last usable page of memory
-BOOL   MmAreMemoryPagesAvailable(PVOID PageLookupTable, ULONG TotalPageCount, PVOID PageAddress, ULONG PageCount);     // Returns TRUE if the specified pages of memory are available, otherwise FALSE
+BOOLEAN        MmAreMemoryPagesAvailable(PVOID PageLookupTable, ULONG TotalPageCount, PVOID PageAddress, ULONG PageCount);     // Returns TRUE if the specified pages of memory are available, otherwise FALSE
 
 ULONG          GetSystemMemorySize(VOID);                                                              // Returns the amount of total memory in the system
 
 
 
 ULONG          GetSystemMemorySize(VOID);                                                              // Returns the amount of total memory in the system
 
 
-//BOOL MmInitializeMemoryManager(ULONG LowMemoryStart, ULONG LowMemoryLength);
-BOOL   MmInitializeMemoryManager(VOID);
+//BOOLEAN      MmInitializeMemoryManager(ULONG LowMemoryStart, ULONG LowMemoryLength);
+BOOLEAN        MmInitializeMemoryManager(VOID);
 PVOID  MmAllocateMemory(ULONG MemorySize);
 VOID   MmFreeMemory(PVOID MemoryPointer);
 //PVOID        MmAllocateLowMemory(ULONG MemorySize);
 PVOID  MmAllocateMemory(ULONG MemorySize);
 VOID   MmFreeMemory(PVOID MemoryPointer);
 //PVOID        MmAllocateLowMemory(ULONG MemorySize);
index 9996b82..c30eb6b 100644 (file)
@@ -20,9 +20,9 @@
 #ifndef __OSLIST_H
 #define __OSLIST_H
 
 #ifndef __OSLIST_H
 #define __OSLIST_H
 
-BOOL   InitOperatingSystemList(PCSTR **SectionNamesPointer, PCSTR **DisplayNamesPointer, ULONG* OperatingSystemCountPointer);
+BOOLEAN        InitOperatingSystemList(PCSTR **SectionNamesPointer, PCSTR **DisplayNamesPointer, ULONG* OperatingSystemCountPointer);
 ULONG          CountOperatingSystems(ULONG SectionId);
 ULONG          CountOperatingSystems(ULONG SectionId);
-BOOL   AllocateListMemory(PCHAR **SectionNamesPointer, PCHAR **DisplayNamesPointer, ULONG OperatingSystemCount);
-BOOL   RemoveQuotes(PCHAR QuotedString);
+BOOLEAN        AllocateListMemory(PCHAR **SectionNamesPointer, PCHAR **DisplayNamesPointer, ULONG OperatingSystemCount);
+BOOLEAN        RemoveQuotes(PCHAR QuotedString);
 
 #endif // #defined __OSLIST_H
 
 #endif // #defined __OSLIST_H
index ea3ad00..529fa8c 100644 (file)
@@ -40,7 +40,7 @@ VOID ReactOSRunSetupLoader(VOID);
 // ARC Path Functions
 //
 ///////////////////////////////////////////////////////////////////////////////////////
 // ARC Path Functions
 //
 ///////////////////////////////////////////////////////////////////////////////////////
-BOOL DissectArcPath(CHAR *ArcPath, CHAR *BootPath, ULONG* BootDrive, ULONG* BootPartition);
+BOOLEAN DissectArcPath(CHAR *ArcPath, CHAR *BootPath, ULONG* BootDrive, ULONG* BootPartition);
 VOID ConstructArcPath(PCHAR ArcPath, PCHAR SystemFolder, ULONG Disk, ULONG Partition);
 ULONG ConvertArcNameToBiosDriveNumber(PCHAR ArcPath);
 
 VOID ConstructArcPath(PCHAR ArcPath, PCHAR SystemFolder, ULONG Disk, ULONG Partition);
 ULONG ConvertArcNameToBiosDriveNumber(PCHAR ArcPath);
 
@@ -59,11 +59,11 @@ extern memory_map_t                 reactos_memory_map[32];         // Memory map
 VOID FASTCALL FrLdrSetupPae(ULONG Magic);
 VOID FASTCALL FrLdrSetupPageDirectory(VOID);
 VOID FASTCALL FrLdrGetPaeMode(VOID);
 VOID FASTCALL FrLdrSetupPae(ULONG Magic);
 VOID FASTCALL FrLdrSetupPageDirectory(VOID);
 VOID FASTCALL FrLdrGetPaeMode(VOID);
-BOOL STDCALL FrLdrMapKernel(FILE *KernelImage);
-ULONG_PTR STDCALL FrLdrCreateModule(LPCSTR ModuleName);
-ULONG_PTR STDCALL FrLdrLoadModule(FILE *ModuleImage, LPCSTR ModuleName, PULONG ModuleSize);
-BOOL STDCALL FrLdrCloseModule(ULONG_PTR ModuleBase, ULONG dwModuleSize);
-VOID STDCALL FrLdrStartup(ULONG Magic);
+BOOLEAN NTAPI FrLdrMapKernel(FILE *KernelImage);
+ULONG_PTR NTAPI FrLdrCreateModule(LPCSTR ModuleName);
+ULONG_PTR NTAPI FrLdrLoadModule(FILE *ModuleImage, LPCSTR ModuleName, PULONG ModuleSize);
+BOOLEAN NTAPI FrLdrCloseModule(ULONG_PTR ModuleBase, ULONG dwModuleSize);
+VOID NTAPI FrLdrStartup(ULONG Magic);
 typedef VOID (FASTCALL *ASMCODE)(ULONG Magic, PROS_LOADER_PARAMETER_BLOCK LoaderBlock);
 
 #endif // defined __REACTOS_H
 typedef VOID (FASTCALL *ASMCODE)(ULONG Magic, PROS_LOADER_PARAMETER_BLOCK LoaderBlock);
 
 #endif // defined __REACTOS_H
index bf81236..67feb1d 100644 (file)
@@ -67,7 +67,7 @@ VOID
 RegInitializeRegistry(VOID);
 
 LONG
 RegInitializeRegistry(VOID);
 
 LONG
-RegInitCurrentControlSet(BOOL LastKnownGood);
+RegInitCurrentControlSet(BOOLEAN LastKnownGood);
 
 
 LONG
 
 
 LONG
@@ -125,11 +125,11 @@ ULONG
 RegGetValueCount (FRLDRHKEY Key);
 
 
 RegGetValueCount (FRLDRHKEY Key);
 
 
-BOOL
+BOOLEAN
 RegImportBinaryHive (PCHAR ChunkBase,
                     ULONG ChunkSize);
 
 RegImportBinaryHive (PCHAR ChunkBase,
                     ULONG ChunkSize);
 
-BOOL
+BOOLEAN
 RegExportBinaryHive (PCWSTR KeyName,
                     PCHAR ChunkBase,
                     ULONG* ChunkSize);
 RegExportBinaryHive (PCWSTR KeyName,
                     PCHAR ChunkBase,
                     ULONG* ChunkSize);
index 1c0e13d..6567f0b 100644 (file)
@@ -49,7 +49,7 @@ PLIST_ITEM    RtlListRemoveHead(PLIST_ITEM ListHead);                                                         // Removes the entry a
 PLIST_ITEM     RtlListRemoveTail(PLIST_ITEM ListHead);                                                         // Removes the entry at the tail of the list
 PLIST_ITEM     RtlListGetHead(PLIST_ITEM ListHead);                                                            // Returns the entry at the head of the list
 PLIST_ITEM     RtlListGetTail(PLIST_ITEM ListHead);                                                            // Returns the entry at the tail of the list
 PLIST_ITEM     RtlListRemoveTail(PLIST_ITEM ListHead);                                                         // Removes the entry at the tail of the list
 PLIST_ITEM     RtlListGetHead(PLIST_ITEM ListHead);                                                            // Returns the entry at the head of the list
 PLIST_ITEM     RtlListGetTail(PLIST_ITEM ListHead);                                                            // Returns the entry at the tail of the list
-BOOL           RtlListIsEmpty(PLIST_ITEM ListHead);                                                            // Indicates whether a doubly linked list is empty
+BOOLEAN                RtlListIsEmpty(PLIST_ITEM ListHead);                                                            // Indicates whether a doubly linked list is empty
 ULONG          RtlListCountEntries(PLIST_ITEM ListHead);                                                       // Counts the entries in a doubly linked list
 PLIST_ITEM     RtlListGetPrevious(PLIST_ITEM ListEntry);                                                       // Returns the previous item in the list
 PLIST_ITEM     RtlListGetNext(PLIST_ITEM ListEntry);                                                           // Returns the next item in the list
 ULONG          RtlListCountEntries(PLIST_ITEM ListHead);                                                       // Counts the entries in a doubly linked list
 PLIST_ITEM     RtlListGetPrevious(PLIST_ITEM ListEntry);                                                       // Returns the previous item in the list
 PLIST_ITEM     RtlListGetNext(PLIST_ITEM ListEntry);                                                           // Returns the next item in the list
index 41d5991..043a335 100644 (file)
@@ -43,12 +43,12 @@ extern      UCHAR   UiEditBoxBgColor;                                                               // Edit box text background color
 
 extern CHAR    UiTitleBoxTitleText[260];                                               // Title box's title text
 
 
 extern CHAR    UiTitleBoxTitleText[260];                                               // Title box's title text
 
-extern BOOL    UserInterfaceUp;                                                                // Tells us if the user interface is displayed
+extern BOOLEAN UserInterfaceUp;                                                                // Tells us if the user interface is displayed
 
 
-extern BOOL    UiUseSpecialEffects;                                                    // Tells us if we should use fade effects
-extern BOOL UiCenterMenu;
-extern BOOL UiMenuBox;
-extern BOOL UiMinimal;
+extern BOOLEAN UiUseSpecialEffects;                                                    // Tells us if we should use fade effects
+extern BOOLEAN UiCenterMenu;
+extern BOOLEAN UiMenuBox;
+extern BOOLEAN UiMinimal;
 extern CHAR UiTimeText[];
 
 extern const CHAR      UiMonthNames[12][15];
 extern CHAR UiTimeText[];
 
 extern const CHAR      UiMonthNames[12][15];
@@ -58,13 +58,13 @@ extern      const CHAR      UiMonthNames[12][15];
 // User Interface Functions
 //
 ///////////////////////////////////////////////////////////////////////////////////////
 // User Interface Functions
 //
 ///////////////////////////////////////////////////////////////////////////////////////
-BOOL   UiInitialize(BOOLEAN ShowGui);                                                          // Initialize User-Interface
-BOOL   SetupUiInitialize(VOID);                                                // Initialize User-Interface
+BOOLEAN        UiInitialize(BOOLEAN ShowGui);                                                          // Initialize User-Interface
+BOOLEAN        SetupUiInitialize(VOID);                                                // Initialize User-Interface
 VOID   UiUnInitialize(PCSTR BootText);                                         // Un-initialize User-Interface
 VOID   UiDrawBackdrop(VOID);                                                                   // Fills the entire screen with a backdrop
 VOID   UiFillArea(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, CHAR FillChar, UCHAR Attr /* Color Attributes */); // Fills the area specified with FillChar and Attr
 VOID   UiDrawShadow(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom); // Draws a shadow on the bottom and right sides of the area specified
 VOID   UiUnInitialize(PCSTR BootText);                                         // Un-initialize User-Interface
 VOID   UiDrawBackdrop(VOID);                                                                   // Fills the entire screen with a backdrop
 VOID   UiFillArea(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, CHAR FillChar, UCHAR Attr /* Color Attributes */); // Fills the area specified with FillChar and Attr
 VOID   UiDrawShadow(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom); // Draws a shadow on the bottom and right sides of the area specified
-VOID   UiDrawBox(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, UCHAR VertStyle, UCHAR HorzStyle, BOOL Fill, BOOL Shadow, UCHAR Attr);      // Draws a box around the area specified
+VOID   UiDrawBox(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, UCHAR VertStyle, UCHAR HorzStyle, BOOLEAN Fill, BOOLEAN Shadow, UCHAR Attr);        // Draws a box around the area specified
 VOID   UiDrawText(ULONG X, ULONG Y, PCSTR Text, UCHAR Attr);   // Draws text at coordinates specified
 VOID   UiDrawCenteredText(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, PCSTR TextString, UCHAR Attr);     // Draws centered text at the coordinates specified and clips the edges
 VOID   UiDrawStatusText(PCSTR StatusText);                                     // Draws text at the very bottom line on the screen
 VOID   UiDrawText(ULONG X, ULONG Y, PCSTR Text, UCHAR Attr);   // Draws text at coordinates specified
 VOID   UiDrawCenteredText(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, PCSTR TextString, UCHAR Attr);     // Draws centered text at the coordinates specified and clips the edges
 VOID   UiDrawStatusText(PCSTR StatusText);                                     // Draws text at the very bottom line on the screen
@@ -76,7 +76,7 @@ VOID  UiDrawProgressBarCenter(ULONG Position, ULONG Range, PCHAR ProgressText);
 VOID   UiDrawProgressBar(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, ULONG Position, ULONG Range, PCHAR ProgressText);                   // Draws the progress bar showing nPos percent filled
 VOID   UiShowMessageBoxesInSection(PCSTR SectionName);         // Displays all the message boxes in a given section
 VOID   UiEscapeString(PCHAR String);                                                   // Processes a string and changes all occurances of "\n" to '\n'
 VOID   UiDrawProgressBar(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, ULONG Position, ULONG Range, PCHAR ProgressText);                   // Draws the progress bar showing nPos percent filled
 VOID   UiShowMessageBoxesInSection(PCSTR SectionName);         // Displays all the message boxes in a given section
 VOID   UiEscapeString(PCHAR String);                                                   // Processes a string and changes all occurances of "\n" to '\n'
-BOOL   UiEditBox(PCSTR MessageText, PCHAR EditTextBuffer, ULONG Length);
+BOOLEAN        UiEditBox(PCSTR MessageText, PCHAR EditTextBuffer, ULONG Length);
 
 UCHAR  UiTextToColor(PCSTR ColorText);                                         // Converts the text color into it's equivalent color value
 UCHAR  UiTextToFillStyle(PCSTR FillStyleText);                         // Converts the text fill into it's equivalent fill value
 
 UCHAR  UiTextToColor(PCSTR ColorText);                                         // Converts the text color into it's equivalent color value
 UCHAR  UiTextToFillStyle(PCSTR FillStyleText);                         // Converts the text fill into it's equivalent fill value
@@ -91,9 +91,9 @@ VOID  UiFadeOut(VOID);                                                                                // Fades the screen out
 // Menu Functions
 //
 ///////////////////////////////////////////////////////////////////////////////////////
 // Menu Functions
 //
 ///////////////////////////////////////////////////////////////////////////////////////
-typedef BOOL   (*UiMenuKeyPressFilterCallback)(ULONG KeyPress);
+typedef BOOLEAN        (*UiMenuKeyPressFilterCallback)(ULONG KeyPress);
 
 
-BOOL   UiDisplayMenu(PCSTR MenuItemList[], ULONG MenuItemCount, ULONG DefaultMenuItem, LONG MenuTimeOut, ULONG* SelectedMenuItem, BOOL CanEscape, UiMenuKeyPressFilterCallback KeyPressFilter);
+BOOLEAN        UiDisplayMenu(PCSTR MenuItemList[], ULONG MenuItemCount, ULONG DefaultMenuItem, LONG MenuTimeOut, ULONG* SelectedMenuItem, BOOLEAN CanEscape, UiMenuKeyPressFilterCallback KeyPressFilter);
 
 
 
 
 
 
index 87b3ec7..5694b2e 100644 (file)
@@ -31,7 +31,7 @@
 VOID   GuiDrawBackdrop(VOID);                                                                  // Fills the entire screen with a backdrop\r
 VOID   GuiFillArea(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, UCHAR FillChar, UCHAR Attr /* Color Attributes */);       // Fills the area specified with FillChar and Attr\r
 VOID   GuiDrawShadow(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom);        // Draws a shadow on the bottom and right sides of the area specified\r
 VOID   GuiDrawBackdrop(VOID);                                                                  // Fills the entire screen with a backdrop\r
 VOID   GuiFillArea(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, UCHAR FillChar, UCHAR Attr /* Color Attributes */);       // Fills the area specified with FillChar and Attr\r
 VOID   GuiDrawShadow(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom);        // Draws a shadow on the bottom and right sides of the area specified\r
-VOID   GuiDrawBox(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, UCHAR VertStyle, UCHAR HorzStyle, BOOL Fill, BOOL Shadow, UCHAR Attr);     // Draws a box around the area specified\r
+VOID   GuiDrawBox(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, UCHAR VertStyle, UCHAR HorzStyle, BOOLEAN Fill, BOOLEAN Shadow, UCHAR Attr);       // Draws a box around the area specified\r
 VOID   GuiDrawText(ULONG X, ULONG Y, PUCHAR Text, UCHAR Attr); // Draws text at coordinates specified\r
 VOID   GuiDrawStatusText(PCSTR StatusText);                                    // Draws text at the very bottom line on the screen\r
 VOID   GuiUpdateDateTime(VOID);                                                                // Updates the date and time\r
 VOID   GuiDrawText(ULONG X, ULONG Y, PUCHAR Text, UCHAR Attr); // Draws text at coordinates specified\r
 VOID   GuiDrawStatusText(PCSTR StatusText);                                    // Draws text at the very bottom line on the screen\r
 VOID   GuiUpdateDateTime(VOID);                                                                // Updates the date and time\r
@@ -49,7 +49,7 @@ UCHAR GuiTextToFillStyle(PCSTR FillStyleText);                                // Converts the text fill into
 // Menu Functions\r
 //\r
 ///////////////////////////////////////////////////////////////////////////////////////\r
 // Menu Functions\r
 //\r
 ///////////////////////////////////////////////////////////////////////////////////////\r
-BOOL   GuiDisplayMenu(PCSTR MenuItemList[], ULONG MenuItemCount, ULONG DefaultMenuItem, LONG MenuTimeOut, ULONG* SelectedMenuItem);\r
+BOOLEAN        GuiDisplayMenu(PCSTR MenuItemList[], ULONG MenuItemCount, ULONG DefaultMenuItem, LONG MenuTimeOut, ULONG* SelectedMenuItem);\r
 \r
 \r
 \r
 \r
 \r
 \r
index 9ae09b5..eb4f7f5 100644 (file)
 // Textual User Interface Functions\r
 //\r
 ///////////////////////////////////////////////////////////////////////////////////////\r
 // Textual User Interface Functions\r
 //\r
 ///////////////////////////////////////////////////////////////////////////////////////\r
-BOOL   TuiInitialize(VOID);                                                                    // Initialize User-Interface\r
+BOOLEAN        TuiInitialize(VOID);                                                                    // Initialize User-Interface\r
 VOID   TuiUnInitialize(VOID);                                                                  // Un-initialize User-Interface\r
 \r
 VOID   TuiDrawBackdrop(VOID);                                                                  // Fills the entire screen with a backdrop\r
 VOID   TuiFillArea(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, CHAR FillChar, UCHAR Attr /* Color Attributes */);        // Fills the area specified with FillChar and Attr\r
 VOID   TuiDrawShadow(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom);        // Draws a shadow on the bottom and right sides of the area specified\r
 VOID   TuiUnInitialize(VOID);                                                                  // Un-initialize User-Interface\r
 \r
 VOID   TuiDrawBackdrop(VOID);                                                                  // Fills the entire screen with a backdrop\r
 VOID   TuiFillArea(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, CHAR FillChar, UCHAR Attr /* Color Attributes */);        // Fills the area specified with FillChar and Attr\r
 VOID   TuiDrawShadow(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom);        // Draws a shadow on the bottom and right sides of the area specified\r
-VOID   TuiDrawBox(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, UCHAR VertStyle, UCHAR HorzStyle, BOOL Fill, BOOL Shadow, UCHAR Attr);     // Draws a box around the area specified\r
+VOID   TuiDrawBox(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, UCHAR VertStyle, UCHAR HorzStyle, BOOLEAN Fill, BOOLEAN Shadow, UCHAR Attr);       // Draws a box around the area specified\r
 VOID   TuiDrawText(ULONG X, ULONG Y, PCSTR Text, UCHAR Attr);  // Draws text at coordinates specified\r
 VOID   TuiDrawCenteredText(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, PCSTR TextString, UCHAR Attr);    // Draws centered text at the coordinates specified and clips the edges\r
 VOID   TuiDrawStatusText(PCSTR StatusText);                                    // Draws text at the very bottom line on the screen\r
 VOID   TuiDrawText(ULONG X, ULONG Y, PCSTR Text, UCHAR Attr);  // Draws text at coordinates specified\r
 VOID   TuiDrawCenteredText(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, PCSTR TextString, UCHAR Attr);    // Draws centered text at the coordinates specified and clips the edges\r
 VOID   TuiDrawStatusText(PCSTR StatusText);                                    // Draws text at the very bottom line on the screen\r
@@ -45,7 +45,7 @@ VOID  TuiMessageBox(PCSTR MessageText);                                               // Displays a message box on the scr
 VOID   TuiMessageBoxCritical(PCSTR MessageText);                               // Displays a message box on the screen with an ok button using no system resources\r
 VOID   TuiDrawProgressBarCenter(ULONG Position, ULONG Range, PCHAR ProgressText);                      // Draws the progress bar showing nPos percent filled\r
 VOID   TuiDrawProgressBar(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, ULONG Position, ULONG Range, PCHAR ProgressText);                  // Draws the progress bar showing nPos percent filled\r
 VOID   TuiMessageBoxCritical(PCSTR MessageText);                               // Displays a message box on the screen with an ok button using no system resources\r
 VOID   TuiDrawProgressBarCenter(ULONG Position, ULONG Range, PCHAR ProgressText);                      // Draws the progress bar showing nPos percent filled\r
 VOID   TuiDrawProgressBar(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, ULONG Position, ULONG Range, PCHAR ProgressText);                  // Draws the progress bar showing nPos percent filled\r
-BOOL   TuiEditBox(PCSTR MessageText, PCHAR EditTextBuffer, ULONG Length);\r
+BOOLEAN        TuiEditBox(PCSTR MessageText, PCHAR EditTextBuffer, ULONG Length);\r
 \r
 UCHAR  TuiTextToColor(PCSTR ColorText);                                                // Converts the text color into it's equivalent color value\r
 UCHAR  TuiTextToFillStyle(PCSTR FillStyleText);                                // Converts the text fill into it's equivalent fill value\r
 \r
 UCHAR  TuiTextToColor(PCSTR ColorText);                                                // Converts the text color into it's equivalent color value\r
 UCHAR  TuiTextToFillStyle(PCSTR FillStyleText);                                // Converts the text fill into it's equivalent fill value\r
@@ -73,12 +73,12 @@ typedef struct
 \r
 } TUI_MENU_INFO, *PTUI_MENU_INFO;\r
 \r
 \r
 } TUI_MENU_INFO, *PTUI_MENU_INFO;\r
 \r
-VOID   WINAPI TuiCalcMenuBoxSize(PTUI_MENU_INFO MenuInfo);\r
-VOID   WINAPI TuiDrawMenu(PTUI_MENU_INFO MenuInfo);\r
-VOID   WINAPI TuiDrawMenuBox(PTUI_MENU_INFO MenuInfo);\r
-VOID   WINAPI TuiDrawMenuItem(PTUI_MENU_INFO MenuInfo, ULONG MenuItemNumber);\r
-ULONG  WINAPI TuiProcessMenuKeyboardEvent(PTUI_MENU_INFO MenuInfo, UiMenuKeyPressFilterCallback KeyPressFilter);\r
-BOOL   WINAPI TuiDisplayMenu(PCSTR MenuItemList[], ULONG MenuItemCount, ULONG DefaultMenuItem, LONG MenuTimeOut, ULONG* SelectedMenuItem, BOOL CanEscape, UiMenuKeyPressFilterCallback KeyPressFilter);\r
+VOID   NTAPI TuiCalcMenuBoxSize(PTUI_MENU_INFO MenuInfo);\r
+VOID   NTAPI TuiDrawMenu(PTUI_MENU_INFO MenuInfo);\r
+VOID   NTAPI TuiDrawMenuBox(PTUI_MENU_INFO MenuInfo);\r
+VOID   NTAPI TuiDrawMenuItem(PTUI_MENU_INFO MenuInfo, ULONG MenuItemNumber);\r
+ULONG  NTAPI TuiProcessMenuKeyboardEvent(PTUI_MENU_INFO MenuInfo, UiMenuKeyPressFilterCallback KeyPressFilter);\r
+BOOLEAN        NTAPI TuiDisplayMenu(PCSTR MenuItemList[], ULONG MenuItemCount, ULONG DefaultMenuItem, LONG MenuTimeOut, ULONG* SelectedMenuItem, BOOLEAN CanEscape, UiMenuKeyPressFilterCallback KeyPressFilter);\r
 \r
 \r
 /*\r
 \r
 \r
 /*\r
index 4efad48..9af92cd 100644 (file)
 
 #include <freeldr.h>
 
 
 #include <freeldr.h>
 
-BOOL IniFileInitialize(VOID)
+BOOLEAN IniFileInitialize(VOID)
 {
        PFILE   Freeldr_Ini;    // File handle for freeldr.ini
        PCHAR   FreeLoaderIniFileData;
        ULONG           FreeLoaderIniFileSize;
 {
        PFILE   Freeldr_Ini;    // File handle for freeldr.ini
        PCHAR   FreeLoaderIniFileData;
        ULONG           FreeLoaderIniFileSize;
-       BOOL    Success;
+       BOOLEAN Success;
 
        // Open freeldr.ini
        Freeldr_Ini = IniOpenIniFile();
 
        // Open freeldr.ini
        Freeldr_Ini = IniOpenIniFile();
index 66e738c..fd59ee8 100644 (file)
@@ -22,7 +22,7 @@
 #define NDEBUG
 #include <debug.h>
 
 #define NDEBUG
 #include <debug.h>
 
-BOOL IniOpenSection(PCSTR SectionName, ULONG* SectionId)
+BOOLEAN IniOpenSection(PCSTR SectionName, ULONG* SectionId)
 {
        PINI_SECTION    Section;
 
 {
        PINI_SECTION    Section;
 
@@ -79,7 +79,7 @@ ULONG IniGetSectionSettingValueSize(ULONG SectionId, ULONG SettingIndex)
        return (strlen(Section->SectionItemList[SettingIndex].ItemValue) + 1);
 }
 
        return (strlen(Section->SectionItemList[SettingIndex].ItemValue) + 1);
 }
 
-BOOL IniReadSettingByNumber(ULONG SectionId, ULONG SettingNumber, PCHAR SettingName, ULONG NameSize, PCHAR SettingValue, ULONG ValueSize)
+BOOLEAN IniReadSettingByNumber(ULONG SectionId, ULONG SettingNumber, PCHAR SettingName, ULONG NameSize, PCHAR SettingValue, ULONG ValueSize)
 {
        PINI_SECTION            Section = (PINI_SECTION)SectionId;
        PINI_SECTION_ITEM       SectionItem;
 {
        PINI_SECTION            Section = (PINI_SECTION)SectionId;
        PINI_SECTION_ITEM       SectionItem;
@@ -129,7 +129,7 @@ BOOL IniReadSettingByNumber(ULONG SectionId, ULONG SettingNumber, PCHAR SettingN
        return FALSE;
 }
 
        return FALSE;
 }
 
-BOOL IniReadSettingByName(ULONG SectionId, PCSTR SettingName, PCHAR Buffer, ULONG BufferSize)
+BOOLEAN IniReadSettingByName(ULONG SectionId, PCSTR SettingName, PCHAR Buffer, ULONG BufferSize)
 {
        PINI_SECTION            Section = (PINI_SECTION)SectionId;
        PINI_SECTION_ITEM       SectionItem;
 {
        PINI_SECTION            Section = (PINI_SECTION)SectionId;
        PINI_SECTION_ITEM       SectionItem;
@@ -161,7 +161,7 @@ BOOL IniReadSettingByName(ULONG SectionId, PCSTR SettingName, PCHAR Buffer, ULON
        return FALSE;
 }
 
        return FALSE;
 }
 
-BOOL IniAddSection(PCSTR SectionName, ULONG* SectionId)
+BOOLEAN IniAddSection(PCSTR SectionName, ULONG* SectionId)
 {
        PINI_SECTION    Section;
 
 {
        PINI_SECTION    Section;
 
@@ -201,7 +201,7 @@ BOOL IniAddSection(PCSTR SectionName, ULONG* SectionId)
        return TRUE;
 }
 
        return TRUE;
 }
 
-BOOL IniAddSettingValueToSection(ULONG SectionId, PCSTR SettingName, PCSTR SettingValue)
+BOOLEAN IniAddSettingValueToSection(ULONG SectionId, PCSTR SettingName, PCSTR SettingValue)
 {
        PINI_SECTION            Section = (PINI_SECTION)SectionId;
        PINI_SECTION_ITEM       SectionItem;
 {
        PINI_SECTION            Section = (PINI_SECTION)SectionId;
        PINI_SECTION_ITEM       SectionItem;
index c8d9c61..b18fcf7 100644 (file)
@@ -27,7 +27,7 @@ ULONG                                 IniFileSectionCount = 0;
 ULONG                                  IniFileSettingCount = 0;
 
 
 ULONG                                  IniFileSettingCount = 0;
 
 
-BOOL IniParseFile(PCHAR IniFileData, ULONG IniFileSize)
+BOOLEAN IniParseFile(PCHAR IniFileData, ULONG IniFileSize)
 {
        ULONG                                   CurrentOffset;
        ULONG                                   CurrentLineNumber;
 {
        ULONG                                   CurrentOffset;
        ULONG                                   CurrentLineNumber;
@@ -249,7 +249,7 @@ ULONG IniGetNextLine(PCHAR IniFileData, ULONG IniFileSize, PCHAR Buffer, ULONG B
        return CurrentOffset;
 }
 
        return CurrentOffset;
 }
 
-BOOL IniIsLineEmpty(PCHAR LineOfText, ULONG TextLength)
+BOOLEAN IniIsLineEmpty(PCHAR LineOfText, ULONG TextLength)
 {
        ULONG           Idx;
 
 {
        ULONG           Idx;
 
@@ -272,7 +272,7 @@ BOOL IniIsLineEmpty(PCHAR LineOfText, ULONG TextLength)
        return TRUE;
 }
 
        return TRUE;
 }
 
-BOOL IniIsCommentLine(PCHAR LineOfText, ULONG TextLength)
+BOOLEAN IniIsCommentLine(PCHAR LineOfText, ULONG TextLength)
 {
        ULONG           Idx;
 
 {
        ULONG           Idx;
 
@@ -298,7 +298,7 @@ BOOL IniIsCommentLine(PCHAR LineOfText, ULONG TextLength)
        return FALSE;
 }
 
        return FALSE;
 }
 
-BOOL IniIsSectionName(PCHAR LineOfText, ULONG TextLength)
+BOOLEAN IniIsSectionName(PCHAR LineOfText, ULONG TextLength)
 {
        ULONG           Idx;
 
 {
        ULONG           Idx;
 
@@ -405,7 +405,7 @@ VOID IniExtractSectionName(PCHAR SectionName, PCHAR SectionNameLine, ULONG LineL
        SectionName[DestIdx] = '\0';
 }
 
        SectionName[DestIdx] = '\0';
 }
 
-BOOL IniIsSetting(PCHAR LineOfText, ULONG TextLength)
+BOOLEAN IniIsSetting(PCHAR LineOfText, ULONG TextLength)
 {
        ULONG           Idx;
 
 {
        ULONG           Idx;
 
index 19c3cd1..953d801 100644 (file)
 PLINUX_BOOTSECTOR      LinuxBootSector = NULL;
 PLINUX_SETUPSECTOR     LinuxSetupSector = NULL;
 ULONG                  SetupSectorSize = 0;
 PLINUX_BOOTSECTOR      LinuxBootSector = NULL;
 PLINUX_SETUPSECTOR     LinuxSetupSector = NULL;
 ULONG                  SetupSectorSize = 0;
-BOOL                   NewStyleLinuxKernel = FALSE;
+BOOLEAN                        NewStyleLinuxKernel = FALSE;
 ULONG                  LinuxKernelSize = 0;
 ULONG                  LinuxInitrdSize = 0;
 CHAR                   LinuxKernelName[260];
 CHAR                   LinuxInitrdName[260];
 ULONG                  LinuxKernelSize = 0;
 ULONG                  LinuxInitrdSize = 0;
 CHAR                   LinuxKernelName[260];
 CHAR                   LinuxInitrdName[260];
-BOOL                   LinuxHasInitrd = FALSE;
+BOOLEAN                        LinuxHasInitrd = FALSE;
 CHAR                   LinuxCommandLine[260] = "";
 ULONG                  LinuxCommandLineSize = 0;
 PVOID                  LinuxKernelLoadAddress = NULL;
 CHAR                   LinuxCommandLine[260] = "";
 ULONG                  LinuxCommandLineSize = 0;
 PVOID                  LinuxKernelLoadAddress = NULL;
@@ -217,7 +217,7 @@ LinuxBootFailed:
        LinuxCommandLineSize = 0;
 }
 
        LinuxCommandLineSize = 0;
 }
 
-BOOL LinuxParseIniSection(PCSTR OperatingSystemName)
+BOOLEAN LinuxParseIniSection(PCSTR OperatingSystemName)
 {
        CHAR    SettingName[260];
        ULONG   SectionId;
 {
        CHAR    SettingName[260];
        ULONG   SectionId;
@@ -262,7 +262,7 @@ BOOL LinuxParseIniSection(PCSTR OperatingSystemName)
        return TRUE;
 }
 
        return TRUE;
 }
 
-BOOL LinuxReadBootSector(PFILE LinuxKernelFile)
+BOOLEAN LinuxReadBootSector(PFILE LinuxKernelFile)
 {
        // Allocate memory for boot sector
        LinuxBootSector = (PLINUX_BOOTSECTOR)MmAllocateMemory(512);
 {
        // Allocate memory for boot sector
        LinuxBootSector = (PLINUX_BOOTSECTOR)MmAllocateMemory(512);
@@ -299,7 +299,7 @@ BOOL LinuxReadBootSector(PFILE LinuxKernelFile)
        return TRUE;
 }
 
        return TRUE;
 }
 
-BOOL LinuxReadSetupSector(PFILE LinuxKernelFile)
+BOOLEAN LinuxReadSetupSector(PFILE LinuxKernelFile)
 {
        UCHAR   TempLinuxSetupSector[512];
 
 {
        UCHAR   TempLinuxSetupSector[512];
 
@@ -365,7 +365,7 @@ BOOL LinuxReadSetupSector(PFILE LinuxKernelFile)
        return TRUE;
 }
 
        return TRUE;
 }
 
-BOOL LinuxReadKernel(PFILE LinuxKernelFile)
+BOOLEAN LinuxReadKernel(PFILE LinuxKernelFile)
 {
        ULONG           BytesLoaded;
        CHAR    StatusText[260];
 {
        ULONG           BytesLoaded;
        CHAR    StatusText[260];
@@ -401,7 +401,7 @@ BOOL LinuxReadKernel(PFILE LinuxKernelFile)
        return TRUE;
 }
 
        return TRUE;
 }
 
-BOOL LinuxCheckKernelVersion(VOID)
+BOOLEAN LinuxCheckKernelVersion(VOID)
 {
        // Just assume old kernel until we find otherwise
        NewStyleLinuxKernel = FALSE;
 {
        // Just assume old kernel until we find otherwise
        NewStyleLinuxKernel = FALSE;
@@ -438,7 +438,7 @@ BOOL LinuxCheckKernelVersion(VOID)
        return TRUE;
 }
 
        return TRUE;
 }
 
-BOOL LinuxReadInitrd(PFILE LinuxInitrdFile)
+BOOLEAN LinuxReadInitrd(PFILE LinuxInitrdFile)
 {
        ULONG           BytesLoaded;
        CHAR    StatusText[260];
 {
        ULONG           BytesLoaded;
        CHAR    StatusText[260];
index c28308a..5d6933f 100644 (file)
@@ -57,7 +57,7 @@ MachConsPutChar(int Ch)
   MachVtbl.ConsPutChar(Ch);
 }
 
   MachVtbl.ConsPutChar(Ch);
 }
 
-BOOL
+BOOLEAN
 MachConsKbHit()
 {
   return MachVtbl.ConsKbHit();
 MachConsKbHit()
 {
   return MachVtbl.ConsKbHit();
@@ -76,7 +76,7 @@ MachVideoClearScreen(UCHAR Attr)
 }
 
 VIDEODISPLAYMODE
 }
 
 VIDEODISPLAYMODE
-MachVideoSetDisplayMode(char *DisplayMode, BOOL Init)
+MachVideoSetDisplayMode(char *DisplayMode, BOOLEAN Init)
 {
   return MachVtbl.VideoSetDisplayMode(DisplayMode, Init);
 }
 {
   return MachVtbl.VideoSetDisplayMode(DisplayMode, Init);
 }
@@ -100,7 +100,7 @@ MachVideoSetTextCursorPosition(ULONG X, ULONG Y)
 }
 
 VOID
 }
 
 VOID
-MachVideoHideShowTextCursor(BOOL Show)
+MachVideoHideShowTextCursor(BOOLEAN Show)
 {
   MachVtbl.VideoHideShowTextCursor(Show);
 }
 {
   MachVtbl.VideoHideShowTextCursor(Show);
 }
@@ -117,7 +117,7 @@ MachVideoCopyOffScreenBufferToVRAM(PVOID Buffer)
   MachVtbl.VideoCopyOffScreenBufferToVRAM(Buffer);
 }
 
   MachVtbl.VideoCopyOffScreenBufferToVRAM(Buffer);
 }
 
-BOOL
+BOOLEAN
 MachVideoIsPaletteFixed(VOID)
 {
   return MachVtbl.VideoIsPaletteFixed();
 MachVideoIsPaletteFixed(VOID)
 {
   return MachVtbl.VideoIsPaletteFixed();
@@ -153,13 +153,13 @@ MachGetMemoryMap(PBIOS_MEMORY_MAP BiosMemoryMap, ULONG MaxMemoryMapSize)
   return MachVtbl.GetMemoryMap(BiosMemoryMap, MaxMemoryMapSize);
 }
 
   return MachVtbl.GetMemoryMap(BiosMemoryMap, MaxMemoryMapSize);
 }
 
-BOOL
+BOOLEAN
 MachDiskGetBootVolume(PULONG DriveNumber, PULONGLONG StartSector, PULONGLONG SectorCount, int *FsType)
 {
   return MachVtbl.DiskGetBootVolume(DriveNumber, StartSector, SectorCount, FsType);
 }
 
 MachDiskGetBootVolume(PULONG DriveNumber, PULONGLONG StartSector, PULONGLONG SectorCount, int *FsType)
 {
   return MachVtbl.DiskGetBootVolume(DriveNumber, StartSector, SectorCount, FsType);
 }
 
-BOOL
+BOOLEAN
 MachDiskGetSystemVolume(char *SystemPath,
                         char *RemainingPath,
                         PULONG Device,
 MachDiskGetSystemVolume(char *SystemPath,
                         char *RemainingPath,
                         PULONG Device,
@@ -173,7 +173,7 @@ MachDiskGetSystemVolume(char *SystemPath,
                                       FsType);
 }
 
                                       FsType);
 }
 
-BOOL
+BOOLEAN
 MachDiskGetBootPath(char *BootPath, unsigned Size)
 {
   return MachVtbl.DiskGetBootPath(BootPath, Size);
 MachDiskGetBootPath(char *BootPath, unsigned Size)
 {
   return MachVtbl.DiskGetBootPath(BootPath, Size);
@@ -185,31 +185,31 @@ MachDiskGetBootDevice(PULONG BootDevice)
   MachVtbl.DiskGetBootDevice(BootDevice);
 }
 
   MachVtbl.DiskGetBootDevice(BootDevice);
 }
 
-BOOL
+BOOLEAN
 MachDiskBootingFromFloppy()
 {
   return MachVtbl.DiskBootingFromFloppy();
 }
 
 MachDiskBootingFromFloppy()
 {
   return MachVtbl.DiskBootingFromFloppy();
 }
 
-BOOL
+BOOLEAN
 MachDiskNormalizeSystemPath(char *SystemPath, unsigned Size)
 {
   return MachVtbl.DiskNormalizeSystemPath(SystemPath, Size);
 }
 
 MachDiskNormalizeSystemPath(char *SystemPath, unsigned Size)
 {
   return MachVtbl.DiskNormalizeSystemPath(SystemPath, Size);
 }
 
-BOOL
+BOOLEAN
 MachDiskReadLogicalSectors(ULONG DriveNumber, ULONGLONG SectorNumber, ULONG SectorCount, PVOID Buffer)
 {
   return MachVtbl.DiskReadLogicalSectors(DriveNumber, SectorNumber, SectorCount, Buffer);
 }
 
 MachDiskReadLogicalSectors(ULONG DriveNumber, ULONGLONG SectorNumber, ULONG SectorCount, PVOID Buffer)
 {
   return MachVtbl.DiskReadLogicalSectors(DriveNumber, SectorNumber, SectorCount, Buffer);
 }
 
-BOOL
+BOOLEAN
 MachDiskGetPartitionEntry(ULONG DriveNumber, ULONG PartitionNumber, PPARTITION_TABLE_ENTRY PartitionTableEntry)
 {
   return MachVtbl.DiskGetPartitionEntry(DriveNumber, PartitionNumber, PartitionTableEntry);
 }
 
 MachDiskGetPartitionEntry(ULONG DriveNumber, ULONG PartitionNumber, PPARTITION_TABLE_ENTRY PartitionTableEntry)
 {
   return MachVtbl.DiskGetPartitionEntry(DriveNumber, PartitionNumber, PartitionTableEntry);
 }
 
-BOOL
+BOOLEAN
 MachDiskGetDriveGeometry(ULONG DriveNumber, PGEOMETRY DriveGeometry)
 {
   return MachVtbl.DiskGetDriveGeometry(DriveNumber, DriveGeometry);
 MachDiskGetDriveGeometry(ULONG DriveNumber, PGEOMETRY DriveGeometry)
 {
   return MachVtbl.DiskGetDriveGeometry(DriveNumber, DriveGeometry);
index c19ddc9..ae05907 100644 (file)
@@ -1625,7 +1625,7 @@ enum reg_class
    standard Unix calling sequences.  If the option is not selected,
    the caller must always pop the args.
 
    standard Unix calling sequences.  If the option is not selected,
    the caller must always pop the args.
 
-   The attribute stdcall is equivalent to RTD on a per module basis.  */
+   The attribute NTAPI is equivalent to RTD on a per module basis.  */
 
 #define RETURN_POPS_ARGS(FUNDECL, FUNTYPE, SIZE) \
   ix86_return_pops_args ((FUNDECL), (FUNTYPE), (SIZE))
 
 #define RETURN_POPS_ARGS(FUNDECL, FUNTYPE, SIZE) \
   ix86_return_pops_args ((FUNDECL), (FUNTYPE), (SIZE))
index 496fd2f..7b8e389 100644 (file)
@@ -1639,7 +1639,7 @@ getpagesize (void)
 }
 
 #ifdef __i386__
 }
 
 #ifdef __i386__
-extern int VirtualProtect (char *, int, int, int *) __attribute__((stdcall));
+extern int VirtualProtect (char *, int, int, int *) __attribute__((NTAPI));
 #endif
 
 int
 #endif
 
 int
index 094c61a..e2efe94 100644 (file)
@@ -1626,7 +1626,7 @@ enum reg_class
    standard Unix calling sequences.  If the option is not selected,
    the caller must always pop the args.
 
    standard Unix calling sequences.  If the option is not selected,
    the caller must always pop the args.
 
-   The attribute stdcall is equivalent to RTD on a per module basis.  */
+   The attribute NTAPI is equivalent to RTD on a per module basis.  */
 
 #define RETURN_POPS_ARGS(FUNDECL, FUNTYPE, SIZE) \
   ix86_return_pops_args ((FUNDECL), (FUNTYPE), (SIZE))
 
 #define RETURN_POPS_ARGS(FUNDECL, FUNTYPE, SIZE) \
   ix86_return_pops_args ((FUNDECL), (FUNTYPE), (SIZE))
index dbf1dab..7c60ff6 100644 (file)
@@ -45,7 +45,7 @@ ULONG         TotalPagesInLookupTable = 0;
 ULONG          FreePagesInLookupTable = 0;
 ULONG          LastFreePageHint = 0;
 
 ULONG          FreePagesInLookupTable = 0;
 ULONG          LastFreePageHint = 0;
 
-BOOL MmInitializeMemoryManager(VOID)
+BOOLEAN MmInitializeMemoryManager(VOID)
 {
        BIOS_MEMORY_MAP BiosMemoryMap[32];
        ULONG           BiosMemoryMapEntryCount;
 {
        BIOS_MEMORY_MAP BiosMemoryMap[32];
        ULONG           BiosMemoryMapEntryCount;
@@ -416,7 +416,7 @@ VOID MmUpdateLastFreePageHint(PVOID PageLookupTable, ULONG TotalPageCount)
        }
 }
 
        }
 }
 
-BOOL MmAreMemoryPagesAvailable(PVOID PageLookupTable, ULONG TotalPageCount, PVOID PageAddress, ULONG PageCount)
+BOOLEAN MmAreMemoryPagesAvailable(PVOID PageLookupTable, ULONG TotalPageCount, PVOID PageAddress, ULONG PageCount)
 {
        PPAGE_LOOKUP_TABLE_ITEM         RealPageLookupTable = (PPAGE_LOOKUP_TABLE_ITEM)PageLookupTable;
        ULONG                                                   StartPage;
 {
        PPAGE_LOOKUP_TABLE_ITEM         RealPageLookupTable = (PPAGE_LOOKUP_TABLE_ITEM)PageLookupTable;
        ULONG                                                   StartPage;
index 0a6459b..cad7d64 100644 (file)
@@ -19,7 +19,7 @@
 
 #include <freeldr.h>
 
 
 #include <freeldr.h>
 
-BOOL InitOperatingSystemList(PCSTR **SectionNamesPointer, PCSTR **DisplayNamesPointer, ULONG* OperatingSystemCountPointer)
+BOOLEAN InitOperatingSystemList(PCSTR **SectionNamesPointer, PCSTR **DisplayNamesPointer, ULONG* OperatingSystemCountPointer)
 {
        ULONG           Idx;
        ULONG           CurrentOperatingSystemIndex;
 {
        ULONG           Idx;
        ULONG           CurrentOperatingSystemIndex;
@@ -110,7 +110,7 @@ ULONG CountOperatingSystems(ULONG SectionId)
        return OperatingSystemCount;
 }
 
        return OperatingSystemCount;
 }
 
-BOOL AllocateListMemory(PCHAR **SectionNamesPointer, PCHAR **DisplayNamesPointer, ULONG OperatingSystemCount)
+BOOLEAN AllocateListMemory(PCHAR **SectionNamesPointer, PCHAR **DisplayNamesPointer, ULONG OperatingSystemCount)
 {
        ULONG           Idx;
        PCHAR   *OperatingSystemSectionNames = NULL;
 {
        ULONG           Idx;
        PCHAR   *OperatingSystemSectionNames = NULL;
@@ -195,7 +195,7 @@ AllocateListMemoryFailed:
        return FALSE;
 }
 
        return FALSE;
 }
 
-BOOL RemoveQuotes(PCHAR QuotedString)
+BOOLEAN RemoveQuotes(PCHAR QuotedString)
 {
        CHAR    TempString[200];
 
 {
        CHAR    TempString[200];
 
index 26f5754..dee2202 100644 (file)
@@ -21,7 +21,7 @@
 
 #include <freeldr.h>
 
 
 #include <freeldr.h>
 
-BOOL DissectArcPath(CHAR *ArcPath, CHAR *BootPath, ULONG* BootDrive, ULONG* BootPartition)
+BOOLEAN DissectArcPath(CHAR *ArcPath, CHAR *BootPath, ULONG* BootDrive, ULONG* BootPartition)
 {
        char *p;
 
 {
        char *p;
 
index 4b8cd0f..0cfcffc 100644 (file)
@@ -327,7 +327,7 @@ CmiCreateDefaultRootKeyCell (PKEY_CELL RootKeyCell, PCWSTR KeyName)
   ULONG NameSize;
   ULONG CellSize;
   ULONG i;
   ULONG NameSize;
   ULONG CellSize;
   ULONG i;
-  BOOL Packable = TRUE;
+  BOOLEAN Packable = TRUE;
 
   assert (RootKeyCell);
 
 
   assert (RootKeyCell);
 
@@ -463,7 +463,7 @@ CmiCreateHive (PCWSTR KeyName)
 
 
 static VOID
 
 
 static VOID
-CmiCleanupHive(PREGISTRY_HIVE Hive, BOOL Release)
+CmiCleanupHive(PREGISTRY_HIVE Hive, BOOLEAN Release)
 {
   MmFreeMemory (Hive->FreeListOffset);
   MmFreeMemory (Hive->FreeList);
 {
   MmFreeMemory (Hive->FreeListOffset);
   MmFreeMemory (Hive->FreeList);
@@ -494,7 +494,7 @@ CmiGetBin (PREGISTRY_HIVE Hive,
 }
 
 
 }
 
 
-static BOOL
+static BOOLEAN
 CmiMergeFree(PREGISTRY_HIVE RegistryHive,
             PCELL_HEADER FreeBlock,
             BLOCK_OFFSET FreeOffset)
 CmiMergeFree(PREGISTRY_HIVE RegistryHive,
             PCELL_HEADER FreeBlock,
             BLOCK_OFFSET FreeOffset)
@@ -584,11 +584,11 @@ CmiMergeFree(PREGISTRY_HIVE RegistryHive,
 }
 
 
 }
 
 
-static BOOL
+static BOOLEAN
 CmiAddFree(PREGISTRY_HIVE RegistryHive,
           PCELL_HEADER FreeBlock,
           BLOCK_OFFSET FreeOffset,
 CmiAddFree(PREGISTRY_HIVE RegistryHive,
           PCELL_HEADER FreeBlock,
           BLOCK_OFFSET FreeOffset,
-          BOOL MergeFreeBlocks)
+          BOOLEAN MergeFreeBlocks)
 {
   PCELL_HEADER *tmpList;
   BLOCK_OFFSET *tmpListOffset;
 {
   PCELL_HEADER *tmpList;
   BLOCK_OFFSET *tmpListOffset;
@@ -691,7 +691,7 @@ CmiAddFree(PREGISTRY_HIVE RegistryHive,
 }
 
 
 }
 
 
-static BOOL
+static BOOLEAN
 CmiAddBin(PREGISTRY_HIVE RegistryHive,
          ULONG BlockCount,
          PVOID *NewBlock,
 CmiAddBin(PREGISTRY_HIVE RegistryHive,
          ULONG BlockCount,
          PVOID *NewBlock,
@@ -751,7 +751,7 @@ CmiAddBin(PREGISTRY_HIVE RegistryHive,
 }
 
 
 }
 
 
-static BOOL
+static BOOLEAN
 CmiAllocateCell (PREGISTRY_HIVE RegistryHive,
                 LONG CellSize,
                 PVOID *Block,
 CmiAllocateCell (PREGISTRY_HIVE RegistryHive,
                 LONG CellSize,
                 PVOID *Block,
@@ -848,14 +848,14 @@ CmiGetCell (PREGISTRY_HIVE Hive,
 }
 
 
 }
 
 
-static BOOL
+static BOOLEAN
 CmiAllocateHashTableCell (PREGISTRY_HIVE Hive,
                          PBLOCK_OFFSET HBOffset,
                          ULONG SubKeyCount)
 {
   PHASH_TABLE_CELL HashCell;
   ULONG NewHashSize;
 CmiAllocateHashTableCell (PREGISTRY_HIVE Hive,
                          PBLOCK_OFFSET HBOffset,
                          ULONG SubKeyCount)
 {
   PHASH_TABLE_CELL HashCell;
   ULONG NewHashSize;
-  BOOL Status;
+  BOOLEAN Status;
 
   NewHashSize = sizeof(HASH_TABLE_CELL) +
                (SubKeyCount * sizeof(HASH_RECORD));
 
   NewHashSize = sizeof(HASH_TABLE_CELL) +
                (SubKeyCount * sizeof(HASH_RECORD));
@@ -875,7 +875,7 @@ CmiAllocateHashTableCell (PREGISTRY_HIVE Hive,
 }
 
 
 }
 
 
-static BOOL
+static BOOLEAN
 CmiAddKeyToParentHashTable (PREGISTRY_HIVE Hive,
                            BLOCK_OFFSET ParentKeyOffset,
                            PKEY_CELL NewKeyCell,
 CmiAddKeyToParentHashTable (PREGISTRY_HIVE Hive,
                            BLOCK_OFFSET ParentKeyOffset,
                            PKEY_CELL NewKeyCell,
@@ -916,14 +916,14 @@ CmiAddKeyToParentHashTable (PREGISTRY_HIVE Hive,
 }
 
 
 }
 
 
-static BOOL
+static BOOLEAN
 CmiAllocateValueListCell (PREGISTRY_HIVE Hive,
                          PBLOCK_OFFSET ValueListOffset,
                          ULONG ValueCount)
 {
   PVALUE_LIST_CELL ValueListCell;
   ULONG ValueListSize;
 CmiAllocateValueListCell (PREGISTRY_HIVE Hive,
                          PBLOCK_OFFSET ValueListOffset,
                          ULONG ValueCount)
 {
   PVALUE_LIST_CELL ValueListCell;
   ULONG ValueListSize;
-  BOOL Status;
+  BOOLEAN Status;
 
   ValueListSize = sizeof(VALUE_LIST_CELL) +
                  (ValueCount * sizeof(BLOCK_OFFSET));
 
   ValueListSize = sizeof(VALUE_LIST_CELL) +
                  (ValueCount * sizeof(BLOCK_OFFSET));
@@ -941,7 +941,7 @@ CmiAllocateValueListCell (PREGISTRY_HIVE Hive,
 }
 
 
 }
 
 
-static BOOL
+static BOOLEAN
 CmiAllocateValueCell(PREGISTRY_HIVE Hive,
                     PVALUE_CELL *ValueCell,
                     BLOCK_OFFSET *ValueCellOffset,
 CmiAllocateValueCell(PREGISTRY_HIVE Hive,
                     PVALUE_CELL *ValueCell,
                     BLOCK_OFFSET *ValueCellOffset,
@@ -949,7 +949,7 @@ CmiAllocateValueCell(PREGISTRY_HIVE Hive,
 {
   PVALUE_CELL NewValueCell;
   ULONG NameSize;
 {
   PVALUE_CELL NewValueCell;
   ULONG NameSize;
-  BOOL Status;
+  BOOLEAN Status;
   BOOLEAN Packable = TRUE;
   ULONG i;
 
   BOOLEAN Packable = TRUE;
   ULONG i;
 
@@ -1003,7 +1003,7 @@ CmiAllocateValueCell(PREGISTRY_HIVE Hive,
 }
 
 
 }
 
 
-static BOOL
+static BOOLEAN
 CmiAddValueToKeyValueList(PREGISTRY_HIVE Hive,
                          BLOCK_OFFSET KeyCellOffset,
                          BLOCK_OFFSET ValueCellOffset)
 CmiAddValueToKeyValueList(PREGISTRY_HIVE Hive,
                          BLOCK_OFFSET KeyCellOffset,
                          BLOCK_OFFSET ValueCellOffset)
@@ -1031,7 +1031,7 @@ CmiAddValueToKeyValueList(PREGISTRY_HIVE Hive,
   return TRUE;
 }
 
   return TRUE;
 }
 
-static BOOL
+static BOOLEAN
 CmiExportValue (PREGISTRY_HIVE Hive,
                BLOCK_OFFSET KeyCellOffset,
                FRLDRHKEY Key,
 CmiExportValue (PREGISTRY_HIVE Hive,
                BLOCK_OFFSET KeyCellOffset,
                FRLDRHKEY Key,
@@ -1106,7 +1106,7 @@ CmiExportValue (PREGISTRY_HIVE Hive,
 }
 
 
 }
 
 
-static BOOL
+static BOOLEAN
 CmiExportSubKey (PREGISTRY_HIVE Hive,
                 BLOCK_OFFSET ParentKeyOffset,
                 FRLDRHKEY ParentKey,
 CmiExportSubKey (PREGISTRY_HIVE Hive,
                 BLOCK_OFFSET ParentKeyOffset,
                 FRLDRHKEY ParentKey,
@@ -1270,7 +1270,7 @@ CmiCalcHiveChecksum (PREGISTRY_HIVE Hive)
 }
 
 
 }
 
 
-static BOOL
+static BOOLEAN
 CmiExportHive (PREGISTRY_HIVE Hive,
               PCWSTR KeyName)
 {
 CmiExportHive (PREGISTRY_HIVE Hive,
               PCWSTR KeyName)
 {
@@ -1365,7 +1365,7 @@ CmiExportHive (PREGISTRY_HIVE Hive,
 }
 
 
 }
 
 
-static BOOL
+static BOOLEAN
 RegImportValue (PHBIN RootBin,
                PVALUE_CELL ValueCell,
                FRLDRHKEY Key)
 RegImportValue (PHBIN RootBin,
                PVALUE_CELL ValueCell,
                FRLDRHKEY Key)
@@ -1451,7 +1451,7 @@ RegImportValue (PHBIN RootBin,
 }
 
 
 }
 
 
-static BOOL
+static BOOLEAN
 RegImportSubKey(PHBIN RootBin,
                PKEY_CELL KeyCell,
                FRLDRHKEY ParentKey)
 RegImportSubKey(PHBIN RootBin,
                PKEY_CELL KeyCell,
                FRLDRHKEY ParentKey)
@@ -1550,7 +1550,7 @@ RegImportSubKey(PHBIN RootBin,
 }
 
 
 }
 
 
-BOOL
+BOOLEAN
 RegImportBinaryHive(PCHAR ChunkBase,
                    ULONG ChunkSize)
 {
 RegImportBinaryHive(PCHAR ChunkBase,
                    ULONG ChunkSize)
 {
@@ -1627,7 +1627,7 @@ RegImportBinaryHive(PCHAR ChunkBase,
 }
 
 
 }
 
 
-BOOL
+BOOLEAN
 RegExportBinaryHive(PCWSTR KeyName,
                    PCHAR ChunkBase,
                    ULONG* ChunkSize)
 RegExportBinaryHive(PCWSTR KeyName,
                    PCHAR ChunkBase,
                    ULONG* ChunkSize)
index 932c626..441664f 100644 (file)
@@ -33,8 +33,8 @@ memory_map_t                  reactos_memory_map[32];         // Memory map
 
 static CHAR szLoadingMsg[] = "Loading ReactOS...";
 
 
 static CHAR szLoadingMsg[] = "Loading ReactOS...";
 
-static BOOL
-STDCALL
+static BOOLEAN
+NTAPI
 FrLdrLoadKernel(PCHAR szFileName,
                 INT nPos)
 {
 FrLdrLoadKernel(PCHAR szFileName,
                 INT nPos)
 {
@@ -109,7 +109,7 @@ FreeldrSeekFile(PVOID FileContext, ULONG_PTR Position)
     return TRUE;
 }
 
     return TRUE;
 }
 
-static BOOL
+static BOOLEAN
 LoadKernelSymbols(PCHAR szKernelName, int nPos)
 {
   static ROSSYM_CALLBACKS FreeldrCallbacks =
 LoadKernelSymbols(PCHAR szKernelName, int nPos)
 {
   static ROSSYM_CALLBACKS FreeldrCallbacks =
@@ -143,7 +143,7 @@ LoadKernelSymbols(PCHAR szKernelName, int nPos)
   return TRUE;
 }
 
   return TRUE;
 }
 
-static BOOL
+static BOOLEAN
 FrLdrLoadNlsFile(PCSTR szFileName,
                  PCSTR szModuleName)
 {
 FrLdrLoadNlsFile(PCSTR szFileName,
                  PCSTR szModuleName)
 {
@@ -182,7 +182,7 @@ FrLdrLoadNlsFile(PCSTR szFileName,
     return(TRUE);
 }
 
     return(TRUE);
 }
 
-static BOOL
+static BOOLEAN
 FrLdrLoadNlsFiles(PCHAR szSystemRoot,
                   PCHAR szErrorOut)
 {
 FrLdrLoadNlsFiles(PCHAR szSystemRoot,
                   PCHAR szErrorOut)
 {
@@ -294,7 +294,7 @@ FrLdrLoadNlsFiles(PCHAR szSystemRoot,
     return(TRUE);
 }
 
     return(TRUE);
 }
 
-static BOOL
+static BOOLEAN
 FrLdrLoadDriver(PCHAR szFileName,
                 INT nPos)
 {
 FrLdrLoadDriver(PCHAR szFileName,
                 INT nPos)
 {
index 92e0954..2373c4d 100644 (file)
@@ -93,7 +93,7 @@ RegInitializeRegistry (VOID)
 
 
 LONG
 
 
 LONG
-RegInitCurrentControlSet(BOOL LastKnownGood)
+RegInitCurrentControlSet(BOOLEAN LastKnownGood)
 {
   WCHAR ControlSetKeyName[80];
   FRLDRHKEY SelectKey;
 {
   WCHAR ControlSetKeyName[80];
   FRLDRHKEY SelectKey;
index 105fa8b..369d9b8 100644 (file)
@@ -45,7 +45,7 @@ FreeldrSeekFile(PVOID FileContext, ULONG_PTR Position)
     return TRUE;
 }
 
     return TRUE;
 }
 
-static BOOL
+static BOOLEAN
 LoadKernel(PCSTR szSourcePath, PCSTR szFileName)
 {
   CHAR szFullName[256];
 LoadKernel(PCSTR szSourcePath, PCSTR szFileName)
 {
   CHAR szFullName[256];
@@ -110,7 +110,7 @@ LoadKernel(PCSTR szSourcePath, PCSTR szFileName)
   return(TRUE);
 }
 
   return(TRUE);
 }
 
-static BOOL
+static BOOLEAN
 LoadKernelSymbols(PCSTR szSourcePath, PCSTR szFileName)
 {
   static ROSSYM_CALLBACKS FreeldrCallbacks =
 LoadKernelSymbols(PCSTR szSourcePath, PCSTR szFileName)
 {
   static ROSSYM_CALLBACKS FreeldrCallbacks =
@@ -165,7 +165,7 @@ LoadKernelSymbols(PCSTR szSourcePath, PCSTR szFileName)
   return FALSE;
 }
 
   return FALSE;
 }
 
-static BOOL
+static BOOLEAN
 LoadDriver(PCSTR szSourcePath, PCSTR szFileName)
 {
   CHAR szFullName[256];
 LoadDriver(PCSTR szSourcePath, PCSTR szFileName)
 {
   CHAR szFullName[256];
@@ -230,7 +230,7 @@ LoadDriver(PCSTR szSourcePath, PCSTR szFileName)
 }
 
 
 }
 
 
-static BOOL
+static BOOLEAN
 LoadNlsFile(PCSTR szSourcePath, PCSTR szFileName, PCSTR szModuleName)
 {
   CHAR szFullName[256];
 LoadNlsFile(PCSTR szSourcePath, PCSTR szFileName, PCSTR szModuleName)
 {
   CHAR szFullName[256];
index 9ccd29c..d6b2db8 100644 (file)
@@ -82,7 +82,7 @@ PLIST_ITEM RtlListGetTail(PLIST_ITEM ListHead)
        return ListHead;
 }
 
        return ListHead;
 }
 
-BOOL RtlListIsEmpty(PLIST_ITEM ListHead)
+BOOLEAN RtlListIsEmpty(PLIST_ITEM ListHead)
 {
        if (ListHead == NULL)
        {
 {
        if (ListHead == NULL)
        {
index 5f4b40c..9465512 100644 (file)
@@ -31,7 +31,7 @@ VOID GuiDrawShadow(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom)
 {
 }
 
 {
 }
 
-VOID GuiDrawBox(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, UCHAR VertStyle, UCHAR HorzStyle, BOOL Fill, BOOL Shadow, UCHAR Attr)
+VOID GuiDrawBox(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, UCHAR VertStyle, UCHAR HorzStyle, BOOLEAN Fill, BOOLEAN Shadow, UCHAR Attr)
 {
 }
 
 {
 }
 
index 73ae36a..8b80f3e 100644 (file)
@@ -20,8 +20,8 @@
 #include <freeldr.h>
 
 PVOID  TextVideoBuffer = NULL;
 #include <freeldr.h>
 
 PVOID  TextVideoBuffer = NULL;
-extern BOOL UiDrawTime;
-extern BOOL UiMinimal;
+extern BOOLEAN UiDrawTime;
+extern BOOLEAN UiMinimal;
 
 /*
  * printf() - prints formatted text to stdout
 
 /*
  * printf() - prints formatted text to stdout
@@ -82,7 +82,7 @@ int printf(const char *format, ... )
        return 0;
 }
 
        return 0;
 }
 
-BOOL TuiInitialize(VOID)
+BOOLEAN TuiInitialize(VOID)
 {
        MachVideoClearScreen(ATTR(COLOR_WHITE, COLOR_BLACK));
        MachVideoHideShowTextCursor(FALSE);
 {
        MachVideoClearScreen(ATTR(COLOR_WHITE, COLOR_BLACK));
        MachVideoHideShowTextCursor(FALSE);
@@ -300,7 +300,7 @@ VOID TuiDrawShadow(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom)
  * DrawBox()
  * This function assumes coordinates are zero-based
  */
  * DrawBox()
  * This function assumes coordinates are zero-based
  */
-VOID TuiDrawBox(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, UCHAR VertStyle, UCHAR HorzStyle, BOOL Fill, BOOL Shadow, UCHAR Attr)
+VOID TuiDrawBox(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, UCHAR VertStyle, UCHAR HorzStyle, BOOLEAN Fill, BOOLEAN Shadow, UCHAR Attr)
 {
        UCHAR   ULCorner, URCorner, LLCorner, LRCorner;
 
 {
        UCHAR   ULCorner, URCorner, LLCorner, LRCorner;
 
@@ -473,7 +473,7 @@ VOID TuiUpdateDateTime(VOID)
        CHAR    DateString[40];
        CHAR    TimeString[40];
        CHAR    TempString[20];
        CHAR    DateString[40];
        CHAR    TimeString[40];
        CHAR    TempString[20];
-       BOOL    PMHour = FALSE;
+       BOOLEAN PMHour = FALSE;
 
     /* Don't draw the time if this has been disabled */
     if (!UiDrawTime) return;
 
     /* Don't draw the time if this has been disabled */
     if (!UiDrawTime) return;
@@ -882,7 +882,7 @@ VOID TuiFadeOut(VOID)
 
 }
 
 
 }
 
-BOOL TuiEditBox(PCSTR MessageText, PCHAR EditTextBuffer, ULONG Length)
+BOOLEAN TuiEditBox(PCSTR MessageText, PCHAR EditTextBuffer, ULONG Length)
 {
        int             width = 8;
        unsigned int    height = 1;
 {
        int             width = 8;
        unsigned int    height = 1;
@@ -897,7 +897,7 @@ BOOL TuiEditBox(PCSTR MessageText, PCHAR EditTextBuffer, ULONG Length)
        int             EditBoxCursorX;
        unsigned int    EditBoxTextCount;
        int             EditBoxTextDisplayIndex;
        int             EditBoxCursorX;
        unsigned int    EditBoxTextCount;
        int             EditBoxTextDisplayIndex;
-       BOOL    ReturnCode;
+       BOOLEAN ReturnCode;
        PVOID   ScreenBuffer;
 
        // Save the screen contents
        PVOID   ScreenBuffer;
 
        // Save the screen contents
index 3efd095..1479091 100644 (file)
 
 /* FUNCTIONS *****************************************************************/
 
 
 /* FUNCTIONS *****************************************************************/
 
-BOOL
-WINAPI
+BOOLEAN
+NTAPI
 TuiDisplayMenu(PCSTR MenuItemList[],
                ULONG MenuItemCount,
                ULONG DefaultMenuItem,
                LONG MenuTimeOut,
                ULONG* SelectedMenuItem,
 TuiDisplayMenu(PCSTR MenuItemList[],
                ULONG MenuItemCount,
                ULONG DefaultMenuItem,
                LONG MenuTimeOut,
                ULONG* SelectedMenuItem,
-               BOOL CanEscape,
+               BOOLEAN CanEscape,
                UiMenuKeyPressFilterCallback KeyPressFilter)
 {
     TUI_MENU_INFO MenuInformation;
                UiMenuKeyPressFilterCallback KeyPressFilter)
 {
     TUI_MENU_INFO MenuInformation;
@@ -135,7 +135,7 @@ TuiDisplayMenu(PCSTR MenuItemList[],
 }
 
 VOID
 }
 
 VOID
-WINAPI
+NTAPI
 TuiCalcMenuBoxSize(PTUI_MENU_INFO MenuInfo)
 {
     ULONG i;
 TuiCalcMenuBoxSize(PTUI_MENU_INFO MenuInfo)
 {
     ULONG i;
@@ -195,7 +195,7 @@ TuiCalcMenuBoxSize(PTUI_MENU_INFO MenuInfo)
 }
 
 VOID
 }
 
 VOID
-WINAPI
+NTAPI
 TuiDrawMenu(PTUI_MENU_INFO MenuInfo)
 {
     ULONG i;
 TuiDrawMenu(PTUI_MENU_INFO MenuInfo)
 {
     ULONG i;
@@ -262,7 +262,7 @@ TuiDrawMenu(PTUI_MENU_INFO MenuInfo)
 }
 
 VOID
 }
 
 VOID
-WINAPI
+NTAPI
 TuiDrawMenuBox(PTUI_MENU_INFO MenuInfo)
 {
     CHAR MenuLineText[80];
 TuiDrawMenuBox(PTUI_MENU_INFO MenuInfo)
 {
     CHAR MenuLineText[80];
@@ -360,7 +360,7 @@ TuiDrawMenuBox(PTUI_MENU_INFO MenuInfo)
 }
 
 VOID
 }
 
 VOID
-WINAPI
+NTAPI
 TuiDrawMenuItem(PTUI_MENU_INFO MenuInfo,
                 ULONG MenuItemNumber)
 {
 TuiDrawMenuItem(PTUI_MENU_INFO MenuInfo,
                 ULONG MenuItemNumber)
 {
@@ -440,7 +440,7 @@ TuiDrawMenuItem(PTUI_MENU_INFO MenuInfo,
 }
 
 ULONG
 }
 
 ULONG
-WINAPI
+NTAPI
 TuiProcessMenuKeyboardEvent(PTUI_MENU_INFO MenuInfo,
                             UiMenuKeyPressFilterCallback KeyPressFilter)
 {
 TuiProcessMenuKeyboardEvent(PTUI_MENU_INFO MenuInfo,
                             UiMenuKeyPressFilterCallback KeyPressFilter)
 {
index 299f817..26f3031 100644 (file)
@@ -45,21 +45,21 @@ UCHAR       UiEditBoxBgColor                        = COLOR_BLACK;                  // Edit box text background color
 
 CHAR   UiTitleBoxTitleText[260]        = "Boot Menu";                  // Title box's title text
 
 
 CHAR   UiTitleBoxTitleText[260]        = "Boot Menu";                  // Title box's title text
 
-BOOL   UserInterfaceUp                         = FALSE;                                // Tells us if the user interface is displayed
+BOOLEAN        UserInterfaceUp                         = FALSE;                                // Tells us if the user interface is displayed
 
 VIDEODISPLAYMODE       UiDisplayMode           = VideoTextMode;                // Tells us if we are in text or graphics mode
 
 
 VIDEODISPLAYMODE       UiDisplayMode           = VideoTextMode;                // Tells us if we are in text or graphics mode
 
-BOOL   UiUseSpecialEffects                     = FALSE;                                // Tells us if we should use fade effects
-BOOL   UiDrawTime                                      = TRUE;                                 // Tells us if we should draw the time
-BOOL   UiMinimal                                       = FALSE;                                // Tells us if we should use a minimal console-like UI
-BOOL   UiCenterMenu                            = TRUE;                                 // Tells us if we should use a centered or left-aligned menu
-BOOL   UiMenuBox                                       = TRUE;                                 // Tells us if we shuld draw a box around the menu
+BOOLEAN        UiUseSpecialEffects                     = FALSE;                                // Tells us if we should use fade effects
+BOOLEAN        UiDrawTime                                      = TRUE;                                 // Tells us if we should draw the time
+BOOLEAN        UiMinimal                                       = FALSE;                                // Tells us if we should use a minimal console-like UI
+BOOLEAN        UiCenterMenu                            = TRUE;                                 // Tells us if we should use a centered or left-aligned menu
+BOOLEAN        UiMenuBox                                       = TRUE;                                 // Tells us if we shuld draw a box around the menu
 CHAR   UiTimeText[260] = "[Time Remaining: ] ";
 
 const CHAR     UiMonthNames[12][15] = { "January ", "February ", "March ", "April ", "May ", "June ", "July ", "August ", "September ", "October ", "November ", "December " };
 
 
 CHAR   UiTimeText[260] = "[Time Remaining: ] ";
 
 const CHAR     UiMonthNames[12][15] = { "January ", "February ", "March ", "April ", "May ", "June ", "July ", "August ", "September ", "October ", "November ", "December " };
 
 
-BOOL UiInitialize(BOOLEAN ShowGui)
+BOOLEAN UiInitialize(BOOLEAN ShowGui)
 {
        ULONG   SectionId;
        CHAR    DisplayModeText[260];
 {
        ULONG   SectionId;
        CHAR    DisplayModeText[260];
@@ -248,7 +248,7 @@ BOOL UiInitialize(BOOLEAN ShowGui)
        return TRUE;
 }
 
        return TRUE;
 }
 
-BOOL SetupUiInitialize(VOID)
+BOOLEAN SetupUiInitialize(VOID)
 {
 
        CHAR    DisplayModeText[260];
 {
 
        CHAR    DisplayModeText[260];
@@ -340,7 +340,7 @@ VOID UiDrawShadow(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom)
        }
 }
 
        }
 }
 
-VOID UiDrawBox(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, UCHAR VertStyle, UCHAR HorzStyle, BOOL Fill, BOOL Shadow, UCHAR Attr)
+VOID UiDrawBox(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, UCHAR VertStyle, UCHAR HorzStyle, BOOLEAN Fill, BOOLEAN Shadow, UCHAR Attr)
 {
        if (VideoTextMode == UiDisplayMode)
        {
 {
        if (VideoTextMode == UiDisplayMode)
        {
@@ -652,7 +652,7 @@ VOID UiTruncateStringEllipsis(PCHAR StringText, ULONG MaxChars)
        }
 }
 
        }
 }
 
-BOOL UiDisplayMenu(PCSTR MenuItemList[], ULONG MenuItemCount, ULONG DefaultMenuItem, LONG MenuTimeOut, ULONG* SelectedMenuItem, BOOL CanEscape, UiMenuKeyPressFilterCallback KeyPressFilter)
+BOOLEAN UiDisplayMenu(PCSTR MenuItemList[], ULONG MenuItemCount, ULONG DefaultMenuItem, LONG MenuTimeOut, ULONG* SelectedMenuItem, BOOLEAN CanEscape, UiMenuKeyPressFilterCallback KeyPressFilter)
 {
        if (VideoTextMode == UiDisplayMode)
        {
 {
        if (VideoTextMode == UiDisplayMode)
        {
@@ -692,7 +692,7 @@ VOID UiFadeOut(VOID)
        }
 }
 
        }
 }
 
-BOOL UiEditBox(PCSTR MessageText, PCHAR EditTextBuffer, ULONG Length)
+BOOLEAN UiEditBox(PCSTR MessageText, PCHAR EditTextBuffer, ULONG Length)
 {
        if (VideoTextMode == UiDisplayMode)
        {
 {
        if (VideoTextMode == UiDisplayMode)
        {