From 182c4064e60742866719bbb76e8e481229723e5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9=20van=20Geldorp?= Date: Sun, 16 Jan 2005 11:29:03 +0000 Subject: [PATCH] Use native BOOLEAN instead of win32k BOOL svn path=/trunk/; revision=13076 --- reactos/include/ntdll/ldr.h | 2 +- reactos/lib/ntdll/ldr/res.c | 4 ++-- reactos/lib/ntdll/ldr/startup.c | 4 ++-- reactos/lib/ntdll/ldr/utils.c | 30 +++++++++++++++--------------- 4 files changed, 20 insertions(+), 20 deletions(-) diff --git a/reactos/include/ntdll/ldr.h b/reactos/include/ntdll/ldr.h index 23dede9f72d..6db9430cdd8 100644 --- a/reactos/include/ntdll/ldr.h +++ b/reactos/include/ntdll/ldr.h @@ -102,7 +102,7 @@ NTSTATUS LdrMapSections(HANDLE ProcessHandle, PIMAGE_NT_HEADERS NTHeaders); NTSTATUS LdrMapNTDllForProcess(HANDLE ProcessHandle, PHANDLE NTDllSectionHandle); -BOOL LdrMappedAsDataFile(PVOID *BaseAddress); +BOOLEAN LdrMappedAsDataFile(PVOID *BaseAddress); NTSTATUS STDCALL LdrDisableThreadCalloutsForDll(IN PVOID BaseAddress); diff --git a/reactos/lib/ntdll/ldr/res.c b/reactos/lib/ntdll/ldr/res.c index 6b28897524a..91676aa3554 100644 --- a/reactos/lib/ntdll/ldr/res.c +++ b/reactos/lib/ntdll/ldr/res.c @@ -110,7 +110,7 @@ LdrFindResource_U(PVOID BaseAddress, int j, pos = 0; LCID UserLCID, SystemLCID; LANGID UserLangID, SystemLangID; - BOOL MappedAsDataFile; + BOOLEAN MappedAsDataFile; MappedAsDataFile = LdrMappedAsDataFile(&BaseAddress); DPRINT("LdrFindResource_U(%08x, %08x, %d, %08x)\n", BaseAddress, ResourceInfo, Level, ResourceDataEntry); @@ -280,7 +280,7 @@ LdrAccessResource(IN PVOID BaseAddress, ULONG DataSize; ULONG Offset = 0; ULONG Data; - BOOL MappedAsDataFile; + BOOLEAN MappedAsDataFile; if(!ResourceDataEntry) return STATUS_RESOURCE_DATA_NOT_FOUND; diff --git a/reactos/lib/ntdll/ldr/startup.c b/reactos/lib/ntdll/ldr/startup.c index 6a8c283628d..72c85a3d986 100644 --- a/reactos/lib/ntdll/ldr/startup.c +++ b/reactos/lib/ntdll/ldr/startup.c @@ -42,7 +42,7 @@ NTSTATUS LdrpAttachThread (VOID); #define VALUE_BUFFER_SIZE 256 -BOOL FASTCALL +BOOLEAN FASTCALL ReadCompatibilitySetting(HANDLE Key, LPWSTR Value, PKEY_VALUE_PARTIAL_INFORMATION ValueInfo, DWORD *Buffer) { UNICODE_STRING ValueName; @@ -105,7 +105,7 @@ LoadImageFileExecutionOptions(PPEB Peb) -BOOL FASTCALL +BOOLEAN FASTCALL LoadCompatibilitySettings(PPEB Peb) { NTSTATUS Status; diff --git a/reactos/lib/ntdll/ldr/utils.c b/reactos/lib/ntdll/ldr/utils.c index 1c85690a8b7..d8245fb0a12 100644 --- a/reactos/lib/ntdll/ldr/utils.c +++ b/reactos/lib/ntdll/ldr/utils.c @@ -55,7 +55,7 @@ extern PLDR_MODULE ExeModule; /* PROTOTYPES ****************************************************************/ -static NTSTATUS LdrFindEntryForName(PUNICODE_STRING Name, PLDR_MODULE *Module, BOOL Ref); +static NTSTATUS LdrFindEntryForName(PUNICODE_STRING Name, PLDR_MODULE *Module, BOOLEAN Ref); static PVOID LdrFixupForward(PCHAR ForwardName); static PVOID LdrGetExportByName(PVOID BaseAddress, PUCHAR SymbolName, USHORT Hint); static NTSTATUS LdrpLoadModule(IN PWSTR SearchPath OPTIONAL, @@ -64,7 +64,7 @@ static NTSTATUS LdrpLoadModule(IN PWSTR SearchPath OPTIONAL, OUT PLDR_MODULE *Module, OUT PVOID *BaseAddress OPTIONAL); static NTSTATUS LdrpAttachProcess(VOID); -static VOID LdrpDetachProcess(BOOL UnloadAll); +static VOID LdrpDetachProcess(BOOLEAN UnloadAll); /* FUNCTIONS *****************************************************************/ @@ -84,7 +84,7 @@ LdrpLoadUserModuleSymbols(PLDR_MODULE LdrModule) #endif /* DBG || KDBG */ -BOOL +BOOLEAN LdrMappedAsDataFile(PVOID *BaseAddress) { if (0 != ((DWORD_PTR) *BaseAddress & (PAGE_SIZE - 1))) @@ -96,7 +96,7 @@ LdrMappedAsDataFile(PVOID *BaseAddress) return FALSE; } -static inline LONG LdrpDecrementLoadCount(PLDR_MODULE Module, BOOL Locked) +static inline LONG LdrpDecrementLoadCount(PLDR_MODULE Module, BOOLEAN Locked) { LONG LoadCount; if (!Locked) @@ -115,7 +115,7 @@ static inline LONG LdrpDecrementLoadCount(PLDR_MODULE Module, BOOL Locked) return LoadCount; } -static inline LONG LdrpIncrementLoadCount(PLDR_MODULE Module, BOOL Locked) +static inline LONG LdrpIncrementLoadCount(PLDR_MODULE Module, BOOLEAN Locked) { LONG LoadCount; if (!Locked) @@ -134,7 +134,7 @@ static inline LONG LdrpIncrementLoadCount(PLDR_MODULE Module, BOOL Locked) return LoadCount; } -static inline VOID LdrpAcquireTlsSlot(PLDR_MODULE Module, ULONG Size, BOOL Locked) +static inline VOID LdrpAcquireTlsSlot(PLDR_MODULE Module, ULONG Size, BOOLEAN Locked) { if (!Locked) { @@ -168,7 +168,7 @@ static inline VOID LdrpTlsCallback(PLDR_MODULE Module, ULONG dwReason) } } -static BOOL LdrpCallDllEntry(PLDR_MODULE Module, DWORD dwReason, PVOID lpReserved) +static BOOLEAN LdrpCallDllEntry(PLDR_MODULE Module, DWORD dwReason, PVOID lpReserved) { if (!(Module->Flags & IMAGE_DLL) || Module->EntryPoint == 0) @@ -561,7 +561,7 @@ static NTSTATUS LdrpMapDllImageFile(IN PWSTR SearchPath OPTIONAL, IN PUNICODE_STRING DllName, OUT PUNICODE_STRING FullDosName, - IN BOOL MapAsDataFile, + IN BOOLEAN MapAsDataFile, OUT PHANDLE SectionHandle) { WCHAR SearchPathBuffer[MAX_PATH]; @@ -834,7 +834,7 @@ LdrFindEntryForAddress(PVOID Address, static NTSTATUS LdrFindEntryForName(PUNICODE_STRING Name, PLDR_MODULE *Module, - BOOL Ref) + BOOLEAN Ref) { PLIST_ENTRY ModuleListHead; PLIST_ENTRY Entry; @@ -1338,7 +1338,7 @@ static NTSTATUS LdrpGetOrLoadModule(PWCHAR SerachPath, PCHAR Name, PLDR_MODULE* Module, - BOOL Load) + BOOLEAN Load) { UNICODE_STRING DllName; NTSTATUS Status; @@ -1717,7 +1717,7 @@ LdrFixupImports(IN PWSTR SearchPath OPTIONAL, } else { - BOOL WrongForwarder; + BOOLEAN WrongForwarder; WrongForwarder = FALSE; if (ImportedModule->Flags & IMAGE_NOT_AT_BASE) { @@ -1997,7 +1997,7 @@ LdrpLoadModule(IN PWSTR SearchPath OPTIONAL, ULONG ViewSize; PVOID ImageBase; PIMAGE_NT_HEADERS NtHeaders; - BOOL MappedAsDataFile; + BOOLEAN MappedAsDataFile; if (Module == NULL) { @@ -2130,7 +2130,7 @@ LdrpLoadModule(IN PWSTR SearchPath OPTIONAL, static NTSTATUS LdrpUnloadModule(PLDR_MODULE Module, - BOOL Unload) + BOOLEAN Unload) { PIMAGE_IMPORT_MODULE_DIRECTORY ImportModuleDirectory; PIMAGE_BOUND_IMPORT_DESCRIPTOR BoundImportDescriptor; @@ -2400,7 +2400,7 @@ LdrGetProcedureAddress (IN PVOID BaseAddress, * The loader lock must be held on enty. */ static VOID -LdrpDetachProcess(BOOL UnloadAll) +LdrpDetachProcess(BOOLEAN UnloadAll) { PLIST_ENTRY ModuleListHead; PLIST_ENTRY Entry; @@ -2499,7 +2499,7 @@ LdrpAttachProcess(VOID) PLIST_ENTRY ModuleListHead; PLIST_ENTRY Entry; PLDR_MODULE Module; - BOOL Result; + BOOLEAN Result; NTSTATUS Status = STATUS_SUCCESS; DPRINT("LdrpAttachProcess() called for %wZ\n",