Fix TOO MANY !! :(((( "initialize" misspellings.
Note1: One remains in subsystems/csr/csrsrv/init.c, but will be corrected in my future csrss branch merging.
Note2: In ntoskrnl/se/semgr.c, one tries to create the "LSA_AUTHENTICATION_INITALIZED" event. This is ROS-SPECIFIC !!!! In the sense that it doesn't exist on Windows. Instead, the "LSA_AUTHENTICATION_INITIALIZED" exists. Correct that fact.
svn path=/trunk/; revision=58679
-General Overview of How THings Work
+General Overview of How Things Work
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
First it comes into _main in cmd.c(1811). The command line params are taking in and if it is unicode it uses CommandLineToArgvW.
This can cause a problem on older machines and that is why we have our own custom _CommandLineToArgvW to help this along.
-We pull in the launch directory as the inital dir and set that in _tchdir. We make a handle to the default console out using CreateFile.
+We pull in the launch directory as the initial dir and set that in _tchdir. We make a handle to the default console out using CreateFile.
Then we call Initialize(). Here we need to load ntdll.dll if it isnt loaded(windows 9x machines).
We also setup some global vars like default io handles and nErrorLevel and set %prompt% to $P$G.
/* Disable Interrupts */
_disable();
- /* Re-initalize EFLAGS */
+ /* Re-initialize EFLAGS */
__writeeflags(0);
/* Set the new PML4 */
// Disable Interrupts
_disable();
- // Re-initalize EFLAGS
+ // Re-initialize EFLAGS
__writeeflags(0);
// Set the PDBR
* FrLdrMapKernel
* INTERNAL
*
- * Maps the Kernel into memory, does PE Section Mapping, initalizes the
+ * Maps the Kernel into memory, does PE Section Mapping, initializes the
* uninitialized data sections, and relocates the image.
*
* Params:
* can use them.
*
* PARAMS
- * bInit [I] TRUE to initialize the services, FALSE to uninitalize.
+ * bInit [I] TRUE to initialize the services, FALSE to uninitialize.
*
* RETURNS
* Nothing.
DriverEntry(PDRIVER_OBJECT DriverObject,
PUNICODE_STRING RegistryPath)
/*
- * FUNCTION: Called by the system to initalize the driver
+ * FUNCTION: Called by the system to initialize the driver
* ARGUMENTS:
* DriverObject = object describing this driver
* RegistryPath = path to our configuration entries
/* FUNCTIONS ****************************************************************/
/*
- * FUNCTION: Called by the system to initalize the driver
+ * FUNCTION: Called by the system to initialize the driver
* ARGUMENTS:
* DriverObject = object describing this driver
* RegistryPath = path to our configuration entries
DriverEntry(PDRIVER_OBJECT DriverObject,
PUNICODE_STRING RegistryPath)
/*
- * FUNCTION: Called by the system to initalize the driver
+ * FUNCTION: Called by the system to initialize the driver
* ARGUMENTS:
* DriverObject = object describing this driver
* RegistryPath = path to our configuration entries
DriverEntry(PDRIVER_OBJECT DriverObject,
PUNICODE_STRING RegistryPath)
/*
- * FUNCTION: Called by the system to initalize the driver
+ * FUNCTION: Called by the system to initialize the driver
* ARGUMENTS:
* DriverObject = object describing this driver
* RegistryPath = path to our configuration entries
DriverEntry(PDRIVER_OBJECT DriverObject,
PUNICODE_STRING RegistryPath)
/*
- * FUNCTION: Called by the system to initalize the driver
+ * FUNCTION: Called by the system to initialize the driver
* ARGUMENTS:
* DriverObject = object describing this driver
* RegistryPath = path to our configuration entries
DriverEntry(PDRIVER_OBJECT DriverObject,
PUNICODE_STRING RegistryPath)
/*
- * FUNCTION: Called by the system to initalize the driver
+ * FUNCTION: Called by the system to initialize the driver
* ARGUMENTS:
* DriverObject = object describing this driver
* RegistryPath = path to our configuration entries
NTSTATUS ModuleEntry(PDRIVER_OBJECT DriverObject, PUNICODE_STRING RegistryPath)
/*
- * FUNCTION: Called by the system to initalize the driver
+ * FUNCTION: Called by the system to initialize the driver
* ARGUMENTS:
* DriverObject = object describing this driver
* RegistryPath = path to our configuration entries
//NDIS_STATUS NdisStatus;
IP_ADDRESS DefaultMask;
- /* Initalize the default unspecified address (0.0.0.0) */
+ /* Initialize the default unspecified address (0.0.0.0) */
AddrInitIPv4(&DefaultMask, 0);
if (Context->State == LAN_STATE_STARTED &&
!Context->Adapter->CompletingReset)
NTSTATUS NTAPI
DriverEntry(PDRIVER_OBJECT DriverObject, PUNICODE_STRING RegistryPath)
/*
- * FUNCTION: Called by the system to initalize the driver
+ * FUNCTION: Called by the system to initialize the driver
* ARGUMENTS:
* DriverObject = object describing this driver
* RegistryPath = path to our configuration entries
Routine Description:
- This routine reinitalizes the necessary fields, and sends the request
+ This routine reinitializes the necessary fields, and sends the request
to the port driver.
Arguments:
Routine Description:
This is a wrapper around the delayed retry DPC routine, RetryRequestDPC.
- This reinitalizes the necessary fields, queues the request, and sets
+ This reinitializes the necessary fields, queues the request, and sets
a timer to call the DPC if someone hasn't already done so.
Arguments:
Routine Description:
- This routine reinitalizes the necessary fields, and sends the request
+ This routine reinitializes the necessary fields, and sends the request
to the lower driver.
Arguments:
VOID FASTCALL
HalInitializeDisplay (PROS_LOADER_PARAMETER_BLOCK LoaderBlock)
/*
- * FUNCTION: Initalize the display
+ * FUNCTION: Initialize the display
* ARGUMENTS:
* InitParameters = Parameters setup by the boot loader
*/
* transfer start.
* PhysicalAddress is physical address corresponding to the transfer
* start page and offset.
- * TransferLength is the inital length of the transfer, which is reminder
+ * TransferLength is the initial length of the transfer, which is reminder
* of the first page. The actual value is calculated below.
*
* Note that all the variables can change during the processing which
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
* FILE: ntoskrnl/hal/x86/halinit.c
- * PURPOSE: Initalize the x86 hal
+ * PURPOSE: Initialize the x86 hal
* PROGRAMMER: David Welch (welch@cwcom.net)
* UPDATE HISTORY:
* 11/06/98: Created
LvtEntry.Mask = 1;
LvtEntry.TimerMode = 0;
- /* Initalize and mask LVTs */
+ /* Initialize and mask LVTs */
ApicWrite(APIC_TMRLVTR, LvtEntry.Long);
ApicWrite(APIC_THRMLVTR, LvtEntry.Long);
ApicWrite(APIC_PCLVTR, LvtEntry.Long);
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
* FILE: ntoskrnl/hal/x86/halinit.c
- * PURPOSE: Initalize the x86 hal
+ * PURPOSE: Initialize the x86 hal
* PROGRAMMER: Timo Kreuzer (timo.kreuzer@reactos.org)
*/
* transfer start.
* PhysicalAddress is physical address corresponding to the transfer
* start page and offset.
- * TransferLength is the inital length of the transfer, which is reminder
+ * TransferLength is the initial length of the transfer, which is reminder
* of the first page. The actual value is calculated below.
*
* Note that all the variables can change during the processing which
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
* FILE: hal/halx86/mp/halinit_mp.c
- * PURPOSE: Initalize the x86 mp hal
+ * PURPOSE: Initialize the x86 mp hal
* PROGRAMMER: David Welch (welch@cwcom.net)
* UPDATE HISTORY:
* 11/06/98: Created
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
* FILE: ntoskrnl/hal/x86/halinit.c
- * PURPOSE: Initalize the x86 hal
+ * PURPOSE: Initialize the x86 hal
* PROGRAMMER: David Welch (welch@cwcom.net)
* UPDATE HISTORY:
* 11/06/98: Created
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
* FILE: ntoskrnl/hal/x86/halinit.c
- * PURPOSE: Initalize the x86 hal
+ * PURPOSE: Initialize the x86 hal
* PROGRAMMER: David Welch (welch@cwcom.net)
* UPDATE HISTORY:
* 11/06/98: Created
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
* FILE: ntoskrnl/hal/x86/halinit.c
- * PURPOSE: Initalize the x86 hal
+ * PURPOSE: Initialize the x86 hal
* PROGRAMMER: David Welch (welch@cwcom.net)
* UPDATE HISTORY:
* 11/06/98: Created
/**
* @name HvpCreateHive
*
- * Internal helper function to initalize hive descriptor structure for
+ * Internal helper function to initialize hive descriptor structure for
* newly created hive.
*
* @see HvInitialize
/**
* @name HvpInitializeMemoryHive
*
- * Internal helper function to initalize hive descriptor structure for
+ * Internal helper function to initialize hive descriptor structure for
* a hive stored in memory. The data of the hive are copied and it is
* prepared for read/write access.
*
/**
* @name HvpInitializeMemoryInplaceHive
*
- * Internal helper function to initalize hive descriptor structure for
+ * Internal helper function to initialize hive descriptor structure for
* a hive stored in memory. The in-memory data of the hive are directly
* used and it is read-only accessible.
*
SmApiMsg.h.u1.s1.DataLength = sizeof(SM_EXEC_PGM_MSG) + 8;
SmApiMsg.h.u1.s1.TotalLength = sizeof(SmApiMsg);
- /* Initalize this specific API's parameters */
+ /* Initialize this specific API's parameters */
SmApiMsg.ApiNumber = SmExecPgmApi;
RtlCopyMemory(&SmApiMsg.u.ExecPgm.ProcessInformation,
ProcessInformation,
/* Check for Success */
if (NT_SUCCESS(Status))
{
- /* Initalize the Event */
+ /* Initialize the Event */
KeInitializeEvent(Event,
EventType,
InitialState);
/* Check for Success */
if (NT_SUCCESS(Status))
{
- /* Initalize the Event */
+ /* Initialize the Event */
DPRINT("Initializing EventPair\n");
KeInitializeEventPair(EventPair);
/* Check for success */
if(NT_SUCCESS(Status))
{
- /* Initalize the Kernel Mutant */
+ /* Initialize the Kernel Mutant */
DPRINT("Initializing the Mutant\n");
KeInitializeMutant(Mutant, InitialOwner);
}
/*
- * FUNCTION: Initalizes a zone header
+ * FUNCTION: Initializes a zone header
* ARGUMENTS:
* Zone = zone header to be initialized
* BlockSize = Size (in bytes) of the allocation size of the zone
/*
* IopInitializeDriverModule
*
- * Initalize a loaded driver.
+ * Initialize a loaded driver.
*
* Parameters
* DeviceNode
PAGED_CODE();
- /* Length of the rest. Inital equal to EaLength */
+ /* Length of the rest */
IntEaLength = EaLength;
-
- /* Inital EaBuffer equal to EaBuffer */
EaBufferEnd = EaBuffer;
/* The rest length of the buffer */
while (IntEaLength >= FIELD_OFFSET(FILE_FULL_EA_INFORMATION, EaName[0]))
{
- /* rest of buffer must greater then the
- sizeof(FILE_FULL_EA_INFORMATION) + buffer */
+ /*
+ * The rest of buffer must greater than
+ * sizeof(FILE_FULL_EA_INFORMATION) + buffer
+ */
NextEaBufferOffset =
EaBufferEnd->EaNameLength + EaBufferEnd->EaValueLength +
FIELD_OFFSET(FILE_FULL_EA_INFORMATION, EaName[0]) + 1;
}
else
{
- /* From the MSDN
- http://msdn2.microsoft.com/en-us/library/ms795740.aspx
- For all entries except the last, the value of
- NextEntryOffset must be greater than zero and
- must fall on a ULONG boundary
+ /*
+ * From MSDN:
+ * http://msdn2.microsoft.com/en-us/library/ms795740.aspx
+ * For all entries except the last one, the value of
+ * NextEntryOffset must be greater than zero and
+ * must fall on a ULONG boundary.
*/
NextEaBufferOffset = ((NextEaBufferOffset + 3) & ~3);
if ((EaBufferEnd->NextEntryOffset == NextEaBufferOffset) &&
((LONG)EaBufferEnd->NextEntryOffset > 0))
{
- /* Rest of buffer must be greater then the
- next offset */
+ /*
+ * The rest of buffer must be greater
+ * than the following offset.
+ */
IntEaLength =
IntEaLength - EaBufferEnd->NextEntryOffset;
VOID
NTAPI
-KiInitalizeHandBuiltThread(
+KiInitializeHandBuiltThread(
IN PKTHREAD Thread,
IN PKPROCESS Process,
IN PVOID Stack)
else
{
/* Initialize the startup thread */
- KiInitalizeHandBuiltThread(Thread, Process, KernelStack);
+ KiInitializeHandBuiltThread(Thread, Process, KernelStack);
/* Initialize cpu with HAL */
if (!HalInitSystem(0, LoaderBlock))
InitProcess->QuantumReset = MAXCHAR;
/* Initialize the startup thread */
- KiInitalizeHandBuiltThread(InitThread, InitProcess, IdleStack);
+ KiInitializeHandBuiltThread(InitThread, InitProcess, IdleStack);
/* Initialize the Kernel Executive */
ExpInitializeExecutive(0, LoaderBlock);
/* load the address of the callout frame into ecx */
lea ecx, [esp - 12]
- /* Allocate space for the inital stack */
+ /* Allocate space for the initial stack */
sub esp, 12 + NPX_FRAME_LENGTH + KTRAP_FRAME_LENGTH + 16
call @KiUserModeCallout@4
PKTIMER Timer;
NTSTATUS Status;
- /* Initalize the Dispatcher Header */
+ /* Initialize the Dispatcher Header */
Thread->Header.Type = ThreadObject;
Thread->Header.ThreadControlFlags = 0;
Thread->Header.DebugActive = FALSE;
Status = STATUS_SUCCESS;
_SEH2_TRY
{
- /* Initalize the Thread Context */
+ /* Initialize the Thread Context */
KiInitializeContextThread(Thread,
SystemRoutine,
StartRoutine,
}
_SEH2_END;
- /* Set the Thread to initalized */
+ /* Set the Thread to initialized */
Thread->State = Initialized;
return Status;
}
Timer->Header.SignalState = 0;
InitializeListHead(&(Timer->Header.WaitListHead));
- /* Initalize the Other data */
+ /* Initialize the Other data */
Timer->DueTime.QuadPart = 0;
Timer->Period = 0;
}
NTSTATUS Status;
/* Create '\Security' directory */
- RtlInitUnicodeString(&Name,
- L"\\Security");
+ RtlInitUnicodeString(&Name, L"\\Security");
InitializeObjectAttributes(&ObjectAttributes,
&Name,
OBJ_PERMANENT,
return FALSE;
}
- /* Create 'LSA_AUTHENTICATION_INITALIZED' event */
- RtlInitUnicodeString(&Name,
- L"\\LSA_AUTHENTICATION_INITALIZED");
+ /* Create 'LSA_AUTHENTICATION_INITIALIZED' event */
+ RtlInitUnicodeString(&Name, L"\\LSA_AUTHENTICATION_INITIALIZED");
InitializeObjectAttributes(&ObjectAttributes,
&Name,
OBJ_PERMANENT,
FALSE);
if (!NT_SUCCESS(Status))
{
- DPRINT1("Failed to create 'LSA_AUTHENTICATION_INITALIZED' event!\n");
+ DPRINT1("Failed to create 'LSA_AUTHENTICATION_INITIALIZED' event!\n");
NtClose(DirectoryHandle);
return FALSE;
}
return NULL;
}
- /* Get inital value for cGlyphs from ftface */
+ /* Get initial value for cGlyphs from ftface */
cGlyphs = ftface->num_glyphs + 1;
/* Allocate a buffer for the char codes and glyph indexes */
/* Full path to WindowStations directory */
UNICODE_STRING gustrWindowStationsDir;
-/* INITALIZATION FUNCTIONS ****************************************************/
+/* INITIALIZATION FUNCTIONS ****************************************************/
INIT_FUNCTION
NTSTATUS