Commit Graph

625 Commits (146afcc98c99daa97153c9807a95589b4ed1807e)

Author SHA1 Message Date
Rolf Kalbermatter 55bcaec4f4 Remove <ntstatus.h> to allow compilation with MS PSDK headers. 2003-09-16 01:18:53 +00:00
Mike McCormack b2b2c4794b Move the mailslot stubs into the dlls/kernel directory. 2003-09-15 22:07:50 +00:00
Alexandre Julliard 31292ff4e0 Remove generated assembly code on make clean. 2003-09-15 20:15:05 +00:00
Kevin Groeneveld 4981619784 - Fix small bug with parsing of numbers in BuildCommDCB functions.
- Add conformance test for BuildCommDCB functions.
2003-09-15 20:00:54 +00:00
Kevin Groeneveld 8be51c92e4 Add missing wReserved1 member to DCB structure definition.
Fix several bugs in BuildCommDCBAndTimeouts:
- make sure LPCSTR parameter is really treated as constant
- fix possible buffer overflow if passed in string is too long
- if the device control string is invalid, do not modify DCB
- do not clear entire DCB, only modify appropriate members
- fix parsing of stop bits parameter so it works for 1 and 1.5
- populate COMMTIMEOUTS when to=xxx parameter is specified
- added support for xon, odsr, octs, dtr, rts, and idsr parameters
- fix several other parsing errors
2003-09-12 00:26:15 +00:00
Geoff Thorpe 7701dea1cd Added a stub for Heap32ListFirst. 2003-09-11 03:00:11 +00:00
Francois Gouget 68ea3623b8 Modify winetest_ok to only add a trailing '\n' if there is none.
Modify macros in the kernel, oleaut32 and user tests to print a '\n'.
2003-09-11 01:07:19 +00:00
Alexandre Julliard cf52644a1c Removed the A/W constants for builtin cursors, icons and resource
types since they don't exist on Windows, and added typecasts
everywhere instead.
2003-09-10 03:56:47 +00:00
Francois Gouget ae50013017 Fix the case of product and company names. 2003-09-08 19:38:45 +00:00
Alexandre Julliard e37c6e18d0 Fixed header dependencies to be fully compatible with the Windows
headers (with help from Dimitrie O. Paun).
2003-09-05 23:08:26 +00:00
Alexandre Julliard 80e34dbb66 Moved the implementation of the pthread wrappers to dlls/kernel. 2003-09-03 00:26:08 +00:00
Juan Lang c435c29339 Fix FormatMessage when FORMAT_MESSAGE_FROM_HMODULE is specified and
lpSource is NULL.  Make indenting consistent too.
2003-09-02 00:53:46 +00:00
Alexandre Julliard 3c80bb1443 Don't strip the path in LoadModule16 before we have opened the file
(reported by Jukka Heinonen).
2003-09-01 23:56:39 +00:00
Alexandre Julliard 7df1b9e03a Start using the exported TEB structure from winternl.h where
possible.
2003-08-28 19:57:35 +00:00
Alexandre Julliard ee106783d0 Renamed EXCEPTION_FRAME to EXCEPTION_REGISTRATION_RECORD since that
seems to be the official name.
2003-08-28 03:07:56 +00:00
Alexandre Julliard 02f2813968 Renamed a few TEB fields to use the "official" names. 2003-08-27 23:14:29 +00:00
Alexandre Julliard 01634c5686 Removed some no longer needed definitions from stackframe.h. 2003-08-27 03:16:56 +00:00
Alexandre Julliard f7d71bf158 Converted remaining 16-bit functions to the new varargs mechanism. 2003-08-27 02:57:32 +00:00
Alexandre Julliard 617839d522 Added varargs support for 16-bit entry points.
Added -ret16 entry point flag to allow 16-bit cdecl and varargs
function to return 16-bit values too.
2003-08-27 02:20:44 +00:00
Alexandre Julliard 94463d7bbe Moved profile functions to dlls/kernel. 2003-08-26 02:54:37 +00:00
Alexandre Julliard 6aca040f86 Moved a few more functions to dlls/kernel. 2003-08-26 02:29:48 +00:00
Alexandre Julliard 0ac9690081 Moved 16-bit relay and snoop support to dlls/kernel. 2003-08-26 02:28:59 +00:00
Alexandre Julliard a5b961c2b0 Moved selector fixup for the relay code to the callto16 exception
handler.
Make sure to only use pop instructions to modify segment registers in
the relay code to simplify the selector fixup.
2003-08-25 23:48:30 +00:00
Alexandre Julliard 3be5d62b29 Moved 16-bit calls initialization and exception handling to kernel32.
Store the call_to_16 return address on the stack from the C code so
that we don't need two variants of call_to_16_regs.
2003-08-25 00:56:37 +00:00
Alexandre Julliard 3a5b7cf105 Extended WOWCallback16Ex to support register functions too. This
allows simplifying the wine_call_to_16 assembly code by moving part of
it to C code, and getting rid of the extra kernel exports.
2003-08-23 23:30:51 +00:00
Alexandre Julliard 9ca159b61a Moved 16-bit builtin module handling to dlls/kernel/ne_module.c. 2003-08-23 23:07:10 +00:00
Alexandre Julliard 5fbb446cfc Moved most of the 16-bit task support and NE module loader to
dlls/kernel.
2003-08-23 00:03:40 +00:00
Alexandre Julliard d8e34ebc21 Renamed system.dll to system.drv. 2003-08-19 03:27:45 +00:00
Alexandre Julliard e0deb0c627 Replaced remaining calls to PROFILE_GetWineIniString/Bool by direct
registry accesses.
2003-08-19 03:21:04 +00:00
Alexandre Julliard 1bfade140f Free the debug info when making a critical section global. 2003-08-18 20:03:00 +00:00
Jon Griffiths 68806c4410 Spelling fixes. 2003-08-18 19:47:42 +00:00
Alexandre Julliard 19b6a49845 Allocate DebugInfo field for all critical sections (based on a patch
by Alex Pasadyn).
Get rid of the Wine-specific CRITICAL_SECTION_INIT macro.
2003-08-12 23:50:54 +00:00
Dimitrie O. Paun cbefdefb02 Consolidate all kernel power management functions.
Provide prototypes and stubs for missing functions.
2003-08-12 18:56:54 +00:00
Patrik Stridvall ba78aac406 Fixed some issues found by winapi_check. 2003-08-08 21:07:23 +00:00
Alexandre Julliard f93256a56c Warning fixes. 2003-08-06 22:08:04 +00:00
Jon Griffiths 7d75c147a2 Fix MSVC warning. 2003-07-19 03:06:19 +00:00
Gerald Pfeifer 091f416014 Add charset information as used by FreeBSD. 2003-07-09 19:45:10 +00:00
Dmitry Timoshkov 8a8d1b93ca Added support for CP_UNIXCP. 2003-07-09 04:22:57 +00:00
Alexandre Julliard 4f196ead13 Implemented the ThreadBasicInformation case for
NtQueryInformationThread.
2003-07-09 02:57:57 +00:00
Alexandre Julliard 4f4b980c1e Implemented NtRead/WriteVirtualMemory. 2003-07-08 21:18:45 +00:00
Dmitry Timoshkov 62efd98687 Exit ealier from LCMapStringA in the case of LCMAP_SORTKEY.
Don't rely on computing string length by MultiByteToWideChar in
CompareStringA, do it manually.
2003-07-03 18:09:03 +00:00
Francois Gouget 14a5d168e9 Fixed some common spelling errors. 2003-07-02 04:37:26 +00:00
Dmitry Timoshkov 380a505bcd Add tests for NORM_IGNORENONSPACE and NORM_IGNORESYMBOLS in the
LCMapString(LCMAP_SORTKEY) branch.
2003-06-30 21:06:12 +00:00
Alexandre Julliard 2b72be546c Replace calls to WaitForMultipleObjects with a 0 count by calls to
SleepEx.
2003-06-30 02:10:19 +00:00
Dmitry Timoshkov 85d4281616 Implement LCMapString using unicode collation tables.
Move CompareString and LCMapString to dlls/kernel/locale.c.
2003-06-27 19:02:23 +00:00
Alexandre Julliard 4cb212063b Moved some of the process functions to dlls/kernel.
Removed kernel dependencies from sysdeps.c and moved it to dlls/ntdll.
2003-06-27 04:08:04 +00:00
Eric Pouech 9bd4f6bf15 - made async.h ready for use in ntdll: replaced all calls to kernel32
functions with ntdll equivalent
- replaced status setter/getter for wine async structures with direct
  access to a (now included) IO_STATUS_BLOCK structure
