-# $Id: Makefile,v 1.94 2003/05/13 21:28:26 chorns Exp $
+# $Id: Makefile,v 1.95 2003/05/21 15:06:33 ekohl Exp $
#
# ReactOS Operating System
#
lpc/reply.o \
lpc/send.o
-# Nation Language Support Library (Nls)
-OBJECTS_NLS = nls/nls.o
-
# Power Management (Po)
OBJECTS_PO = po/power.o
-o $(OBJECTS_PATH)/lpc.o \
$(OBJECTS_LPC)
-$(OBJECTS_PATH)/nls.o: $(OBJECTS_NLS)
- $(LD) \
- -r \
- -o $(OBJECTS_PATH)/nls.o \
- $(OBJECTS_NLS)
-
$(OBJECTS_PATH)/nt.o: $(OBJECTS_NT)
$(LD) \
-r \
$(OBJECTS_PATH)/kd.o \
$(OBJECTS_PATH)/ldr.o \
$(OBJECTS_PATH)/mm.o \
- $(OBJECTS_PATH)/nls.o \
$(OBJECTS_PATH)/nt.o \
$(OBJECTS_PATH)/ob.o \
$(OBJECTS_PATH)/po.o \
clean:
- $(RM) $(OBJECTS_PATH)/*.o cc/*.o cm/*.o dbg/*.o dbg/i386/*.o ex/*.o \
ex/i386/*.o io/*.o ke/*.o ldr/*.o mm/*.o nt/*.o ob/*.o ps/*.o \
- rtl/*.o rtl/i386/*.o se/*.o ke/i386/*.o mm/i386/*.o fs/*.o po/*.o nls/*.o \
+ rtl/*.o rtl/i386/*.o se/*.o ke/i386/*.o mm/i386/*.o fs/*.o po/*.o \
lpc/*.o kd/*.o $(TARGETNAME).o junk.tmp base.tmp temp.exp \
$(TARGETNAME).exe $(TARGETNAME).nostrip.exe $(TARGETNAME).sym ntoskrnl.map \
$(TARGETNAME).coff bugcodes.rc msg?????.bin $(DEP_FILES) \
-/* $Id: process.c,v 1.103 2003/05/20 14:37:44 ekohl Exp $
+/* $Id: process.c,v 1.104 2003/05/21 15:05:47 ekohl Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
{
ULONG PebSize;
PPEB Peb;
- NTSTATUS Status;
-//#if 0
LARGE_INTEGER SectionOffset;
ULONG ViewSize;
PVOID TableBase;
-//#endif
+ NTSTATUS Status;
/* Allocate the Process Environment Block (PEB) */
Peb = (PPEB)PEB_BASE;
}
DPRINT("Peb %p PebSize %lu\n", Peb, PebSize);
-//#if 0
ViewSize = 0;
SectionOffset.QuadPart = 0LL;
Status = MmMapViewOfSection(NlsSectionObject,
DPRINT1("MmMapViewOfSection() failed (Status %lx)\n", Status);
return(Status);
}
- DPRINT1("TableBase %p ViewSize %lx\n", TableBase, ViewSize);
-//#endif
+ DPRINT("TableBase %p ViewSize %lx\n", TableBase, ViewSize);
KeAttachProcess(Process);
RtlZeroMemory(Peb, sizeof(PEB));
Peb->ImageBaseAddress = ImageBase;
-//#if 0
+ Peb->OSMajorVersion = 4;
+ Peb->OSMinorVersion = 0;
+ Peb->OSBuildNumber = 0;
+ Peb->OSPlatformId = 2; //VER_PLATFORM_WIN32_NT;
+
Peb->AnsiCodePageData = TableBase + NlsAnsiTableOffset;
Peb->OemCodePageData = TableBase + NlsOemTableOffset;
Peb->UnicodeCaseTableData = TableBase + NlsUnicodeTableOffset;
-//#endif
Process->Peb = Peb;
KeDetachProcess();