Casper Hornstrup
77eee7ca44
2003-03-16 Casper S. Hornstrup <[email protected] >
...
* include/ntos/rtltypes.h (PRTL_BASE_PROCESS_START_ROUTINE): Define.
* lib/kernel32/process/create.c (RtlBaseProcessStartRoutine): Import.
(KlCreateFirstThread): Support images with native subsystem ID.
* lib/ntdll/def/ntdll.def (RtlBaseProcessStartRoutine): Export.
* lib/ntdll/def/ntdll.edf (RtlBaseProcessStartRoutine): Ditto.
* lib/ntdll/rtl/exception.c (RtlBaseProcessStart): Forward declare.
(RtlBaseProcessStartRoutine, RtlBaseProcessStart): Add.
svn path=/trunk/; revision=4317
2003-03-16 14:16:54 +00:00
Hartmut Birr
1768a37e66
- Duplicate the error handle in CreateProcessW.
...
- Fixed the size parameter in calls to SearchPathW.
svn path=/trunk/; revision=4273
2003-03-09 21:38:40 +00:00
Eric Kohl
f7e5711321
Implemented GetProcessAffinityMask() and SetProcessAffinityMask().
...
svn path=/trunk/; revision=4248
2003-03-06 15:05:29 +00:00
Eric Kohl
834dbc5fd5
Fixed some warnings.
...
Added missing stubs.
Implemented GetThreadPriotityBoost() and SetThreadPriorityBoost().
svn path=/trunk/; revision=4052
2003-01-22 02:24:36 +00:00
Gé van Geldorp
14fc3556c8
Silence some debug messages
...
svn path=/trunk/; revision=4043
2003-01-19 01:13:04 +00:00
Casper Hornstrup
910f281f6e
2003-01-15 Casper S. Hornstrup <[email protected] >
...
* lib/kernel32/k32.h: New file.
* lib/kernel32/makefile (TARGET_CFLAGS): Add -I./.
(TARGET_PCH): Set to k32.h.
* lib/kernel32/except/except.c: Use <k32.h>.
* lib/kernel32/file/backup.c: Ditto.
* lib/kernel32/file/cnotify.c: Ditto.
* lib/kernel32/file/copy.c: Ditto.
* lib/kernel32/file/create.c: Ditto.
* lib/kernel32/file/curdir.c: Ditto.
* lib/kernel32/file/delete.c: Ditto.
* lib/kernel32/file/deviceio.c: Ditto.
* lib/kernel32/file/dir.c: Ditto.
* lib/kernel32/file/dosdev.c: Ditto.
* lib/kernel32/file/file.c: Ditto.
* lib/kernel32/file/find.c: Ditto.
* lib/kernel32/file/iocompl.c: Ditto.
* lib/kernel32/file/lfile.c: Ditto.
* lib/kernel32/file/lock.c: Ditto.
* lib/kernel32/file/mailslot.c: Ditto.
* lib/kernel32/file/move.c: Ditto.
* lib/kernel32/file/npipe.c: Ditto.
* lib/kernel32/file/pipe.c: Ditto.
* lib/kernel32/file/rw.c: Ditto.
* lib/kernel32/file/tape.c: Ditto.
* lib/kernel32/file/volume.c: Ditto.
* lib/kernel32/mem/global.c: Ditto.
* lib/kernel32/mem/heap.c: Ditto.
* lib/kernel32/mem/isbad.c: Ditto.
* lib/kernel32/mem/local.c: Ditto.
* lib/kernel32/mem/procmem.c: Ditto.
* lib/kernel32/mem/section.c: Ditto.
* lib/kernel32/mem/virtual.c: Ditto.
* lib/kernel32/misc/atom.c: Ditto.
* lib/kernel32/misc/comm.c: Ditto.
* lib/kernel32/misc/console.c: Ditto.
* lib/kernel32/misc/debug.c: Ditto.
* lib/kernel32/misc/dllmain.c: Ditto.
* lib/kernel32/misc/env.c: Ditto.
* lib/kernel32/misc/error.c: Ditto.
* lib/kernel32/misc/handle.c: Ditto.
* lib/kernel32/misc/ldr.c: Ditto.
* lib/kernel32/misc/profile.c: Ditto.
* lib/kernel32/misc/res.c: Ditto.
* lib/kernel32/misc/stubs.c: Ditto.
* lib/kernel32/misc/sysinfo.c: Ditto.
* lib/kernel32/misc/time.c: Ditto.
* lib/kernel32/process/cmdline.c: Ditto.
* lib/kernel32/process/create.c: Ditto.
* lib/kernel32/process/proc.c: Ditto.
* lib/kernel32/process/session.c: Ditto.
* lib/kernel32/string/lstring.c: Ditto.
* lib/kernel32/synch/critical.c: Ditto.
* lib/kernel32/synch/event.c: Ditto.
* lib/kernel32/synch/intrlck.c: Ditto.
* lib/kernel32/synch/mutex.c: Ditto.
* lib/kernel32/synch/sem.c: Ditto.
* lib/kernel32/synch/timer.c: Ditto.
* lib/kernel32/synch/wait.c: Ditto.
* lib/kernel32/thread/fiber.c: Ditto.
* lib/kernel32/thread/thread.c: Ditto.
* lib/kernel32/thread/tls.c: Ditto.
svn path=/trunk/; revision=4009
2003-01-15 21:24:36 +00:00
Robert Dickenson
e6a193806c
Mainly standardisation of makefiles. Added some exports to core libs for wine dependancies.
...
svn path=/trunk/; revision=4002
2003-01-15 20:05:53 +00:00
Robert Dickenson
0ffa768455
Added support for lauching VDM on dos image load.
...
Depends phase in makefile for processing with wmc.
Included message table resources section.
Added some some missing exports for wine module linkage.
svn path=/trunk/; revision=3948
2003-01-07 17:29:09 +00:00
Hartmut Birr
cb7fd6d214
* Fixed the searching for the file extension in CreateProcessW.
...
svn path=/trunk/; revision=3709
2002-11-05 20:54:10 +00:00
Casper Hornstrup
5437114eaa
2002-10-26 Casper S. Hornstrup <[email protected] >
...
* lib/kernel32/process/create.c (_except_handler): New function.
(BaseProcessStart): Ditto.
(KlCreateFirstThread): Return INVALID_HANDLE_VALUE on error; Call
BaseProcessStart() before process entry point.
* lib/kernel32/thread/thread.c (_except_handler): New function.
(ThreadStartup): Protect thread using SEH constructs.
svn path=/trunk/; revision=3656
2002-10-25 22:59:55 +00:00
Eric Kohl
bb4e509794
Implemented [Get/Set]ProcessShutdownParameters().
...
svn path=/trunk/; revision=3645
2002-10-20 16:40:12 +00:00
Casper Hornstrup
aa9fe526e2
2002-10-20 Casper S. Hornstrup <[email protected] >
...
* include/napi/teb.h (RTL_USER_PROCESS_PARAMETERS): Use field names
as described in Windows NT/2000 Native API Reference.
* lib/kernel32/file/file.c: Use new field names.
* lib/kernel32/misc/console.c: Ditto.
* lib/kernel32/process/create.c: Ditto.
* lib/kernel32/process/proc.c: Ditto.
* lib/ntdll/rtl/path.c: Ditto.
* lib/ntdll/rtl/ppb.c: Ditto.
* lib/ntdll/rtl/process.c: Ditto.
svn path=/trunk/; revision=3642
2002-10-20 11:56:00 +00:00
Casper Hornstrup
1e847489e4
2002-10-01 Casper S. Hornstrup <[email protected] >
...
* drivers/dd/floppy/floppy.c: Changed PAGESIZE to PAGE_SIZE.
* drivers/fs/cdfs/fcb.c: Ditto.
* drivers/fs/cdfs/fsctl.c: Ditto.
* drivers/fs/cdfs/rw.c: Ditto.
* drivers/fs/ext2/dir.c: Ditto.
* drivers/fs/ext2/inode.c: Ditto.
* drivers/fs/ext2/rw.c: Ditto.
* drivers/fs/ext2/super.c: Ditto.
* drivers/fs/minix/blockdev.c: Ditto.
* drivers/fs/minix/cache.c: Ditto.
* drivers/fs/minix/inode.c: Ditto.
* drivers/fs/minix/rw.c: Ditto.
* drivers/fs/ntfs/fcb.c: Ditto.
* drivers/fs/ntfs/ntfs.h: Ditto.
* drivers/fs/vfat/create.c: Ditto.
* drivers/fs/vfat/direntry.c: Ditto.
* drivers/fs/vfat/dirwr.c: Ditto.
* drivers/fs/vfat/fat.c: Ditto.
* drivers/fs/vfat/fcb.c: Ditto.
* drivers/fs/vfat/fsctl.c: Ditto.
* drivers/fs/vfat/rw.c: Ditto.
* drivers/storage/class2/class2.c: Ditto.
* drivers/storage/scsiport/scsiport.c: Ditto.
* hal/halx86/adapter.c: Ditto.
* hal/halx86/mp.c: Ditto.
* include/ddk/mmfuncs.h: Ditto.
* include/ddk/mmtypes.h: Ditto.
* include/ddk/i386/pagesize.h: Ditto.
* include/ntdll/pagesize.h: Ditto.
* lib/kernel32/process/create.c: Ditto.
* lib/kernel32/thread/thread.c: Ditto.
* lib/ntdll/ldr/utils.c: Ditto.
* lib/ntdll/rtl/env.c: Ditto.
* lib/ntdll/rtl/heap.c: Ditto.
* lib/ntdll/rtl/ppb.c: Ditto.
* lib/ntdll/rtl/process.c: Ditto.
* lib/ntdll/rtl/thread.c: Ditto.
* ntoskrnl/cc/copy.c: Ditto.
* ntoskrnl/cc/view.c: Ditto.
* ntoskrnl/ex/sysinfo.c: Ditto.
* ntoskrnl/include/internal/i386/mm.h: Ditto.
* ntoskrnl/io/mdl.c: Ditto.
* ntoskrnl/ke/kthread.c: Ditto.
* ntoskrnl/ke/i386/kernel.c: Ditto.
* ntoskrnl/ldr/init.c: Ditto.
* ntoskrnl/ldr/loader.c: Ditto.
* ntoskrnl/mm/anonmem.c: Ditto.
* ntoskrnl/mm/cont.c: Ditto.
* ntoskrnl/mm/freelist.c: Ditto.
* ntoskrnl/mm/iospace.c: Ditto.
* ntoskrnl/mm/kmap.c: Ditto.
* ntoskrnl/mm/marea.c: Ditto.
* ntoskrnl/mm/mdl.c: Ditto.
* ntoskrnl/mm/mminit.c: Ditto.
* ntoskrnl/mm/ncache.c: Ditto.
* ntoskrnl/mm/npool.c: Ditto.
* ntoskrnl/mm/pagefile.c: Ditto.
* ntoskrnl/mm/pageop.c: Ditto.
* ntoskrnl/mm/section.c: Ditto.
* ntoskrnl/mm/slab.c: Ditto.
* ntoskrnl/mm/i386/page.c: Ditto.
* ntoskrnl/ob/handle.c: Ditto.
* ntoskrnl/ps/create.c: Ditto.
* ntoskrnl/ps/process.c: Ditto.
* ntoskrnl/ps/w32call.c: Ditto.
* subsys/win32k/include/object.h: Ditto.
svn path=/trunk/; revision=3594
2002-10-01 19:27:25 +00:00
Hartmut Birr
61e3f21f42
Check for CREATE_UNICODE_ENVIRONMENT in CreateProcessA.
...
svn path=/trunk/; revision=3495
2002-09-13 18:55:31 +00:00
Casper Hornstrup
17c0b5798e
Reverted latest changes.
...
svn path=/trunk/; revision=3473
2002-09-08 10:23:54 +00:00
Casper Hornstrup
387d432884
Use free Windows DDK and compile with latest MinGW releases.
...
svn path=/trunk/; revision=3466
2002-09-07 15:13:13 +00:00
Hartmut Birr
3f6d544a66
Initialized Peb->WindowFlags (instead of Flags) with dwFlags in CreateWindowW.
...
svn path=/trunk/; revision=3397
2002-08-26 22:07:01 +00:00
David Welch
f7c5c8bcd2
Oops, fixed compile errors.
...
svn path=/trunk/; revision=3395
2002-08-26 12:27:48 +00:00
David Welch
87579ff3f0
Copy all the startup info to the new process.
...
svn path=/trunk/; revision=3394
2002-08-26 11:24:29 +00:00
Robert Dickenson
9c63868251
Added a whole lot of CVS sugar so I can use WinCVS flat mode more effectively.
...
svn path=/trunk/; revision=3390
2002-08-25 07:16:37 +00:00
David Welch
5a801d58c3
2002-08-08 David Welch <[email protected] >
...
* ntoskrnl/mm/section (NtQuerySection): Return the
right result length.
2002-08-08 David Welch <[email protected] >
* ntoskrnl/ke/usertrap.c (print_user_address): Check for
a NULL LDR structure in the PEB; copy the LDR pointer in
safely.
2002-08-08 David Welch <[email protected] >
* ntoskrnl/ke/apc.c (KiDeliverUserApc): Deliver all present
APCs; release the APC spinlock while acccessing user memory.
2002-08-08 David Welch <[email protected] >
* include/internal/ps.h: Adjusted offsets into the ETHREAD
structure.
* include/internal/ps.h: Removed redundant members from the
KTHREAD structure.
* ntoskrnl/ke/kthread.c (KeInitializeThread): Removed
redundant members from the KTHREAD structure.
2002-08-08 David Welch <[email protected] >
* ntoskrnl/dbg/kdb.c (KdbEnterDebuggerException): New
function to enter the debugger on an exception.
* ntoskrnl/kd/kdebug.c (KdInitSystem): Initialize the
local kernel debugger if enabled.
* ntoskrnl/ke/catch.c (KiDispatchException): Enter the
local kernel debugger on an exception.
2002-08-08 David Welch <[email protected] >
* include/ntdll/ldr.h: Added definition for a DLL entrypoint.
* lib/kernel32/process/create.c (KlCreateFirstThread): Put
the argument to the NtProcessStartup function on the stack.
* lib/kernel32/process/create.c (KlInitPeb): Read the
base address of the new image from the PEB.
* lib/kernel32/process/create.c (CreateProcessW): Start the
first thread at the entrypoint of the new image.
* lib/ntdll/ldr/startup.c (LdrInitializeThunk): If the
function is called after the initial startup then just call the
entrypoints for the loaded DLLs with DLL_THREAD_ATTACH. Don't
call the entrypoint of the image.
* lib/ntdll/rtl/process.c (RtlpCreateFirstThread): Put the
argument to the NtProcessStartup function on the stack.
* lib/ntdll/rtl/process.c (KlInitPeb): Read the base address of
the new image from the PEB.
* lib/ntdll/rtl/process.c (RtlCreateUserProcess): Start the
first thread at the entrypoint of the new image.
* ntoskrnl/ke/i386/bthread.S (PsBeginThreadWithContextInternal):
Use the system call path to begin a usermode thread.
* ntoskrnl/ke/i386/thread.c (Ke386InitThreadWithContext): Convert
the supplied context into a trap frame.
* ntoskrnl/ldr/init.c (LdrLoadInitialProcess): Put the PEB argument
to the NtProcessStartup function on the new stack; start the
first thread at the entrypoint of the image.
* ntoskrnl/ps/create.c (NtCreateThread): Create an APC to call
LdrInitializeThunk in the context of a new thread before its
entrypoint.
2002-08-08 David Welch <[email protected] >
* drivers/fs/vfat/cleanup.c (VfatCleanupFile): Uninitialise
the cache on file cleanup.
* drivers/fs/vfat/fcb.c (vfatReleaseFcb): Don't uninitialise
the cache on file close.
* ntoskrnl/cc/copy.c: Renamed zero page global variable.
* ntoskrnl/cc/view.c: Added cache delete function.
svn path=/trunk/; revision=3323
2002-08-08 17:54:16 +00:00
Hartmut Birr
b343539680
Added csrss notification in ExitProcess.
...
svn path=/trunk/; revision=2925
2002-05-07 22:26:29 +00:00
Hartmut Birr
e11e2826a9
Added support for piping.
...
svn path=/trunk/; revision=2924
2002-05-07 22:25:40 +00:00
Hartmut Birr
efa19d923d
Added support for bat/cmd files.
...
Added support for shell piping.
svn path=/trunk/; revision=2891
2002-04-27 19:26:54 +00:00
Hartmut Birr
c75ecda469
Added ansi to unicode translation for the environment in CreateProcessA().
...
Changed handling for current directory in CreateProcessAW().
Changed size calculation for the environment in KlInitPeb().
Changed determaining of program name and command line in CreateProcessW().
Added conversion for some handles in CreateProcessW().
svn path=/trunk/; revision=2811
2002-04-01 22:09:59 +00:00
Hartmut Birr
5ede96eff7
Fixed the length of the command line.
...
svn path=/trunk/; revision=2782
2002-03-25 21:11:13 +00:00
Steven Edwards
9808ba2cb8
Fixed a typo - Guido de Jong
...
svn path=/trunk/; revision=2598
2002-02-04 13:08:58 +00:00
David Welch
3273c93173
Fixed bug with cygwin1.dll (still doesn't work)
...
svn path=/trunk/; revision=2469
2002-01-01 03:29:16 +00:00
Emanuele Aliberti
d36ee56715
A stub file for TS APIs in kernel32.
...
svn path=/trunk/; revision=2421
2001-12-07 11:19:49 +00:00
Emanuele Aliberti
df39763241
KERNEL32.GetPriorityClass fixed.
...
svn path=/trunk/; revision=2225
2001-09-02 17:59:44 +00:00
Emanuele Aliberti
3869ce90e5
Minor fixes in KERNEL32.TerminateThread() and in
...
KERNEL32.TerminateProcess().
svn path=/trunk/; revision=2177
2001-08-15 20:35:39 +00:00
Eric Kohl
65d55d8863
Changed stack allocation.
...
Fixed bugs in NtAllocateVirtualMemory().
Disabled NtProtectVirtualMemory().
svn path=/trunk/; revision=2162
2001-08-07 14:13:45 +00:00
Eric Kohl
e183b6028f
Rewrote stack allocation.
...
svn path=/trunk/; revision=2144
2001-08-03 17:21:38 +00:00
Phillip Susi
a49c07b8f2
Fixed CreateProcess() to use the command line parameter like NT does
...
This still needs quite a bit more work to fix bugs and be 100% compatible with NT
svn path=/trunk/; revision=1983
2001-06-18 03:02:43 +00:00
David Welch
4e81d099cf
Check for failed allocation
...
Split up kernel32 stubs
Print proper stack trace for user mode exceptions
svn path=/trunk/; revision=1751
2001-03-31 01:17:30 +00:00
David Welch
1a0448a35b
Bug fixes
...
Started work on exception handling
svn path=/trunk/; revision=1706
2001-03-17 11:11:11 +00:00
David Welch
2a613a30c4
Removed obsolete header files
...
Updated copyright notices
svn path=/trunk/; revision=1703
2001-03-16 18:11:24 +00:00
David Welch
47ea39add9
Represent page-in operations by descriptors
...
svn path=/trunk/; revision=1682
2001-03-13 16:25:55 +00:00
David Welch
d520a12907
Close section handle after NtCreateProces in KERNEL32.CreateProcess
...
Cleanup after file object dereference
Cleanup after section object dereference
svn path=/trunk/; revision=1678
2001-03-09 14:40:28 +00:00
David Welch
9359db14a0
Section and general memory manager enhancements including COW
...
svn path=/trunk/; revision=1617
2001-02-10 22:51:11 +00:00
Eric Kohl
29c4727f7a
Preliminary command line fix
...
svn path=/trunk/; revision=1616
2001-02-10 22:30:21 +00:00
Emanuele Aliberti
b611b79b36
KERNEL32.GetProcessVersion partial implementation.
...
KERNEL32.GetSystemInfo about finished.
svn path=/trunk/; revision=1612
2001-02-10 22:01:50 +00:00
David Welch
076c1c6ac3
Fixed timer code
...
Fixed NtClose return in case of error
Added new APC-like primitive for terminating threads
Fixed restriction on size of working set
svn path=/trunk/; revision=1603
2001-02-06 00:11:20 +00:00
Eric Kohl
42d7089e72
Removed fixed stack base address
...
svn path=/trunk/; revision=1559
2001-01-23 09:58:12 +00:00
Phillip Susi
5c0fb84170
New console client support
...
svn path=/trunk/; revision=1550
2001-01-21 00:07:03 +00:00
Eric Kohl
66f91ccbf9
Fixed some undocumented functions and types
...
svn path=/trunk/; revision=1483
2000-12-28 20:38:28 +00:00
Eric Kohl
e69d5f4655
Fixed forwarding of current directory string
...
svn path=/trunk/; revision=1450
2000-12-05 18:08:24 +00:00
Eric Kohl
fbac67d372
Implemented dll detach on thread termination
...
svn path=/trunk/; revision=1333
2000-09-05 13:53:27 +00:00
Eric Kohl
19e205fb97
Implemented dll detach on process termination
...
svn path=/trunk/; revision=1332
2000-09-05 11:01:03 +00:00
Emanuele Aliberti
47dfd4feaa
Win32 fiber stubs
...
svn path=/trunk/; revision=1299
2000-08-14 14:33:24 +00:00