- since we now have a IO_STATUS_BLOCK in async_private, we no longer
  need in most of the user (derivated) structures a field for
  LPOVERLAPPED (it's stored as the IO_STATUS_BLOCK)
- rewrote the async.h users accordingly
- implemented ntdll.Nt{Read|Write}File and let
  kernel32.{Read|Write}File(Ex)? use those new ntdll functions
- rewrote smb read/write interfaces to be more ntdll stylish (no
  overlapped yet)
2003-06-26 02:08:17 +00:00
Eric Pouech 30504fbd66 Added a small test for process exit code retrieval. 2003-06-26 02:05:40 +00:00
Alexandre Julliard dc4b0c7655 Moved tape.c to dlls/kernel.
Moved critical section and resource update functions to dlls/kernel.
Started moving some of the thread functions too.
2003-06-24 03:34:15 +00:00
Eric Pouech f6a70969e1 - start moving a few file related functions from files/file.c to
dlls/kernel subdir (also splitting 16bit APIs in a separate file)
- implemented ntdll.Nt{Lock|Unlock}File, and made use of those for the
  kernel32 equivalent
- implemented a few information classes in NtQueryInformationFile and
  NtSetInformationFile (still lots of missing classes)
- enhanced the get_file_info server request in order to implement
  correctly NtQueryInformationFile (change time & file alloc size)
- rewrote registry loading to comply with latest changes
2003-06-24 02:32:01 +00:00
Eric Pouech c962a6997c - in kernel32, replaced all {Enter|Leave}CriticalSection calls with
ntdll counterparts
- {Enter|Leave}CriticalSection is now a pure forward from kernel32 to
  ntdll (we now longer can use {Enter|Leave}CriticalSection in kernel32)
- replaced a few kernel32 heap management calls from ntdll, with
  RtlHeap* equivalents
2003-06-23 18:12:28 +00:00
Eric Pouech a86a289420 In console input record queue, replace semaphore with a manual reset
event, so that we get correct behavior in synchronization handling.
2003-06-23 03:37:14 +00:00
Eric Pouech 412d37f6e6 - adapted kernel32 so that it no longer (directly) manages console
handles as wineserver handles
- console input handle object is no longer waitable (input record
  synchronisation is now implemented as a simple semaphore), and removed
  FD_TYPE_CONSOLE from fd types in wineserver
- console handles now always have their two lower bit set so one can
  distinguish a console handle from a kernel object handle
- implemented some undocumented kernel32 console related APIs
  (CloseConsoleHandle, GetConsoleInputWaitHandle, OpenConsoleW,
  VerifyConsoleIoHandle, DuplicateConsoleHandle)
- allowed a few kernel32 APIs to take console pseudo-handles
  (FlushFileBuffer, GetFileType, WaitFor*Object*)
- simplified the console inheritance at process creation
- in console tests, no longer create a console if one already exists
2003-06-21 02:07:10 +00:00
Francois Gouget 9591836ffb 'sizeof type' is best avoided as it won't always compile (e.g. 'int
main() {return sizeof int;}'). Use 'sizeof(type)' instead.
2003-06-18 19:45:22 +00:00
Francois Gouget c5f775a9c7 Typos/spelling fixes. 2003-06-18 03:30:39 +00:00
Eric Pouech 9d0fa2f02e - kernel32's environment tests: a few more tests now succeed
- added some console related tests to process creation
- added a few more test cases to the ntdll environment tests
2003-06-18 03:24:20 +00:00
Eric Pouech b53b5bcb50 - fixed a couple of bugs in ntdll environment functions (one in trace,
the other one in environment variable expansion)
- the process parameters, when passed thru wineserver, are now fully
  handled in ntdll, they are stored in the RTL_USER_PROCESS_PARAMETERS
  structure.
- later on in kernel32 loading sequence, those parameters are copied
  into STARTUPINFO shadow structures
- later modification to those paramters are now reflected to the
  RTL_USER_PROCESS_PARAMETERS structure (and STARTUPINFO is kept
  untouched) (for example, StdHandle setting) (Win 2k behaves like this)
- ENVDB has been removed
- command line inheritance (from unix command line) is now purely in ntdll
- all kernel32 environment functions now rely on their ntdll counterparts
- goodies: input/output handle inheritance while asking for a detached
  console is better handled; a few more kernel32 environment tests now
  pass ; silenced a valgrind warning in process creation
2003-06-18 03:23:22 +00:00
Mike McCormack e67c058bb9 Always return FALSE when doing an overlapped ConnectNamedPipe. 2003-06-06 18:10:36 +00:00
Lionel Ulmer 370db5b47c Implemented a semi-stub for GetProcessPriorityBoost. 2003-06-04 20:17:00 +00:00
Alexandre Julliard 2f24859b59 Beep() is still needed in ntdll, move it back to some random file. 2003-05-22 03:41:27 +00:00
Alexandre Julliard 78d108b964 Moved misc/error.c to dlls/kernel/error16.c.
Get rid of misc/main.c.
2003-05-21 18:31:01 +00:00
Gerald Pfeifer c862085b90 Avoid "might be used uninitialized" warning in exercizeServer(). 2003-05-21 18:23:20 +00:00
Alexandre Julliard b2f32bc604 Moved system.dll implementation to dlls/kernel. 2003-05-20 17:50:59 +00:00
Eric Pouech c00a4473bd Implement anonymous pipes on top of named pipes. 2003-05-20 04:32:53 +00:00
Alexandre Julliard 9bf3ac619e Moved timer functions to dlls/kernel. 2003-05-20 04:14:45 +00:00
Alexandre Julliard 11c159666e Use the trace macro for debugging output. 2003-05-20 03:58:35 +00:00
Alexandre Julliard 9747a103b5 Added value for default Unix codepage to all the locale definitions. 2003-05-20 02:20:48 +00:00
Ferenc Wagner 18f7bfb42e New _lcreat tests for filename ending in a slash and volume label
attribute.
2003-05-19 21:50:32 +00:00
Alexandre Julliard 1ed73fae13 Call the user signal proc for exe modules too, to avoid duplicating
the module cleanup code.
2003-05-16 20:16:56 +00:00
Alexandre Julliard dcff0007b6 Moved most local heap functions to dlls/kernel. 2003-05-16 20:15:26 +00:00
Alexandre Julliard 3d15c86cf8 Moved atom functions to dlls/kernel. 2003-05-16 00:05:08 +00:00
Alexandre Julliard a098c82aac Moved vxd support to winedos. 2003-05-15 23:25:49 +00:00
Dan Kegel cee5576012 More named pipes tests. 2003-05-15 22:52:41 +00:00
Mike McCormack ef8b94622a - rewrite of the named pipe code
- allow NtFileFlushBuffers to wait
- allow DisconnectNamedPipe to invalidate client cached fd
- fix the pipe test now that one extra test passes
2003-05-15 04:22:45 +00:00
Alexandre Julliard 9c40e91b70 Make the test pass on NT4 too. 2003-05-13 23:40:51 +00:00
Dmitry Timoshkov 0f9eeb6f64 Fix an obvious typo in get_res_name. Spotted by Mike McCormack. 2003-05-13 23:36:49 +00:00
Francois Gouget e8c2ac2d9d Added a test for GetLongPathNameA("c:").
Added a test for GetFullPathNameA("c:").
Fix a number of messages that referred to GetLongPathName instead of
GetFullPathName.
2003-05-13 22:30:38 +00:00
Dimitrie O. Paun 4ca5685c9c Make sure winsock.h gets included before stdlib.h. 2003-05-13 04:48:23 +00:00
Eric Pouech cd0f2bcfdd Added a set of tests for the console API. 2003-05-13 04:46:54 +00:00
Eric Pouech d3446a441b Fixed console output for non wrapped mode. 2003-05-13 04:46:24 +00:00
Alexandre Julliard e15aadd58a Allocate/free the 16-bit thread stack in the kernel dll init routine. 2003-05-13 00:49:49 +00:00
Francois Gouget f803e2a92d Fix miscellaneous spelling errors and typos. 2003-05-13 00:41:57 +00:00
Eric Pouech 9401ec5a43 Support 14 and 15 arguments in WOW_CallProc32W16. 2003-05-13 00:30:32 +00:00
Aric Stewart fa65a24817 Ignore requested access rights when emulated version is not NT. 2003-05-12 03:28:26 +00:00
Alexandre Julliard 54daeae72a Added NONAMELESSUNION/STRUCT defines. 2003-05-07 04:01:52 +00:00
Alexandre Julliard ce4d111cd8 Moved the EnumResource* functions to the kernel dll, and fixed their
prototypes.
2003-05-07 03:21:26 +00:00
Alexandre Julliard cbd9eca2c3 Use RtlFindMessage to load message resources. 2003-05-07 03:19:17 +00:00
Dimitrie O. Paun 1a1f9bffb3 Make it easy to use something other than wrc to compile resources. 2003-05-06 18:34:53 +00:00
Alexandre Julliard ab61506401 Fixed return value of CreateNamedPipe (spotted by Mike McCormack). 2003-05-06 00:19:59 +00:00
Lionel Ulmer 12c61661ab Added SetSystemTimeAdjustment stub. 2003-05-04 02:23:38 +00:00
Alexandre Julliard 424202bd9a Moved most of the kernel resource APIs to dlls/kernel. 2003-04-30 00:53:23 +00:00
Alexandre Julliard 86666c51e2 Implemented ntdll resource functions. 2003-04-29 23:00:48 +00:00
Hans Leidekker 542e0cc2b5 Dutch localisation of language group names. 2003-04-26 02:05:58 +00:00
Alexandre Julliard 2e12d33dfd Removed no longer needed uses of LDPATH. 2003-04-21 23:54:05 +00:00
Marcelo Duarte 7bc46adc4a Localization of the new language group strings. 2003-04-21 22:44:40 +00:00
Maxime Bellengé 2e9f3d844c Added resource strings for language groups. 2003-04-19 20:22:19 +00:00
Martin Fuchs 6a7d463ca6 Fixes for SystemTimeToTzSpecificLocalTime() and
TzSpecificLocalTimeToSystemTime().
2003-04-17 02:14:38 +00:00
Uwe Bonnes 0de21b651e FindFirstFile on root directory should fail. 2003-04-17 02:10:04 +00:00
Alexandre Julliard fc09423d3d Allow overriding CFLAGS when running configure. Other small cleanups. 2003-04-14 21:46:41 +00:00
Michal Janusz Miroslaw 0114f775dd Add stub for InvalidateNLSCache. 2003-04-08 19:40:37 +00:00