Commit Graph

94 Commits

Author SHA1 Message Date
Alexandre Julliard e4412a618c Removed the special casing of kernel32 and ntdll for the TEB
definition in winternl.h.
2005-05-16 17:52:10 +00:00
Andreas Mohr 51198f8eb6 Fix for CommConfigDialog*() hwnd argument. 2005-05-09 19:32:33 +00:00
Francois Gouget 821d4c4645 Fix nativeapi.pm so it knows about AC_HEADER_STAT().
Make the error message about unexpected '#ifdef HAVE_XXX' clearer.
Protect sys/stat.h #includes with the corresponding '#ifdef HAVE_XXX'
check.
2005-05-06 16:22:54 +00:00
Francois Gouget 6b10c324c5 Assorted spelling fixes. 2005-03-30 17:08:31 +00:00
Jakob Eriksson 9ed61de9a2 Get rid of HeapAlloc casts. 2005-03-24 21:01:35 +00:00
Dmitry Timoshkov 75b93ff1aa Match OVERLAPPED structure to the SDK definition. 2005-03-17 19:00:08 +00:00
Jon Griffiths eb5bf7dd38 Documentation spelling fixes. 2005-02-25 14:07:56 +00:00
Eric Pouech 4634447d6b - got rid of include/async.h
- fixed some overlapped issues in socket handling
- moved kernel32.CancelIo implementation to ntdll
2005-01-14 19:54:38 +00:00
Mike McCormack 4a0f999859 Use CreateEventW in preference to CreateEventA for unnamed events. 2005-01-07 15:40:09 +00:00
Michael Stefaniuc 5ad7d858e0 Do not check for non NULL pointer before HeapFree'ing it. It's
redundant.
2004-12-23 17:06:43 +00:00
Eric Pouech bcfa5b0900 ReadFile and WriteFile must be passed a parameter for the number of
handled bytes when no overlapped operation is done.
2004-12-22 18:38:31 +00:00
Alexandre Julliard bf88644cee Convert CommConfigDialog to Unicode. 2004-10-26 00:25:58 +00:00
Mike McCormack 568a91dfd1 SERIALUI: convert to Unicode. 2004-10-26 00:16:39 +00:00
Alexandre Julliard 6a27b48895 Fd type is no longer used, get rid of it. 2004-08-18 00:04:58 +00:00
Francois Gouget 6a6c85c6d8 Make Unicode const strings static so they are not copied to the stack
each time we enter the function.
2004-04-19 20:12:14 +00:00
Rein Klazes 0d34501876 Add missing POSIX baud rates to GetCommState and SetCommState. 2004-04-14 19:33:27 +00:00
Rein Klazes cef3983703 Fix GetCommState and SetCommState, so that these functions can be used
to set/clear/read the DTR and RTS lines.
2004-04-12 22:06:52 +00:00
Vincent Béron 14263ab0c4 Move the implementation of GetDefaultCommConfig from A to W.
Get rid of a W->A cross call at the same time.
2004-01-16 02:21:01 +00:00
Vincent Béron b370abab45 Unicodify some comm functions.
Get rid of some W->A cross calls along the way.
2004-01-16 02:14:50 +00:00
Frank 39a16e8297 Fixed size check in GetCommConfig(). 2003-12-11 04:25:00 +00:00
Alexandre Julliard 04ecca54a1 Use wine_server_release_fd() instead of close() everywhere we use
wine_server_handle_to_fd().
A few minor winsock cleanups.
2003-12-02 04:19:56 +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
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
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
Marcus Meissner 585e9d6c24 Fixed 2 fd leaks in comm functions.
Removed erroneous GetLastError() check in WaitCommEvent().
2003-03-12 20:15:38 +00:00
Michael Stefaniuc 308e04fc61 Compile the kernel dll with -DSTRICT. 2002-10-25 21:02:30 +00:00
Patrik Stridvall 1298eb4053 Fixed mismatches between the Wine headers and the Microsoft headers. 2002-10-23 18:50:10 +00:00
Stefan Leichter acbb639240 BuildCommDCBAndTimeoutsA: Made the argument parsing case insensitive. 2002-10-18 00:21:39 +00:00
Patrik Stridvall 9aab47ed24 MSVC compatibility fixes. 2002-08-28 23:42:34 +00:00
Patrik Stridvall 57bf45067a MSVC compatibility fixes. 2002-08-26 21:53:24 +00:00
Patrik Stridvall d016f819f1 Added include protection for unistd.h and sys/time.h. 2002-08-17 00:43:16 +00:00
Marcelo Welter eef5d668ce Added PCF_TOTALTIMEOUTS to comm properties. 2002-06-05 17:27:48 +00:00
Vincent Béron 9a62491660 Removed trailing whitespace. 2002-05-31 23:06:46 +00:00
Alexandre Julliard c3e06df941 Portability fixes. 2002-05-14 23:18:23 +00:00
Mike McCormack eeb356567b Added support for TransmitCommChar. 2002-04-25 23:00:45 +00:00
Marcelo Welter 69494b8763 Fix to old DCB format parsing. 2002-04-24 21:21:43 +00:00
Alexandre Julliard 20286abc42 Removed constants that aren't defined in Windows. 2002-04-22 22:32:13 +00:00
77c2bbcb0b Faster serial speed cases for non Linux systems. 2002-04-21 22:06:09 +00:00
Martin Wilck 08867f7149 - Need a "cleanup" method.
- calling the "call_completion" method unconditionally in finish_async
  (introduced by me) was wrong, because the thread may never be in an
  alertable wait state -> call it only if user completion function is present.
- We need two constant "ops" objects, one with and one without call_completion
  method (the event field may NOT be used to determine whether the completion
  must be called or not).
2002-04-14 19:34:57 +00:00
Martin Wilck 2b47fb3cee - separate cleanly between async scheduling and file IO related issues.
- make the API compatible with other types of async requests (e.g. for
  sockets).
- remove exports of async IO related functions for DLL separation.
2002-04-05 22:53:57 +00:00
Mike McCormack 4a6b990ce8 Set an overlapped hEvent before calling any APCs. 2002-03-11 01:19:29 +00:00
Alexandre Julliard 0799c1a780 Added LGPL standard comment, and copyright notices where necessary.
Global replacement of debugtools.h by wine/debug.h.
2002-03-09 23:29:33 +00:00
Andreas Mohr f16b401e28 Various cosmetic changes. 2002-02-27 21:34:54 +00:00
Marcus Meissner c36e7b8937 Fixed cut&paste problem in SETRTS. 2002-02-26 00:39:55 +00:00
Lawson Whitney 533e7eeaf4 Support for nonstandard baud rate in SetCommState. 2002-02-19 18:41:56 +00:00
Mike McCormack 6f011c0847 - move async activation into the server
- implement async queues
2001-12-20 00:07:05 +00:00
Mike McCormack 5355a7870b Only RTS_CONTROL_HANDSHAKE should set CRTSCTS. 2001-12-13 00:57:58 +00:00
Gerard Patel 8121d3aab6 Misc fixes to DCB building from command line. 2001-12-04 19:39:13 +00:00
Alexandre Julliard 9caa71eef4 Redesign of the server communication protocol to allow arbitrary sized
data to be exchanged.
Split request and reply structures to make backwards compatibility
easier.
Moved many console functions to dlls/kernel, added code page support,
changed a few requests to behave properly with the new protocol.
2001-11-30 18:46:42 +00:00