Rémi Bernon
b7ccb9d06a
ntdll: Only raise EXCEPTION_INVALID_HANDLE if debugger is present.
...
CoD: WWII writes to PEB->BeingDebugged field, so we cannot completely
trust it, but we can double check with ProcessDebugPort.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-06-23 10:16:14 +02:00
Alexandre Julliard
04f41e87a3
ntdll: Move NtClose() and NtDuplicateObject() to the Unix library.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-06-01 22:10:28 +02:00
Alexandre Julliard
1a743c9af3
ntdll: Move fd cache functions to the Unix library.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-05-29 20:05:30 +02:00
Alexandre Julliard
2ae84d5240
Avoid using Windows includes that are already handled in wine/port.h.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-12 20:19:00 +01:00
Sebastian Lackner
c61c33ee66
ntdll: Throw exception if invalid handle is passed to NtClose and debugger enabled.
...
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-02 16:02:55 +02:00
Louis Lenders
e24af9660a
ntdll: Match NtAllocateUuids signature to Windows 2000 instead of NT4.
...
Signed-off-by: Louis Lenders <xerox.xerox2000x@gmail.com>
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-12 18:00:54 +01:00
Alexandre Julliard
38f9a788c4
ntdll: Add tests for NULL object attributes.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-29 21:25:11 +09:00
Alexandre Julliard
fe0924625f
ntdll: Add a helper to validate attributes in open calls, and use a common pattern in all calls.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-29 21:25:11 +09:00
Alexandre Julliard
426c4a2f08
server: Pass full object attributes in the create_symlink request.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-18 00:17:30 +09:00
Alexandre Julliard
82800f513c
server: Pass full object attributes in the create_directory request.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-18 00:17:30 +09:00
Qian Hong
71080cc081
ntdll: Implemenent ObjectTypeInformation class support in NtQueryObject.
2015-06-05 14:32:01 +09:00
Andrew Cook
5d85f57814
server: Track handle count of objects.
2015-04-03 17:07:37 +09:00
Qian Hong
c61407f651
ntdll: Removed incorrect stub message in NtQueryObject and NtSetInformationObject.
2015-03-11 12:42:35 +09:00
Michael Stefaniuc
74b191a605
ntdll: Avoid TRUE FALSE conditional expressions.
2013-09-05 13:18:24 +02:00
Piotr Caban
76bfbf43e9
server: Don't create new handle when DUP_HANDLE_CLOSE_SOURCE is used if possible.
2013-06-05 17:31:40 +02:00
Francois Gouget
bee334003b
ntdll: Don't trace potentially uninitialized structures if we are not going to use them.
2011-09-19 17:56:05 +02:00
Hans Leidekker
71beac3219
ntdll: Don't call NtClose directly in delete_view.
2010-12-02 12:47:42 +01:00
Henri Verbeet
689c45b9b9
ntdll: Do not return STATUS_SUCCESS on failure in NtQueryObject().
2010-09-15 10:32:55 -05:00
Alexandre Julliard
6df7e7b943
ntdll: Append a terminating null and return the correct length in NtQuerySymbolicLinkObject.
2010-06-30 16:11:42 +02:00
Alexandre Julliard
574eace36e
ntdll: Return a correct name also for file objects in NtQueryObject.
2010-01-08 13:16:57 +01:00
Alexandre Julliard
658dae988d
server: Add support for returning the object name in NtQueryObject.
2010-01-08 13:01:50 +01:00
Michael Stefaniuc
d2f6f56873
ntdll: Remove superfluous pointer casts.
2009-03-23 12:40:53 +01:00
Alexandre Julliard
912d98c2ae
ntdll: Improve debugging helper for object attributes structure.
2009-02-16 11:46:44 +01:00
Alexandre Julliard
d62d6ac9c6
ntdll: Avoid null dereference in the NtCreateSymbolicLinkObject trace.
2009-02-16 11:41:09 +01:00
Alexandre Julliard
d1b3d484f7
server: Add functions for conversions between server object handles and pointer-style handles.
2008-12-08 16:05:17 +01:00
Vitaliy Margolen
de94cfd7e1
ntdll: Stub NtMakeTemporaryObject.
2008-12-01 14:06:02 +01:00
Paul Bryan Roberts
01eb926987
ntdll: Avoid potential infinite loop.
2008-11-04 11:40:00 +01:00
Alexandre Julliard
a5e38b332d
server: Partial implementation of NtQueryDirectoryObject.
2007-12-05 16:57:41 +01:00
Rob Shearman
5356bfde2c
server: Add a new get_security_object call for getting the security descriptor of an object.
...
Use it to implement NtQuerySecurityObject.
2007-10-03 11:16:45 +02:00
Dmitry Timoshkov
bd378f0327
ntdll: Remove an artificial limitation in NtQuerySecurityObject.
2007-07-13 12:29:51 +02:00
Vitaliy Margolen
cf1b810d74
ntdll: Use correct full access bitmask in NtQuerySecurityObject.
2007-04-30 12:32:53 +02:00
Vitaliy Margolen
bae75024a4
server/ntdll: Simplistic implementation of NtQueryObject(ObjectBasicInformation).
2007-01-25 12:48:35 +01:00
Paul Vriens
cbf9fde47a
ntdll: Extra check for ObjectAttributes (Coverity).
2007-01-22 12:09:17 +01:00
Alexandre Julliard
3410354d61
ntdll: Fix NtDuplicateObject to only close the file descriptor if it's in the same process.
2007-01-18 12:18:51 +01:00
Alexandre Julliard
027491f6af
ntdll: Avoid heap allocation in fd cache. Fixed a couple of races.
2007-01-18 12:18:29 +01:00
Dmitry Timoshkov
1f1d2ddf5b
ntdll: Make some data const.
2006-11-29 12:37:27 +01:00
Alexandre Julliard
28418cc919
ntdll: Maintain a file descriptor cache on the client side.
2006-11-02 20:48:19 +01:00
Hans Leidekker
f7b0ba7aa7
ntdll: Win64 printf format warning fixes.
2006-10-18 12:35:26 +02:00
Robert Shearman
e4b51580e1
ntdll: If ObjectAttributes is NULL then an error is returned at the
...
start of the NtOpenSymbolicLinkObject, therefore ObjectAttributes does
not need to be checked for NULL later on in the function.
2006-06-19 10:29:11 +02:00
Jonathan Ernst
360a3f9142
Update the address of the Free Software Foundation.
2006-05-23 14:11:13 +02:00
Alexandre Julliard
7b910f40f2
server: Use attributes instead of inherit flag in dup_handle request.
2005-12-09 12:21:35 +01:00
Vitaliy Margolen
80444dfe51
Implement symbolic link object in wineserver.
...
Implement Nt[Create|Open|Query]SymbolicLinkObject.
Change tests accordingly.
2005-11-30 19:22:57 +01:00
Vitaliy Margolen
3c6bdcce53
Implement directory object in wineserver.
...
Implement Nt[Create|Open]DirectoryObject.
Change tests accordingly.
2005-11-29 17:21:05 +01:00
Ge van Geldorp
1a1583a364
Match PSDK STATUS_* definitions.
2005-11-28 17:32:54 +01:00
Ivan Leo Puoti
ce08973ffa
Fix NtQueryDirectoryObject prototype, documentation, and the
...
definition of the structure it uses.
2005-10-28 16:42:11 +00:00
Alexandre Julliard
38502f70eb
Added a separate set_handle_cached_fd request instead of abusing
...
set_handle_info for that.
2005-08-23 18:43:50 +00:00
Paul Vriens
51d04fa9ef
Return STATUS_OBJECT_NAME_NOT_FOUND in NtOpenSymbolicLinkObject (until
...
implemented).
2005-06-23 09:47:05 +00:00
Mike McCormack
04f9f1b066
Don't include winbase.h or winerror.h when not necessary.
2005-06-21 09:52:40 +00:00
Mike McCormack
5b2d5fd758
Use HANDLE instead of HKEY in the NT API.
2005-06-17 13:58:33 +00:00
Mike McCormack
379946c9f8
Declare Nt directory functions.
2005-06-17 12:11:58 +00:00