Restore XMM registers considered volatile by the SysV ABI but nonvolatile by the Microsoft ABI in wine_syscall_dispatcher. This avoids needing to save and restore them in (almost) every ntdll entry point, which saves some 25 kB of text.
In practice this only affects x86_64, since ARM uses a unified ABI across platforms and i386 differs only in stack cleanup (and the syscall dispatcher is agnonstic thereto).
Signed-off-by: Zebediah Figura zfigura@codeweavers.com --- Granted, 25 kB is not a lot, although I'd argue that any small amount of space is worth saving. There might potentially be a performance gain, but given that we have the syscall dispatcher as something of a bottleneck anyway, it seems like it would take a bit of contrivance for these register saves to actually matter.
And of course the patch is huge, although that's mostly just because it touches the declaration and definition of every syscall function. The only other interesting part is in the x86_64 syscall dispatcher itself.
Note also that the definition of WINE_SYSCALL is guarded by _NTSYSTEM_. This looks like it breaks import from Unix libraries, but in practice the only Unix library to import Nt* syscalls defines _NTSYSTEM_. This seems a bit fragile to me, but the current state looks already fragile, so I'm leaving it alone in this patch, for now...
dlls/ntdll/unix/debug.c | 6 +- dlls/ntdll/unix/env.c | 12 +- dlls/ntdll/unix/file.c | 142 ++++----- dlls/ntdll/unix/loader.c | 2 +- dlls/ntdll/unix/process.c | 34 +- dlls/ntdll/unix/registry.c | 88 +++--- dlls/ntdll/unix/security.c | 70 ++--- dlls/ntdll/unix/server.c | 14 +- dlls/ntdll/unix/signal_arm.c | 8 +- dlls/ntdll/unix/signal_arm64.c | 10 +- dlls/ntdll/unix/signal_i386.c | 8 +- dlls/ntdll/unix/signal_x86_64.c | 42 ++- dlls/ntdll/unix/sync.c | 220 ++++++------- dlls/ntdll/unix/system.c | 46 +-- dlls/ntdll/unix/thread.c | 48 +-- dlls/ntdll/unix/virtual.c | 82 ++--- include/wine/debug.h | 1 - include/wine/server.h | 6 +- include/wine/unixlib.h | 2 +- include/winternl.h | 539 ++++++++++++++++---------------- 20 files changed, 704 insertions(+), 676 deletions(-)
diff --git a/dlls/ntdll/unix/debug.c b/dlls/ntdll/unix/debug.c index a2a63b5a9f4..b360e9b33b6 100644 --- a/dlls/ntdll/unix/debug.c +++ b/dlls/ntdll/unix/debug.c @@ -255,7 +255,7 @@ const char * __cdecl __wine_dbg_strdup( const char *str ) /*********************************************************************** * __wine_dbg_write (NTDLL.@) */ -int WINAPI __wine_dbg_write( const char *str, unsigned int len ) +int WINE_SYSCALL __wine_dbg_write( const char *str, unsigned int len ) { return write( 2, str, len ); } @@ -336,8 +336,8 @@ void dbg_init(void) /*********************************************************************** * NtTraceControl (NTDLL.@) */ -NTSTATUS WINAPI NtTraceControl( ULONG code, void *inbuf, ULONG inbuf_len, - void *outbuf, ULONG outbuf_len, ULONG *size ) +NTSTATUS WINE_SYSCALL NtTraceControl( ULONG code, void *inbuf, ULONG inbuf_len, + void *outbuf, ULONG outbuf_len, ULONG *size ) { FIXME( "code %u, inbuf %p, inbuf_len %u, outbuf %p, outbuf_len %u, size %p\n", code, inbuf, inbuf_len, outbuf, outbuf_len, size ); diff --git a/dlls/ntdll/unix/env.c b/dlls/ntdll/unix/env.c index ae1afb2797b..5a973c4aa71 100644 --- a/dlls/ntdll/unix/env.c +++ b/dlls/ntdll/unix/env.c @@ -2383,7 +2383,7 @@ void *create_startup_info( const UNICODE_STRING *nt_image, const RTL_USER_PROCES /************************************************************************** * NtGetNlsSectionPtr (NTDLL.@) */ -NTSTATUS WINAPI NtGetNlsSectionPtr( ULONG type, ULONG id, void *unknown, void **ptr, SIZE_T *size ) +NTSTATUS WINE_SYSCALL NtGetNlsSectionPtr( ULONG type, ULONG id, void *unknown, void **ptr, SIZE_T *size ) { UNICODE_STRING nameW; OBJECT_ATTRIBUTES attr; @@ -2418,7 +2418,7 @@ NTSTATUS WINAPI NtGetNlsSectionPtr( ULONG type, ULONG id, void *unknown, void ** /********************************************************************** * NtQueryDefaultLocale (NTDLL.@) */ -NTSTATUS WINAPI NtQueryDefaultLocale( BOOLEAN user, LCID *lcid ) +NTSTATUS WINE_SYSCALL NtQueryDefaultLocale( BOOLEAN user, LCID *lcid ) { *lcid = user ? user_lcid : system_lcid; return STATUS_SUCCESS; @@ -2428,7 +2428,7 @@ NTSTATUS WINAPI NtQueryDefaultLocale( BOOLEAN user, LCID *lcid ) /********************************************************************** * NtSetDefaultLocale (NTDLL.@) */ -NTSTATUS WINAPI NtSetDefaultLocale( BOOLEAN user, LCID lcid ) +NTSTATUS WINE_SYSCALL NtSetDefaultLocale( BOOLEAN user, LCID lcid ) { if (user) user_lcid = lcid; else @@ -2443,7 +2443,7 @@ NTSTATUS WINAPI NtSetDefaultLocale( BOOLEAN user, LCID lcid ) /********************************************************************** * NtQueryDefaultUILanguage (NTDLL.@) */ -NTSTATUS WINAPI NtQueryDefaultUILanguage( LANGID *lang ) +NTSTATUS WINE_SYSCALL NtQueryDefaultUILanguage( LANGID *lang ) { *lang = user_ui_language; return STATUS_SUCCESS; @@ -2453,7 +2453,7 @@ NTSTATUS WINAPI NtQueryDefaultUILanguage( LANGID *lang ) /********************************************************************** * NtSetDefaultUILanguage (NTDLL.@) */ -NTSTATUS WINAPI NtSetDefaultUILanguage( LANGID lang ) +NTSTATUS WINE_SYSCALL NtSetDefaultUILanguage( LANGID lang ) { user_ui_language = lang; return STATUS_SUCCESS; @@ -2463,7 +2463,7 @@ NTSTATUS WINAPI NtSetDefaultUILanguage( LANGID lang ) /********************************************************************** * NtQueryInstallUILanguage (NTDLL.@) */ -NTSTATUS WINAPI NtQueryInstallUILanguage( LANGID *lang ) +NTSTATUS WINE_SYSCALL NtQueryInstallUILanguage( LANGID *lang ) { *lang = system_ui_language; return STATUS_SUCCESS; diff --git a/dlls/ntdll/unix/file.c b/dlls/ntdll/unix/file.c index e6f813966a5..ccb587f1cb1 100644 --- a/dlls/ntdll/unix/file.c +++ b/dlls/ntdll/unix/file.c @@ -2393,10 +2393,10 @@ static NTSTATUS get_cached_dir_data( HANDLE handle, struct dir_data **data_ret, /****************************************************************************** * NtQueryDirectoryFile (NTDLL.@) */ -NTSTATUS WINAPI NtQueryDirectoryFile( HANDLE handle, HANDLE event, PIO_APC_ROUTINE apc_routine, - void *apc_context, IO_STATUS_BLOCK *io, void *buffer, ULONG length, - FILE_INFORMATION_CLASS info_class, BOOLEAN single_entry, - UNICODE_STRING *mask, BOOLEAN restart_scan ) +NTSTATUS WINE_SYSCALL NtQueryDirectoryFile( HANDLE handle, HANDLE event, PIO_APC_ROUTINE apc_routine, + void *apc_context, IO_STATUS_BLOCK *io, void *buffer, ULONG length, + FILE_INFORMATION_CLASS info_class, BOOLEAN single_entry, + UNICODE_STRING *mask, BOOLEAN restart_scan ) { int cwd, fd, needs_close; enum server_fd_type type; @@ -3432,8 +3432,8 @@ NTSTATUS nt_to_unix_file_name( const OBJECT_ATTRIBUTES *attr, char **name_ret, U * element doesn't have to exist; in that case STATUS_NO_SUCH_FILE is * returned, but the unix name is still filled in properly. */ -NTSTATUS WINAPI wine_nt_to_unix_file_name( const OBJECT_ATTRIBUTES *attr, char *nameA, ULONG *size, - UINT disposition ) +NTSTATUS WINE_SYSCALL wine_nt_to_unix_file_name( const OBJECT_ATTRIBUTES *attr, char *nameA, + ULONG *size, UINT disposition ) { char *buffer = NULL; NTSTATUS status; @@ -3572,7 +3572,7 @@ NTSTATUS unix_to_nt_file_name( const char *name, WCHAR **nt ) /****************************************************************** * wine_unix_to_nt_file_name */ -NTSTATUS WINAPI wine_unix_to_nt_file_name( const char *name, WCHAR *buffer, ULONG *size ) +NTSTATUS WINE_SYSCALL wine_unix_to_nt_file_name( const char *name, WCHAR *buffer, ULONG *size ) { WCHAR *nt_name = NULL; NTSTATUS status; @@ -3730,10 +3730,10 @@ NTSTATUS open_unix_file( HANDLE *handle, const char *unix_name, ACCESS_MASK acce /****************************************************************************** * NtCreateFile (NTDLL.@) */ -NTSTATUS WINAPI NtCreateFile( HANDLE *handle, ACCESS_MASK access, OBJECT_ATTRIBUTES *attr, - IO_STATUS_BLOCK *io, LARGE_INTEGER *alloc_size, - ULONG attributes, ULONG sharing, ULONG disposition, - ULONG options, void *ea_buffer, ULONG ea_length ) +NTSTATUS WINE_SYSCALL NtCreateFile( HANDLE *handle, ACCESS_MASK access, OBJECT_ATTRIBUTES *attr, + IO_STATUS_BLOCK *io, LARGE_INTEGER *alloc_size, + ULONG attributes, ULONG sharing, ULONG disposition, + ULONG options, void *ea_buffer, ULONG ea_length ) { OBJECT_ATTRIBUTES new_attr; UNICODE_STRING nt_name; @@ -3821,8 +3821,8 @@ NTSTATUS WINAPI NtCreateFile( HANDLE *handle, ACCESS_MASK access, OBJECT_ATTRIBU /****************************************************************************** * NtOpenFile (NTDLL.@) */ -NTSTATUS WINAPI NtOpenFile( HANDLE *handle, ACCESS_MASK access, OBJECT_ATTRIBUTES *attr, - IO_STATUS_BLOCK *io, ULONG sharing, ULONG options ) +NTSTATUS WINE_SYSCALL NtOpenFile( HANDLE *handle, ACCESS_MASK access, OBJECT_ATTRIBUTES *attr, + IO_STATUS_BLOCK *io, ULONG sharing, ULONG options ) { return NtCreateFile( handle, access, attr, io, NULL, 0, sharing, FILE_OPEN, options, NULL, 0 ); } @@ -3831,9 +3831,9 @@ NTSTATUS WINAPI NtOpenFile( HANDLE *handle, ACCESS_MASK access, OBJECT_ATTRIBUTE /****************************************************************************** * NtCreateMailslotFile (NTDLL.@) */ -NTSTATUS WINAPI NtCreateMailslotFile( HANDLE *handle, ULONG access, OBJECT_ATTRIBUTES *attr, - IO_STATUS_BLOCK *io, ULONG options, ULONG quota, ULONG msg_size, - LARGE_INTEGER *timeout ) +NTSTATUS WINE_SYSCALL NtCreateMailslotFile( HANDLE *handle, ULONG access, OBJECT_ATTRIBUTES *attr, + IO_STATUS_BLOCK *io, ULONG options, ULONG quota, ULONG msg_size, + LARGE_INTEGER *timeout ) { NTSTATUS status; data_size_t len; @@ -3864,11 +3864,11 @@ NTSTATUS WINAPI NtCreateMailslotFile( HANDLE *handle, ULONG access, OBJECT_ATTRI /****************************************************************** * NtCreateNamedPipeFile (NTDLL.@) */ -NTSTATUS WINAPI NtCreateNamedPipeFile( HANDLE *handle, ULONG access, OBJECT_ATTRIBUTES *attr, - IO_STATUS_BLOCK *io, ULONG sharing, ULONG dispo, ULONG options, - ULONG pipe_type, ULONG read_mode, ULONG completion_mode, - ULONG max_inst, ULONG inbound_quota, ULONG outbound_quota, - LARGE_INTEGER *timeout ) +NTSTATUS WINE_SYSCALL NtCreateNamedPipeFile( HANDLE *handle, ULONG access, OBJECT_ATTRIBUTES *attr, + IO_STATUS_BLOCK *io, ULONG sharing, ULONG dispo, ULONG options, + ULONG pipe_type, ULONG read_mode, ULONG completion_mode, + ULONG max_inst, ULONG inbound_quota, ULONG outbound_quota, + LARGE_INTEGER *timeout ) { NTSTATUS status; data_size_t len; @@ -3913,7 +3913,7 @@ NTSTATUS WINAPI NtCreateNamedPipeFile( HANDLE *handle, ULONG access, OBJECT_ATTR /****************************************************************** * NtDeleteFile (NTDLL.@) */ -NTSTATUS WINAPI NtDeleteFile( OBJECT_ATTRIBUTES *attr ) +NTSTATUS WINE_SYSCALL NtDeleteFile( OBJECT_ATTRIBUTES *attr ) { HANDLE handle; NTSTATUS status; @@ -3938,8 +3938,8 @@ NTSTATUS WINAPI NtDeleteFile( OBJECT_ATTRIBUTES *attr ) /****************************************************************************** * NtQueryFullAttributesFile (NTDLL.@) */ -NTSTATUS WINAPI NtQueryFullAttributesFile( const OBJECT_ATTRIBUTES *attr, - FILE_NETWORK_OPEN_INFORMATION *info ) +NTSTATUS WINE_SYSCALL NtQueryFullAttributesFile( const OBJECT_ATTRIBUTES *attr, + FILE_NETWORK_OPEN_INFORMATION *info ) { char *unix_name; NTSTATUS status; @@ -3984,7 +3984,7 @@ NTSTATUS WINAPI NtQueryFullAttributesFile( const OBJECT_ATTRIBUTES *attr, /****************************************************************************** * NtQueryAttributesFile (NTDLL.@) */ -NTSTATUS WINAPI NtQueryAttributesFile( const OBJECT_ATTRIBUTES *attr, FILE_BASIC_INFORMATION *info ) +NTSTATUS WINE_SYSCALL NtQueryAttributesFile( const OBJECT_ATTRIBUTES *attr, FILE_BASIC_INFORMATION *info ) { char *unix_name; NTSTATUS status; @@ -4017,8 +4017,8 @@ NTSTATUS WINAPI NtQueryAttributesFile( const OBJECT_ATTRIBUTES *attr, FILE_BASIC /****************************************************************************** * NtQueryInformationFile (NTDLL.@) */ -NTSTATUS WINAPI NtQueryInformationFile( HANDLE handle, IO_STATUS_BLOCK *io, - void *ptr, LONG len, FILE_INFORMATION_CLASS class ) +NTSTATUS WINE_SYSCALL NtQueryInformationFile( HANDLE handle, IO_STATUS_BLOCK *io, + void *ptr, LONG len, FILE_INFORMATION_CLASS class ) { static const size_t info_sizes[] = { @@ -4306,8 +4306,8 @@ NTSTATUS WINAPI NtQueryInformationFile( HANDLE handle, IO_STATUS_BLOCK *io, /****************************************************************************** * NtSetInformationFile (NTDLL.@) */ -NTSTATUS WINAPI NtSetInformationFile( HANDLE handle, IO_STATUS_BLOCK *io, - void *ptr, ULONG len, FILE_INFORMATION_CLASS class ) +NTSTATUS WINE_SYSCALL NtSetInformationFile( HANDLE handle, IO_STATUS_BLOCK *io, + void *ptr, ULONG len, FILE_INFORMATION_CLASS class ) { int fd, needs_close; NTSTATUS status = STATUS_SUCCESS; @@ -5107,9 +5107,9 @@ static NTSTATUS set_pending_write( HANDLE device ) /****************************************************************************** * NtReadFile (NTDLL.@) */ -NTSTATUS WINAPI NtReadFile( HANDLE handle, HANDLE event, PIO_APC_ROUTINE apc, void *apc_user, - IO_STATUS_BLOCK *io, void *buffer, ULONG length, - LARGE_INTEGER *offset, ULONG *key ) +NTSTATUS WINE_SYSCALL NtReadFile( HANDLE handle, HANDLE event, PIO_APC_ROUTINE apc, void *apc_user, + IO_STATUS_BLOCK *io, void *buffer, ULONG length, + LARGE_INTEGER *offset, ULONG *key ) { int result, unix_handle, needs_close; unsigned int options; @@ -5304,9 +5304,9 @@ err: /****************************************************************************** * NtReadFileScatter (NTDLL.@) */ -NTSTATUS WINAPI NtReadFileScatter( HANDLE file, HANDLE event, PIO_APC_ROUTINE apc, void *apc_user, - IO_STATUS_BLOCK *io, FILE_SEGMENT_ELEMENT *segments, - ULONG length, LARGE_INTEGER *offset, ULONG *key ) +NTSTATUS WINE_SYSCALL NtReadFileScatter( HANDLE file, HANDLE event, PIO_APC_ROUTINE apc, void *apc_user, + IO_STATUS_BLOCK *io, FILE_SEGMENT_ELEMENT *segments, + ULONG length, LARGE_INTEGER *offset, ULONG *key ) { int result, unix_handle, needs_close; unsigned int options; @@ -5382,9 +5382,9 @@ error: /****************************************************************************** * NtWriteFile (NTDLL.@) */ -NTSTATUS WINAPI NtWriteFile( HANDLE handle, HANDLE event, PIO_APC_ROUTINE apc, void *apc_user, - IO_STATUS_BLOCK *io, const void *buffer, ULONG length, - LARGE_INTEGER *offset, ULONG *key ) +NTSTATUS WINE_SYSCALL NtWriteFile( HANDLE handle, HANDLE event, PIO_APC_ROUTINE apc, void *apc_user, + IO_STATUS_BLOCK *io, const void *buffer, ULONG length, + LARGE_INTEGER *offset, ULONG *key ) { int result, unix_handle, needs_close; unsigned int options; @@ -5606,9 +5606,9 @@ err: /****************************************************************************** * NtWriteFileGather (NTDLL.@) */ -NTSTATUS WINAPI NtWriteFileGather( HANDLE file, HANDLE event, PIO_APC_ROUTINE apc, void *apc_user, - IO_STATUS_BLOCK *io, FILE_SEGMENT_ELEMENT *segments, - ULONG length, LARGE_INTEGER *offset, ULONG *key ) +NTSTATUS WINE_SYSCALL NtWriteFileGather( HANDLE file, HANDLE event, PIO_APC_ROUTINE apc, void *apc_user, + IO_STATUS_BLOCK *io, FILE_SEGMENT_ELEMENT *segments, + ULONG length, LARGE_INTEGER *offset, ULONG *key ) { int result, unix_handle, needs_close; unsigned int options; @@ -5694,9 +5694,9 @@ NTSTATUS WINAPI NtWriteFileGather( HANDLE file, HANDLE event, PIO_APC_ROUTINE ap /****************************************************************************** * NtDeviceIoControlFile (NTDLL.@) */ -NTSTATUS WINAPI NtDeviceIoControlFile( HANDLE handle, HANDLE event, PIO_APC_ROUTINE apc, void *apc_context, - IO_STATUS_BLOCK *io, ULONG code, void *in_buffer, ULONG in_size, - void *out_buffer, ULONG out_size ) +NTSTATUS WINE_SYSCALL NtDeviceIoControlFile( HANDLE handle, HANDLE event, PIO_APC_ROUTINE apc, void *apc_context, + IO_STATUS_BLOCK *io, ULONG code, void *in_buffer, ULONG in_size, + void *out_buffer, ULONG out_size ) { ULONG device = (code >> 16); NTSTATUS status = STATUS_NOT_SUPPORTED; @@ -5764,9 +5764,9 @@ static void ignore_server_ioctl_struct_holes( ULONG code, const void *in_buffer, /****************************************************************************** * NtFsControlFile (NTDLL.@) */ -NTSTATUS WINAPI NtFsControlFile( HANDLE handle, HANDLE event, PIO_APC_ROUTINE apc, void *apc_context, - IO_STATUS_BLOCK *io, ULONG code, void *in_buffer, ULONG in_size, - void *out_buffer, ULONG out_size ) +NTSTATUS WINE_SYSCALL NtFsControlFile( HANDLE handle, HANDLE event, PIO_APC_ROUTINE apc, void *apc_context, + IO_STATUS_BLOCK *io, ULONG code, void *in_buffer, ULONG in_size, + void *out_buffer, ULONG out_size ) { NTSTATUS status;
@@ -5861,7 +5861,7 @@ NTSTATUS WINAPI NtFsControlFile( HANDLE handle, HANDLE event, PIO_APC_ROUTINE ap /****************************************************************************** * NtFlushBuffersFile (NTDLL.@) */ -NTSTATUS WINAPI NtFlushBuffersFile( HANDLE handle, IO_STATUS_BLOCK *io ) +NTSTATUS WINE_SYSCALL NtFlushBuffersFile( HANDLE handle, IO_STATUS_BLOCK *io ) { NTSTATUS ret; HANDLE wait_handle; @@ -5919,7 +5919,7 @@ NTSTATUS WINAPI NtFlushBuffersFile( HANDLE handle, IO_STATUS_BLOCK *io ) /************************************************************************** * NtCancelIoFile (NTDLL.@) */ -NTSTATUS WINAPI NtCancelIoFile( HANDLE handle, IO_STATUS_BLOCK *io_status ) +NTSTATUS WINE_SYSCALL NtCancelIoFile( HANDLE handle, IO_STATUS_BLOCK *io_status ) { NTSTATUS status;
@@ -5944,7 +5944,7 @@ NTSTATUS WINAPI NtCancelIoFile( HANDLE handle, IO_STATUS_BLOCK *io_status ) /************************************************************************** * NtCancelIoFileEx (NTDLL.@) */ -NTSTATUS WINAPI NtCancelIoFileEx( HANDLE handle, IO_STATUS_BLOCK *io, IO_STATUS_BLOCK *io_status ) +NTSTATUS WINE_SYSCALL NtCancelIoFileEx( HANDLE handle, IO_STATUS_BLOCK *io, IO_STATUS_BLOCK *io_status ) { NTSTATUS status;
@@ -5969,9 +5969,9 @@ NTSTATUS WINAPI NtCancelIoFileEx( HANDLE handle, IO_STATUS_BLOCK *io, IO_STATUS_ /****************************************************************** * NtLockFile (NTDLL.@) */ -NTSTATUS WINAPI NtLockFile( HANDLE file, HANDLE event, PIO_APC_ROUTINE apc, void* apc_user, - IO_STATUS_BLOCK *io_status, LARGE_INTEGER *offset, - LARGE_INTEGER *count, ULONG *key, BOOLEAN dont_wait, BOOLEAN exclusive ) +NTSTATUS WINE_SYSCALL NtLockFile( HANDLE file, HANDLE event, PIO_APC_ROUTINE apc, void* apc_user, + IO_STATUS_BLOCK *io_status, LARGE_INTEGER *offset, + LARGE_INTEGER *count, ULONG *key, BOOLEAN dont_wait, BOOLEAN exclusive ) { static int warn; NTSTATUS ret; @@ -6028,8 +6028,8 @@ NTSTATUS WINAPI NtLockFile( HANDLE file, HANDLE event, PIO_APC_ROUTINE apc, void /****************************************************************** * NtUnlockFile (NTDLL.@) */ -NTSTATUS WINAPI NtUnlockFile( HANDLE handle, IO_STATUS_BLOCK *io_status, LARGE_INTEGER *offset, - LARGE_INTEGER *count, ULONG *key ) +NTSTATUS WINE_SYSCALL NtUnlockFile( HANDLE handle, IO_STATUS_BLOCK *io_status, LARGE_INTEGER *offset, + LARGE_INTEGER *count, ULONG *key ) { NTSTATUS status;
@@ -6139,9 +6139,9 @@ static BOOL read_changes_apc( void *user, ULONG_PTR *info, NTSTATUS *status ) /****************************************************************************** * NtNotifyChangeDirectoryFile (NTDLL.@) */ -NTSTATUS WINAPI NtNotifyChangeDirectoryFile( HANDLE handle, HANDLE event, PIO_APC_ROUTINE apc, - void *apc_context, IO_STATUS_BLOCK *iosb, void *buffer, - ULONG buffer_size, ULONG filter, BOOLEAN subtree ) +NTSTATUS WINE_SYSCALL NtNotifyChangeDirectoryFile( HANDLE handle, HANDLE event, PIO_APC_ROUTINE apc, + void *apc_context, IO_STATUS_BLOCK *iosb, void *buffer, + ULONG buffer_size, ULONG filter, BOOLEAN subtree ) { struct async_fileio_read_changes *fileio; NTSTATUS status; @@ -6382,9 +6382,9 @@ static NTSTATUS get_device_info( int fd, FILE_FS_DEVICE_INFORMATION *info ) /****************************************************************************** * NtQueryVolumeInformationFile (NTDLL.@) */ -NTSTATUS WINAPI NtQueryVolumeInformationFile( HANDLE handle, IO_STATUS_BLOCK *io, - void *buffer, ULONG length, - FS_INFORMATION_CLASS info_class ) +NTSTATUS WINE_SYSCALL NtQueryVolumeInformationFile( HANDLE handle, IO_STATUS_BLOCK *io, + void *buffer, ULONG length, + FS_INFORMATION_CLASS info_class ) { int fd, needs_close; struct stat st; @@ -6652,8 +6652,8 @@ NTSTATUS WINAPI NtQueryVolumeInformationFile( HANDLE handle, IO_STATUS_BLOCK *io /****************************************************************************** * NtSetVolumeInformationFile (NTDLL.@) */ -NTSTATUS WINAPI NtSetVolumeInformationFile( HANDLE handle, IO_STATUS_BLOCK *io, void *info, - ULONG length, FS_INFORMATION_CLASS class ) +NTSTATUS WINE_SYSCALL NtSetVolumeInformationFile( HANDLE handle, IO_STATUS_BLOCK *io, void *info, + ULONG length, FS_INFORMATION_CLASS class ) { FIXME( "(%p,%p,%p,0x%08x,0x%08x) stub\n", handle, io, info, length, class ); return STATUS_SUCCESS; @@ -6663,9 +6663,9 @@ NTSTATUS WINAPI NtSetVolumeInformationFile( HANDLE handle, IO_STATUS_BLOCK *io, /****************************************************************** * NtQueryEaFile (NTDLL.@) */ -NTSTATUS WINAPI NtQueryEaFile( HANDLE handle, IO_STATUS_BLOCK *io, void *buffer, ULONG length, - BOOLEAN single_entry, void *list, ULONG list_len, - ULONG *index, BOOLEAN restart ) +NTSTATUS WINE_SYSCALL NtQueryEaFile( HANDLE handle, IO_STATUS_BLOCK *io, void *buffer, ULONG length, + BOOLEAN single_entry, void *list, ULONG list_len, + ULONG *index, BOOLEAN restart ) { FIXME( "(%p,%p,%p,%d,%d,%p,%d,%p,%d) stub\n", handle, io, buffer, length, single_entry, list, list_len, index, restart ); @@ -6676,7 +6676,7 @@ NTSTATUS WINAPI NtQueryEaFile( HANDLE handle, IO_STATUS_BLOCK *io, void *buffer, /****************************************************************** * NtSetEaFile (NTDLL.@) */ -NTSTATUS WINAPI NtSetEaFile( HANDLE handle, IO_STATUS_BLOCK *io, void *buffer, ULONG length ) +NTSTATUS WINE_SYSCALL NtSetEaFile( HANDLE handle, IO_STATUS_BLOCK *io, void *buffer, ULONG length ) { FIXME( "(%p,%p,%p,%d) stub\n", handle, io, buffer, length ); return STATUS_ACCESS_DENIED; @@ -6710,8 +6710,8 @@ static void *put_object_type_info( OBJECT_TYPE_INFORMATION *p, struct object_typ /************************************************************************** * NtQueryObject (NTDLL.@) */ -NTSTATUS WINAPI NtQueryObject( HANDLE handle, OBJECT_INFORMATION_CLASS info_class, - void *ptr, ULONG len, ULONG *used_len ) +NTSTATUS WINE_SYSCALL NtQueryObject( HANDLE handle, OBJECT_INFORMATION_CLASS info_class, + void *ptr, ULONG len, ULONG *used_len ) { NTSTATUS status;
@@ -6909,8 +6909,8 @@ NTSTATUS WINAPI NtQueryObject( HANDLE handle, OBJECT_INFORMATION_CLASS info_clas /************************************************************************** * NtSetInformationObject (NTDLL.@) */ -NTSTATUS WINAPI NtSetInformationObject( HANDLE handle, OBJECT_INFORMATION_CLASS info_class, - void *ptr, ULONG len ) +NTSTATUS WINE_SYSCALL NtSetInformationObject( HANDLE handle, OBJECT_INFORMATION_CLASS info_class, + void *ptr, ULONG len ) { NTSTATUS status;
diff --git a/dlls/ntdll/unix/loader.c b/dlls/ntdll/unix/loader.c index 5e39209eddc..00f696f9890 100644 --- a/dlls/ntdll/unix/loader.c +++ b/dlls/ntdll/unix/loader.c @@ -1405,7 +1405,7 @@ NTSTATUS ntdll_init_syscalls( ULONG id, SYSTEM_SERVICE_TABLE *table, void **disp /*********************************************************************** * __wine_unix_call */ -NTSTATUS WINAPI __wine_unix_call( unixlib_handle_t handle, unsigned int code, void *args ) +NTSTATUS WINE_SYSCALL __wine_unix_call( unixlib_handle_t handle, unsigned int code, void *args ) { return ((unixlib_entry_t*)(UINT_PTR)handle)[code]( args ); } diff --git a/dlls/ntdll/unix/process.c b/dlls/ntdll/unix/process.c index f5b8b5315cd..755675fa318 100644 --- a/dlls/ntdll/unix/process.c +++ b/dlls/ntdll/unix/process.c @@ -615,12 +615,12 @@ static NTSTATUS alloc_handle_list( const PS_ATTRIBUTE *handles_attr, obj_handle_ /********************************************************************** * NtCreateUserProcess (NTDLL.@) */ -NTSTATUS WINAPI NtCreateUserProcess( HANDLE *process_handle_ptr, HANDLE *thread_handle_ptr, - ACCESS_MASK process_access, ACCESS_MASK thread_access, - OBJECT_ATTRIBUTES *process_attr, OBJECT_ATTRIBUTES *thread_attr, - ULONG process_flags, ULONG thread_flags, - RTL_USER_PROCESS_PARAMETERS *params, PS_CREATE_INFO *info, - PS_ATTRIBUTE_LIST *ps_attr ) +NTSTATUS WINE_SYSCALL NtCreateUserProcess( HANDLE *process_handle_ptr, HANDLE *thread_handle_ptr, + ACCESS_MASK process_access, ACCESS_MASK thread_access, + OBJECT_ATTRIBUTES *process_attr, OBJECT_ATTRIBUTES *thread_attr, + ULONG process_flags, ULONG thread_flags, + RTL_USER_PROCESS_PARAMETERS *params, PS_CREATE_INFO *info, + PS_ATTRIBUTE_LIST *ps_attr ) { NTSTATUS status; BOOL success = FALSE; @@ -874,7 +874,7 @@ done: /****************************************************************************** * NtTerminateProcess (NTDLL.@) */ -NTSTATUS WINAPI NtTerminateProcess( HANDLE handle, LONG exit_code ) +NTSTATUS WINE_SYSCALL NtTerminateProcess( HANDLE handle, LONG exit_code ) { NTSTATUS ret; BOOL self; @@ -971,8 +971,8 @@ void fill_vm_counters( VM_COUNTERS_EX *pvmi, int unix_pid ) /********************************************************************** * NtQueryInformationProcess (NTDLL.@) */ -NTSTATUS WINAPI NtQueryInformationProcess( HANDLE handle, PROCESSINFOCLASS class, void *info, - ULONG size, ULONG *ret_len ) +NTSTATUS WINE_SYSCALL NtQueryInformationProcess( HANDLE handle, PROCESSINFOCLASS class, void *info, + ULONG size, ULONG *ret_len ) { NTSTATUS ret = STATUS_SUCCESS; ULONG len = 0; @@ -1417,7 +1417,7 @@ NTSTATUS WINAPI NtQueryInformationProcess( HANDLE handle, PROCESSINFOCLASS class /********************************************************************** * NtSetInformationProcess (NTDLL.@) */ -NTSTATUS WINAPI NtSetInformationProcess( HANDLE handle, PROCESSINFOCLASS class, void *info, ULONG size ) +NTSTATUS WINE_SYSCALL NtSetInformationProcess( HANDLE handle, PROCESSINFOCLASS class, void *info, ULONG size ) { NTSTATUS ret = STATUS_SUCCESS;
@@ -1543,8 +1543,8 @@ NTSTATUS WINAPI NtSetInformationProcess( HANDLE handle, PROCESSINFOCLASS class, /********************************************************************** * NtOpenProcess (NTDLL.@) */ -NTSTATUS WINAPI NtOpenProcess( HANDLE *handle, ACCESS_MASK access, - const OBJECT_ATTRIBUTES *attr, const CLIENT_ID *id ) +NTSTATUS WINE_SYSCALL NtOpenProcess( HANDLE *handle, ACCESS_MASK access, + const OBJECT_ATTRIBUTES *attr, const CLIENT_ID *id ) { NTSTATUS status;
@@ -1566,7 +1566,7 @@ NTSTATUS WINAPI NtOpenProcess( HANDLE *handle, ACCESS_MASK access, /********************************************************************** * NtSuspendProcess (NTDLL.@) */ -NTSTATUS WINAPI NtSuspendProcess( HANDLE handle ) +NTSTATUS WINE_SYSCALL NtSuspendProcess( HANDLE handle ) { NTSTATUS ret;
@@ -1583,7 +1583,7 @@ NTSTATUS WINAPI NtSuspendProcess( HANDLE handle ) /********************************************************************** * NtResumeProcess (NTDLL.@) */ -NTSTATUS WINAPI NtResumeProcess( HANDLE handle ) +NTSTATUS WINE_SYSCALL NtResumeProcess( HANDLE handle ) { NTSTATUS ret;
@@ -1600,7 +1600,7 @@ NTSTATUS WINAPI NtResumeProcess( HANDLE handle ) /********************************************************************** * NtDebugActiveProcess (NTDLL.@) */ -NTSTATUS WINAPI NtDebugActiveProcess( HANDLE process, HANDLE debug ) +NTSTATUS WINE_SYSCALL NtDebugActiveProcess( HANDLE process, HANDLE debug ) { NTSTATUS ret;
@@ -1619,7 +1619,7 @@ NTSTATUS WINAPI NtDebugActiveProcess( HANDLE process, HANDLE debug ) /********************************************************************** * NtRemoveProcessDebug (NTDLL.@) */ -NTSTATUS WINAPI NtRemoveProcessDebug( HANDLE process, HANDLE debug ) +NTSTATUS WINE_SYSCALL NtRemoveProcessDebug( HANDLE process, HANDLE debug ) { NTSTATUS ret;
@@ -1638,7 +1638,7 @@ NTSTATUS WINAPI NtRemoveProcessDebug( HANDLE process, HANDLE debug ) /********************************************************************** * NtDebugContinue (NTDLL.@) */ -NTSTATUS WINAPI NtDebugContinue( HANDLE handle, CLIENT_ID *client, NTSTATUS status ) +NTSTATUS WINE_SYSCALL NtDebugContinue( HANDLE handle, CLIENT_ID *client, NTSTATUS status ) { NTSTATUS ret;
diff --git a/dlls/ntdll/unix/registry.c b/dlls/ntdll/unix/registry.c index 265ed39bd17..c32dbcf1a5e 100644 --- a/dlls/ntdll/unix/registry.c +++ b/dlls/ntdll/unix/registry.c @@ -72,8 +72,8 @@ NTSTATUS open_hkcu_key( const char *path, HANDLE *key ) /****************************************************************************** * NtCreateKey (NTDLL.@) */ -NTSTATUS WINAPI NtCreateKey( HANDLE *key, ACCESS_MASK access, const OBJECT_ATTRIBUTES *attr, - ULONG index, const UNICODE_STRING *class, ULONG options, ULONG *dispos ) +NTSTATUS WINE_SYSCALL NtCreateKey( HANDLE *key, ACCESS_MASK access, const OBJECT_ATTRIBUTES *attr, + ULONG index, const UNICODE_STRING *class, ULONG options, ULONG *dispos ) { NTSTATUS ret; data_size_t len; @@ -107,9 +107,9 @@ NTSTATUS WINAPI NtCreateKey( HANDLE *key, ACCESS_MASK access, const OBJECT_ATTRI /****************************************************************************** * NtCreateKeyTransacted (NTDLL.@) */ -NTSTATUS WINAPI NtCreateKeyTransacted( HANDLE *key, ACCESS_MASK access, const OBJECT_ATTRIBUTES *attr, - ULONG index, const UNICODE_STRING *class, ULONG options, - HANDLE transacted, ULONG *dispos ) +NTSTATUS WINE_SYSCALL NtCreateKeyTransacted( HANDLE *key, ACCESS_MASK access, const OBJECT_ATTRIBUTES *attr, + ULONG index, const UNICODE_STRING *class, ULONG options, + HANDLE transacted, ULONG *dispos ) { FIXME( "(%p,%s,%s,%x,%x,%p,%p)\n", attr->RootDirectory, debugstr_us(attr->ObjectName), debugstr_us(class), options, access, transacted, key ); @@ -120,7 +120,7 @@ NTSTATUS WINAPI NtCreateKeyTransacted( HANDLE *key, ACCESS_MASK access, const OB /****************************************************************************** * NtOpenKeyEx (NTDLL.@) */ -NTSTATUS WINAPI NtOpenKeyEx( HANDLE *key, ACCESS_MASK access, const OBJECT_ATTRIBUTES *attr, ULONG options ) +NTSTATUS WINE_SYSCALL NtOpenKeyEx( HANDLE *key, ACCESS_MASK access, const OBJECT_ATTRIBUTES *attr, ULONG options ) { NTSTATUS ret;
@@ -150,7 +150,7 @@ NTSTATUS WINAPI NtOpenKeyEx( HANDLE *key, ACCESS_MASK access, const OBJECT_ATTRI /****************************************************************************** * NtOpenKey (NTDLL.@) */ -NTSTATUS WINAPI NtOpenKey( HANDLE *key, ACCESS_MASK access, const OBJECT_ATTRIBUTES *attr ) +NTSTATUS WINE_SYSCALL NtOpenKey( HANDLE *key, ACCESS_MASK access, const OBJECT_ATTRIBUTES *attr ) { return NtOpenKeyEx( key, access, attr, 0 ); } @@ -159,8 +159,8 @@ NTSTATUS WINAPI NtOpenKey( HANDLE *key, ACCESS_MASK access, const OBJECT_ATTRIBU /****************************************************************************** * NtOpenKeyTransactedEx (NTDLL.@) */ -NTSTATUS WINAPI NtOpenKeyTransactedEx( HANDLE *key, ACCESS_MASK access, const OBJECT_ATTRIBUTES *attr, - ULONG options, HANDLE transaction ) +NTSTATUS WINE_SYSCALL NtOpenKeyTransactedEx( HANDLE *key, ACCESS_MASK access, const OBJECT_ATTRIBUTES *attr, + ULONG options, HANDLE transaction ) { FIXME( "(%p %x %p %x %p)\n", key, access, attr, options, transaction ); return STATUS_NOT_IMPLEMENTED; @@ -170,8 +170,8 @@ NTSTATUS WINAPI NtOpenKeyTransactedEx( HANDLE *key, ACCESS_MASK access, const OB /****************************************************************************** * NtOpenKeyTransacted (NTDLL.@) */ -NTSTATUS WINAPI NtOpenKeyTransacted( HANDLE *key, ACCESS_MASK access, const OBJECT_ATTRIBUTES *attr, - HANDLE transaction ) +NTSTATUS WINE_SYSCALL NtOpenKeyTransacted( HANDLE *key, ACCESS_MASK access, const OBJECT_ATTRIBUTES *attr, + HANDLE transaction ) { return NtOpenKeyTransactedEx( key, access, attr, 0, transaction ); } @@ -180,7 +180,7 @@ NTSTATUS WINAPI NtOpenKeyTransacted( HANDLE *key, ACCESS_MASK access, const OBJE /****************************************************************************** * NtDeleteKey (NTDLL.@) */ -NTSTATUS WINAPI NtDeleteKey( HANDLE key ) +NTSTATUS WINE_SYSCALL NtDeleteKey( HANDLE key ) { NTSTATUS ret;
@@ -199,7 +199,7 @@ NTSTATUS WINAPI NtDeleteKey( HANDLE key ) /****************************************************************************** * NtRenameKey (NTDLL.@) */ -NTSTATUS WINAPI NtRenameKey( HANDLE handle, UNICODE_STRING *name ) +NTSTATUS WINE_SYSCALL NtRenameKey( HANDLE handle, UNICODE_STRING *name ) { FIXME( "(%p %s)\n", handle, debugstr_us(name) ); return STATUS_NOT_IMPLEMENTED; @@ -332,8 +332,8 @@ static NTSTATUS enumerate_key( HANDLE handle, int index, KEY_INFORMATION_CLASS i /****************************************************************************** * NtEnumerateKey (NTDLL.@) */ -NTSTATUS WINAPI NtEnumerateKey( HANDLE handle, ULONG index, KEY_INFORMATION_CLASS info_class, - void *info, DWORD length, DWORD *result_len ) +NTSTATUS WINE_SYSCALL NtEnumerateKey( HANDLE handle, ULONG index, KEY_INFORMATION_CLASS info_class, + void *info, DWORD length, DWORD *result_len ) { /* -1 means query key, so avoid it here */ if (index == (ULONG)-1) return STATUS_NO_MORE_ENTRIES; @@ -344,8 +344,8 @@ NTSTATUS WINAPI NtEnumerateKey( HANDLE handle, ULONG index, KEY_INFORMATION_CLAS /****************************************************************************** * NtQueryKey (NTDLL.@) */ -NTSTATUS WINAPI NtQueryKey( HANDLE handle, KEY_INFORMATION_CLASS info_class, - void *info, DWORD length, DWORD *result_len ) +NTSTATUS WINE_SYSCALL NtQueryKey( HANDLE handle, KEY_INFORMATION_CLASS info_class, + void *info, DWORD length, DWORD *result_len ) { return enumerate_key( handle, -1, info_class, info, length, result_len ); } @@ -354,7 +354,7 @@ NTSTATUS WINAPI NtQueryKey( HANDLE handle, KEY_INFORMATION_CLASS info_class, /****************************************************************************** * NtSetInformationKey (NTDLL.@) */ -NTSTATUS WINAPI NtSetInformationKey( HANDLE key, int class, void *info, ULONG length ) +NTSTATUS WINE_SYSCALL NtSetInformationKey( HANDLE key, int class, void *info, ULONG length ) { FIXME( "(%p,0x%08x,%p,0x%08x) stub\n", key, class, info, length ); return STATUS_SUCCESS; @@ -411,8 +411,8 @@ static void copy_key_value_info( KEY_VALUE_INFORMATION_CLASS info_class, void *i /****************************************************************************** * NtEnumerateValueKey (NTDLL.@) */ -NTSTATUS WINAPI NtEnumerateValueKey( HANDLE handle, ULONG index, KEY_VALUE_INFORMATION_CLASS info_class, - void *info, DWORD length, DWORD *result_len ) +NTSTATUS WINE_SYSCALL NtEnumerateValueKey( HANDLE handle, ULONG index, KEY_VALUE_INFORMATION_CLASS info_class, + void *info, DWORD length, DWORD *result_len ) { NTSTATUS ret; void *ptr; @@ -454,9 +454,9 @@ NTSTATUS WINAPI NtEnumerateValueKey( HANDLE handle, ULONG index, KEY_VALUE_INFOR /****************************************************************************** * NtQueryValueKey (NTDLL.@) */ -NTSTATUS WINAPI NtQueryValueKey( HANDLE handle, const UNICODE_STRING *name, - KEY_VALUE_INFORMATION_CLASS info_class, - void *info, DWORD length, DWORD *result_len ) +NTSTATUS WINE_SYSCALL NtQueryValueKey( HANDLE handle, const UNICODE_STRING *name, + KEY_VALUE_INFORMATION_CLASS info_class, + void *info, DWORD length, DWORD *result_len ) { NTSTATUS ret; UCHAR *data_ptr; @@ -523,8 +523,8 @@ NTSTATUS WINAPI NtQueryValueKey( HANDLE handle, const UNICODE_STRING *name, /****************************************************************************** * NtQueryMultipleValueKey (NTDLL.@) */ -NTSTATUS WINAPI NtQueryMultipleValueKey( HANDLE key, KEY_MULTIPLE_VALUE_INFORMATION *info, - ULONG count, void *buffer, ULONG length, ULONG *retlen ) +NTSTATUS WINE_SYSCALL NtQueryMultipleValueKey( HANDLE key, KEY_MULTIPLE_VALUE_INFORMATION *info, + ULONG count, void *buffer, ULONG length, ULONG *retlen ) { FIXME( "(%p,%p,0x%08x,%p,0x%08x,%p) stub!\n", key, info, count, buffer, length, retlen ); return STATUS_SUCCESS; @@ -534,8 +534,8 @@ NTSTATUS WINAPI NtQueryMultipleValueKey( HANDLE key, KEY_MULTIPLE_VALUE_INFORMAT /****************************************************************************** * NtSetValueKey (NTDLL.@) */ -NTSTATUS WINAPI NtSetValueKey( HANDLE key, const UNICODE_STRING *name, ULONG index, - ULONG type, const void *data, ULONG count ) +NTSTATUS WINE_SYSCALL NtSetValueKey( HANDLE key, const UNICODE_STRING *name, ULONG index, + ULONG type, const void *data, ULONG count ) { NTSTATUS ret;
@@ -560,7 +560,7 @@ NTSTATUS WINAPI NtSetValueKey( HANDLE key, const UNICODE_STRING *name, ULONG ind /****************************************************************************** * NtDeleteValueKey (NTDLL.@) */ -NTSTATUS WINAPI NtDeleteValueKey( HANDLE key, const UNICODE_STRING *name ) +NTSTATUS WINE_SYSCALL NtDeleteValueKey( HANDLE key, const UNICODE_STRING *name ) { NTSTATUS ret;
@@ -582,10 +582,10 @@ NTSTATUS WINAPI NtDeleteValueKey( HANDLE key, const UNICODE_STRING *name ) /****************************************************************************** * NtNotifyChangeMultipleKeys (NTDLL.@) */ -NTSTATUS WINAPI NtNotifyChangeMultipleKeys( HANDLE key, ULONG count, OBJECT_ATTRIBUTES *attr, - HANDLE event, PIO_APC_ROUTINE apc, void *apc_context, - IO_STATUS_BLOCK *io, ULONG filter, BOOLEAN subtree, - void *buffer, ULONG length, BOOLEAN async ) +NTSTATUS WINE_SYSCALL NtNotifyChangeMultipleKeys( HANDLE key, ULONG count, OBJECT_ATTRIBUTES *attr, + HANDLE event, PIO_APC_ROUTINE apc, void *apc_context, + IO_STATUS_BLOCK *io, ULONG filter, BOOLEAN subtree, + void *buffer, ULONG length, BOOLEAN async ) { NTSTATUS ret;
@@ -625,9 +625,9 @@ NTSTATUS WINAPI NtNotifyChangeMultipleKeys( HANDLE key, ULONG count, OBJECT_ATTR /****************************************************************************** * NtNotifyChangeKey (NTDLL.@) */ -NTSTATUS WINAPI NtNotifyChangeKey( HANDLE key, HANDLE event, PIO_APC_ROUTINE apc, void *apc_context, - IO_STATUS_BLOCK *io, ULONG filter, BOOLEAN subtree, - void *buffer, ULONG length, BOOLEAN async ) +NTSTATUS WINE_SYSCALL NtNotifyChangeKey( HANDLE key, HANDLE event, PIO_APC_ROUTINE apc, void *apc_context, + IO_STATUS_BLOCK *io, ULONG filter, BOOLEAN subtree, + void *buffer, ULONG length, BOOLEAN async ) { return NtNotifyChangeMultipleKeys( key, 0, NULL, event, apc, apc_context, io, filter, subtree, buffer, length, async ); @@ -637,7 +637,7 @@ NTSTATUS WINAPI NtNotifyChangeKey( HANDLE key, HANDLE event, PIO_APC_ROUTINE apc /****************************************************************************** * NtFlushKey (NTDLL.@) */ -NTSTATUS WINAPI NtFlushKey( HANDLE key ) +NTSTATUS WINE_SYSCALL NtFlushKey( HANDLE key ) { NTSTATUS ret;
@@ -656,7 +656,7 @@ NTSTATUS WINAPI NtFlushKey( HANDLE key ) /****************************************************************************** * NtLoadKey (NTDLL.@) */ -NTSTATUS WINAPI NtLoadKey( const OBJECT_ATTRIBUTES *attr, OBJECT_ATTRIBUTES *file ) +NTSTATUS WINE_SYSCALL NtLoadKey( const OBJECT_ATTRIBUTES *attr, OBJECT_ATTRIBUTES *file ) { NTSTATUS ret; HANDLE key; @@ -698,7 +698,7 @@ NTSTATUS WINAPI NtLoadKey( const OBJECT_ATTRIBUTES *attr, OBJECT_ATTRIBUTES *fil /****************************************************************************** * NtLoadKey2 (NTDLL.@) */ -NTSTATUS WINAPI NtLoadKey2( const OBJECT_ATTRIBUTES *attr, OBJECT_ATTRIBUTES *file, ULONG flags ) +NTSTATUS WINE_SYSCALL NtLoadKey2( const OBJECT_ATTRIBUTES *attr, OBJECT_ATTRIBUTES *file, ULONG flags ) { FIXME( "(%p,%p,0x%08x) semi-stub: ignoring flags\n", attr, file, flags ); return NtLoadKey( attr, file ); @@ -708,7 +708,7 @@ NTSTATUS WINAPI NtLoadKey2( const OBJECT_ATTRIBUTES *attr, OBJECT_ATTRIBUTES *fi /****************************************************************************** * NtUnloadKey (NTDLL.@) */ -NTSTATUS WINAPI NtUnloadKey( OBJECT_ATTRIBUTES *attr ) +NTSTATUS WINE_SYSCALL NtUnloadKey( OBJECT_ATTRIBUTES *attr ) { NTSTATUS ret;
@@ -733,7 +733,7 @@ NTSTATUS WINAPI NtUnloadKey( OBJECT_ATTRIBUTES *attr ) /****************************************************************************** * NtSaveKey (NTDLL.@) */ -NTSTATUS WINAPI NtSaveKey( HANDLE key, HANDLE file ) +NTSTATUS WINE_SYSCALL NtSaveKey( HANDLE key, HANDLE file ) { NTSTATUS ret;
@@ -753,7 +753,7 @@ NTSTATUS WINAPI NtSaveKey( HANDLE key, HANDLE file ) /****************************************************************************** * NtRestoreKey (NTDLL.@) */ -NTSTATUS WINAPI NtRestoreKey( HANDLE key, HANDLE file, ULONG flags ) +NTSTATUS WINE_SYSCALL NtRestoreKey( HANDLE key, HANDLE file, ULONG flags ) { FIXME( "(%p,%p,0x%08x) stub\n", key, file, flags ); return STATUS_SUCCESS; @@ -763,7 +763,7 @@ NTSTATUS WINAPI NtRestoreKey( HANDLE key, HANDLE file, ULONG flags ) /****************************************************************************** * NtReplaceKey (NTDLL.@) */ -NTSTATUS WINAPI NtReplaceKey( OBJECT_ATTRIBUTES *attr, HANDLE key, OBJECT_ATTRIBUTES *replace ) +NTSTATUS WINE_SYSCALL NtReplaceKey( OBJECT_ATTRIBUTES *attr, HANDLE key, OBJECT_ATTRIBUTES *replace ) { FIXME( "(%s,%p,%s),stub!\n", debugstr_us(attr->ObjectName), key, debugstr_us(replace->ObjectName) ); return STATUS_SUCCESS; @@ -777,8 +777,8 @@ NTSTATUS WINAPI NtReplaceKey( OBJECT_ATTRIBUTES *attr, HANDLE key, OBJECT_ATTRIB * unless there is some app which explicitly depends on that, there is * no good reason to reproduce that. */ -NTSTATUS WINAPI NtQueryLicenseValue( const UNICODE_STRING *name, ULONG *type, - void *data, ULONG length, ULONG *retlen ) +NTSTATUS WINE_SYSCALL NtQueryLicenseValue( const UNICODE_STRING *name, ULONG *type, + void *data, ULONG length, ULONG *retlen ) { static const WCHAR nameW[] = {'M','a','c','h','i','n','e','\', 'S','o','f','t','w','a','r','e','\', diff --git a/dlls/ntdll/unix/security.c b/dlls/ntdll/unix/security.c index 8e3afd078b4..52b7896c941 100644 --- a/dlls/ntdll/unix/security.c +++ b/dlls/ntdll/unix/security.c @@ -40,7 +40,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(ntdll); /*********************************************************************** * NtOpenProcessToken (NTDLL.@) */ -NTSTATUS WINAPI NtOpenProcessToken( HANDLE process, DWORD access, HANDLE *handle ) +NTSTATUS WINE_SYSCALL NtOpenProcessToken( HANDLE process, DWORD access, HANDLE *handle ) { return NtOpenProcessTokenEx( process, access, 0, handle ); } @@ -49,7 +49,7 @@ NTSTATUS WINAPI NtOpenProcessToken( HANDLE process, DWORD access, HANDLE *handle /*********************************************************************** * NtOpenProcessTokenEx (NTDLL.@) */ -NTSTATUS WINAPI NtOpenProcessTokenEx( HANDLE process, DWORD access, DWORD attributes, HANDLE *handle ) +NTSTATUS WINE_SYSCALL NtOpenProcessTokenEx( HANDLE process, DWORD access, DWORD attributes, HANDLE *handle ) { NTSTATUS ret;
@@ -74,7 +74,7 @@ NTSTATUS WINAPI NtOpenProcessTokenEx( HANDLE process, DWORD access, DWORD attrib /*********************************************************************** * NtOpenThreadToken (NTDLL.@) */ -NTSTATUS WINAPI NtOpenThreadToken( HANDLE thread, DWORD access, BOOLEAN self, HANDLE *handle ) +NTSTATUS WINE_SYSCALL NtOpenThreadToken( HANDLE thread, DWORD access, BOOLEAN self, HANDLE *handle ) { return NtOpenThreadTokenEx( thread, access, self, 0, handle ); } @@ -83,8 +83,8 @@ NTSTATUS WINAPI NtOpenThreadToken( HANDLE thread, DWORD access, BOOLEAN self, HA /*********************************************************************** * NtOpenThreadTokenEx (NTDLL.@) */ -NTSTATUS WINAPI NtOpenThreadTokenEx( HANDLE thread, DWORD access, BOOLEAN self, DWORD attributes, - HANDLE *handle ) +NTSTATUS WINE_SYSCALL NtOpenThreadTokenEx( HANDLE thread, DWORD access, BOOLEAN self, DWORD attributes, + HANDLE *handle ) { NTSTATUS ret;
@@ -110,8 +110,8 @@ NTSTATUS WINAPI NtOpenThreadTokenEx( HANDLE thread, DWORD access, BOOLEAN self, /*********************************************************************** * NtDuplicateToken (NTDLL.@) */ -NTSTATUS WINAPI NtDuplicateToken( HANDLE token, ACCESS_MASK access, OBJECT_ATTRIBUTES *attr, - SECURITY_IMPERSONATION_LEVEL level, TOKEN_TYPE type, HANDLE *handle ) +NTSTATUS WINE_SYSCALL NtDuplicateToken( HANDLE token, ACCESS_MASK access, OBJECT_ATTRIBUTES *attr, + SECURITY_IMPERSONATION_LEVEL level, TOKEN_TYPE type, HANDLE *handle ) { NTSTATUS status; data_size_t len; @@ -148,8 +148,8 @@ NTSTATUS WINAPI NtDuplicateToken( HANDLE token, ACCESS_MASK access, OBJECT_ATTRI /*********************************************************************** * NtQueryInformationToken (NTDLL.@) */ -NTSTATUS WINAPI NtQueryInformationToken( HANDLE token, TOKEN_INFORMATION_CLASS class, - void *info, ULONG length, ULONG *retlen ) +NTSTATUS WINE_SYSCALL NtQueryInformationToken( HANDLE token, TOKEN_INFORMATION_CLASS class, + void *info, ULONG length, ULONG *retlen ) { static const ULONG info_len [] = { @@ -514,7 +514,7 @@ NTSTATUS WINAPI NtQueryInformationToken( HANDLE token, TOKEN_INFORMATION_CLASS c /*********************************************************************** * NtSetInformationToken (NTDLL.@) */ -NTSTATUS WINAPI NtSetInformationToken( HANDLE token, TOKEN_INFORMATION_CLASS class, +NTSTATUS WINE_SYSCALL NtSetInformationToken( HANDLE token, TOKEN_INFORMATION_CLASS class, void *info, ULONG length ) { NTSTATUS ret = STATUS_NOT_IMPLEMENTED; @@ -579,9 +579,9 @@ NTSTATUS WINAPI NtSetInformationToken( HANDLE token, TOKEN_INFORMATION_CLASS cla /*********************************************************************** * NtCreateLowBoxToken (NTDLL.@) */ -NTSTATUS WINAPI NtCreateLowBoxToken( HANDLE *token_handle, HANDLE token, ACCESS_MASK access, - OBJECT_ATTRIBUTES *attr, SID *sid, ULONG count, - SID_AND_ATTRIBUTES *capabilities, ULONG handle_count, HANDLE *handle ) +NTSTATUS WINE_SYSCALL NtCreateLowBoxToken( HANDLE *token_handle, HANDLE token, ACCESS_MASK access, + OBJECT_ATTRIBUTES *attr, SID *sid, ULONG count, + SID_AND_ATTRIBUTES *capabilities, ULONG handle_count, HANDLE *handle ) { FIXME("(%p, %p, %x, %p, %p, %u, %p, %u, %p): stub\n", token_handle, token, access, attr, sid, count, capabilities, handle_count, handle ); @@ -595,8 +595,8 @@ NTSTATUS WINAPI NtCreateLowBoxToken( HANDLE *token_handle, HANDLE token, ACCESS_ /*********************************************************************** * NtAdjustGroupsToken (NTDLL.@) */ -NTSTATUS WINAPI NtAdjustGroupsToken( HANDLE token, BOOLEAN reset, TOKEN_GROUPS *groups, - ULONG length, TOKEN_GROUPS *prev, ULONG *retlen ) +NTSTATUS WINE_SYSCALL NtAdjustGroupsToken( HANDLE token, BOOLEAN reset, TOKEN_GROUPS *groups, + ULONG length, TOKEN_GROUPS *prev, ULONG *retlen ) { FIXME( "%p %d %p %u %p %p\n", token, reset, groups, length, prev, retlen ); return STATUS_NOT_IMPLEMENTED; @@ -606,8 +606,8 @@ NTSTATUS WINAPI NtAdjustGroupsToken( HANDLE token, BOOLEAN reset, TOKEN_GROUPS * /*********************************************************************** * NtAdjustPrivilegesToken (NTDLL.@) */ -NTSTATUS WINAPI NtAdjustPrivilegesToken( HANDLE token, BOOLEAN disable, TOKEN_PRIVILEGES *privs, - DWORD length, TOKEN_PRIVILEGES *prev, DWORD *retlen ) +NTSTATUS WINE_SYSCALL NtAdjustPrivilegesToken( HANDLE token, BOOLEAN disable, TOKEN_PRIVILEGES *privs, + DWORD length, TOKEN_PRIVILEGES *prev, DWORD *retlen ) { NTSTATUS ret;
@@ -639,8 +639,8 @@ NTSTATUS WINAPI NtAdjustPrivilegesToken( HANDLE token, BOOLEAN disable, TOKEN_PR /*********************************************************************** * NtFilterToken (NTDLL.@) */ -NTSTATUS WINAPI NtFilterToken( HANDLE token, ULONG flags, TOKEN_GROUPS *disable_sids, - TOKEN_PRIVILEGES *privileges, TOKEN_GROUPS *restrict_sids, HANDLE *new_token ) +NTSTATUS WINE_SYSCALL NtFilterToken( HANDLE token, ULONG flags, TOKEN_GROUPS *disable_sids, + TOKEN_PRIVILEGES *privileges, TOKEN_GROUPS *restrict_sids, HANDLE *new_token ) { data_size_t privileges_len = 0; data_size_t sids_len = 0; @@ -702,7 +702,7 @@ NTSTATUS WINAPI NtFilterToken( HANDLE token, ULONG flags, TOKEN_GROUPS *disable_ /*********************************************************************** * NtPrivilegeCheck (NTDLL.@) */ -NTSTATUS WINAPI NtPrivilegeCheck( HANDLE token, PRIVILEGE_SET *privs, BOOLEAN *res ) +NTSTATUS WINE_SYSCALL NtPrivilegeCheck( HANDLE token, PRIVILEGE_SET *privs, BOOLEAN *res ) { NTSTATUS status;
@@ -723,7 +723,7 @@ NTSTATUS WINAPI NtPrivilegeCheck( HANDLE token, PRIVILEGE_SET *privs, BOOLEAN *r /*********************************************************************** * NtImpersonateAnonymousToken (NTDLL.@) */ -NTSTATUS WINAPI NtImpersonateAnonymousToken( HANDLE thread ) +NTSTATUS WINE_SYSCALL NtImpersonateAnonymousToken( HANDLE thread ) { FIXME( "(%p): stub\n", thread ); return STATUS_NOT_IMPLEMENTED; @@ -733,9 +733,9 @@ NTSTATUS WINAPI NtImpersonateAnonymousToken( HANDLE thread ) /*********************************************************************** * NtAccessCheck (NTDLL.@) */ -NTSTATUS WINAPI NtAccessCheck( PSECURITY_DESCRIPTOR descr, HANDLE token, ACCESS_MASK access, - GENERIC_MAPPING *mapping, PRIVILEGE_SET *privs, ULONG *retlen, - ULONG *access_granted, NTSTATUS *access_status) +NTSTATUS WINE_SYSCALL NtAccessCheck( PSECURITY_DESCRIPTOR descr, HANDLE token, ACCESS_MASK access, + GENERIC_MAPPING *mapping, PRIVILEGE_SET *privs, ULONG *retlen, + ULONG *access_granted, NTSTATUS *access_status) { struct object_attributes *objattr; data_size_t len; @@ -787,12 +787,12 @@ NTSTATUS WINAPI NtAccessCheck( PSECURITY_DESCRIPTOR descr, HANDLE token, ACCESS_ /*********************************************************************** * NtAccessCheckAndAuditAlarm (NTDLL.@) */ -NTSTATUS WINAPI NtAccessCheckAndAuditAlarm( UNICODE_STRING *subsystem, HANDLE handle, - UNICODE_STRING *typename, UNICODE_STRING *objectname, - PSECURITY_DESCRIPTOR descr, ACCESS_MASK access, - GENERIC_MAPPING *mapping, BOOLEAN creation, - ACCESS_MASK *access_granted, BOOLEAN *access_status, - BOOLEAN *onclose ) +NTSTATUS WINE_SYSCALL NtAccessCheckAndAuditAlarm( UNICODE_STRING *subsystem, HANDLE handle, + UNICODE_STRING *typename, UNICODE_STRING *objectname, + PSECURITY_DESCRIPTOR descr, ACCESS_MASK access, + GENERIC_MAPPING *mapping, BOOLEAN creation, + ACCESS_MASK *access_granted, BOOLEAN *access_status, + BOOLEAN *onclose ) { FIXME( "(%s, %p, %s, %p, 0x%08x, %p, %d, %p, %p, %p), stub\n", debugstr_us(subsystem), handle, debugstr_us(typename), descr, access, @@ -804,8 +804,8 @@ NTSTATUS WINAPI NtAccessCheckAndAuditAlarm( UNICODE_STRING *subsystem, HANDLE ha /*********************************************************************** * NtQuerySecurityObject (NTDLL.@) */ -NTSTATUS WINAPI NtQuerySecurityObject( HANDLE handle, SECURITY_INFORMATION info, - PSECURITY_DESCRIPTOR descr, ULONG length, ULONG *retlen ) +NTSTATUS WINE_SYSCALL NtQuerySecurityObject( HANDLE handle, SECURITY_INFORMATION info, + PSECURITY_DESCRIPTOR descr, ULONG length, ULONG *retlen ) { SECURITY_DESCRIPTOR_RELATIVE *psd = descr; NTSTATUS status; @@ -864,7 +864,7 @@ NTSTATUS WINAPI NtQuerySecurityObject( HANDLE handle, SECURITY_INFORMATION info, /*********************************************************************** * NtSetSecurityObject (NTDLL.@) */ -NTSTATUS WINAPI NtSetSecurityObject( HANDLE handle, SECURITY_INFORMATION info, PSECURITY_DESCRIPTOR descr ) +NTSTATUS WINE_SYSCALL NtSetSecurityObject( HANDLE handle, SECURITY_INFORMATION info, PSECURITY_DESCRIPTOR descr ) { struct object_attributes *objattr; struct security_descriptor *sd; @@ -909,7 +909,7 @@ NTSTATUS WINAPI NtSetSecurityObject( HANDLE handle, SECURITY_INFORMATION info, P /*********************************************************************** * NtAllocateLocallyUniqueId (NTDLL.@) */ -NTSTATUS WINAPI NtAllocateLocallyUniqueId( LUID *luid ) +NTSTATUS WINE_SYSCALL NtAllocateLocallyUniqueId( LUID *luid ) { NTSTATUS status;
@@ -934,7 +934,7 @@ NTSTATUS WINAPI NtAllocateLocallyUniqueId( LUID *luid ) /*********************************************************************** * NtAllocateUuids (NTDLL.@) */ -NTSTATUS WINAPI NtAllocateUuids( ULARGE_INTEGER *time, ULONG *delta, ULONG *sequence, UCHAR *seed ) +NTSTATUS WINE_SYSCALL NtAllocateUuids( ULARGE_INTEGER *time, ULONG *delta, ULONG *sequence, UCHAR *seed ) { FIXME( "(%p,%p,%p,%p), stub.\n", time, delta, sequence, seed ); return STATUS_SUCCESS; diff --git a/dlls/ntdll/unix/server.c b/dlls/ntdll/unix/server.c index 53d34e1858a..51341c80613 100644 --- a/dlls/ntdll/unix/server.c +++ b/dlls/ntdll/unix/server.c @@ -282,7 +282,7 @@ unsigned int server_call_unlocked( void *req_ptr ) * * Perform a server call. */ -unsigned int CDECL wine_server_call( void *req_ptr ) +unsigned int WINE_SYSCALL_CDECL wine_server_call( void *req_ptr ) { sigset_t old_set; unsigned int ret; @@ -698,7 +698,7 @@ unsigned int server_wait( const select_op_t *select_op, data_size_t size, UINT f /*********************************************************************** * NtContinue (NTDLL.@) */ -NTSTATUS WINAPI NtContinue( CONTEXT *context, BOOLEAN alertable ) +NTSTATUS WINE_SYSCALL NtContinue( CONTEXT *context, BOOLEAN alertable ) { user_apc_t apc; NTSTATUS status; @@ -715,7 +715,7 @@ NTSTATUS WINAPI NtContinue( CONTEXT *context, BOOLEAN alertable ) /*********************************************************************** * NtTestAlert (NTDLL.@) */ -NTSTATUS WINAPI NtTestAlert(void) +NTSTATUS WINE_SYSCALL NtTestAlert(void) { user_apc_t apc; NTSTATUS status; @@ -1062,7 +1062,7 @@ done: /*********************************************************************** * wine_server_fd_to_handle */ -NTSTATUS CDECL wine_server_fd_to_handle( int fd, unsigned int access, unsigned int attributes, HANDLE *handle ) +NTSTATUS WINE_SYSCALL_CDECL wine_server_fd_to_handle( int fd, unsigned int access, unsigned int attributes, HANDLE *handle ) { NTSTATUS ret;
@@ -1086,7 +1086,7 @@ NTSTATUS CDECL wine_server_fd_to_handle( int fd, unsigned int access, unsigned i * * Retrieve the file descriptor corresponding to a file handle. */ -NTSTATUS CDECL wine_server_handle_to_fd( HANDLE handle, unsigned int access, int *unix_fd, +NTSTATUS WINE_SYSCALL_CDECL wine_server_handle_to_fd( HANDLE handle, unsigned int access, int *unix_fd, unsigned int *options ) { int needs_close; @@ -1663,7 +1663,7 @@ NTSTATUS WINAPI DbgUiIssueRemoteBreakin( HANDLE process ) /****************************************************************************** * NtDuplicateObject */ -NTSTATUS WINAPI NtDuplicateObject( HANDLE source_process, HANDLE source, HANDLE dest_process, HANDLE *dest, +NTSTATUS WINE_SYSCALL NtDuplicateObject( HANDLE source_process, HANDLE source, HANDLE dest_process, HANDLE *dest, ACCESS_MASK access, ULONG attributes, ULONG options ) { sigset_t sigset; @@ -1725,7 +1725,7 @@ NTSTATUS WINAPI NtDuplicateObject( HANDLE source_process, HANDLE source, HANDLE /************************************************************************** * NtClose */ -NTSTATUS WINAPI NtClose( HANDLE handle ) +NTSTATUS WINE_SYSCALL NtClose( HANDLE handle ) { sigset_t sigset; HANDLE port; diff --git a/dlls/ntdll/unix/signal_arm.c b/dlls/ntdll/unix/signal_arm.c index f024879b81f..0e6f1594e88 100644 --- a/dlls/ntdll/unix/signal_arm.c +++ b/dlls/ntdll/unix/signal_arm.c @@ -355,7 +355,7 @@ void *get_wow_context( CONTEXT *context ) * NtSetContextThread (NTDLL.@) * ZwSetContextThread (NTDLL.@) */ -NTSTATUS WINAPI NtSetContextThread( HANDLE handle, const CONTEXT *context ) +NTSTATUS WINE_SYSCALL NtSetContextThread( HANDLE handle, const CONTEXT *context ) { NTSTATUS ret; struct syscall_frame *frame = arm_thread_data()->syscall_frame; @@ -405,7 +405,7 @@ NTSTATUS WINAPI NtSetContextThread( HANDLE handle, const CONTEXT *context ) * NtGetContextThread (NTDLL.@) * ZwGetContextThread (NTDLL.@) */ -NTSTATUS WINAPI NtGetContextThread( HANDLE handle, CONTEXT *context ) +NTSTATUS WINE_SYSCALL NtGetContextThread( HANDLE handle, CONTEXT *context ) { struct syscall_frame *frame = arm_thread_data()->syscall_frame; DWORD needed_flags = context->ContextFlags & ~CONTEXT_ARM; @@ -622,7 +622,7 @@ NTSTATUS WINAPI KeUserModeCallback( ULONG id, const void *args, ULONG len, void /*********************************************************************** * NtCallbackReturn (NTDLL.@) */ -NTSTATUS WINAPI NtCallbackReturn( void *ret_ptr, ULONG ret_len, NTSTATUS status ) +NTSTATUS WINE_SYSCALL NtCallbackReturn( void *ret_ptr, ULONG ret_len, NTSTATUS status ) { struct user_callback_frame *frame = (struct user_callback_frame *)arm_thread_data()->syscall_frame;
@@ -890,7 +890,7 @@ NTSTATUS get_thread_ldt_entry( HANDLE handle, void *data, ULONG len, ULONG *ret_ * NtSetLdtEntries (NTDLL.@) * ZwSetLdtEntries (NTDLL.@) */ -NTSTATUS WINAPI NtSetLdtEntries( ULONG sel1, LDT_ENTRY entry1, ULONG sel2, LDT_ENTRY entry2 ) +NTSTATUS WINE_SYSCALL NtSetLdtEntries( ULONG sel1, LDT_ENTRY entry1, ULONG sel2, LDT_ENTRY entry2 ) { return STATUS_NOT_IMPLEMENTED; } diff --git a/dlls/ntdll/unix/signal_arm64.c b/dlls/ntdll/unix/signal_arm64.c index 145277b5418..0d667ad868b 100644 --- a/dlls/ntdll/unix/signal_arm64.c +++ b/dlls/ntdll/unix/signal_arm64.c @@ -445,7 +445,7 @@ void *get_wow_context( CONTEXT *context ) * NtSetContextThread (NTDLL.@) * ZwSetContextThread (NTDLL.@) */ -NTSTATUS WINAPI NtSetContextThread( HANDLE handle, const CONTEXT *context ) +NTSTATUS WINE_SYSCALL NtSetContextThread( HANDLE handle, const CONTEXT *context ) { struct syscall_frame *frame = arm64_thread_data()->syscall_frame; NTSTATUS ret = STATUS_SUCCESS; @@ -494,7 +494,7 @@ NTSTATUS WINAPI NtSetContextThread( HANDLE handle, const CONTEXT *context ) * NtGetContextThread (NTDLL.@) * ZwGetContextThread (NTDLL.@) */ -NTSTATUS WINAPI NtGetContextThread( HANDLE handle, CONTEXT *context ) +NTSTATUS WINE_SYSCALL NtGetContextThread( HANDLE handle, CONTEXT *context ) { struct syscall_frame *frame = arm64_thread_data()->syscall_frame; DWORD needed_flags = context->ContextFlags & ~CONTEXT_ARM64; @@ -771,7 +771,7 @@ NTSTATUS WINAPI KeUserModeCallback( ULONG id, const void *args, ULONG len, void /*********************************************************************** * NtCallbackReturn (NTDLL.@) */ -NTSTATUS WINAPI NtCallbackReturn( void *ret_ptr, ULONG ret_len, NTSTATUS status ) +NTSTATUS WINE_SYSCALL NtCallbackReturn( void *ret_ptr, ULONG ret_len, NTSTATUS status ) { struct user_callback_frame *frame = (struct user_callback_frame *)arm64_thread_data()->syscall_frame;
@@ -1076,7 +1076,7 @@ NTSTATUS get_thread_ldt_entry( HANDLE handle, void *data, ULONG len, ULONG *ret_ * NtSetLdtEntries (NTDLL.@) * ZwSetLdtEntries (NTDLL.@) */ -NTSTATUS WINAPI NtSetLdtEntries( ULONG sel1, LDT_ENTRY entry1, ULONG sel2, LDT_ENTRY entry2 ) +NTSTATUS WINE_SYSCALL NtSetLdtEntries( ULONG sel1, LDT_ENTRY entry1, ULONG sel2, LDT_ENTRY entry2 ) { return STATUS_NOT_IMPLEMENTED; } @@ -1403,7 +1403,7 @@ __ASM_GLOBAL_FUNC( __wine_longjmp, /********************************************************************** * NtCurrentTeb (NTDLL.@) */ -TEB * WINAPI NtCurrentTeb(void) +TEB * WINE_SYSCALL NtCurrentTeb(void) { return pthread_getspecific( teb_key ); } diff --git a/dlls/ntdll/unix/signal_i386.c b/dlls/ntdll/unix/signal_i386.c index e123f2c2a79..838a85874af 100644 --- a/dlls/ntdll/unix/signal_i386.c +++ b/dlls/ntdll/unix/signal_i386.c @@ -876,7 +876,7 @@ void *get_wow_context( CONTEXT *context ) * NtSetContextThread (NTDLL.@) * ZwSetContextThread (NTDLL.@) */ -NTSTATUS WINAPI NtSetContextThread( HANDLE handle, const CONTEXT *context ) +NTSTATUS WINE_SYSCALL NtSetContextThread( HANDLE handle, const CONTEXT *context ) { NTSTATUS ret = STATUS_SUCCESS; struct syscall_frame *frame = x86_thread_data()->syscall_frame; @@ -989,7 +989,7 @@ NTSTATUS WINAPI NtSetContextThread( HANDLE handle, const CONTEXT *context ) * Note: we use a small assembly wrapper to save the necessary registers * in case we are fetching the context of the current thread. */ -NTSTATUS WINAPI NtGetContextThread( HANDLE handle, CONTEXT *context ) +NTSTATUS WINE_SYSCALL NtGetContextThread( HANDLE handle, CONTEXT *context ) { struct syscall_frame *frame = x86_thread_data()->syscall_frame; DWORD needed_flags = context->ContextFlags & ~CONTEXT_i386; @@ -1606,7 +1606,7 @@ NTSTATUS WINAPI KeUserModeCallback( ULONG id, const void *args, ULONG len, void /*********************************************************************** * NtCallbackReturn (NTDLL.@) */ -NTSTATUS WINAPI NtCallbackReturn( void *ret_ptr, ULONG ret_len, NTSTATUS status ) +NTSTATUS WINE_SYSCALL NtCallbackReturn( void *ret_ptr, ULONG ret_len, NTSTATUS status ) { struct user_callback_frame *frame = (struct user_callback_frame *)x86_thread_data()->syscall_frame;
@@ -2196,7 +2196,7 @@ NTSTATUS get_thread_ldt_entry( HANDLE handle, void *data, ULONG len, ULONG *ret_ * NtSetLdtEntries (NTDLL.@) * ZwSetLdtEntries (NTDLL.@) */ -NTSTATUS WINAPI NtSetLdtEntries( ULONG sel1, LDT_ENTRY entry1, ULONG sel2, LDT_ENTRY entry2 ) +NTSTATUS WINE_SYSCALL NtSetLdtEntries( ULONG sel1, LDT_ENTRY entry1, ULONG sel2, LDT_ENTRY entry2 ) { sigset_t sigset;
diff --git a/dlls/ntdll/unix/signal_x86_64.c b/dlls/ntdll/unix/signal_x86_64.c index 9b18180301a..e0dbbcc88e4 100644 --- a/dlls/ntdll/unix/signal_x86_64.c +++ b/dlls/ntdll/unix/signal_x86_64.c @@ -1687,7 +1687,7 @@ void *get_wow_context( CONTEXT *context ) * NtSetContextThread (NTDLL.@) * ZwSetContextThread (NTDLL.@) */ -NTSTATUS WINAPI NtSetContextThread( HANDLE handle, const CONTEXT *context ) +NTSTATUS WINE_SYSCALL NtSetContextThread( HANDLE handle, const CONTEXT *context ) { NTSTATUS ret = STATUS_SUCCESS; DWORD flags = context->ContextFlags & ~CONTEXT_AMD64; @@ -1791,7 +1791,7 @@ NTSTATUS WINAPI NtSetContextThread( HANDLE handle, const CONTEXT *context ) * NtGetContextThread (NTDLL.@) * ZwGetContextThread (NTDLL.@) */ -NTSTATUS WINAPI NtGetContextThread( HANDLE handle, CONTEXT *context ) +NTSTATUS WINE_SYSCALL NtGetContextThread( HANDLE handle, CONTEXT *context ) { struct syscall_frame *frame = amd64_thread_data()->syscall_frame; DWORD needed_flags = context->ContextFlags & ~CONTEXT_AMD64; @@ -2331,7 +2331,7 @@ NTSTATUS WINAPI KeUserModeCallback( ULONG id, const void *args, ULONG len, void /*********************************************************************** * NtCallbackReturn (NTDLL.@) */ -NTSTATUS WINAPI NtCallbackReturn( void *ret_ptr, ULONG ret_len, NTSTATUS status ) +NTSTATUS WINE_SYSCALL NtCallbackReturn( void *ret_ptr, ULONG ret_len, NTSTATUS status ) { struct user_callback_frame *frame = (struct user_callback_frame *)amd64_thread_data()->syscall_frame;
@@ -2800,7 +2800,7 @@ NTSTATUS get_thread_ldt_entry( HANDLE handle, void *data, ULONG len, ULONG *ret_ * NtSetLdtEntries (NTDLL.@) * ZwSetLdtEntries (NTDLL.@) */ -NTSTATUS WINAPI NtSetLdtEntries( ULONG sel1, LDT_ENTRY entry1, ULONG sel2, LDT_ENTRY entry2 ) +NTSTATUS WINE_SYSCALL NtSetLdtEntries( ULONG sel1, LDT_ENTRY entry1, ULONG sel2, LDT_ENTRY entry2 ) { return STATUS_NOT_IMPLEMENTED; } @@ -3172,10 +3172,12 @@ __ASM_GLOBAL_FUNC( __wine_syscall_dispatcher, "leaq -0x98(%rbp),%rcx\n" "2:\n\t" #endif - "leaq 0x28(%rsp),%rsi\n\t" /* first argument */ + "leaq 0x38(%rsp),%rsi\n\t" /* first (sysv) stack parameter */ "movq %rcx,%rsp\n\t" + "movq 0x18(%rcx),%r12\n\t" /* stash second parameter */ + "movq %r8,%rdx\n\t" /* third parameter */ + "movq %r9,%r14\n\t" /* stash fourth parameter */ "movq 0x00(%rcx),%rax\n\t" - "movq 0x18(%rcx),%rdx\n\t" "movl %eax,%ebx\n\t" "shrl $8,%ebx\n\t" "andl $0x30,%ebx\n\t" /* syscall table number */ @@ -3186,7 +3188,13 @@ __ASM_GLOBAL_FUNC( __wine_syscall_dispatcher, "jae 5f\n\t" "movq 24(%rbx),%rcx\n\t" /* table->ArgumentTable */ "movzbl (%rcx,%rax),%ecx\n\t" - "subq $0x20,%rcx\n\t" + "cmpq $0x20,%rcx\n\t" + "jbe 1f\n\t" + "movq -16(%rsi),%r8\n\t" /* fifth parameter */ + "cmpq $0x28,%rcx\n\t" + "jbe 1f\n\t" + "movq -8(%rsi),%r9\n\t" /* sixth parameter */ + "subq $0x30,%rcx\n\t" "jbe 1f\n\t" "subq %rcx,%rsp\n\t" "shrq $3,%rcx\n\t" @@ -3194,8 +3202,9 @@ __ASM_GLOBAL_FUNC( __wine_syscall_dispatcher, "movq %rsp,%rdi\n\t" "cld\n\t" "rep; movsq\n" - "1:\tmovq %r10,%rcx\n\t" - "subq $0x20,%rsp\n\t" + "1:\tmovq %r10,%rdi\n\t" /* first parameter */ + "movq %r12,%rsi\n\t" /* second parameter */ + "movq %r14,%rcx\n\t" /* fourth parameter */ "movq (%rbx),%r10\n\t" /* table->ServiceTable */ "callq *(%r10,%rax,8)\n\t" "leaq -0x98(%rbp),%rcx\n" @@ -3216,9 +3225,20 @@ __ASM_GLOBAL_FUNC( __wine_syscall_dispatcher, "xrstor64 0xc0(%rcx)\n\t" "movq %r11,%rax\n\t" "movl 0x94(%rcx),%edx\n\t" - "jmp 4f\n" + "jmp 5f\n" "3:\tfxrstor64 0xc0(%rcx)\n" - "4:\tmovq 0x98(%rcx),%rbp\n\t" + "jmp 5f\n" + "4:\tmovaps 0x1c0(%rcx),%xmm6\n\t" + "movaps 0x1d0(%rcx),%xmm7\n\t" + "movaps 0x1e0(%rcx),%xmm8\n\t" + "movaps 0x1f0(%rcx),%xmm9\n\t" + "movaps 0x200(%rcx),%xmm10\n\t" + "movaps 0x210(%rcx),%xmm11\n\t" + "movaps 0x220(%rcx),%xmm12\n\t" + "movaps 0x230(%rcx),%xmm13\n\t" + "movaps 0x240(%rcx),%xmm14\n\t" + "movaps 0x250(%rcx),%xmm15\n\t" + "5:\tmovq 0x98(%rcx),%rbp\n\t" "movq 0x68(%rcx),%r15\n\t" "movq 0x60(%rcx),%r14\n\t" "movq 0x58(%rcx),%r13\n\t" diff --git a/dlls/ntdll/unix/sync.c b/dlls/ntdll/unix/sync.c index 5a5d49bf4bd..54726acfb9c 100644 --- a/dlls/ntdll/unix/sync.c +++ b/dlls/ntdll/unix/sync.c @@ -314,8 +314,8 @@ static NTSTATUS validate_open_object_attributes( const OBJECT_ATTRIBUTES *attr ) /****************************************************************************** * NtCreateSemaphore (NTDLL.@) */ -NTSTATUS WINAPI NtCreateSemaphore( HANDLE *handle, ACCESS_MASK access, const OBJECT_ATTRIBUTES *attr, - LONG initial, LONG max ) +NTSTATUS WINE_SYSCALL NtCreateSemaphore( HANDLE *handle, ACCESS_MASK access, const OBJECT_ATTRIBUTES *attr, + LONG initial, LONG max ) { NTSTATUS ret; data_size_t len; @@ -344,7 +344,7 @@ NTSTATUS WINAPI NtCreateSemaphore( HANDLE *handle, ACCESS_MASK access, const OBJ /****************************************************************************** * NtOpenSemaphore (NTDLL.@) */ -NTSTATUS WINAPI NtOpenSemaphore( HANDLE *handle, ACCESS_MASK access, const OBJECT_ATTRIBUTES *attr ) +NTSTATUS WINE_SYSCALL NtOpenSemaphore( HANDLE *handle, ACCESS_MASK access, const OBJECT_ATTRIBUTES *attr ) { NTSTATUS ret;
@@ -369,8 +369,8 @@ NTSTATUS WINAPI NtOpenSemaphore( HANDLE *handle, ACCESS_MASK access, const OBJEC /****************************************************************************** * NtQuerySemaphore (NTDLL.@) */ -NTSTATUS WINAPI NtQuerySemaphore( HANDLE handle, SEMAPHORE_INFORMATION_CLASS class, - void *info, ULONG len, ULONG *ret_len ) +NTSTATUS WINE_SYSCALL NtQuerySemaphore( HANDLE handle, SEMAPHORE_INFORMATION_CLASS class, + void *info, ULONG len, ULONG *ret_len ) { NTSTATUS ret; SEMAPHORE_BASIC_INFORMATION *out = info; @@ -403,7 +403,7 @@ NTSTATUS WINAPI NtQuerySemaphore( HANDLE handle, SEMAPHORE_INFORMATION_CLASS cla /****************************************************************************** * NtReleaseSemaphore (NTDLL.@) */ -NTSTATUS WINAPI NtReleaseSemaphore( HANDLE handle, ULONG count, ULONG *previous ) +NTSTATUS WINE_SYSCALL NtReleaseSemaphore( HANDLE handle, ULONG count, ULONG *previous ) { NTSTATUS ret;
@@ -424,8 +424,8 @@ NTSTATUS WINAPI NtReleaseSemaphore( HANDLE handle, ULONG count, ULONG *previous /************************************************************************** * NtCreateEvent (NTDLL.@) */ -NTSTATUS WINAPI NtCreateEvent( HANDLE *handle, ACCESS_MASK access, const OBJECT_ATTRIBUTES *attr, - EVENT_TYPE type, BOOLEAN state ) +NTSTATUS WINE_SYSCALL NtCreateEvent( HANDLE *handle, ACCESS_MASK access, const OBJECT_ATTRIBUTES *attr, + EVENT_TYPE type, BOOLEAN state ) { NTSTATUS ret; data_size_t len; @@ -454,7 +454,7 @@ NTSTATUS WINAPI NtCreateEvent( HANDLE *handle, ACCESS_MASK access, const OBJECT_ /****************************************************************************** * NtOpenEvent (NTDLL.@) */ -NTSTATUS WINAPI NtOpenEvent( HANDLE *handle, ACCESS_MASK access, const OBJECT_ATTRIBUTES *attr ) +NTSTATUS WINE_SYSCALL NtOpenEvent( HANDLE *handle, ACCESS_MASK access, const OBJECT_ATTRIBUTES *attr ) { NTSTATUS ret;
@@ -479,7 +479,7 @@ NTSTATUS WINAPI NtOpenEvent( HANDLE *handle, ACCESS_MASK access, const OBJECT_AT /****************************************************************************** * NtSetEvent (NTDLL.@) */ -NTSTATUS WINAPI NtSetEvent( HANDLE handle, LONG *prev_state ) +NTSTATUS WINE_SYSCALL NtSetEvent( HANDLE handle, LONG *prev_state ) { NTSTATUS ret;
@@ -498,7 +498,7 @@ NTSTATUS WINAPI NtSetEvent( HANDLE handle, LONG *prev_state ) /****************************************************************************** * NtResetEvent (NTDLL.@) */ -NTSTATUS WINAPI NtResetEvent( HANDLE handle, LONG *prev_state ) +NTSTATUS WINE_SYSCALL NtResetEvent( HANDLE handle, LONG *prev_state ) { NTSTATUS ret;
@@ -517,7 +517,7 @@ NTSTATUS WINAPI NtResetEvent( HANDLE handle, LONG *prev_state ) /****************************************************************************** * NtClearEvent (NTDLL.@) */ -NTSTATUS WINAPI NtClearEvent( HANDLE handle ) +NTSTATUS WINE_SYSCALL NtClearEvent( HANDLE handle ) { /* FIXME: same as NtResetEvent ??? */ return NtResetEvent( handle, NULL ); @@ -527,7 +527,7 @@ NTSTATUS WINAPI NtClearEvent( HANDLE handle ) /****************************************************************************** * NtPulseEvent (NTDLL.@) */ -NTSTATUS WINAPI NtPulseEvent( HANDLE handle, LONG *prev_state ) +NTSTATUS WINE_SYSCALL NtPulseEvent( HANDLE handle, LONG *prev_state ) { NTSTATUS ret;
@@ -546,8 +546,8 @@ NTSTATUS WINAPI NtPulseEvent( HANDLE handle, LONG *prev_state ) /****************************************************************************** * NtQueryEvent (NTDLL.@) */ -NTSTATUS WINAPI NtQueryEvent( HANDLE handle, EVENT_INFORMATION_CLASS class, - void *info, ULONG len, ULONG *ret_len ) +NTSTATUS WINE_SYSCALL NtQueryEvent( HANDLE handle, EVENT_INFORMATION_CLASS class, + void *info, ULONG len, ULONG *ret_len ) { NTSTATUS ret; EVENT_BASIC_INFORMATION *out = info; @@ -581,8 +581,8 @@ NTSTATUS WINAPI NtQueryEvent( HANDLE handle, EVENT_INFORMATION_CLASS class, /****************************************************************************** * NtCreateMutant (NTDLL.@) */ -NTSTATUS WINAPI NtCreateMutant( HANDLE *handle, ACCESS_MASK access, const OBJECT_ATTRIBUTES *attr, - BOOLEAN owned ) +NTSTATUS WINE_SYSCALL NtCreateMutant( HANDLE *handle, ACCESS_MASK access, const OBJECT_ATTRIBUTES *attr, + BOOLEAN owned ) { NTSTATUS ret; data_size_t len; @@ -609,7 +609,7 @@ NTSTATUS WINAPI NtCreateMutant( HANDLE *handle, ACCESS_MASK access, const OBJECT /************************************************************************** * NtOpenMutant (NTDLL.@) */ -NTSTATUS WINAPI NtOpenMutant( HANDLE *handle, ACCESS_MASK access, const OBJECT_ATTRIBUTES *attr ) +NTSTATUS WINE_SYSCALL NtOpenMutant( HANDLE *handle, ACCESS_MASK access, const OBJECT_ATTRIBUTES *attr ) { NTSTATUS ret;
@@ -634,7 +634,7 @@ NTSTATUS WINAPI NtOpenMutant( HANDLE *handle, ACCESS_MASK access, const OBJECT_A /************************************************************************** * NtReleaseMutant (NTDLL.@) */ -NTSTATUS WINAPI NtReleaseMutant( HANDLE handle, LONG *prev_count ) +NTSTATUS WINE_SYSCALL NtReleaseMutant( HANDLE handle, LONG *prev_count ) { NTSTATUS ret;
@@ -652,8 +652,8 @@ NTSTATUS WINAPI NtReleaseMutant( HANDLE handle, LONG *prev_count ) /****************************************************************** * NtQueryMutant (NTDLL.@) */ -NTSTATUS WINAPI NtQueryMutant( HANDLE handle, MUTANT_INFORMATION_CLASS class, - void *info, ULONG len, ULONG *ret_len ) +NTSTATUS WINE_SYSCALL NtQueryMutant( HANDLE handle, MUTANT_INFORMATION_CLASS class, + void *info, ULONG len, ULONG *ret_len ) { NTSTATUS ret; MUTANT_BASIC_INFORMATION *out = info; @@ -687,7 +687,7 @@ NTSTATUS WINAPI NtQueryMutant( HANDLE handle, MUTANT_INFORMATION_CLASS class, /************************************************************************** * NtCreateJobObject (NTDLL.@) */ -NTSTATUS WINAPI NtCreateJobObject( HANDLE *handle, ACCESS_MASK access, const OBJECT_ATTRIBUTES *attr ) +NTSTATUS WINE_SYSCALL NtCreateJobObject( HANDLE *handle, ACCESS_MASK access, const OBJECT_ATTRIBUTES *attr ) { NTSTATUS ret; data_size_t len; @@ -712,7 +712,7 @@ NTSTATUS WINAPI NtCreateJobObject( HANDLE *handle, ACCESS_MASK access, const OBJ /************************************************************************** * NtOpenJobObject (NTDLL.@) */ -NTSTATUS WINAPI NtOpenJobObject( HANDLE *handle, ACCESS_MASK access, const OBJECT_ATTRIBUTES *attr ) +NTSTATUS WINE_SYSCALL NtOpenJobObject( HANDLE *handle, ACCESS_MASK access, const OBJECT_ATTRIBUTES *attr ) { NTSTATUS ret;
@@ -737,7 +737,7 @@ NTSTATUS WINAPI NtOpenJobObject( HANDLE *handle, ACCESS_MASK access, const OBJEC /************************************************************************** * NtTerminateJobObject (NTDLL.@) */ -NTSTATUS WINAPI NtTerminateJobObject( HANDLE handle, NTSTATUS status ) +NTSTATUS WINE_SYSCALL NtTerminateJobObject( HANDLE handle, NTSTATUS status ) { NTSTATUS ret;
@@ -758,8 +758,8 @@ NTSTATUS WINAPI NtTerminateJobObject( HANDLE handle, NTSTATUS status ) /************************************************************************** * NtQueryInformationJobObject (NTDLL.@) */ -NTSTATUS WINAPI NtQueryInformationJobObject( HANDLE handle, JOBOBJECTINFOCLASS class, void *info, - ULONG len, ULONG *ret_len ) +NTSTATUS WINE_SYSCALL NtQueryInformationJobObject( HANDLE handle, JOBOBJECTINFOCLASS class, void *info, + ULONG len, ULONG *ret_len ) { NTSTATUS ret;
@@ -853,7 +853,7 @@ NTSTATUS WINAPI NtQueryInformationJobObject( HANDLE handle, JOBOBJECTINFOCLASS c /************************************************************************** * NtSetInformationJobObject (NTDLL.@) */ -NTSTATUS WINAPI NtSetInformationJobObject( HANDLE handle, JOBOBJECTINFOCLASS class, void *info, ULONG len ) +NTSTATUS WINE_SYSCALL NtSetInformationJobObject( HANDLE handle, JOBOBJECTINFOCLASS class, void *info, ULONG len ) { NTSTATUS status = STATUS_NOT_IMPLEMENTED; JOBOBJECT_BASIC_LIMIT_INFORMATION *basic_limit; @@ -908,7 +908,7 @@ NTSTATUS WINAPI NtSetInformationJobObject( HANDLE handle, JOBOBJECTINFOCLASS cla /************************************************************************** * NtIsProcessInJob (NTDLL.@) */ -NTSTATUS WINAPI NtIsProcessInJob( HANDLE process, HANDLE job ) +NTSTATUS WINE_SYSCALL NtIsProcessInJob( HANDLE process, HANDLE job ) { NTSTATUS status;
@@ -928,7 +928,7 @@ NTSTATUS WINAPI NtIsProcessInJob( HANDLE process, HANDLE job ) /************************************************************************** * NtAssignProcessToJobObject (NTDLL.@) */ -NTSTATUS WINAPI NtAssignProcessToJobObject( HANDLE job, HANDLE process ) +NTSTATUS WINE_SYSCALL NtAssignProcessToJobObject( HANDLE job, HANDLE process ) { NTSTATUS status;
@@ -948,8 +948,8 @@ NTSTATUS WINAPI NtAssignProcessToJobObject( HANDLE job, HANDLE process ) /********************************************************************** * NtCreateDebugObject (NTDLL.@) */ -NTSTATUS WINAPI NtCreateDebugObject( HANDLE *handle, ACCESS_MASK access, - OBJECT_ATTRIBUTES *attr, ULONG flags ) +NTSTATUS WINE_SYSCALL NtCreateDebugObject( HANDLE *handle, ACCESS_MASK access, + OBJECT_ATTRIBUTES *attr, ULONG flags ) { NTSTATUS ret; data_size_t len; @@ -976,8 +976,8 @@ NTSTATUS WINAPI NtCreateDebugObject( HANDLE *handle, ACCESS_MASK access, /********************************************************************** * NtSetInformationDebugObject (NTDLL.@) */ -NTSTATUS WINAPI NtSetInformationDebugObject( HANDLE handle, DEBUGOBJECTINFOCLASS class, - void *info, ULONG len, ULONG *ret_len ) +NTSTATUS WINE_SYSCALL NtSetInformationDebugObject( HANDLE handle, DEBUGOBJECTINFOCLASS class, + void *info, ULONG len, ULONG *ret_len ) { NTSTATUS ret; ULONG flags; @@ -1073,8 +1073,8 @@ static NTSTATUS event_data_to_state_change( const debug_event_t *data, DBGUI_WAI /********************************************************************** * NtWaitForDebugEvent (NTDLL.@) */ -NTSTATUS WINAPI NtWaitForDebugEvent( HANDLE handle, BOOLEAN alertable, LARGE_INTEGER *timeout, - DBGUI_WAIT_STATE_CHANGE *state ) +NTSTATUS WINE_SYSCALL NtWaitForDebugEvent( HANDLE handle, BOOLEAN alertable, LARGE_INTEGER *timeout, + DBGUI_WAIT_STATE_CHANGE *state ) { debug_event_t data; NTSTATUS ret; @@ -1108,7 +1108,7 @@ NTSTATUS WINAPI NtWaitForDebugEvent( HANDLE handle, BOOLEAN alertable, LARGE_INT /************************************************************************** * NtCreateDirectoryObject (NTDLL.@) */ -NTSTATUS WINAPI NtCreateDirectoryObject( HANDLE *handle, ACCESS_MASK access, OBJECT_ATTRIBUTES *attr ) +NTSTATUS WINE_SYSCALL NtCreateDirectoryObject( HANDLE *handle, ACCESS_MASK access, OBJECT_ATTRIBUTES *attr ) { NTSTATUS ret; data_size_t len; @@ -1133,7 +1133,7 @@ NTSTATUS WINAPI NtCreateDirectoryObject( HANDLE *handle, ACCESS_MASK access, OBJ /************************************************************************** * NtOpenDirectoryObject (NTDLL.@) */ -NTSTATUS WINAPI NtOpenDirectoryObject( HANDLE *handle, ACCESS_MASK access, const OBJECT_ATTRIBUTES *attr ) +NTSTATUS WINE_SYSCALL NtOpenDirectoryObject( HANDLE *handle, ACCESS_MASK access, const OBJECT_ATTRIBUTES *attr ) { NTSTATUS ret;
@@ -1158,9 +1158,9 @@ NTSTATUS WINAPI NtOpenDirectoryObject( HANDLE *handle, ACCESS_MASK access, const /************************************************************************** * NtQueryDirectoryObject (NTDLL.@) */ -NTSTATUS WINAPI NtQueryDirectoryObject( HANDLE handle, DIRECTORY_BASIC_INFORMATION *buffer, - ULONG size, BOOLEAN single_entry, BOOLEAN restart, - ULONG *context, ULONG *ret_size ) +NTSTATUS WINE_SYSCALL NtQueryDirectoryObject( HANDLE handle, DIRECTORY_BASIC_INFORMATION *buffer, + ULONG size, BOOLEAN single_entry, BOOLEAN restart, + ULONG *context, ULONG *ret_size ) { NTSTATUS ret;
@@ -1207,8 +1207,8 @@ NTSTATUS WINAPI NtQueryDirectoryObject( HANDLE handle, DIRECTORY_BASIC_INFORMATI /************************************************************************** * NtCreateSymbolicLinkObject (NTDLL.@) */ -NTSTATUS WINAPI NtCreateSymbolicLinkObject( HANDLE *handle, ACCESS_MASK access, - OBJECT_ATTRIBUTES *attr, UNICODE_STRING *target ) +NTSTATUS WINE_SYSCALL NtCreateSymbolicLinkObject( HANDLE *handle, ACCESS_MASK access, + OBJECT_ATTRIBUTES *attr, UNICODE_STRING *target ) { NTSTATUS ret; data_size_t len; @@ -1236,8 +1236,8 @@ NTSTATUS WINAPI NtCreateSymbolicLinkObject( HANDLE *handle, ACCESS_MASK access, /************************************************************************** * NtOpenSymbolicLinkObject (NTDLL.@) */ -NTSTATUS WINAPI NtOpenSymbolicLinkObject( HANDLE *handle, ACCESS_MASK access, - const OBJECT_ATTRIBUTES *attr ) +NTSTATUS WINE_SYSCALL NtOpenSymbolicLinkObject( HANDLE *handle, ACCESS_MASK access, + const OBJECT_ATTRIBUTES *attr ) { NTSTATUS ret;
@@ -1262,7 +1262,7 @@ NTSTATUS WINAPI NtOpenSymbolicLinkObject( HANDLE *handle, ACCESS_MASK access, /************************************************************************** * NtQuerySymbolicLinkObject (NTDLL.@) */ -NTSTATUS WINAPI NtQuerySymbolicLinkObject( HANDLE handle, UNICODE_STRING *target, ULONG *length ) +NTSTATUS WINE_SYSCALL NtQuerySymbolicLinkObject( HANDLE handle, UNICODE_STRING *target, ULONG *length ) { NTSTATUS ret;
@@ -1289,7 +1289,7 @@ NTSTATUS WINAPI NtQuerySymbolicLinkObject( HANDLE handle, UNICODE_STRING *target /************************************************************************** * NtMakeTemporaryObject (NTDLL.@) */ -NTSTATUS WINAPI NtMakeTemporaryObject( HANDLE handle ) +NTSTATUS WINE_SYSCALL NtMakeTemporaryObject( HANDLE handle ) { NTSTATUS ret;
@@ -1308,8 +1308,8 @@ NTSTATUS WINAPI NtMakeTemporaryObject( HANDLE handle ) /************************************************************************** * NtCreateTimer (NTDLL.@) */ -NTSTATUS WINAPI NtCreateTimer( HANDLE *handle, ACCESS_MASK access, const OBJECT_ATTRIBUTES *attr, - TIMER_TYPE type ) +NTSTATUS WINE_SYSCALL NtCreateTimer( HANDLE *handle, ACCESS_MASK access, const OBJECT_ATTRIBUTES *attr, + TIMER_TYPE type ) { NTSTATUS ret; data_size_t len; @@ -1338,7 +1338,7 @@ NTSTATUS WINAPI NtCreateTimer( HANDLE *handle, ACCESS_MASK access, const OBJECT_ /************************************************************************** * NtOpenTimer (NTDLL.@) */ -NTSTATUS WINAPI NtOpenTimer( HANDLE *handle, ACCESS_MASK access, const OBJECT_ATTRIBUTES *attr ) +NTSTATUS WINE_SYSCALL NtOpenTimer( HANDLE *handle, ACCESS_MASK access, const OBJECT_ATTRIBUTES *attr ) { NTSTATUS ret;
@@ -1363,8 +1363,8 @@ NTSTATUS WINAPI NtOpenTimer( HANDLE *handle, ACCESS_MASK access, const OBJECT_AT /************************************************************************** * NtSetTimer (NTDLL.@) */ -NTSTATUS WINAPI NtSetTimer( HANDLE handle, const LARGE_INTEGER *when, PTIMER_APC_ROUTINE callback, - void *arg, BOOLEAN resume, ULONG period, BOOLEAN *state ) +NTSTATUS WINE_SYSCALL NtSetTimer( HANDLE handle, const LARGE_INTEGER *when, PTIMER_APC_ROUTINE callback, + void *arg, BOOLEAN resume, ULONG period, BOOLEAN *state ) { NTSTATUS ret = STATUS_SUCCESS;
@@ -1391,7 +1391,7 @@ NTSTATUS WINAPI NtSetTimer( HANDLE handle, const LARGE_INTEGER *when, PTIMER_APC /************************************************************************** * NtCancelTimer (NTDLL.@) */ -NTSTATUS WINAPI NtCancelTimer( HANDLE handle, BOOLEAN *state ) +NTSTATUS WINE_SYSCALL NtCancelTimer( HANDLE handle, BOOLEAN *state ) { NTSTATUS ret;
@@ -1409,8 +1409,8 @@ NTSTATUS WINAPI NtCancelTimer( HANDLE handle, BOOLEAN *state ) /****************************************************************************** * NtQueryTimer (NTDLL.@) */ -NTSTATUS WINAPI NtQueryTimer( HANDLE handle, TIMER_INFORMATION_CLASS class, - void *info, ULONG len, ULONG *ret_len ) +NTSTATUS WINE_SYSCALL NtQueryTimer( HANDLE handle, TIMER_INFORMATION_CLASS class, + void *info, ULONG len, ULONG *ret_len ) { TIMER_BASIC_INFORMATION *basic_info = info; NTSTATUS ret; @@ -1458,8 +1458,8 @@ NTSTATUS WINAPI NtQueryTimer( HANDLE handle, TIMER_INFORMATION_CLASS class, /****************************************************************** * NtWaitForMultipleObjects (NTDLL.@) */ -NTSTATUS WINAPI NtWaitForMultipleObjects( DWORD count, const HANDLE *handles, BOOLEAN wait_any, - BOOLEAN alertable, const LARGE_INTEGER *timeout ) +NTSTATUS WINE_SYSCALL NtWaitForMultipleObjects( DWORD count, const HANDLE *handles, BOOLEAN wait_any, + BOOLEAN alertable, const LARGE_INTEGER *timeout ) { select_op_t select_op; UINT i, flags = SELECT_INTERRUPTIBLE; @@ -1476,7 +1476,7 @@ NTSTATUS WINAPI NtWaitForMultipleObjects( DWORD count, const HANDLE *handles, BO /****************************************************************** * NtWaitForSingleObject (NTDLL.@) */ -NTSTATUS WINAPI NtWaitForSingleObject( HANDLE handle, BOOLEAN alertable, const LARGE_INTEGER *timeout ) +NTSTATUS WINE_SYSCALL NtWaitForSingleObject( HANDLE handle, BOOLEAN alertable, const LARGE_INTEGER *timeout ) { return NtWaitForMultipleObjects( 1, &handle, FALSE, alertable, timeout ); } @@ -1485,8 +1485,8 @@ NTSTATUS WINAPI NtWaitForSingleObject( HANDLE handle, BOOLEAN alertable, const L /****************************************************************** * NtSignalAndWaitForSingleObject (NTDLL.@) */ -NTSTATUS WINAPI NtSignalAndWaitForSingleObject( HANDLE signal, HANDLE wait, - BOOLEAN alertable, const LARGE_INTEGER *timeout ) +NTSTATUS WINE_SYSCALL NtSignalAndWaitForSingleObject( HANDLE signal, HANDLE wait, + BOOLEAN alertable, const LARGE_INTEGER *timeout ) { select_op_t select_op; UINT flags = SELECT_INTERRUPTIBLE; @@ -1504,7 +1504,7 @@ NTSTATUS WINAPI NtSignalAndWaitForSingleObject( HANDLE signal, HANDLE wait, /****************************************************************** * NtYieldExecution (NTDLL.@) */ -NTSTATUS WINAPI NtYieldExecution(void) +NTSTATUS WINE_SYSCALL NtYieldExecution(void) { #ifdef HAVE_SCHED_YIELD sched_yield(); @@ -1518,7 +1518,7 @@ NTSTATUS WINAPI NtYieldExecution(void) /****************************************************************** * NtDelayExecution (NTDLL.@) */ -NTSTATUS WINAPI NtDelayExecution( BOOLEAN alertable, const LARGE_INTEGER *timeout ) +NTSTATUS WINE_SYSCALL NtDelayExecution( BOOLEAN alertable, const LARGE_INTEGER *timeout ) { /* if alertable, we need to query the server */ if (alertable) return server_wait( NULL, 0, SELECT_INTERRUPTIBLE | SELECT_ALERTABLE, timeout ); @@ -1560,7 +1560,7 @@ NTSTATUS WINAPI NtDelayExecution( BOOLEAN alertable, const LARGE_INTEGER *timeou /****************************************************************************** * NtQueryPerformanceCounter (NTDLL.@) */ -NTSTATUS WINAPI NtQueryPerformanceCounter( LARGE_INTEGER *counter, LARGE_INTEGER *frequency ) +NTSTATUS WINE_SYSCALL NtQueryPerformanceCounter( LARGE_INTEGER *counter, LARGE_INTEGER *frequency ) { counter->QuadPart = monotonic_counter(); if (frequency) frequency->QuadPart = TICKSPERSEC; @@ -1571,7 +1571,7 @@ NTSTATUS WINAPI NtQueryPerformanceCounter( LARGE_INTEGER *counter, LARGE_INTEGER /*********************************************************************** * NtQuerySystemTime (NTDLL.@) */ -NTSTATUS WINAPI NtQuerySystemTime( LARGE_INTEGER *time ) +NTSTATUS WINE_SYSCALL NtQuerySystemTime( LARGE_INTEGER *time ) { #ifdef HAVE_CLOCK_GETTIME struct timespec ts; @@ -1609,7 +1609,7 @@ NTSTATUS WINAPI NtQuerySystemTime( LARGE_INTEGER *time ) /*********************************************************************** * NtSetSystemTime (NTDLL.@) */ -NTSTATUS WINAPI NtSetSystemTime( const LARGE_INTEGER *new, LARGE_INTEGER *old ) +NTSTATUS WINE_SYSCALL NtSetSystemTime( const LARGE_INTEGER *new, LARGE_INTEGER *old ) { LARGE_INTEGER now; LONGLONG diff; @@ -1626,7 +1626,7 @@ NTSTATUS WINAPI NtSetSystemTime( const LARGE_INTEGER *new, LARGE_INTEGER *old ) /*********************************************************************** * NtQueryTimerResolution (NTDLL.@) */ -NTSTATUS WINAPI NtQueryTimerResolution( ULONG *min_res, ULONG *max_res, ULONG *current_res ) +NTSTATUS WINE_SYSCALL NtQueryTimerResolution( ULONG *min_res, ULONG *max_res, ULONG *current_res ) { TRACE( "(%p,%p,%p)\n", min_res, max_res, current_res ); *max_res = *current_res = 10000; /* See NtSetTimerResolution() */ @@ -1638,7 +1638,7 @@ NTSTATUS WINAPI NtQueryTimerResolution( ULONG *min_res, ULONG *max_res, ULONG *c /*********************************************************************** * NtSetTimerResolution (NTDLL.@) */ -NTSTATUS WINAPI NtSetTimerResolution( ULONG res, BOOLEAN set, ULONG *current_res ) +NTSTATUS WINE_SYSCALL NtSetTimerResolution( ULONG res, BOOLEAN set, ULONG *current_res ) { static BOOL has_request = FALSE;
@@ -1666,7 +1666,7 @@ NTSTATUS WINAPI NtSetTimerResolution( ULONG res, BOOLEAN set, ULONG *current_res /****************************************************************************** * NtSetIntervalProfile (NTDLL.@) */ -NTSTATUS WINAPI NtSetIntervalProfile( ULONG interval, KPROFILE_SOURCE source ) +NTSTATUS WINE_SYSCALL NtSetIntervalProfile( ULONG interval, KPROFILE_SOURCE source ) { FIXME( "%u,%d\n", interval, source ); return STATUS_SUCCESS; @@ -1676,7 +1676,7 @@ NTSTATUS WINAPI NtSetIntervalProfile( ULONG interval, KPROFILE_SOURCE source ) /****************************************************************************** * NtGetTickCount (NTDLL.@) */ -ULONG WINAPI NtGetTickCount(void) +ULONG WINE_SYSCALL NtGetTickCount(void) { /* note: we ignore TickCountMultiplier */ return user_shared_data->u.TickCount.LowPart; @@ -1703,8 +1703,8 @@ LONGLONG WINAPI RtlGetSystemTimePrecise(void) /****************************************************************************** * NtCreateKeyedEvent (NTDLL.@) */ -NTSTATUS WINAPI NtCreateKeyedEvent( HANDLE *handle, ACCESS_MASK access, - const OBJECT_ATTRIBUTES *attr, ULONG flags ) +NTSTATUS WINE_SYSCALL NtCreateKeyedEvent( HANDLE *handle, ACCESS_MASK access, + const OBJECT_ATTRIBUTES *attr, ULONG flags ) { NTSTATUS ret; data_size_t len; @@ -1730,7 +1730,7 @@ NTSTATUS WINAPI NtCreateKeyedEvent( HANDLE *handle, ACCESS_MASK access, /****************************************************************************** * NtOpenKeyedEvent (NTDLL.@) */ -NTSTATUS WINAPI NtOpenKeyedEvent( HANDLE *handle, ACCESS_MASK access, const OBJECT_ATTRIBUTES *attr ) +NTSTATUS WINE_SYSCALL NtOpenKeyedEvent( HANDLE *handle, ACCESS_MASK access, const OBJECT_ATTRIBUTES *attr ) { NTSTATUS ret;
@@ -1754,8 +1754,8 @@ NTSTATUS WINAPI NtOpenKeyedEvent( HANDLE *handle, ACCESS_MASK access, const OBJE /****************************************************************************** * NtWaitForKeyedEvent (NTDLL.@) */ -NTSTATUS WINAPI NtWaitForKeyedEvent( HANDLE handle, const void *key, - BOOLEAN alertable, const LARGE_INTEGER *timeout ) +NTSTATUS WINE_SYSCALL NtWaitForKeyedEvent( HANDLE handle, const void *key, + BOOLEAN alertable, const LARGE_INTEGER *timeout ) { select_op_t select_op; UINT flags = SELECT_INTERRUPTIBLE; @@ -1773,8 +1773,8 @@ NTSTATUS WINAPI NtWaitForKeyedEvent( HANDLE handle, const void *key, /****************************************************************************** * NtReleaseKeyedEvent (NTDLL.@) */ -NTSTATUS WINAPI NtReleaseKeyedEvent( HANDLE handle, const void *key, - BOOLEAN alertable, const LARGE_INTEGER *timeout ) +NTSTATUS WINE_SYSCALL NtReleaseKeyedEvent( HANDLE handle, const void *key, + BOOLEAN alertable, const LARGE_INTEGER *timeout ) { select_op_t select_op; UINT flags = SELECT_INTERRUPTIBLE; @@ -1792,8 +1792,8 @@ NTSTATUS WINAPI NtReleaseKeyedEvent( HANDLE handle, const void *key, /*********************************************************************** * NtCreateIoCompletion (NTDLL.@) */ -NTSTATUS WINAPI NtCreateIoCompletion( HANDLE *handle, ACCESS_MASK access, OBJECT_ATTRIBUTES *attr, - ULONG threads ) +NTSTATUS WINE_SYSCALL NtCreateIoCompletion( HANDLE *handle, ACCESS_MASK access, OBJECT_ATTRIBUTES *attr, + ULONG threads ) { NTSTATUS status; data_size_t len; @@ -1821,7 +1821,7 @@ NTSTATUS WINAPI NtCreateIoCompletion( HANDLE *handle, ACCESS_MASK access, OBJECT /*********************************************************************** * NtOpenIoCompletion (NTDLL.@) */ -NTSTATUS WINAPI NtOpenIoCompletion( HANDLE *handle, ACCESS_MASK access, const OBJECT_ATTRIBUTES *attr ) +NTSTATUS WINE_SYSCALL NtOpenIoCompletion( HANDLE *handle, ACCESS_MASK access, const OBJECT_ATTRIBUTES *attr ) { NTSTATUS status;
@@ -1846,8 +1846,8 @@ NTSTATUS WINAPI NtOpenIoCompletion( HANDLE *handle, ACCESS_MASK access, const OB /*********************************************************************** * NtSetIoCompletion (NTDLL.@) */ -NTSTATUS WINAPI NtSetIoCompletion( HANDLE handle, ULONG_PTR key, ULONG_PTR value, - NTSTATUS status, SIZE_T count ) +NTSTATUS WINE_SYSCALL NtSetIoCompletion( HANDLE handle, ULONG_PTR key, ULONG_PTR value, + NTSTATUS status, SIZE_T count ) { NTSTATUS ret;
@@ -1870,8 +1870,8 @@ NTSTATUS WINAPI NtSetIoCompletion( HANDLE handle, ULONG_PTR key, ULONG_PTR value /*********************************************************************** * NtRemoveIoCompletion (NTDLL.@) */ -NTSTATUS WINAPI NtRemoveIoCompletion( HANDLE handle, ULONG_PTR *key, ULONG_PTR *value, - IO_STATUS_BLOCK *io, LARGE_INTEGER *timeout ) +NTSTATUS WINE_SYSCALL NtRemoveIoCompletion( HANDLE handle, ULONG_PTR *key, ULONG_PTR *value, + IO_STATUS_BLOCK *io, LARGE_INTEGER *timeout ) { NTSTATUS status;
@@ -1901,8 +1901,8 @@ NTSTATUS WINAPI NtRemoveIoCompletion( HANDLE handle, ULONG_PTR *key, ULONG_PTR * /*********************************************************************** * NtRemoveIoCompletionEx (NTDLL.@) */ -NTSTATUS WINAPI NtRemoveIoCompletionEx( HANDLE handle, FILE_IO_COMPLETION_INFORMATION *info, ULONG count, - ULONG *written, LARGE_INTEGER *timeout, BOOLEAN alertable ) +NTSTATUS WINE_SYSCALL NtRemoveIoCompletionEx( HANDLE handle, FILE_IO_COMPLETION_INFORMATION *info, ULONG count, + ULONG *written, LARGE_INTEGER *timeout, BOOLEAN alertable ) { NTSTATUS status; ULONG i = 0; @@ -1944,8 +1944,8 @@ NTSTATUS WINAPI NtRemoveIoCompletionEx( HANDLE handle, FILE_IO_COMPLETION_INFORM /*********************************************************************** * NtQueryIoCompletion (NTDLL.@) */ -NTSTATUS WINAPI NtQueryIoCompletion( HANDLE handle, IO_COMPLETION_INFORMATION_CLASS class, - void *buffer, ULONG len, ULONG *ret_len ) +NTSTATUS WINE_SYSCALL NtQueryIoCompletion( HANDLE handle, IO_COMPLETION_INFORMATION_CLASS class, + void *buffer, ULONG len, ULONG *ret_len ) { NTSTATUS status;
@@ -1981,9 +1981,9 @@ NTSTATUS WINAPI NtQueryIoCompletion( HANDLE handle, IO_COMPLETION_INFORMATION_CL /*********************************************************************** * NtCreateSection (NTDLL.@) */ -NTSTATUS WINAPI NtCreateSection( HANDLE *handle, ACCESS_MASK access, const OBJECT_ATTRIBUTES *attr, - const LARGE_INTEGER *size, ULONG protect, - ULONG sec_flags, HANDLE file ) +NTSTATUS WINE_SYSCALL NtCreateSection( HANDLE *handle, ACCESS_MASK access, const OBJECT_ATTRIBUTES *attr, + const LARGE_INTEGER *size, ULONG protect, + ULONG sec_flags, HANDLE file ) { NTSTATUS ret; unsigned int file_access; @@ -2036,7 +2036,7 @@ NTSTATUS WINAPI NtCreateSection( HANDLE *handle, ACCESS_MASK access, const OBJEC /*********************************************************************** * NtOpenSection (NTDLL.@) */ -NTSTATUS WINAPI NtOpenSection( HANDLE *handle, ACCESS_MASK access, const OBJECT_ATTRIBUTES *attr ) +NTSTATUS WINE_SYSCALL NtOpenSection( HANDLE *handle, ACCESS_MASK access, const OBJECT_ATTRIBUTES *attr ) { NTSTATUS ret;
@@ -2061,8 +2061,8 @@ NTSTATUS WINAPI NtOpenSection( HANDLE *handle, ACCESS_MASK access, const OBJECT_ /*********************************************************************** * NtCreatePort (NTDLL.@) */ -NTSTATUS WINAPI NtCreatePort( HANDLE *handle, OBJECT_ATTRIBUTES *attr, ULONG info_len, - ULONG data_len, ULONG *reserved ) +NTSTATUS WINE_SYSCALL NtCreatePort( HANDLE *handle, OBJECT_ATTRIBUTES *attr, ULONG info_len, + ULONG data_len, ULONG *reserved ) { FIXME( "(%p,%p,%u,%u,%p),stub!\n", handle, attr, info_len, data_len, reserved ); return STATUS_NOT_IMPLEMENTED; @@ -2072,9 +2072,9 @@ NTSTATUS WINAPI NtCreatePort( HANDLE *handle, OBJECT_ATTRIBUTES *attr, ULONG inf /*********************************************************************** * NtConnectPort (NTDLL.@) */ -NTSTATUS WINAPI NtConnectPort( HANDLE *handle, UNICODE_STRING *name, SECURITY_QUALITY_OF_SERVICE *qos, - LPC_SECTION_WRITE *write, LPC_SECTION_READ *read, ULONG *max_len, - void *info, ULONG *info_len ) +NTSTATUS WINE_SYSCALL NtConnectPort( HANDLE *handle, UNICODE_STRING *name, SECURITY_QUALITY_OF_SERVICE *qos, + LPC_SECTION_WRITE *write, LPC_SECTION_READ *read, ULONG *max_len, + void *info, ULONG *info_len ) { FIXME( "(%p,%s,%p,%p,%p,%p,%p,%p),stub!\n", handle, debugstr_us(name), qos, write, read, max_len, info, info_len ); @@ -2086,9 +2086,9 @@ NTSTATUS WINAPI NtConnectPort( HANDLE *handle, UNICODE_STRING *name, SECURITY_QU /*********************************************************************** * NtSecureConnectPort (NTDLL.@) */ -NTSTATUS WINAPI NtSecureConnectPort( HANDLE *handle, UNICODE_STRING *name, SECURITY_QUALITY_OF_SERVICE *qos, - LPC_SECTION_WRITE *write, PSID sid, LPC_SECTION_READ *read, - ULONG *max_len, void *info, ULONG *info_len ) +NTSTATUS WINE_SYSCALL NtSecureConnectPort( HANDLE *handle, UNICODE_STRING *name, SECURITY_QUALITY_OF_SERVICE *qos, + LPC_SECTION_WRITE *write, PSID sid, LPC_SECTION_READ *read, + ULONG *max_len, void *info, ULONG *info_len ) { FIXME( "(%p,%s,%p,%p,%p,%p,%p,%p,%p),stub!\n", handle, debugstr_us(name), qos, write, sid, read, max_len, info, info_len ); @@ -2099,7 +2099,7 @@ NTSTATUS WINAPI NtSecureConnectPort( HANDLE *handle, UNICODE_STRING *name, SECUR /*********************************************************************** * NtListenPort (NTDLL.@) */ -NTSTATUS WINAPI NtListenPort( HANDLE handle, LPC_MESSAGE *msg ) +NTSTATUS WINE_SYSCALL NtListenPort( HANDLE handle, LPC_MESSAGE *msg ) { FIXME("(%p,%p),stub!\n", handle, msg ); return STATUS_NOT_IMPLEMENTED; @@ -2109,8 +2109,8 @@ NTSTATUS WINAPI NtListenPort( HANDLE handle, LPC_MESSAGE *msg ) /*********************************************************************** * NtAcceptConnectPort (NTDLL.@) */ -NTSTATUS WINAPI NtAcceptConnectPort( HANDLE *handle, ULONG id, LPC_MESSAGE *msg, BOOLEAN accept, - LPC_SECTION_WRITE *write, LPC_SECTION_READ *read ) +NTSTATUS WINE_SYSCALL NtAcceptConnectPort( HANDLE *handle, ULONG id, LPC_MESSAGE *msg, BOOLEAN accept, + LPC_SECTION_WRITE *write, LPC_SECTION_READ *read ) { FIXME("(%p,%u,%p,%d,%p,%p),stub!\n", handle, id, msg, accept, write, read ); return STATUS_NOT_IMPLEMENTED; @@ -2120,7 +2120,7 @@ NTSTATUS WINAPI NtAcceptConnectPort( HANDLE *handle, ULONG id, LPC_MESSAGE *msg, /*********************************************************************** * NtCompleteConnectPort (NTDLL.@) */ -NTSTATUS WINAPI NtCompleteConnectPort( HANDLE handle ) +NTSTATUS WINE_SYSCALL NtCompleteConnectPort( HANDLE handle ) { FIXME( "(%p),stub!\n", handle ); return STATUS_NOT_IMPLEMENTED; @@ -2130,7 +2130,7 @@ NTSTATUS WINAPI NtCompleteConnectPort( HANDLE handle ) /*********************************************************************** * NtRegisterThreadTerminatePort (NTDLL.@) */ -NTSTATUS WINAPI NtRegisterThreadTerminatePort( HANDLE handle ) +NTSTATUS WINE_SYSCALL NtRegisterThreadTerminatePort( HANDLE handle ) { FIXME( "(%p),stub!\n", handle ); return STATUS_NOT_IMPLEMENTED; @@ -2140,7 +2140,7 @@ NTSTATUS WINAPI NtRegisterThreadTerminatePort( HANDLE handle ) /*********************************************************************** * NtRequestWaitReplyPort (NTDLL.@) */ -NTSTATUS WINAPI NtRequestWaitReplyPort( HANDLE handle, LPC_MESSAGE *msg_in, LPC_MESSAGE *msg_out ) +NTSTATUS WINE_SYSCALL NtRequestWaitReplyPort( HANDLE handle, LPC_MESSAGE *msg_in, LPC_MESSAGE *msg_out ) { FIXME( "(%p,%p,%p),stub!\n", handle, msg_in, msg_out ); if (msg_in) @@ -2155,7 +2155,7 @@ NTSTATUS WINAPI NtRequestWaitReplyPort( HANDLE handle, LPC_MESSAGE *msg_in, LPC_ /*********************************************************************** * NtReplyWaitReceivePort (NTDLL.@) */ -NTSTATUS WINAPI NtReplyWaitReceivePort( HANDLE handle, ULONG *id, LPC_MESSAGE *reply, LPC_MESSAGE *msg ) +NTSTATUS WINE_SYSCALL NtReplyWaitReceivePort( HANDLE handle, ULONG *id, LPC_MESSAGE *reply, LPC_MESSAGE *msg ) { FIXME("(%p,%p,%p,%p),stub!\n", handle, id, reply, msg ); return STATUS_NOT_IMPLEMENTED; @@ -2212,7 +2212,7 @@ static ULONG integral_atom_name( WCHAR *buffer, ULONG len, RTL_ATOM atom ) /*********************************************************************** * NtAddAtom (NTDLL.@) */ -NTSTATUS WINAPI NtAddAtom( const WCHAR *name, ULONG length, RTL_ATOM *atom ) +NTSTATUS WINE_SYSCALL NtAddAtom( const WCHAR *name, ULONG length, RTL_ATOM *atom ) { NTSTATUS status = is_integral_atom( name, length / sizeof(WCHAR), atom );
@@ -2234,7 +2234,7 @@ NTSTATUS WINAPI NtAddAtom( const WCHAR *name, ULONG length, RTL_ATOM *atom ) /*********************************************************************** * NtDeleteAtom (NTDLL.@) */ -NTSTATUS WINAPI NtDeleteAtom( RTL_ATOM atom ) +NTSTATUS WINE_SYSCALL NtDeleteAtom( RTL_ATOM atom ) { NTSTATUS status;
@@ -2251,7 +2251,7 @@ NTSTATUS WINAPI NtDeleteAtom( RTL_ATOM atom ) /*********************************************************************** * NtFindAtom (NTDLL.@) */ -NTSTATUS WINAPI NtFindAtom( const WCHAR *name, ULONG length, RTL_ATOM *atom ) +NTSTATUS WINE_SYSCALL NtFindAtom( const WCHAR *name, ULONG length, RTL_ATOM *atom ) { NTSTATUS status = is_integral_atom( name, length / sizeof(WCHAR), atom );
@@ -2273,8 +2273,8 @@ NTSTATUS WINAPI NtFindAtom( const WCHAR *name, ULONG length, RTL_ATOM *atom ) /*********************************************************************** * NtQueryInformationAtom (NTDLL.@) */ -NTSTATUS WINAPI NtQueryInformationAtom( RTL_ATOM atom, ATOM_INFORMATION_CLASS class, - void *ptr, ULONG size, ULONG *retsize ) +NTSTATUS WINE_SYSCALL NtQueryInformationAtom( RTL_ATOM atom, ATOM_INFORMATION_CLASS class, + void *ptr, ULONG size, ULONG *retsize ) { NTSTATUS status;
diff --git a/dlls/ntdll/unix/system.c b/dlls/ntdll/unix/system.c index 82c9f0da492..deafdd01073 100644 --- a/dlls/ntdll/unix/system.c +++ b/dlls/ntdll/unix/system.c @@ -2359,8 +2359,8 @@ static void read_dev_urandom( void *buf, ULONG len ) /****************************************************************************** * NtQuerySystemInformation (NTDLL.@) */ -NTSTATUS WINAPI NtQuerySystemInformation( SYSTEM_INFORMATION_CLASS class, - void *info, ULONG size, ULONG *ret_size ) +NTSTATUS WINE_SYSCALL NtQuerySystemInformation( SYSTEM_INFORMATION_CLASS class, + void *info, ULONG size, ULONG *ret_size ) { NTSTATUS ret = STATUS_SUCCESS; ULONG len = 0; @@ -3121,9 +3121,9 @@ NTSTATUS WINAPI NtQuerySystemInformation( SYSTEM_INFORMATION_CLASS class, /****************************************************************************** * NtQuerySystemInformationEx (NTDLL.@) */ -NTSTATUS WINAPI NtQuerySystemInformationEx( SYSTEM_INFORMATION_CLASS class, - void *query, ULONG query_len, - void *info, ULONG size, ULONG *ret_size ) +NTSTATUS WINE_SYSCALL NtQuerySystemInformationEx( SYSTEM_INFORMATION_CLASS class, + void *query, ULONG query_len, + void *info, ULONG size, ULONG *ret_size ) { ULONG len = 0; NTSTATUS ret = STATUS_NOT_IMPLEMENTED; @@ -3237,7 +3237,7 @@ NTSTATUS WINAPI NtQuerySystemInformationEx( SYSTEM_INFORMATION_CLASS class, /****************************************************************************** * NtSetSystemInformation (NTDLL.@) */ -NTSTATUS WINAPI NtSetSystemInformation( SYSTEM_INFORMATION_CLASS class, void *info, ULONG length ) +NTSTATUS WINE_SYSCALL NtSetSystemInformation( SYSTEM_INFORMATION_CLASS class, void *info, ULONG length ) { FIXME( "(0x%08x,%p,0x%08x) stub\n", class, info, length ); return STATUS_SUCCESS; @@ -3247,8 +3247,8 @@ NTSTATUS WINAPI NtSetSystemInformation( SYSTEM_INFORMATION_CLASS class, void *in /****************************************************************************** * NtQuerySystemEnvironmentValue (NTDLL.@) */ -NTSTATUS WINAPI NtQuerySystemEnvironmentValue( UNICODE_STRING *name, WCHAR *buffer, ULONG length, - ULONG *retlen ) +NTSTATUS WINE_SYSCALL NtQuerySystemEnvironmentValue( UNICODE_STRING *name, WCHAR *buffer, ULONG length, + ULONG *retlen ) { FIXME( "(%s, %p, %u, %p), stub\n", debugstr_us(name), buffer, length, retlen ); return STATUS_NOT_IMPLEMENTED; @@ -3258,8 +3258,8 @@ NTSTATUS WINAPI NtQuerySystemEnvironmentValue( UNICODE_STRING *name, WCHAR *buff /****************************************************************************** * NtQuerySystemEnvironmentValueEx (NTDLL.@) */ -NTSTATUS WINAPI NtQuerySystemEnvironmentValueEx( UNICODE_STRING *name, GUID *vendor, void *buffer, - ULONG *retlen, ULONG *attrib ) +NTSTATUS WINE_SYSCALL NtQuerySystemEnvironmentValueEx( UNICODE_STRING *name, GUID *vendor, void *buffer, + ULONG *retlen, ULONG *attrib ) { FIXME( "(%s, %s, %p, %p, %p), stub\n", debugstr_us(name), debugstr_guid(vendor), buffer, retlen, attrib ); @@ -3270,8 +3270,8 @@ NTSTATUS WINAPI NtQuerySystemEnvironmentValueEx( UNICODE_STRING *name, GUID *ven /****************************************************************************** * NtSystemDebugControl (NTDLL.@) */ -NTSTATUS WINAPI NtSystemDebugControl( SYSDBG_COMMAND command, void *in_buff, ULONG in_len, - void *out_buff, ULONG out_len, ULONG *retlen ) +NTSTATUS WINE_SYSCALL NtSystemDebugControl( SYSDBG_COMMAND command, void *in_buff, ULONG in_len, + void *out_buff, ULONG out_len, ULONG *retlen ) { FIXME( "(%d, %p, %d, %p, %d, %p), stub\n", command, in_buff, in_len, out_buff, out_len, retlen ); return STATUS_NOT_IMPLEMENTED; @@ -3281,7 +3281,7 @@ NTSTATUS WINAPI NtSystemDebugControl( SYSDBG_COMMAND command, void *in_buff, ULO /****************************************************************************** * NtShutdownSystem (NTDLL.@) */ -NTSTATUS WINAPI NtShutdownSystem( SHUTDOWN_ACTION action ) +NTSTATUS WINE_SYSCALL NtShutdownSystem( SHUTDOWN_ACTION action ) { FIXME( "%d\n", action ); return STATUS_SUCCESS; @@ -3451,8 +3451,8 @@ static NTSTATUS fill_battery_state( SYSTEM_BATTERY_STATE *bs ) /****************************************************************************** * NtPowerInformation (NTDLL.@) */ -NTSTATUS WINAPI NtPowerInformation( POWER_INFORMATION_LEVEL level, void *input, ULONG in_size, - void *output, ULONG out_size ) +NTSTATUS WINE_SYSCALL NtPowerInformation( POWER_INFORMATION_LEVEL level, void *input, ULONG in_size, + void *output, ULONG out_size ) { TRACE( "(%d,%p,%d,%p,%d)\n", level, input, in_size, output, out_size ); switch (level) @@ -3637,7 +3637,7 @@ NTSTATUS WINAPI NtPowerInformation( POWER_INFORMATION_LEVEL level, void *input, /****************************************************************************** * NtLoadDriver (NTDLL.@) */ -NTSTATUS WINAPI NtLoadDriver( const UNICODE_STRING *name ) +NTSTATUS WINE_SYSCALL NtLoadDriver( const UNICODE_STRING *name ) { FIXME( "(%s), stub!\n", debugstr_us(name) ); return STATUS_NOT_IMPLEMENTED; @@ -3647,7 +3647,7 @@ NTSTATUS WINAPI NtLoadDriver( const UNICODE_STRING *name ) /****************************************************************************** * NtUnloadDriver (NTDLL.@) */ -NTSTATUS WINAPI NtUnloadDriver( const UNICODE_STRING *name ) +NTSTATUS WINE_SYSCALL NtUnloadDriver( const UNICODE_STRING *name ) { FIXME( "(%s), stub!\n", debugstr_us(name) ); return STATUS_NOT_IMPLEMENTED; @@ -3657,7 +3657,7 @@ NTSTATUS WINAPI NtUnloadDriver( const UNICODE_STRING *name ) /****************************************************************************** * NtDisplayString (NTDLL.@) */ -NTSTATUS WINAPI NtDisplayString( UNICODE_STRING *string ) +NTSTATUS WINE_SYSCALL NtDisplayString( UNICODE_STRING *string ) { ERR( "%s\n", debugstr_us(string) ); return STATUS_SUCCESS; @@ -3667,9 +3667,9 @@ NTSTATUS WINAPI NtDisplayString( UNICODE_STRING *string ) /****************************************************************************** * NtRaiseHardError (NTDLL.@) */ -NTSTATUS WINAPI NtRaiseHardError( NTSTATUS status, ULONG count, - UNICODE_STRING *params_mask, void **params, - HARDERROR_RESPONSE_OPTION option, HARDERROR_RESPONSE *response ) +NTSTATUS WINE_SYSCALL NtRaiseHardError( NTSTATUS status, ULONG count, + UNICODE_STRING *params_mask, void **params, + HARDERROR_RESPONSE_OPTION option, HARDERROR_RESPONSE *response ) { FIXME( "%08x stub\n", status ); return STATUS_NOT_IMPLEMENTED; @@ -3679,7 +3679,7 @@ NTSTATUS WINAPI NtRaiseHardError( NTSTATUS status, ULONG count, /****************************************************************************** * NtInitiatePowerAction (NTDLL.@) */ -NTSTATUS WINAPI NtInitiatePowerAction( POWER_ACTION action, SYSTEM_POWER_STATE state, +NTSTATUS WINE_SYSCALL NtInitiatePowerAction( POWER_ACTION action, SYSTEM_POWER_STATE state, ULONG flags, BOOLEAN async ) { FIXME( "(%d,%d,0x%08x,%d),stub\n", action, state, flags, async ); @@ -3690,7 +3690,7 @@ NTSTATUS WINAPI NtInitiatePowerAction( POWER_ACTION action, SYSTEM_POWER_STATE s /****************************************************************************** * NtSetThreadExecutionState (NTDLL.@) */ -NTSTATUS WINAPI NtSetThreadExecutionState( EXECUTION_STATE new_state, EXECUTION_STATE *old_state ) +NTSTATUS WINE_SYSCALL NtSetThreadExecutionState( EXECUTION_STATE new_state, EXECUTION_STATE *old_state ) { static EXECUTION_STATE current = ES_SYSTEM_REQUIRED | ES_DISPLAY_REQUIRED | ES_USER_PRESENT;
diff --git a/dlls/ntdll/unix/thread.c b/dlls/ntdll/unix/thread.c index e88a935ca31..622a7e57454 100644 --- a/dlls/ntdll/unix/thread.c +++ b/dlls/ntdll/unix/thread.c @@ -1235,9 +1235,9 @@ static void update_attr_list( PS_ATTRIBUTE_LIST *attr, const CLIENT_ID *id, TEB /*********************************************************************** * NtCreateThread (NTDLL.@) */ -NTSTATUS WINAPI NtCreateThread( HANDLE *handle, ACCESS_MASK access, OBJECT_ATTRIBUTES *attr, - HANDLE process, CLIENT_ID *id, CONTEXT *ctx, INITIAL_TEB *teb, - BOOLEAN suspended ) +NTSTATUS WINE_SYSCALL NtCreateThread( HANDLE *handle, ACCESS_MASK access, OBJECT_ATTRIBUTES *attr, + HANDLE process, CLIENT_ID *id, CONTEXT *ctx, INITIAL_TEB *teb, + BOOLEAN suspended ) { FIXME( "%p %d %p %p %p %p %p %d, stub!\n", handle, access, attr, process, id, ctx, teb, suspended ); return STATUS_NOT_IMPLEMENTED; @@ -1246,10 +1246,10 @@ NTSTATUS WINAPI NtCreateThread( HANDLE *handle, ACCESS_MASK access, OBJECT_ATTRI /*********************************************************************** * NtCreateThreadEx (NTDLL.@) */ -NTSTATUS WINAPI NtCreateThreadEx( HANDLE *handle, ACCESS_MASK access, OBJECT_ATTRIBUTES *attr, - HANDLE process, PRTL_THREAD_START_ROUTINE start, void *param, - ULONG flags, ULONG_PTR zero_bits, SIZE_T stack_commit, - SIZE_T stack_reserve, PS_ATTRIBUTE_LIST *attr_list ) +NTSTATUS WINE_SYSCALL NtCreateThreadEx( HANDLE *handle, ACCESS_MASK access, OBJECT_ATTRIBUTES *attr, + HANDLE process, PRTL_THREAD_START_ROUTINE start, void *param, + ULONG flags, ULONG_PTR zero_bits, SIZE_T stack_commit, + SIZE_T stack_reserve, PS_ATTRIBUTE_LIST *attr_list ) { sigset_t sigset; pthread_t pthread_id; @@ -1508,7 +1508,7 @@ NTSTATUS send_debug_event( EXCEPTION_RECORD *rec, CONTEXT *context, BOOL first_c /******************************************************************* * NtRaiseException (NTDLL.@) */ -NTSTATUS WINAPI NtRaiseException( EXCEPTION_RECORD *rec, CONTEXT *context, BOOL first_chance ) +NTSTATUS WINE_SYSCALL NtRaiseException( EXCEPTION_RECORD *rec, CONTEXT *context, BOOL first_chance ) { NTSTATUS status = send_debug_event( rec, context, first_chance );
@@ -1533,8 +1533,8 @@ NTSTATUS WINAPI NtRaiseException( EXCEPTION_RECORD *rec, CONTEXT *context, BOOL /*********************************************************************** * NtOpenThread (NTDLL.@) */ -NTSTATUS WINAPI NtOpenThread( HANDLE *handle, ACCESS_MASK access, - const OBJECT_ATTRIBUTES *attr, const CLIENT_ID *id ) +NTSTATUS WINE_SYSCALL NtOpenThread( HANDLE *handle, ACCESS_MASK access, + const OBJECT_ATTRIBUTES *attr, const CLIENT_ID *id ) { NTSTATUS ret;
@@ -1556,7 +1556,7 @@ NTSTATUS WINAPI NtOpenThread( HANDLE *handle, ACCESS_MASK access, /****************************************************************************** * NtSuspendThread (NTDLL.@) */ -NTSTATUS WINAPI NtSuspendThread( HANDLE handle, ULONG *count ) +NTSTATUS WINE_SYSCALL NtSuspendThread( HANDLE handle, ULONG *count ) { NTSTATUS ret;
@@ -1576,7 +1576,7 @@ NTSTATUS WINAPI NtSuspendThread( HANDLE handle, ULONG *count ) /****************************************************************************** * NtResumeThread (NTDLL.@) */ -NTSTATUS WINAPI NtResumeThread( HANDLE handle, ULONG *count ) +NTSTATUS WINE_SYSCALL NtResumeThread( HANDLE handle, ULONG *count ) { NTSTATUS ret;
@@ -1596,7 +1596,7 @@ NTSTATUS WINAPI NtResumeThread( HANDLE handle, ULONG *count ) /****************************************************************************** * NtAlertResumeThread (NTDLL.@) */ -NTSTATUS WINAPI NtAlertResumeThread( HANDLE handle, ULONG *count ) +NTSTATUS WINE_SYSCALL NtAlertResumeThread( HANDLE handle, ULONG *count ) { FIXME( "stub: should alert thread %p\n", handle ); return NtResumeThread( handle, count ); @@ -1606,7 +1606,7 @@ NTSTATUS WINAPI NtAlertResumeThread( HANDLE handle, ULONG *count ) /****************************************************************************** * NtAlertThread (NTDLL.@) */ -NTSTATUS WINAPI NtAlertThread( HANDLE handle ) +NTSTATUS WINE_SYSCALL NtAlertThread( HANDLE handle ) { FIXME( "stub: %p\n", handle ); return STATUS_NOT_IMPLEMENTED; @@ -1616,7 +1616,7 @@ NTSTATUS WINAPI NtAlertThread( HANDLE handle ) /****************************************************************************** * NtTerminateThread (NTDLL.@) */ -NTSTATUS WINAPI NtTerminateThread( HANDLE handle, LONG exit_code ) +NTSTATUS WINE_SYSCALL NtTerminateThread( HANDLE handle, LONG exit_code ) { NTSTATUS ret; BOOL self = (handle == GetCurrentThread()); @@ -1640,8 +1640,8 @@ NTSTATUS WINAPI NtTerminateThread( HANDLE handle, LONG exit_code ) /****************************************************************************** * NtQueueApcThread (NTDLL.@) */ -NTSTATUS WINAPI NtQueueApcThread( HANDLE handle, PNTAPCFUNC func, ULONG_PTR arg1, - ULONG_PTR arg2, ULONG_PTR arg3 ) +NTSTATUS WINE_SYSCALL NtQueueApcThread( HANDLE handle, PNTAPCFUNC func, ULONG_PTR arg1, + ULONG_PTR arg2, ULONG_PTR arg3 ) { NTSTATUS ret;
@@ -1845,8 +1845,8 @@ static BOOL is_process_wow64( const CLIENT_ID *id ) /****************************************************************************** * NtQueryInformationThread (NTDLL.@) */ -NTSTATUS WINAPI NtQueryInformationThread( HANDLE handle, THREADINFOCLASS class, - void *data, ULONG length, ULONG *ret_len ) +NTSTATUS WINE_SYSCALL NtQueryInformationThread( HANDLE handle, THREADINFOCLASS class, + void *data, ULONG length, ULONG *ret_len ) { NTSTATUS status;
@@ -2102,8 +2102,8 @@ NTSTATUS WINAPI NtQueryInformationThread( HANDLE handle, THREADINFOCLASS class, /****************************************************************************** * NtSetInformationThread (NTDLL.@) */ -NTSTATUS WINAPI NtSetInformationThread( HANDLE handle, THREADINFOCLASS class, - const void *data, ULONG length ) +NTSTATUS WINE_SYSCALL NtSetInformationThread( HANDLE handle, THREADINFOCLASS class, + const void *data, ULONG length ) { NTSTATUS status;
@@ -2276,7 +2276,7 @@ NTSTATUS WINAPI NtSetInformationThread( HANDLE handle, THREADINFOCLASS class, /****************************************************************************** * NtGetCurrentProcessorNumber (NTDLL.@) */ -ULONG WINAPI NtGetCurrentProcessorNumber(void) +ULONG WINE_SYSCALL NtGetCurrentProcessorNumber(void) { ULONG processor;
@@ -2313,8 +2313,8 @@ ULONG WINAPI NtGetCurrentProcessorNumber(void) /****************************************************************************** * NtGetNextThread (NTDLL.@) */ -NTSTATUS WINAPI NtGetNextThread( HANDLE process, HANDLE thread, ACCESS_MASK access, ULONG attributes, - ULONG flags, HANDLE *handle ) +NTSTATUS WINE_SYSCALL NtGetNextThread( HANDLE process, HANDLE thread, ACCESS_MASK access, ULONG attributes, + ULONG flags, HANDLE *handle ) { HANDLE ret_handle = 0; NTSTATUS ret; diff --git a/dlls/ntdll/unix/virtual.c b/dlls/ntdll/unix/virtual.c index 984af2d4a21..f3f38007682 100644 --- a/dlls/ntdll/unix/virtual.c +++ b/dlls/ntdll/unix/virtual.c @@ -3734,8 +3734,8 @@ void virtual_set_large_address_space(void) * NtAllocateVirtualMemory (NTDLL.@) * ZwAllocateVirtualMemory (NTDLL.@) */ -NTSTATUS WINAPI NtAllocateVirtualMemory( HANDLE process, PVOID *ret, ULONG_PTR zero_bits, - SIZE_T *size_ptr, ULONG type, ULONG protect ) +NTSTATUS WINE_SYSCALL NtAllocateVirtualMemory( HANDLE process, PVOID *ret, ULONG_PTR zero_bits, + SIZE_T *size_ptr, ULONG type, ULONG protect ) { void *base; unsigned int vprot; @@ -3872,9 +3872,9 @@ NTSTATUS WINAPI NtAllocateVirtualMemory( HANDLE process, PVOID *ret, ULONG_PTR z * NtAllocateVirtualMemoryEx (NTDLL.@) * ZwAllocateVirtualMemoryEx (NTDLL.@) */ -NTSTATUS WINAPI NtAllocateVirtualMemoryEx( HANDLE process, PVOID *ret, SIZE_T *size_ptr, ULONG type, - ULONG protect, MEM_EXTENDED_PARAMETER *parameters, - ULONG count ) +NTSTATUS WINE_SYSCALL NtAllocateVirtualMemoryEx( HANDLE process, PVOID *ret, SIZE_T *size_ptr, ULONG type, + ULONG protect, MEM_EXTENDED_PARAMETER *parameters, + ULONG count ) { if (count && !parameters) return STATUS_INVALID_PARAMETER;
@@ -3888,7 +3888,7 @@ NTSTATUS WINAPI NtAllocateVirtualMemoryEx( HANDLE process, PVOID *ret, SIZE_T *s * NtFreeVirtualMemory (NTDLL.@) * ZwFreeVirtualMemory (NTDLL.@) */ -NTSTATUS WINAPI NtFreeVirtualMemory( HANDLE process, PVOID *addr_ptr, SIZE_T *size_ptr, ULONG type ) +NTSTATUS WINE_SYSCALL NtFreeVirtualMemory( HANDLE process, PVOID *addr_ptr, SIZE_T *size_ptr, ULONG type ) { struct file_view *view; char *base; @@ -3975,8 +3975,8 @@ NTSTATUS WINAPI NtFreeVirtualMemory( HANDLE process, PVOID *addr_ptr, SIZE_T *si * NtProtectVirtualMemory (NTDLL.@) * ZwProtectVirtualMemory (NTDLL.@) */ -NTSTATUS WINAPI NtProtectVirtualMemory( HANDLE process, PVOID *addr_ptr, SIZE_T *size_ptr, - ULONG new_prot, ULONG *old_prot ) +NTSTATUS WINE_SYSCALL NtProtectVirtualMemory( HANDLE process, PVOID *addr_ptr, SIZE_T *size_ptr, + ULONG new_prot, ULONG *old_prot ) { struct file_view *view; sigset_t sigset; @@ -4309,9 +4309,9 @@ static NTSTATUS get_memory_section_name( HANDLE process, LPCVOID addr, * NtQueryVirtualMemory (NTDLL.@) * ZwQueryVirtualMemory (NTDLL.@) */ -NTSTATUS WINAPI NtQueryVirtualMemory( HANDLE process, LPCVOID addr, - MEMORY_INFORMATION_CLASS info_class, - PVOID buffer, SIZE_T len, SIZE_T *res_len ) +NTSTATUS WINE_SYSCALL NtQueryVirtualMemory( HANDLE process, LPCVOID addr, + MEMORY_INFORMATION_CLASS info_class, + PVOID buffer, SIZE_T len, SIZE_T *res_len ) { NTSTATUS status;
@@ -4355,7 +4355,7 @@ NTSTATUS WINAPI NtQueryVirtualMemory( HANDLE process, LPCVOID addr, * NtLockVirtualMemory (NTDLL.@) * ZwLockVirtualMemory (NTDLL.@) */ -NTSTATUS WINAPI NtLockVirtualMemory( HANDLE process, PVOID *addr, SIZE_T *size, ULONG unknown ) +NTSTATUS WINE_SYSCALL NtLockVirtualMemory( HANDLE process, PVOID *addr, SIZE_T *size, ULONG unknown ) { NTSTATUS status = STATUS_SUCCESS;
@@ -4392,7 +4392,7 @@ NTSTATUS WINAPI NtLockVirtualMemory( HANDLE process, PVOID *addr, SIZE_T *size, * NtUnlockVirtualMemory (NTDLL.@) * ZwUnlockVirtualMemory (NTDLL.@) */ -NTSTATUS WINAPI NtUnlockVirtualMemory( HANDLE process, PVOID *addr, SIZE_T *size, ULONG unknown ) +NTSTATUS WINE_SYSCALL NtUnlockVirtualMemory( HANDLE process, PVOID *addr, SIZE_T *size, ULONG unknown ) { NTSTATUS status = STATUS_SUCCESS;
@@ -4429,9 +4429,9 @@ NTSTATUS WINAPI NtUnlockVirtualMemory( HANDLE process, PVOID *addr, SIZE_T *size * NtMapViewOfSection (NTDLL.@) * ZwMapViewOfSection (NTDLL.@) */ -NTSTATUS WINAPI NtMapViewOfSection( HANDLE handle, HANDLE process, PVOID *addr_ptr, ULONG_PTR zero_bits, - SIZE_T commit_size, const LARGE_INTEGER *offset_ptr, SIZE_T *size_ptr, - SECTION_INHERIT inherit, ULONG alloc_type, ULONG protect ) +NTSTATUS WINE_SYSCALL NtMapViewOfSection( HANDLE handle, HANDLE process, PVOID *addr_ptr, ULONG_PTR zero_bits, + SIZE_T commit_size, const LARGE_INTEGER *offset_ptr, SIZE_T *size_ptr, + SECTION_INHERIT inherit, ULONG alloc_type, ULONG protect ) { NTSTATUS res; SIZE_T mask = granularity_mask; @@ -4504,7 +4504,7 @@ NTSTATUS WINAPI NtMapViewOfSection( HANDLE handle, HANDLE process, PVOID *addr_p * NtUnmapViewOfSection (NTDLL.@) * ZwUnmapViewOfSection (NTDLL.@) */ -NTSTATUS WINAPI NtUnmapViewOfSection( HANDLE process, PVOID addr ) +NTSTATUS WINE_SYSCALL NtUnmapViewOfSection( HANDLE process, PVOID addr ) { struct file_view *view; NTSTATUS status = STATUS_NOT_MAPPED_VIEW; @@ -4600,8 +4600,8 @@ void virtual_fill_image_information( const pe_image_info_t *pe_info, SECTION_IMA * NtQuerySection (NTDLL.@) * ZwQuerySection (NTDLL.@) */ -NTSTATUS WINAPI NtQuerySection( HANDLE handle, SECTION_INFORMATION_CLASS class, void *ptr, - SIZE_T size, SIZE_T *ret_size ) +NTSTATUS WINE_SYSCALL NtQuerySection( HANDLE handle, SECTION_INFORMATION_CLASS class, void *ptr, + SIZE_T size, SIZE_T *ret_size ) { NTSTATUS status; pe_image_info_t image_info; @@ -4654,8 +4654,8 @@ NTSTATUS WINAPI NtQuerySection( HANDLE handle, SECTION_INFORMATION_CLASS class, * NtFlushVirtualMemory (NTDLL.@) * ZwFlushVirtualMemory (NTDLL.@) */ -NTSTATUS WINAPI NtFlushVirtualMemory( HANDLE process, LPCVOID *addr_ptr, - SIZE_T *size_ptr, ULONG unknown ) +NTSTATUS WINE_SYSCALL NtFlushVirtualMemory( HANDLE process, LPCVOID *addr_ptr, + SIZE_T *size_ptr, ULONG unknown ) { struct file_view *view; NTSTATUS status = STATUS_SUCCESS; @@ -4702,8 +4702,8 @@ NTSTATUS WINAPI NtFlushVirtualMemory( HANDLE process, LPCVOID *addr_ptr, * NtGetWriteWatch (NTDLL.@) * ZwGetWriteWatch (NTDLL.@) */ -NTSTATUS WINAPI NtGetWriteWatch( HANDLE process, ULONG flags, PVOID base, SIZE_T size, PVOID *addresses, - ULONG_PTR *count, ULONG *granularity ) +NTSTATUS WINE_SYSCALL NtGetWriteWatch( HANDLE process, ULONG flags, PVOID base, SIZE_T size, PVOID *addresses, + ULONG_PTR *count, ULONG *granularity ) { NTSTATUS status = STATUS_SUCCESS; sigset_t sigset; @@ -4748,7 +4748,7 @@ NTSTATUS WINAPI NtGetWriteWatch( HANDLE process, ULONG flags, PVOID base, SIZE_T * NtResetWriteWatch (NTDLL.@) * ZwResetWriteWatch (NTDLL.@) */ -NTSTATUS WINAPI NtResetWriteWatch( HANDLE process, PVOID base, SIZE_T size ) +NTSTATUS WINE_SYSCALL NtResetWriteWatch( HANDLE process, PVOID base, SIZE_T size ) { NTSTATUS status = STATUS_SUCCESS; sigset_t sigset; @@ -4776,8 +4776,8 @@ NTSTATUS WINAPI NtResetWriteWatch( HANDLE process, PVOID base, SIZE_T size ) * NtReadVirtualMemory (NTDLL.@) * ZwReadVirtualMemory (NTDLL.@) */ -NTSTATUS WINAPI NtReadVirtualMemory( HANDLE process, const void *addr, void *buffer, - SIZE_T size, SIZE_T *bytes_read ) +NTSTATUS WINE_SYSCALL NtReadVirtualMemory( HANDLE process, const void *addr, void *buffer, + SIZE_T size, SIZE_T *bytes_read ) { NTSTATUS status;
@@ -4806,8 +4806,8 @@ NTSTATUS WINAPI NtReadVirtualMemory( HANDLE process, const void *addr, void *buf * NtWriteVirtualMemory (NTDLL.@) * ZwWriteVirtualMemory (NTDLL.@) */ -NTSTATUS WINAPI NtWriteVirtualMemory( HANDLE process, void *addr, const void *buffer, - SIZE_T size, SIZE_T *bytes_written ) +NTSTATUS WINE_SYSCALL NtWriteVirtualMemory( HANDLE process, void *addr, const void *buffer, + SIZE_T size, SIZE_T *bytes_written ) { NTSTATUS status;
@@ -4836,7 +4836,7 @@ NTSTATUS WINAPI NtWriteVirtualMemory( HANDLE process, void *addr, const void *bu * NtAreMappedFilesTheSame (NTDLL.@) * ZwAreMappedFilesTheSame (NTDLL.@) */ -NTSTATUS WINAPI NtAreMappedFilesTheSame(PVOID addr1, PVOID addr2) +NTSTATUS WINE_SYSCALL NtAreMappedFilesTheSame(PVOID addr1, PVOID addr2) { struct file_view *view1, *view2; NTSTATUS status; @@ -4876,7 +4876,7 @@ NTSTATUS WINAPI NtAreMappedFilesTheSame(PVOID addr1, PVOID addr2) /********************************************************************** * NtFlushInstructionCache (NTDLL.@) */ -NTSTATUS WINAPI NtFlushInstructionCache( HANDLE handle, const void *addr, SIZE_T size ) +NTSTATUS WINE_SYSCALL NtFlushInstructionCache( HANDLE handle, const void *addr, SIZE_T size ) { #if defined(__x86_64__) || defined(__i386__) /* no-op */ @@ -4901,7 +4901,7 @@ NTSTATUS WINAPI NtFlushInstructionCache( HANDLE handle, const void *addr, SIZE_T /********************************************************************** * NtFlushProcessWriteBuffers (NTDLL.@) */ -void WINAPI NtFlushProcessWriteBuffers(void) +void WINE_SYSCALL NtFlushProcessWriteBuffers(void) { static int once = 0; if (!once++) FIXME( "stub\n" ); @@ -4911,8 +4911,8 @@ void WINAPI NtFlushProcessWriteBuffers(void) /********************************************************************** * NtCreatePagingFile (NTDLL.@) */ -NTSTATUS WINAPI NtCreatePagingFile( UNICODE_STRING *name, LARGE_INTEGER *min_size, - LARGE_INTEGER *max_size, LARGE_INTEGER *actual_size ) +NTSTATUS WINE_SYSCALL NtCreatePagingFile( UNICODE_STRING *name, LARGE_INTEGER *min_size, + LARGE_INTEGER *max_size, LARGE_INTEGER *actual_size ) { FIXME( "(%s %p %p %p) stub\n", debugstr_us(name), min_size, max_size, actual_size ); return STATUS_SUCCESS; @@ -4924,8 +4924,8 @@ NTSTATUS WINAPI NtCreatePagingFile( UNICODE_STRING *name, LARGE_INTEGER *min_siz * NtWow64AllocateVirtualMemory64 (NTDLL.@) * ZwWow64AllocateVirtualMemory64 (NTDLL.@) */ -NTSTATUS WINAPI NtWow64AllocateVirtualMemory64( HANDLE process, ULONG64 *ret, ULONG64 zero_bits, - ULONG64 *size_ptr, ULONG type, ULONG protect ) +NTSTATUS WINE_SYSCALL NtWow64AllocateVirtualMemory64( HANDLE process, ULONG64 *ret, ULONG64 zero_bits, + ULONG64 *size_ptr, ULONG type, ULONG protect ) { void *base; SIZE_T size; @@ -4980,8 +4980,8 @@ NTSTATUS WINAPI NtWow64AllocateVirtualMemory64( HANDLE process, ULONG64 *ret, UL * NtWow64ReadVirtualMemory64 (NTDLL.@) * ZwWow64ReadVirtualMemory64 (NTDLL.@) */ -NTSTATUS WINAPI NtWow64ReadVirtualMemory64( HANDLE process, ULONG64 addr, void *buffer, - ULONG64 size, ULONG64 *bytes_read ) +NTSTATUS WINE_SYSCALL NtWow64ReadVirtualMemory64( HANDLE process, ULONG64 addr, void *buffer, + ULONG64 size, ULONG64 *bytes_read ) { NTSTATUS status;
@@ -5012,8 +5012,8 @@ NTSTATUS WINAPI NtWow64ReadVirtualMemory64( HANDLE process, ULONG64 addr, void * * NtWow64WriteVirtualMemory64 (NTDLL.@) * ZwWow64WriteVirtualMemory64 (NTDLL.@) */ -NTSTATUS WINAPI NtWow64WriteVirtualMemory64( HANDLE process, ULONG64 addr, const void *buffer, - ULONG64 size, ULONG64 *bytes_written ) +NTSTATUS WINE_SYSCALL NtWow64WriteVirtualMemory64( HANDLE process, ULONG64 addr, const void *buffer, + ULONG64 size, ULONG64 *bytes_written ) { NTSTATUS status;
@@ -5044,8 +5044,8 @@ NTSTATUS WINAPI NtWow64WriteVirtualMemory64( HANDLE process, ULONG64 addr, const * NtWow64GetNativeSystemInformation (NTDLL.@) * ZwWow64GetNativeSystemInformation (NTDLL.@) */ -NTSTATUS WINAPI NtWow64GetNativeSystemInformation( SYSTEM_INFORMATION_CLASS class, void *info, - ULONG len, ULONG *retlen ) +NTSTATUS WINE_SYSCALL NtWow64GetNativeSystemInformation( SYSTEM_INFORMATION_CLASS class, void *info, + ULONG len, ULONG *retlen ) { switch (class) { diff --git a/include/wine/debug.h b/include/wine/debug.h index 6aac7fe82e8..2255f62e502 100644 --- a/include/wine/debug.h +++ b/include/wine/debug.h @@ -143,7 +143,6 @@ struct __wine_debug_channel
#endif /* !__GNUC__ && !__SUNPRO_C */
-extern int WINAPI __wine_dbg_write( const char *str, unsigned int len ); extern unsigned char __cdecl __wine_dbg_get_channel_flags( struct __wine_debug_channel *channel ); extern const char * __cdecl __wine_dbg_strdup( const char *str ); extern int __cdecl __wine_dbg_output( const char *str ); diff --git a/include/wine/server.h b/include/wine/server.h index 57bcdbbb00d..9cb2a469cce 100644 --- a/include/wine/server.h +++ b/include/wine/server.h @@ -49,9 +49,9 @@ struct __server_request_info struct __server_iovec data[__SERVER_MAX_DATA]; /* request variable size data */ };
-extern unsigned int CDECL wine_server_call( void *req_ptr ); -extern int CDECL wine_server_fd_to_handle( int fd, unsigned int access, unsigned int attributes, HANDLE *handle ); -extern int CDECL wine_server_handle_to_fd( HANDLE handle, unsigned int access, int *unix_fd, unsigned int *options ); +extern unsigned int WINE_SYSCALL_CDECL wine_server_call( void *req_ptr ); +extern int WINE_SYSCALL_CDECL wine_server_fd_to_handle( int fd, unsigned int access, unsigned int attributes, HANDLE *handle ); +extern int WINE_SYSCALL_CDECL wine_server_handle_to_fd( HANDLE handle, unsigned int access, int *unix_fd, unsigned int *options );
/* do a server call and set the last error code */ static inline unsigned int wine_server_call_err( void *req_ptr ) diff --git a/include/wine/unixlib.h b/include/wine/unixlib.h index 072401a0714..2406a6df032 100644 --- a/include/wine/unixlib.h +++ b/include/wine/unixlib.h @@ -24,7 +24,7 @@ typedef NTSTATUS (*unixlib_entry_t)( void *args ); typedef UINT64 unixlib_handle_t;
-extern NTSTATUS WINAPI __wine_unix_call( unixlib_handle_t handle, unsigned int code, void *args ); +extern NTSTATUS WINE_SYSCALL __wine_unix_call( unixlib_handle_t handle, unsigned int code, void *args );
/* some useful helpers from ntdll */ extern DWORD ntdll_umbstowcs( const char *src, DWORD srclen, WCHAR *dst, DWORD dstlen ); diff --git a/include/winternl.h b/include/winternl.h index 9e96591ad8e..aee57cbef33 100644 --- a/include/winternl.h +++ b/include/winternl.h @@ -3755,6 +3755,14 @@ typedef struct * Function declarations */
+#if defined(WINE_UNIX_LIB) && defined(_NTSYSTEM_) +#define WINE_SYSCALL +#define WINE_SYSCALL_CDECL +#else +#define WINE_SYSCALL WINAPI +#define WINE_SYSCALL_CDECL CDECL +#endif + NTSYSAPI void WINAPI DbgBreakPoint(void); NTSYSAPI NTSTATUS WINAPIV DbgPrint(LPCSTR fmt, ...); NTSYSAPI NTSTATUS WINAPIV DbgPrintEx(ULONG iComponentId, ULONG Level, LPCSTR fmt, ...); @@ -3794,264 +3802,264 @@ NTSYSAPI void WINAPI LdrShutdownThread(void); NTSYSAPI NTSTATUS WINAPI LdrUnloadDll(HMODULE); NTSYSAPI NTSTATUS WINAPI LdrUnlockLoaderLock(ULONG,ULONG_PTR); NTSYSAPI NTSTATUS WINAPI LdrUnregisterDllNotification(void*); -NTSYSAPI NTSTATUS WINAPI NtAcceptConnectPort(PHANDLE,ULONG,PLPC_MESSAGE,BOOLEAN,PLPC_SECTION_WRITE,PLPC_SECTION_READ); -NTSYSAPI NTSTATUS WINAPI NtAccessCheck(PSECURITY_DESCRIPTOR,HANDLE,ACCESS_MASK,PGENERIC_MAPPING,PPRIVILEGE_SET,PULONG,PULONG,NTSTATUS*); -NTSYSAPI NTSTATUS WINAPI NtAccessCheckAndAuditAlarm(PUNICODE_STRING,HANDLE,PUNICODE_STRING,PUNICODE_STRING,PSECURITY_DESCRIPTOR,ACCESS_MASK,PGENERIC_MAPPING,BOOLEAN,PACCESS_MASK,PBOOLEAN,PBOOLEAN); -NTSYSAPI NTSTATUS WINAPI NtAddAtom(const WCHAR*,ULONG,RTL_ATOM*); -NTSYSAPI NTSTATUS WINAPI NtAdjustGroupsToken(HANDLE,BOOLEAN,PTOKEN_GROUPS,ULONG,PTOKEN_GROUPS,PULONG); -NTSYSAPI NTSTATUS WINAPI NtAdjustPrivilegesToken(HANDLE,BOOLEAN,PTOKEN_PRIVILEGES,DWORD,PTOKEN_PRIVILEGES,PDWORD); -NTSYSAPI NTSTATUS WINAPI NtAlertResumeThread(HANDLE,PULONG); -NTSYSAPI NTSTATUS WINAPI NtAlertThread(HANDLE ThreadHandle); -NTSYSAPI NTSTATUS WINAPI NtAllocateLocallyUniqueId(PLUID lpLuid); -NTSYSAPI NTSTATUS WINAPI NtAllocateUuids(PULARGE_INTEGER,PULONG,PULONG,PUCHAR); -NTSYSAPI NTSTATUS WINAPI NtAllocateVirtualMemory(HANDLE,PVOID*,ULONG_PTR,SIZE_T*,ULONG,ULONG); -NTSYSAPI NTSTATUS WINAPI NtAllocateVirtualMemoryEx(HANDLE,PVOID*,SIZE_T*,ULONG,ULONG,MEM_EXTENDED_PARAMETER*,ULONG); -NTSYSAPI NTSTATUS WINAPI NtAreMappedFilesTheSame(PVOID,PVOID); -NTSYSAPI NTSTATUS WINAPI NtAssignProcessToJobObject(HANDLE,HANDLE); -NTSYSAPI NTSTATUS WINAPI NtCallbackReturn(PVOID,ULONG,NTSTATUS); -NTSYSAPI NTSTATUS WINAPI NtCancelIoFile(HANDLE,PIO_STATUS_BLOCK); -NTSYSAPI NTSTATUS WINAPI NtCancelIoFileEx(HANDLE,PIO_STATUS_BLOCK,PIO_STATUS_BLOCK); -NTSYSAPI NTSTATUS WINAPI NtCancelTimer(HANDLE, BOOLEAN*); -NTSYSAPI NTSTATUS WINAPI NtClearEvent(HANDLE); -NTSYSAPI NTSTATUS WINAPI NtClose(HANDLE); -NTSYSAPI NTSTATUS WINAPI NtCloseObjectAuditAlarm(PUNICODE_STRING,HANDLE,BOOLEAN); -NTSYSAPI NTSTATUS WINAPI NtCompleteConnectPort(HANDLE); -NTSYSAPI NTSTATUS WINAPI NtConnectPort(PHANDLE,PUNICODE_STRING,PSECURITY_QUALITY_OF_SERVICE,PLPC_SECTION_WRITE,PLPC_SECTION_READ,PULONG,PVOID,PULONG); -NTSYSAPI NTSTATUS WINAPI NtContinue(PCONTEXT,BOOLEAN); -NTSYSAPI NTSTATUS WINAPI NtCreateDebugObject(HANDLE*,ACCESS_MASK,OBJECT_ATTRIBUTES*,ULONG); -NTSYSAPI NTSTATUS WINAPI NtCreateDirectoryObject(PHANDLE,ACCESS_MASK,POBJECT_ATTRIBUTES); -NTSYSAPI NTSTATUS WINAPI NtCreateEvent(PHANDLE,ACCESS_MASK,const OBJECT_ATTRIBUTES *,EVENT_TYPE,BOOLEAN); -NTSYSAPI NTSTATUS WINAPI NtCreateEventPair(PHANDLE,ACCESS_MASK,POBJECT_ATTRIBUTES); -NTSYSAPI NTSTATUS WINAPI NtCreateFile(PHANDLE,ACCESS_MASK,POBJECT_ATTRIBUTES,PIO_STATUS_BLOCK,PLARGE_INTEGER,ULONG,ULONG,ULONG,ULONG,PVOID,ULONG); -NTSYSAPI NTSTATUS WINAPI NtCreateIoCompletion(PHANDLE,ACCESS_MASK,POBJECT_ATTRIBUTES,ULONG); -NTSYSAPI NTSTATUS WINAPI NtCreateJobObject(PHANDLE,ACCESS_MASK,const OBJECT_ATTRIBUTES*); -NTSYSAPI NTSTATUS WINAPI NtCreateKey(PHANDLE,ACCESS_MASK,const OBJECT_ATTRIBUTES*,ULONG,const UNICODE_STRING*,ULONG,PULONG); -NTSYSAPI NTSTATUS WINAPI NtCreateKeyTransacted(PHANDLE,ACCESS_MASK,const OBJECT_ATTRIBUTES*,ULONG,const UNICODE_STRING*,ULONG,HANDLE,ULONG*); -NTSYSAPI NTSTATUS WINAPI NtCreateKeyedEvent(HANDLE*,ACCESS_MASK,const OBJECT_ATTRIBUTES*,ULONG); -NTSYSAPI NTSTATUS WINAPI NtCreateLowBoxToken(HANDLE*,HANDLE,ACCESS_MASK,OBJECT_ATTRIBUTES*,SID*,ULONG,SID_AND_ATTRIBUTES*,ULONG,HANDLE*); -NTSYSAPI NTSTATUS WINAPI NtCreateMailslotFile(PHANDLE,ACCESS_MASK,POBJECT_ATTRIBUTES,PIO_STATUS_BLOCK,ULONG,ULONG,ULONG,PLARGE_INTEGER); -NTSYSAPI NTSTATUS WINAPI NtCreateMutant(HANDLE*,ACCESS_MASK,const OBJECT_ATTRIBUTES*,BOOLEAN); -NTSYSAPI NTSTATUS WINAPI NtCreateNamedPipeFile(PHANDLE,ULONG,POBJECT_ATTRIBUTES,PIO_STATUS_BLOCK,ULONG,ULONG,ULONG,ULONG,ULONG,ULONG,ULONG,ULONG,ULONG,PLARGE_INTEGER); -NTSYSAPI NTSTATUS WINAPI NtCreatePagingFile(PUNICODE_STRING,PLARGE_INTEGER,PLARGE_INTEGER,PLARGE_INTEGER); -NTSYSAPI NTSTATUS WINAPI NtCreatePort(PHANDLE,POBJECT_ATTRIBUTES,ULONG,ULONG,PULONG); -NTSYSAPI NTSTATUS WINAPI NtCreateProcess(PHANDLE,ACCESS_MASK,POBJECT_ATTRIBUTES,HANDLE,BOOLEAN,HANDLE,HANDLE,HANDLE); -NTSYSAPI NTSTATUS WINAPI NtCreateProfile(PHANDLE,HANDLE,PVOID,ULONG,ULONG,PVOID,ULONG,KPROFILE_SOURCE,KAFFINITY); -NTSYSAPI NTSTATUS WINAPI NtCreateSection(HANDLE*,ACCESS_MASK,const OBJECT_ATTRIBUTES*,const LARGE_INTEGER*,ULONG,ULONG,HANDLE); -NTSYSAPI NTSTATUS WINAPI NtCreateSemaphore(PHANDLE,ACCESS_MASK,const OBJECT_ATTRIBUTES*,LONG,LONG); -NTSYSAPI NTSTATUS WINAPI NtCreateSymbolicLinkObject(PHANDLE,ACCESS_MASK,POBJECT_ATTRIBUTES,PUNICODE_STRING); -NTSYSAPI NTSTATUS WINAPI NtCreateThread(PHANDLE,ACCESS_MASK,POBJECT_ATTRIBUTES,HANDLE,PCLIENT_ID,PCONTEXT,PINITIAL_TEB,BOOLEAN); -NTSYSAPI NTSTATUS WINAPI NtCreateThreadEx(HANDLE*,ACCESS_MASK,OBJECT_ATTRIBUTES*,HANDLE,PRTL_THREAD_START_ROUTINE,void*,ULONG,ULONG_PTR,SIZE_T,SIZE_T,PS_ATTRIBUTE_LIST*); -NTSYSAPI NTSTATUS WINAPI NtCreateTimer(HANDLE*, ACCESS_MASK, const OBJECT_ATTRIBUTES*, TIMER_TYPE); -NTSYSAPI NTSTATUS WINAPI NtCreateToken(PHANDLE,ACCESS_MASK,POBJECT_ATTRIBUTES,TOKEN_TYPE,PLUID,PLARGE_INTEGER,PTOKEN_USER,PTOKEN_GROUPS,PTOKEN_PRIVILEGES,PTOKEN_OWNER,PTOKEN_PRIMARY_GROUP,PTOKEN_DEFAULT_DACL,PTOKEN_SOURCE); -NTSYSAPI NTSTATUS WINAPI NtCreateUserProcess(HANDLE*,HANDLE*,ACCESS_MASK,ACCESS_MASK,OBJECT_ATTRIBUTES*,OBJECT_ATTRIBUTES*,ULONG,ULONG,RTL_USER_PROCESS_PARAMETERS*,PS_CREATE_INFO*,PS_ATTRIBUTE_LIST*); -NTSYSAPI NTSTATUS WINAPI NtDebugActiveProcess(HANDLE,HANDLE); -NTSYSAPI NTSTATUS WINAPI NtDebugContinue(HANDLE,CLIENT_ID*,NTSTATUS); -NTSYSAPI NTSTATUS WINAPI NtDelayExecution(BOOLEAN,const LARGE_INTEGER*); -NTSYSAPI NTSTATUS WINAPI NtDeleteAtom(RTL_ATOM); -NTSYSAPI NTSTATUS WINAPI NtDeleteFile(POBJECT_ATTRIBUTES); -NTSYSAPI NTSTATUS WINAPI NtDeleteKey(HANDLE); -NTSYSAPI NTSTATUS WINAPI NtDeleteValueKey(HANDLE,const UNICODE_STRING *); -NTSYSAPI NTSTATUS WINAPI NtDeviceIoControlFile(HANDLE,HANDLE,PIO_APC_ROUTINE,PVOID,PIO_STATUS_BLOCK,ULONG,PVOID,ULONG,PVOID,ULONG); -NTSYSAPI NTSTATUS WINAPI NtDisplayString(PUNICODE_STRING); -NTSYSAPI NTSTATUS WINAPI NtDuplicateObject(HANDLE,HANDLE,HANDLE,PHANDLE,ACCESS_MASK,ULONG,ULONG); -NTSYSAPI NTSTATUS WINAPI NtDuplicateToken(HANDLE,ACCESS_MASK,POBJECT_ATTRIBUTES,SECURITY_IMPERSONATION_LEVEL,TOKEN_TYPE,PHANDLE); -NTSYSAPI NTSTATUS WINAPI NtEnumerateKey(HANDLE,ULONG,KEY_INFORMATION_CLASS,void *,DWORD,DWORD *); -NTSYSAPI NTSTATUS WINAPI NtEnumerateValueKey(HANDLE,ULONG,KEY_VALUE_INFORMATION_CLASS,PVOID,ULONG,PULONG); -NTSYSAPI NTSTATUS WINAPI NtExtendSection(HANDLE,PLARGE_INTEGER); -NTSYSAPI NTSTATUS WINAPI NtFilterToken(HANDLE,ULONG,TOKEN_GROUPS*,TOKEN_PRIVILEGES*,TOKEN_GROUPS*,HANDLE*); -NTSYSAPI NTSTATUS WINAPI NtFindAtom(const WCHAR*,ULONG,RTL_ATOM*); -NTSYSAPI NTSTATUS WINAPI NtFlushBuffersFile(HANDLE,IO_STATUS_BLOCK*); -NTSYSAPI NTSTATUS WINAPI NtFlushInstructionCache(HANDLE,LPCVOID,SIZE_T); -NTSYSAPI NTSTATUS WINAPI NtFlushKey(HANDLE); -NTSYSAPI void WINAPI NtFlushProcessWriteBuffers(void); -NTSYSAPI NTSTATUS WINAPI NtFlushVirtualMemory(HANDLE,LPCVOID*,SIZE_T*,ULONG); -NTSYSAPI NTSTATUS WINAPI NtFlushWriteBuffer(VOID); -NTSYSAPI NTSTATUS WINAPI NtFreeVirtualMemory(HANDLE,PVOID*,SIZE_T*,ULONG); -NTSYSAPI NTSTATUS WINAPI NtFsControlFile(HANDLE,HANDLE,PIO_APC_ROUTINE,PVOID,PIO_STATUS_BLOCK,ULONG,PVOID,ULONG,PVOID,ULONG); -NTSYSAPI NTSTATUS WINAPI NtGetContextThread(HANDLE,CONTEXT*); -NTSYSAPI ULONG WINAPI NtGetCurrentProcessorNumber(void); -NTSYSAPI NTSTATUS WINAPI NtGetNextThread(HANDLE,HANDLE,ACCESS_MASK,ULONG,ULONG,HANDLE*); -NTSYSAPI NTSTATUS WINAPI NtGetNlsSectionPtr(ULONG,ULONG,void*,void**,SIZE_T*); -NTSYSAPI NTSTATUS WINAPI NtGetPlugPlayEvent(ULONG,ULONG,PVOID,ULONG); -NTSYSAPI ULONG WINAPI NtGetTickCount(VOID); -NTSYSAPI NTSTATUS WINAPI NtGetWriteWatch(HANDLE,ULONG,PVOID,SIZE_T,PVOID*,ULONG_PTR*,ULONG*); -NTSYSAPI NTSTATUS WINAPI NtImpersonateAnonymousToken(HANDLE); -NTSYSAPI NTSTATUS WINAPI NtImpersonateClientOfPort(HANDLE,PPORT_MESSAGE); -NTSYSAPI NTSTATUS WINAPI NtImpersonateThread(HANDLE,HANDLE,PSECURITY_QUALITY_OF_SERVICE); -NTSYSAPI NTSTATUS WINAPI NtInitializeRegistry(BOOLEAN); -NTSYSAPI NTSTATUS WINAPI NtInitiatePowerAction(POWER_ACTION,SYSTEM_POWER_STATE,ULONG,BOOLEAN); -NTSYSAPI NTSTATUS WINAPI NtIsProcessInJob(HANDLE,HANDLE); -NTSYSAPI NTSTATUS WINAPI NtListenPort(HANDLE,PLPC_MESSAGE); -NTSYSAPI NTSTATUS WINAPI NtLoadDriver(const UNICODE_STRING *); -NTSYSAPI NTSTATUS WINAPI NtLoadKey(const OBJECT_ATTRIBUTES *,OBJECT_ATTRIBUTES *); -NTSYSAPI NTSTATUS WINAPI NtLoadKey2(const OBJECT_ATTRIBUTES *,OBJECT_ATTRIBUTES *,ULONG); -NTSYSAPI NTSTATUS WINAPI NtLockFile(HANDLE,HANDLE,PIO_APC_ROUTINE,void*,PIO_STATUS_BLOCK,PLARGE_INTEGER,PLARGE_INTEGER,ULONG*,BOOLEAN,BOOLEAN); -NTSYSAPI NTSTATUS WINAPI NtLockVirtualMemory(HANDLE,PVOID*,SIZE_T*,ULONG); -NTSYSAPI NTSTATUS WINAPI NtMakeTemporaryObject(HANDLE); -NTSYSAPI NTSTATUS WINAPI NtMapViewOfSection(HANDLE,HANDLE,PVOID*,ULONG_PTR,SIZE_T,const LARGE_INTEGER*,SIZE_T*,SECTION_INHERIT,ULONG,ULONG); -NTSYSAPI NTSTATUS WINAPI NtNotifyChangeDirectoryFile(HANDLE,HANDLE,PIO_APC_ROUTINE,PVOID,PIO_STATUS_BLOCK,PVOID,ULONG,ULONG,BOOLEAN); -NTSYSAPI NTSTATUS WINAPI NtNotifyChangeKey(HANDLE,HANDLE,PIO_APC_ROUTINE,PVOID,PIO_STATUS_BLOCK,ULONG,BOOLEAN,PVOID,ULONG,BOOLEAN); -NTSYSAPI NTSTATUS WINAPI NtNotifyChangeMultipleKeys(HANDLE,ULONG,OBJECT_ATTRIBUTES*,HANDLE,PIO_APC_ROUTINE,PVOID,PIO_STATUS_BLOCK,ULONG,BOOLEAN,PVOID,ULONG,BOOLEAN); -NTSYSAPI NTSTATUS WINAPI NtOpenDirectoryObject(PHANDLE,ACCESS_MASK,const OBJECT_ATTRIBUTES*); -NTSYSAPI NTSTATUS WINAPI NtOpenEvent(PHANDLE,ACCESS_MASK,const OBJECT_ATTRIBUTES *); -NTSYSAPI NTSTATUS WINAPI NtOpenEventPair(PHANDLE,ACCESS_MASK,const OBJECT_ATTRIBUTES*); -NTSYSAPI NTSTATUS WINAPI NtOpenFile(PHANDLE,ACCESS_MASK,POBJECT_ATTRIBUTES,PIO_STATUS_BLOCK,ULONG,ULONG); -NTSYSAPI NTSTATUS WINAPI NtOpenIoCompletion(PHANDLE,ACCESS_MASK,const OBJECT_ATTRIBUTES*); -NTSYSAPI NTSTATUS WINAPI NtOpenJobObject(PHANDLE,ACCESS_MASK,const OBJECT_ATTRIBUTES*); -NTSYSAPI NTSTATUS WINAPI NtOpenKey(PHANDLE,ACCESS_MASK,const OBJECT_ATTRIBUTES *); -NTSYSAPI NTSTATUS WINAPI NtOpenKeyEx(PHANDLE,ACCESS_MASK,const OBJECT_ATTRIBUTES*,ULONG); -NTSYSAPI NTSTATUS WINAPI NtOpenKeyTransacted(PHANDLE,ACCESS_MASK,const OBJECT_ATTRIBUTES*,HANDLE); -NTSYSAPI NTSTATUS WINAPI NtOpenKeyTransactedEx(PHANDLE,ACCESS_MASK,const OBJECT_ATTRIBUTES*,ULONG,HANDLE); -NTSYSAPI NTSTATUS WINAPI NtOpenKeyedEvent(HANDLE*,ACCESS_MASK,const OBJECT_ATTRIBUTES*); -NTSYSAPI NTSTATUS WINAPI NtOpenMutant(PHANDLE,ACCESS_MASK,const OBJECT_ATTRIBUTES*); -NTSYSAPI NTSTATUS WINAPI NtOpenObjectAuditAlarm(PUNICODE_STRING,PHANDLE,PUNICODE_STRING,PUNICODE_STRING,PSECURITY_DESCRIPTOR,HANDLE,ACCESS_MASK,ACCESS_MASK,PPRIVILEGE_SET,BOOLEAN,BOOLEAN,PBOOLEAN); -NTSYSAPI NTSTATUS WINAPI NtOpenProcess(PHANDLE,ACCESS_MASK,const OBJECT_ATTRIBUTES*,const CLIENT_ID*); -NTSYSAPI NTSTATUS WINAPI NtOpenProcessToken(HANDLE,DWORD,HANDLE *); -NTSYSAPI NTSTATUS WINAPI NtOpenProcessTokenEx(HANDLE,DWORD,DWORD,HANDLE *); -NTSYSAPI NTSTATUS WINAPI NtOpenSection(HANDLE*,ACCESS_MASK,const OBJECT_ATTRIBUTES*); -NTSYSAPI NTSTATUS WINAPI NtOpenSemaphore(PHANDLE,ACCESS_MASK,const OBJECT_ATTRIBUTES*); -NTSYSAPI NTSTATUS WINAPI NtOpenSymbolicLinkObject(PHANDLE,ACCESS_MASK,const OBJECT_ATTRIBUTES*); -NTSYSAPI NTSTATUS WINAPI NtOpenThread(HANDLE*,ACCESS_MASK,const OBJECT_ATTRIBUTES*,const CLIENT_ID*); -NTSYSAPI NTSTATUS WINAPI NtOpenThreadToken(HANDLE,DWORD,BOOLEAN,HANDLE *); -NTSYSAPI NTSTATUS WINAPI NtOpenThreadTokenEx(HANDLE,DWORD,BOOLEAN,DWORD,HANDLE *); -NTSYSAPI NTSTATUS WINAPI NtOpenTimer(HANDLE*, ACCESS_MASK, const OBJECT_ATTRIBUTES*); -NTSYSAPI NTSTATUS WINAPI NtPowerInformation(POWER_INFORMATION_LEVEL,PVOID,ULONG,PVOID,ULONG); -NTSYSAPI NTSTATUS WINAPI NtPrivilegeCheck(HANDLE,PPRIVILEGE_SET,PBOOLEAN); -NTSYSAPI NTSTATUS WINAPI NtPrivilegeObjectAuditAlarm(PUNICODE_STRING,HANDLE,HANDLE,ULONG,PPRIVILEGE_SET,BOOLEAN); -NTSYSAPI NTSTATUS WINAPI NtPrivilegedServiceAuditAlarm(PUNICODE_STRING,PUNICODE_STRING,HANDLE,PPRIVILEGE_SET,BOOLEAN); -NTSYSAPI NTSTATUS WINAPI NtProtectVirtualMemory(HANDLE,PVOID*,SIZE_T*,ULONG,ULONG*); -NTSYSAPI NTSTATUS WINAPI NtPulseEvent(HANDLE,LONG*); -NTSYSAPI NTSTATUS WINAPI NtQueueApcThread(HANDLE,PNTAPCFUNC,ULONG_PTR,ULONG_PTR,ULONG_PTR); -NTSYSAPI NTSTATUS WINAPI NtQueryAttributesFile(const OBJECT_ATTRIBUTES*,FILE_BASIC_INFORMATION*); -NTSYSAPI NTSTATUS WINAPI NtQueryDefaultLocale(BOOLEAN,LCID*); -NTSYSAPI NTSTATUS WINAPI NtQueryDefaultUILanguage(LANGID*); -NTSYSAPI NTSTATUS WINAPI NtQueryDirectoryFile(HANDLE,HANDLE,PIO_APC_ROUTINE,PVOID,PIO_STATUS_BLOCK,PVOID,ULONG,FILE_INFORMATION_CLASS,BOOLEAN,PUNICODE_STRING,BOOLEAN); -NTSYSAPI NTSTATUS WINAPI NtQueryDirectoryObject(HANDLE,PDIRECTORY_BASIC_INFORMATION,ULONG,BOOLEAN,BOOLEAN,PULONG,PULONG); -NTSYSAPI NTSTATUS WINAPI NtQueryEaFile(HANDLE,PIO_STATUS_BLOCK,PVOID,ULONG,BOOLEAN,PVOID,ULONG,PULONG,BOOLEAN); -NTSYSAPI NTSTATUS WINAPI NtQueryEvent(HANDLE,EVENT_INFORMATION_CLASS,PVOID,ULONG,PULONG); -NTSYSAPI NTSTATUS WINAPI NtQueryFullAttributesFile(const OBJECT_ATTRIBUTES*,FILE_NETWORK_OPEN_INFORMATION*); -NTSYSAPI NTSTATUS WINAPI NtQueryInformationAtom(RTL_ATOM,ATOM_INFORMATION_CLASS,PVOID,ULONG,ULONG*); -NTSYSAPI NTSTATUS WINAPI NtQueryInformationFile(HANDLE,PIO_STATUS_BLOCK,PVOID,LONG,FILE_INFORMATION_CLASS); -NTSYSAPI NTSTATUS WINAPI NtQueryInformationJobObject(HANDLE,JOBOBJECTINFOCLASS,PVOID,ULONG,PULONG); -NTSYSAPI NTSTATUS WINAPI NtQueryInformationPort(HANDLE,PORT_INFORMATION_CLASS,PVOID,ULONG,PULONG); -NTSYSAPI NTSTATUS WINAPI NtQueryInformationProcess(HANDLE,PROCESSINFOCLASS,PVOID,ULONG,PULONG); -NTSYSAPI NTSTATUS WINAPI NtQueryInformationThread(HANDLE,THREADINFOCLASS,PVOID,ULONG,PULONG); -NTSYSAPI NTSTATUS WINAPI NtQueryInformationToken(HANDLE,TOKEN_INFORMATION_CLASS,PVOID,ULONG,PULONG); -NTSYSAPI NTSTATUS WINAPI NtQueryInstallUILanguage(LANGID*); -NTSYSAPI NTSTATUS WINAPI NtQueryIntervalProfile(KPROFILE_SOURCE,PULONG); -NTSYSAPI NTSTATUS WINAPI NtQueryIoCompletion(HANDLE,IO_COMPLETION_INFORMATION_CLASS,PVOID,ULONG,PULONG); -NTSYSAPI NTSTATUS WINAPI NtQueryKey(HANDLE,KEY_INFORMATION_CLASS,void *,DWORD,DWORD *); -NTSYSAPI NTSTATUS WINAPI NtQueryMultipleValueKey(HANDLE,PKEY_MULTIPLE_VALUE_INFORMATION,ULONG,PVOID,ULONG,PULONG); -NTSYSAPI NTSTATUS WINAPI NtQueryMutant(HANDLE,MUTANT_INFORMATION_CLASS,PVOID,ULONG,PULONG); -NTSYSAPI NTSTATUS WINAPI NtQueryObject(HANDLE, OBJECT_INFORMATION_CLASS, PVOID, ULONG, PULONG); -NTSYSAPI NTSTATUS WINAPI NtQueryOpenSubKeys(POBJECT_ATTRIBUTES,PULONG); -NTSYSAPI NTSTATUS WINAPI NtQueryPerformanceCounter(PLARGE_INTEGER, PLARGE_INTEGER); -NTSYSAPI NTSTATUS WINAPI NtQuerySecurityObject(HANDLE,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR,ULONG,PULONG); -NTSYSAPI NTSTATUS WINAPI NtQuerySection(HANDLE,SECTION_INFORMATION_CLASS,PVOID,SIZE_T,SIZE_T*); -NTSYSAPI NTSTATUS WINAPI NtQuerySemaphore(HANDLE,SEMAPHORE_INFORMATION_CLASS,PVOID,ULONG,PULONG); -NTSYSAPI NTSTATUS WINAPI NtQuerySymbolicLinkObject(HANDLE,PUNICODE_STRING,PULONG); -NTSYSAPI NTSTATUS WINAPI NtQuerySystemEnvironmentValue(PUNICODE_STRING,PWCHAR,ULONG,PULONG); -NTSYSAPI NTSTATUS WINAPI NtQuerySystemEnvironmentValueEx(PUNICODE_STRING,GUID*,void*,ULONG*,ULONG*); -NTSYSAPI NTSTATUS WINAPI NtQuerySystemInformation(SYSTEM_INFORMATION_CLASS,PVOID,ULONG,PULONG); -NTSYSAPI NTSTATUS WINAPI NtQuerySystemInformationEx(SYSTEM_INFORMATION_CLASS,void*,ULONG,void*,ULONG,ULONG*); -NTSYSAPI NTSTATUS WINAPI NtQuerySystemTime(PLARGE_INTEGER); -NTSYSAPI NTSTATUS WINAPI NtQueryTimer(HANDLE,TIMER_INFORMATION_CLASS,PVOID,ULONG,PULONG); -NTSYSAPI NTSTATUS WINAPI NtQueryTimerResolution(PULONG,PULONG,PULONG); -NTSYSAPI NTSTATUS WINAPI NtQueryValueKey(HANDLE,const UNICODE_STRING *,KEY_VALUE_INFORMATION_CLASS,void *,DWORD,DWORD *); -NTSYSAPI NTSTATUS WINAPI NtQueryLicenseValue(const UNICODE_STRING *,ULONG *,PVOID,ULONG,ULONG *); -NTSYSAPI NTSTATUS WINAPI NtQueryVirtualMemory(HANDLE,LPCVOID,MEMORY_INFORMATION_CLASS,PVOID,SIZE_T,SIZE_T*); -NTSYSAPI NTSTATUS WINAPI NtQueryVolumeInformationFile(HANDLE,PIO_STATUS_BLOCK,PVOID,ULONG,FS_INFORMATION_CLASS); -NTSYSAPI NTSTATUS WINAPI NtRaiseException(PEXCEPTION_RECORD,PCONTEXT,BOOL); -NTSYSAPI NTSTATUS WINAPI NtRaiseHardError(NTSTATUS,ULONG,PUNICODE_STRING,PVOID*,HARDERROR_RESPONSE_OPTION,PHARDERROR_RESPONSE); -NTSYSAPI NTSTATUS WINAPI NtReadFile(HANDLE,HANDLE,PIO_APC_ROUTINE,PVOID,PIO_STATUS_BLOCK,PVOID,ULONG,PLARGE_INTEGER,PULONG); -NTSYSAPI NTSTATUS WINAPI NtReadFileScatter(HANDLE,HANDLE,PIO_APC_ROUTINE,PVOID,PIO_STATUS_BLOCK,FILE_SEGMENT_ELEMENT*,ULONG,PLARGE_INTEGER,PULONG); -NTSYSAPI NTSTATUS WINAPI NtReadRequestData(HANDLE,PLPC_MESSAGE,ULONG,PVOID,ULONG,PULONG); -NTSYSAPI NTSTATUS WINAPI NtReadVirtualMemory(HANDLE,const void*,void*,SIZE_T,SIZE_T*); -NTSYSAPI NTSTATUS WINAPI NtRegisterThreadTerminatePort(HANDLE); -NTSYSAPI NTSTATUS WINAPI NtReleaseKeyedEvent(HANDLE,const void*,BOOLEAN,const LARGE_INTEGER*); -NTSYSAPI NTSTATUS WINAPI NtReleaseMutant(HANDLE,PLONG); -NTSYSAPI NTSTATUS WINAPI NtReleaseSemaphore(HANDLE,ULONG,PULONG); -NTSYSAPI NTSTATUS WINAPI NtRemoveIoCompletion(HANDLE,PULONG_PTR,PULONG_PTR,PIO_STATUS_BLOCK,PLARGE_INTEGER); -NTSYSAPI NTSTATUS WINAPI NtRemoveIoCompletionEx(HANDLE,FILE_IO_COMPLETION_INFORMATION*,ULONG,ULONG*,LARGE_INTEGER*,BOOLEAN); -NTSYSAPI NTSTATUS WINAPI NtRemoveProcessDebug(HANDLE,HANDLE); -NTSYSAPI NTSTATUS WINAPI NtRenameKey(HANDLE,UNICODE_STRING*); -NTSYSAPI NTSTATUS WINAPI NtReplaceKey(POBJECT_ATTRIBUTES,HANDLE,POBJECT_ATTRIBUTES); -NTSYSAPI NTSTATUS WINAPI NtReplyPort(HANDLE,PLPC_MESSAGE); -NTSYSAPI NTSTATUS WINAPI NtReplyWaitReceivePort(HANDLE,PULONG,PLPC_MESSAGE,PLPC_MESSAGE); -NTSYSAPI NTSTATUS WINAPI NtReplyWaitReceivePortEx(HANDLE,PVOID*,PPORT_MESSAGE,PPORT_MESSAGE,PLARGE_INTEGER); -NTSYSAPI NTSTATUS WINAPI NtReplyWaitReplyPort(HANDLE,PLPC_MESSAGE); -NTSYSAPI NTSTATUS WINAPI NtRequestPort(HANDLE,PLPC_MESSAGE); -NTSYSAPI NTSTATUS WINAPI NtRequestWaitReplyPort(HANDLE,PLPC_MESSAGE,PLPC_MESSAGE); -NTSYSAPI NTSTATUS WINAPI NtResetEvent(HANDLE,LONG*); -NTSYSAPI NTSTATUS WINAPI NtResetWriteWatch(HANDLE,PVOID,SIZE_T); -NTSYSAPI NTSTATUS WINAPI NtRestoreKey(HANDLE,HANDLE,ULONG); -NTSYSAPI NTSTATUS WINAPI NtResumeProcess(HANDLE); -NTSYSAPI NTSTATUS WINAPI NtResumeThread(HANDLE,PULONG); -NTSYSAPI NTSTATUS WINAPI NtSaveKey(HANDLE,HANDLE); -NTSYSAPI NTSTATUS WINAPI NtSecureConnectPort(PHANDLE,PUNICODE_STRING,PSECURITY_QUALITY_OF_SERVICE,PLPC_SECTION_WRITE,PSID,PLPC_SECTION_READ,PULONG,PVOID,PULONG); -NTSYSAPI NTSTATUS WINAPI NtSetContextThread(HANDLE,const CONTEXT*); -NTSYSAPI NTSTATUS WINAPI NtSetDefaultHardErrorPort(HANDLE); -NTSYSAPI NTSTATUS WINAPI NtSetDefaultLocale(BOOLEAN,LCID); -NTSYSAPI NTSTATUS WINAPI NtSetDefaultUILanguage(LANGID); -NTSYSAPI NTSTATUS WINAPI NtSetEaFile(HANDLE,PIO_STATUS_BLOCK,PVOID,ULONG); -NTSYSAPI NTSTATUS WINAPI NtSetEvent(HANDLE,LONG*); -NTSYSAPI NTSTATUS WINAPI NtSetHighEventPair(HANDLE); -NTSYSAPI NTSTATUS WINAPI NtSetHighWaitLowEventPair(HANDLE); -NTSYSAPI NTSTATUS WINAPI NtSetHighWaitLowThread(VOID); -NTSYSAPI NTSTATUS WINAPI NtSetInformationDebugObject(HANDLE,DEBUGOBJECTINFOCLASS,PVOID,ULONG,ULONG*); -NTSYSAPI NTSTATUS WINAPI NtSetInformationFile(HANDLE,PIO_STATUS_BLOCK,PVOID,ULONG,FILE_INFORMATION_CLASS); -NTSYSAPI NTSTATUS WINAPI NtSetInformationJobObject(HANDLE,JOBOBJECTINFOCLASS,PVOID,ULONG); -NTSYSAPI NTSTATUS WINAPI NtSetInformationKey(HANDLE,const int,PVOID,ULONG); -NTSYSAPI NTSTATUS WINAPI NtSetInformationObject(HANDLE, OBJECT_INFORMATION_CLASS, PVOID, ULONG); -NTSYSAPI NTSTATUS WINAPI NtSetInformationProcess(HANDLE,PROCESS_INFORMATION_CLASS,PVOID,ULONG); -NTSYSAPI NTSTATUS WINAPI NtSetInformationThread(HANDLE,THREADINFOCLASS,LPCVOID,ULONG); -NTSYSAPI NTSTATUS WINAPI NtSetInformationToken(HANDLE,TOKEN_INFORMATION_CLASS,PVOID,ULONG); -NTSYSAPI NTSTATUS WINAPI NtSetIntervalProfile(ULONG,KPROFILE_SOURCE); -NTSYSAPI NTSTATUS WINAPI NtSetIoCompletion(HANDLE,ULONG_PTR,ULONG_PTR,NTSTATUS,SIZE_T); -NTSYSAPI NTSTATUS WINAPI NtSetLdtEntries(ULONG,LDT_ENTRY,ULONG,LDT_ENTRY); -NTSYSAPI NTSTATUS WINAPI NtSetLowEventPair(HANDLE); -NTSYSAPI NTSTATUS WINAPI NtSetLowWaitHighEventPair(HANDLE); -NTSYSAPI NTSTATUS WINAPI NtSetLowWaitHighThread(VOID); -NTSYSAPI NTSTATUS WINAPI NtSetSecurityObject(HANDLE,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR); -NTSYSAPI NTSTATUS WINAPI NtSetSystemEnvironmentValue(PUNICODE_STRING,PUNICODE_STRING); -NTSYSAPI NTSTATUS WINAPI NtSetSystemInformation(SYSTEM_INFORMATION_CLASS,PVOID,ULONG); -NTSYSAPI NTSTATUS WINAPI NtSetSystemPowerState(POWER_ACTION,SYSTEM_POWER_STATE,ULONG); -NTSYSAPI NTSTATUS WINAPI NtSetSystemTime(const LARGE_INTEGER*,LARGE_INTEGER*); -NTSYSAPI NTSTATUS WINAPI NtSetThreadExecutionState(EXECUTION_STATE,EXECUTION_STATE*); -NTSYSAPI NTSTATUS WINAPI NtSetTimer(HANDLE, const LARGE_INTEGER*, PTIMER_APC_ROUTINE, PVOID, BOOLEAN, ULONG, BOOLEAN*); -NTSYSAPI NTSTATUS WINAPI NtSetTimerResolution(ULONG,BOOLEAN,PULONG); -NTSYSAPI NTSTATUS WINAPI NtSetValueKey(HANDLE,const UNICODE_STRING *,ULONG,ULONG,const void *,ULONG); -NTSYSAPI NTSTATUS WINAPI NtSetVolumeInformationFile(HANDLE,PIO_STATUS_BLOCK,PVOID,ULONG,FS_INFORMATION_CLASS); -NTSYSAPI NTSTATUS WINAPI NtSignalAndWaitForSingleObject(HANDLE,HANDLE,BOOLEAN,const LARGE_INTEGER*); -NTSYSAPI NTSTATUS WINAPI NtShutdownSystem(SHUTDOWN_ACTION); -NTSYSAPI NTSTATUS WINAPI NtStartProfile(HANDLE); -NTSYSAPI NTSTATUS WINAPI NtStopProfile(HANDLE); -NTSYSAPI NTSTATUS WINAPI NtSuspendProcess(HANDLE); -NTSYSAPI NTSTATUS WINAPI NtSuspendThread(HANDLE,PULONG); -NTSYSAPI NTSTATUS WINAPI NtSystemDebugControl(SYSDBG_COMMAND,PVOID,ULONG,PVOID,ULONG,PULONG); -NTSYSAPI NTSTATUS WINAPI NtTerminateJobObject(HANDLE,NTSTATUS); -NTSYSAPI NTSTATUS WINAPI NtTerminateProcess(HANDLE,LONG); -NTSYSAPI NTSTATUS WINAPI NtTerminateThread(HANDLE,LONG); -NTSYSAPI NTSTATUS WINAPI NtTestAlert(VOID); -NTSYSAPI NTSTATUS WINAPI NtTraceControl(ULONG,void*,ULONG,void*,ULONG,ULONG*); -NTSYSAPI NTSTATUS WINAPI NtUnloadDriver(const UNICODE_STRING *); -NTSYSAPI NTSTATUS WINAPI NtUnloadKey(POBJECT_ATTRIBUTES); -NTSYSAPI NTSTATUS WINAPI NtUnloadKeyEx(POBJECT_ATTRIBUTES,HANDLE); -NTSYSAPI NTSTATUS WINAPI NtUnlockFile(HANDLE,PIO_STATUS_BLOCK,PLARGE_INTEGER,PLARGE_INTEGER,PULONG); -NTSYSAPI NTSTATUS WINAPI NtUnlockVirtualMemory(HANDLE,PVOID*,SIZE_T*,ULONG); -NTSYSAPI NTSTATUS WINAPI NtUnmapViewOfSection(HANDLE,PVOID); -NTSYSAPI NTSTATUS WINAPI NtVdmControl(ULONG,PVOID); -NTSYSAPI NTSTATUS WINAPI NtWaitForDebugEvent(HANDLE,BOOLEAN,LARGE_INTEGER*,DBGUI_WAIT_STATE_CHANGE*); -NTSYSAPI NTSTATUS WINAPI NtWaitForKeyedEvent(HANDLE,const void*,BOOLEAN,const LARGE_INTEGER*); -NTSYSAPI NTSTATUS WINAPI NtWaitForSingleObject(HANDLE,BOOLEAN,const LARGE_INTEGER*); -NTSYSAPI NTSTATUS WINAPI NtWaitForMultipleObjects(ULONG,const HANDLE*,BOOLEAN,BOOLEAN,const LARGE_INTEGER*); -NTSYSAPI NTSTATUS WINAPI NtWaitHighEventPair(HANDLE); -NTSYSAPI NTSTATUS WINAPI NtWaitLowEventPair(HANDLE); -NTSYSAPI NTSTATUS WINAPI NtWriteFile(HANDLE,HANDLE,PIO_APC_ROUTINE,PVOID,PIO_STATUS_BLOCK,const void*,ULONG,PLARGE_INTEGER,PULONG); -NTSYSAPI NTSTATUS WINAPI NtWriteFileGather(HANDLE,HANDLE,PIO_APC_ROUTINE,PVOID,PIO_STATUS_BLOCK,FILE_SEGMENT_ELEMENT*,ULONG,PLARGE_INTEGER,PULONG); -NTSYSAPI NTSTATUS WINAPI NtWriteRequestData(HANDLE,PLPC_MESSAGE,ULONG,PVOID,ULONG,PULONG); -NTSYSAPI NTSTATUS WINAPI NtWriteVirtualMemory(HANDLE,void*,const void*,SIZE_T,SIZE_T*); -NTSYSAPI NTSTATUS WINAPI NtYieldExecution(void); +NTSYSAPI NTSTATUS WINE_SYSCALL NtAcceptConnectPort(PHANDLE,ULONG,PLPC_MESSAGE,BOOLEAN,PLPC_SECTION_WRITE,PLPC_SECTION_READ); +NTSYSAPI NTSTATUS WINE_SYSCALL NtAccessCheck(PSECURITY_DESCRIPTOR,HANDLE,ACCESS_MASK,PGENERIC_MAPPING,PPRIVILEGE_SET,PULONG,PULONG,NTSTATUS*); +NTSYSAPI NTSTATUS WINE_SYSCALL NtAccessCheckAndAuditAlarm(PUNICODE_STRING,HANDLE,PUNICODE_STRING,PUNICODE_STRING,PSECURITY_DESCRIPTOR,ACCESS_MASK,PGENERIC_MAPPING,BOOLEAN,PACCESS_MASK,PBOOLEAN,PBOOLEAN); +NTSYSAPI NTSTATUS WINE_SYSCALL NtAddAtom(const WCHAR*,ULONG,RTL_ATOM*); +NTSYSAPI NTSTATUS WINE_SYSCALL NtAdjustGroupsToken(HANDLE,BOOLEAN,PTOKEN_GROUPS,ULONG,PTOKEN_GROUPS,PULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtAdjustPrivilegesToken(HANDLE,BOOLEAN,PTOKEN_PRIVILEGES,DWORD,PTOKEN_PRIVILEGES,PDWORD); +NTSYSAPI NTSTATUS WINE_SYSCALL NtAlertResumeThread(HANDLE,PULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtAlertThread(HANDLE ThreadHandle); +NTSYSAPI NTSTATUS WINE_SYSCALL NtAllocateLocallyUniqueId(PLUID lpLuid); +NTSYSAPI NTSTATUS WINE_SYSCALL NtAllocateUuids(PULARGE_INTEGER,PULONG,PULONG,PUCHAR); +NTSYSAPI NTSTATUS WINE_SYSCALL NtAllocateVirtualMemory(HANDLE,PVOID*,ULONG_PTR,SIZE_T*,ULONG,ULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtAllocateVirtualMemoryEx(HANDLE,PVOID*,SIZE_T*,ULONG,ULONG,MEM_EXTENDED_PARAMETER*,ULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtAreMappedFilesTheSame(PVOID,PVOID); +NTSYSAPI NTSTATUS WINE_SYSCALL NtAssignProcessToJobObject(HANDLE,HANDLE); +NTSYSAPI NTSTATUS WINE_SYSCALL NtCallbackReturn(PVOID,ULONG,NTSTATUS); +NTSYSAPI NTSTATUS WINE_SYSCALL NtCancelIoFile(HANDLE,PIO_STATUS_BLOCK); +NTSYSAPI NTSTATUS WINE_SYSCALL NtCancelIoFileEx(HANDLE,PIO_STATUS_BLOCK,PIO_STATUS_BLOCK); +NTSYSAPI NTSTATUS WINE_SYSCALL NtCancelTimer(HANDLE, BOOLEAN*); +NTSYSAPI NTSTATUS WINE_SYSCALL NtClearEvent(HANDLE); +NTSYSAPI NTSTATUS WINE_SYSCALL NtClose(HANDLE); +NTSYSAPI NTSTATUS WINE_SYSCALL NtCloseObjectAuditAlarm(PUNICODE_STRING,HANDLE,BOOLEAN); +NTSYSAPI NTSTATUS WINE_SYSCALL NtCompleteConnectPort(HANDLE); +NTSYSAPI NTSTATUS WINE_SYSCALL NtConnectPort(PHANDLE,PUNICODE_STRING,PSECURITY_QUALITY_OF_SERVICE,PLPC_SECTION_WRITE,PLPC_SECTION_READ,PULONG,PVOID,PULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtContinue(PCONTEXT,BOOLEAN); +NTSYSAPI NTSTATUS WINE_SYSCALL NtCreateDebugObject(HANDLE*,ACCESS_MASK,OBJECT_ATTRIBUTES*,ULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtCreateDirectoryObject(PHANDLE,ACCESS_MASK,POBJECT_ATTRIBUTES); +NTSYSAPI NTSTATUS WINE_SYSCALL NtCreateEvent(PHANDLE,ACCESS_MASK,const OBJECT_ATTRIBUTES *,EVENT_TYPE,BOOLEAN); +NTSYSAPI NTSTATUS WINE_SYSCALL NtCreateEventPair(PHANDLE,ACCESS_MASK,POBJECT_ATTRIBUTES); +NTSYSAPI NTSTATUS WINE_SYSCALL NtCreateFile(PHANDLE,ACCESS_MASK,POBJECT_ATTRIBUTES,PIO_STATUS_BLOCK,PLARGE_INTEGER,ULONG,ULONG,ULONG,ULONG,PVOID,ULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtCreateIoCompletion(PHANDLE,ACCESS_MASK,POBJECT_ATTRIBUTES,ULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtCreateJobObject(PHANDLE,ACCESS_MASK,const OBJECT_ATTRIBUTES*); +NTSYSAPI NTSTATUS WINE_SYSCALL NtCreateKey(PHANDLE,ACCESS_MASK,const OBJECT_ATTRIBUTES*,ULONG,const UNICODE_STRING*,ULONG,PULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtCreateKeyTransacted(PHANDLE,ACCESS_MASK,const OBJECT_ATTRIBUTES*,ULONG,const UNICODE_STRING*,ULONG,HANDLE,ULONG*); +NTSYSAPI NTSTATUS WINE_SYSCALL NtCreateKeyedEvent(HANDLE*,ACCESS_MASK,const OBJECT_ATTRIBUTES*,ULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtCreateLowBoxToken(HANDLE*,HANDLE,ACCESS_MASK,OBJECT_ATTRIBUTES*,SID*,ULONG,SID_AND_ATTRIBUTES*,ULONG,HANDLE*); +NTSYSAPI NTSTATUS WINE_SYSCALL NtCreateMailslotFile(PHANDLE,ACCESS_MASK,POBJECT_ATTRIBUTES,PIO_STATUS_BLOCK,ULONG,ULONG,ULONG,PLARGE_INTEGER); +NTSYSAPI NTSTATUS WINE_SYSCALL NtCreateMutant(HANDLE*,ACCESS_MASK,const OBJECT_ATTRIBUTES*,BOOLEAN); +NTSYSAPI NTSTATUS WINE_SYSCALL NtCreateNamedPipeFile(PHANDLE,ULONG,POBJECT_ATTRIBUTES,PIO_STATUS_BLOCK,ULONG,ULONG,ULONG,ULONG,ULONG,ULONG,ULONG,ULONG,ULONG,PLARGE_INTEGER); +NTSYSAPI NTSTATUS WINE_SYSCALL NtCreatePagingFile(PUNICODE_STRING,PLARGE_INTEGER,PLARGE_INTEGER,PLARGE_INTEGER); +NTSYSAPI NTSTATUS WINE_SYSCALL NtCreatePort(PHANDLE,POBJECT_ATTRIBUTES,ULONG,ULONG,PULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtCreateProcess(PHANDLE,ACCESS_MASK,POBJECT_ATTRIBUTES,HANDLE,BOOLEAN,HANDLE,HANDLE,HANDLE); +NTSYSAPI NTSTATUS WINE_SYSCALL NtCreateProfile(PHANDLE,HANDLE,PVOID,ULONG,ULONG,PVOID,ULONG,KPROFILE_SOURCE,KAFFINITY); +NTSYSAPI NTSTATUS WINE_SYSCALL NtCreateSection(HANDLE*,ACCESS_MASK,const OBJECT_ATTRIBUTES*,const LARGE_INTEGER*,ULONG,ULONG,HANDLE); +NTSYSAPI NTSTATUS WINE_SYSCALL NtCreateSemaphore(PHANDLE,ACCESS_MASK,const OBJECT_ATTRIBUTES*,LONG,LONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtCreateSymbolicLinkObject(PHANDLE,ACCESS_MASK,POBJECT_ATTRIBUTES,PUNICODE_STRING); +NTSYSAPI NTSTATUS WINE_SYSCALL NtCreateThread(PHANDLE,ACCESS_MASK,POBJECT_ATTRIBUTES,HANDLE,PCLIENT_ID,PCONTEXT,PINITIAL_TEB,BOOLEAN); +NTSYSAPI NTSTATUS WINE_SYSCALL NtCreateThreadEx(HANDLE*,ACCESS_MASK,OBJECT_ATTRIBUTES*,HANDLE,PRTL_THREAD_START_ROUTINE,void*,ULONG,ULONG_PTR,SIZE_T,SIZE_T,PS_ATTRIBUTE_LIST*); +NTSYSAPI NTSTATUS WINE_SYSCALL NtCreateTimer(HANDLE*, ACCESS_MASK, const OBJECT_ATTRIBUTES*, TIMER_TYPE); +NTSYSAPI NTSTATUS WINE_SYSCALL NtCreateToken(PHANDLE,ACCESS_MASK,POBJECT_ATTRIBUTES,TOKEN_TYPE,PLUID,PLARGE_INTEGER,PTOKEN_USER,PTOKEN_GROUPS,PTOKEN_PRIVILEGES,PTOKEN_OWNER,PTOKEN_PRIMARY_GROUP,PTOKEN_DEFAULT_DACL,PTOKEN_SOURCE); +NTSYSAPI NTSTATUS WINE_SYSCALL NtCreateUserProcess(HANDLE*,HANDLE*,ACCESS_MASK,ACCESS_MASK,OBJECT_ATTRIBUTES*,OBJECT_ATTRIBUTES*,ULONG,ULONG,RTL_USER_PROCESS_PARAMETERS*,PS_CREATE_INFO*,PS_ATTRIBUTE_LIST*); +NTSYSAPI NTSTATUS WINE_SYSCALL NtDebugActiveProcess(HANDLE,HANDLE); +NTSYSAPI NTSTATUS WINE_SYSCALL NtDebugContinue(HANDLE,CLIENT_ID*,NTSTATUS); +NTSYSAPI NTSTATUS WINE_SYSCALL NtDelayExecution(BOOLEAN,const LARGE_INTEGER*); +NTSYSAPI NTSTATUS WINE_SYSCALL NtDeleteAtom(RTL_ATOM); +NTSYSAPI NTSTATUS WINE_SYSCALL NtDeleteFile(POBJECT_ATTRIBUTES); +NTSYSAPI NTSTATUS WINE_SYSCALL NtDeleteKey(HANDLE); +NTSYSAPI NTSTATUS WINE_SYSCALL NtDeleteValueKey(HANDLE,const UNICODE_STRING *); +NTSYSAPI NTSTATUS WINE_SYSCALL NtDeviceIoControlFile(HANDLE,HANDLE,PIO_APC_ROUTINE,PVOID,PIO_STATUS_BLOCK,ULONG,PVOID,ULONG,PVOID,ULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtDisplayString(PUNICODE_STRING); +NTSYSAPI NTSTATUS WINE_SYSCALL NtDuplicateObject(HANDLE,HANDLE,HANDLE,PHANDLE,ACCESS_MASK,ULONG,ULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtDuplicateToken(HANDLE,ACCESS_MASK,POBJECT_ATTRIBUTES,SECURITY_IMPERSONATION_LEVEL,TOKEN_TYPE,PHANDLE); +NTSYSAPI NTSTATUS WINE_SYSCALL NtEnumerateKey(HANDLE,ULONG,KEY_INFORMATION_CLASS,void *,DWORD,DWORD *); +NTSYSAPI NTSTATUS WINE_SYSCALL NtEnumerateValueKey(HANDLE,ULONG,KEY_VALUE_INFORMATION_CLASS,PVOID,ULONG,PULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtExtendSection(HANDLE,PLARGE_INTEGER); +NTSYSAPI NTSTATUS WINE_SYSCALL NtFilterToken(HANDLE,ULONG,TOKEN_GROUPS*,TOKEN_PRIVILEGES*,TOKEN_GROUPS*,HANDLE*); +NTSYSAPI NTSTATUS WINE_SYSCALL NtFindAtom(const WCHAR*,ULONG,RTL_ATOM*); +NTSYSAPI NTSTATUS WINE_SYSCALL NtFlushBuffersFile(HANDLE,IO_STATUS_BLOCK*); +NTSYSAPI NTSTATUS WINE_SYSCALL NtFlushInstructionCache(HANDLE,LPCVOID,SIZE_T); +NTSYSAPI NTSTATUS WINE_SYSCALL NtFlushKey(HANDLE); +NTSYSAPI void WINE_SYSCALL NtFlushProcessWriteBuffers(void); +NTSYSAPI NTSTATUS WINE_SYSCALL NtFlushVirtualMemory(HANDLE,LPCVOID*,SIZE_T*,ULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtFlushWriteBuffer(VOID); +NTSYSAPI NTSTATUS WINE_SYSCALL NtFreeVirtualMemory(HANDLE,PVOID*,SIZE_T*,ULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtFsControlFile(HANDLE,HANDLE,PIO_APC_ROUTINE,PVOID,PIO_STATUS_BLOCK,ULONG,PVOID,ULONG,PVOID,ULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtGetContextThread(HANDLE,CONTEXT*); +NTSYSAPI ULONG WINE_SYSCALL NtGetCurrentProcessorNumber(void); +NTSYSAPI NTSTATUS WINE_SYSCALL NtGetNextThread(HANDLE,HANDLE,ACCESS_MASK,ULONG,ULONG,HANDLE*); +NTSYSAPI NTSTATUS WINE_SYSCALL NtGetNlsSectionPtr(ULONG,ULONG,void*,void**,SIZE_T*); +NTSYSAPI NTSTATUS WINE_SYSCALL NtGetPlugPlayEvent(ULONG,ULONG,PVOID,ULONG); +NTSYSAPI ULONG WINE_SYSCALL NtGetTickCount(VOID); +NTSYSAPI NTSTATUS WINE_SYSCALL NtGetWriteWatch(HANDLE,ULONG,PVOID,SIZE_T,PVOID*,ULONG_PTR*,ULONG*); +NTSYSAPI NTSTATUS WINE_SYSCALL NtImpersonateAnonymousToken(HANDLE); +NTSYSAPI NTSTATUS WINE_SYSCALL NtImpersonateClientOfPort(HANDLE,PPORT_MESSAGE); +NTSYSAPI NTSTATUS WINE_SYSCALL NtImpersonateThread(HANDLE,HANDLE,PSECURITY_QUALITY_OF_SERVICE); +NTSYSAPI NTSTATUS WINE_SYSCALL NtInitializeRegistry(BOOLEAN); +NTSYSAPI NTSTATUS WINE_SYSCALL NtInitiatePowerAction(POWER_ACTION,SYSTEM_POWER_STATE,ULONG,BOOLEAN); +NTSYSAPI NTSTATUS WINE_SYSCALL NtIsProcessInJob(HANDLE,HANDLE); +NTSYSAPI NTSTATUS WINE_SYSCALL NtListenPort(HANDLE,PLPC_MESSAGE); +NTSYSAPI NTSTATUS WINE_SYSCALL NtLoadDriver(const UNICODE_STRING *); +NTSYSAPI NTSTATUS WINE_SYSCALL NtLoadKey(const OBJECT_ATTRIBUTES *,OBJECT_ATTRIBUTES *); +NTSYSAPI NTSTATUS WINE_SYSCALL NtLoadKey2(const OBJECT_ATTRIBUTES *,OBJECT_ATTRIBUTES *,ULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtLockFile(HANDLE,HANDLE,PIO_APC_ROUTINE,void*,PIO_STATUS_BLOCK,PLARGE_INTEGER,PLARGE_INTEGER,ULONG*,BOOLEAN,BOOLEAN); +NTSYSAPI NTSTATUS WINE_SYSCALL NtLockVirtualMemory(HANDLE,PVOID*,SIZE_T*,ULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtMakeTemporaryObject(HANDLE); +NTSYSAPI NTSTATUS WINE_SYSCALL NtMapViewOfSection(HANDLE,HANDLE,PVOID*,ULONG_PTR,SIZE_T,const LARGE_INTEGER*,SIZE_T*,SECTION_INHERIT,ULONG,ULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtNotifyChangeDirectoryFile(HANDLE,HANDLE,PIO_APC_ROUTINE,PVOID,PIO_STATUS_BLOCK,PVOID,ULONG,ULONG,BOOLEAN); +NTSYSAPI NTSTATUS WINE_SYSCALL NtNotifyChangeKey(HANDLE,HANDLE,PIO_APC_ROUTINE,PVOID,PIO_STATUS_BLOCK,ULONG,BOOLEAN,PVOID,ULONG,BOOLEAN); +NTSYSAPI NTSTATUS WINE_SYSCALL NtNotifyChangeMultipleKeys(HANDLE,ULONG,OBJECT_ATTRIBUTES*,HANDLE,PIO_APC_ROUTINE,PVOID,PIO_STATUS_BLOCK,ULONG,BOOLEAN,PVOID,ULONG,BOOLEAN); +NTSYSAPI NTSTATUS WINE_SYSCALL NtOpenDirectoryObject(PHANDLE,ACCESS_MASK,const OBJECT_ATTRIBUTES*); +NTSYSAPI NTSTATUS WINE_SYSCALL NtOpenEvent(PHANDLE,ACCESS_MASK,const OBJECT_ATTRIBUTES *); +NTSYSAPI NTSTATUS WINE_SYSCALL NtOpenEventPair(PHANDLE,ACCESS_MASK,const OBJECT_ATTRIBUTES*); +NTSYSAPI NTSTATUS WINE_SYSCALL NtOpenFile(PHANDLE,ACCESS_MASK,POBJECT_ATTRIBUTES,PIO_STATUS_BLOCK,ULONG,ULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtOpenIoCompletion(PHANDLE,ACCESS_MASK,const OBJECT_ATTRIBUTES*); +NTSYSAPI NTSTATUS WINE_SYSCALL NtOpenJobObject(PHANDLE,ACCESS_MASK,const OBJECT_ATTRIBUTES*); +NTSYSAPI NTSTATUS WINE_SYSCALL NtOpenKey(PHANDLE,ACCESS_MASK,const OBJECT_ATTRIBUTES *); +NTSYSAPI NTSTATUS WINE_SYSCALL NtOpenKeyEx(PHANDLE,ACCESS_MASK,const OBJECT_ATTRIBUTES*,ULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtOpenKeyTransacted(PHANDLE,ACCESS_MASK,const OBJECT_ATTRIBUTES*,HANDLE); +NTSYSAPI NTSTATUS WINE_SYSCALL NtOpenKeyTransactedEx(PHANDLE,ACCESS_MASK,const OBJECT_ATTRIBUTES*,ULONG,HANDLE); +NTSYSAPI NTSTATUS WINE_SYSCALL NtOpenKeyedEvent(HANDLE*,ACCESS_MASK,const OBJECT_ATTRIBUTES*); +NTSYSAPI NTSTATUS WINE_SYSCALL NtOpenMutant(PHANDLE,ACCESS_MASK,const OBJECT_ATTRIBUTES*); +NTSYSAPI NTSTATUS WINE_SYSCALL NtOpenObjectAuditAlarm(PUNICODE_STRING,PHANDLE,PUNICODE_STRING,PUNICODE_STRING,PSECURITY_DESCRIPTOR,HANDLE,ACCESS_MASK,ACCESS_MASK,PPRIVILEGE_SET,BOOLEAN,BOOLEAN,PBOOLEAN); +NTSYSAPI NTSTATUS WINE_SYSCALL NtOpenProcess(PHANDLE,ACCESS_MASK,const OBJECT_ATTRIBUTES*,const CLIENT_ID*); +NTSYSAPI NTSTATUS WINE_SYSCALL NtOpenProcessToken(HANDLE,DWORD,HANDLE *); +NTSYSAPI NTSTATUS WINE_SYSCALL NtOpenProcessTokenEx(HANDLE,DWORD,DWORD,HANDLE *); +NTSYSAPI NTSTATUS WINE_SYSCALL NtOpenSection(HANDLE*,ACCESS_MASK,const OBJECT_ATTRIBUTES*); +NTSYSAPI NTSTATUS WINE_SYSCALL NtOpenSemaphore(PHANDLE,ACCESS_MASK,const OBJECT_ATTRIBUTES*); +NTSYSAPI NTSTATUS WINE_SYSCALL NtOpenSymbolicLinkObject(PHANDLE,ACCESS_MASK,const OBJECT_ATTRIBUTES*); +NTSYSAPI NTSTATUS WINE_SYSCALL NtOpenThread(HANDLE*,ACCESS_MASK,const OBJECT_ATTRIBUTES*,const CLIENT_ID*); +NTSYSAPI NTSTATUS WINE_SYSCALL NtOpenThreadToken(HANDLE,DWORD,BOOLEAN,HANDLE *); +NTSYSAPI NTSTATUS WINE_SYSCALL NtOpenThreadTokenEx(HANDLE,DWORD,BOOLEAN,DWORD,HANDLE *); +NTSYSAPI NTSTATUS WINE_SYSCALL NtOpenTimer(HANDLE*, ACCESS_MASK, const OBJECT_ATTRIBUTES*); +NTSYSAPI NTSTATUS WINE_SYSCALL NtPowerInformation(POWER_INFORMATION_LEVEL,PVOID,ULONG,PVOID,ULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtPrivilegeCheck(HANDLE,PPRIVILEGE_SET,PBOOLEAN); +NTSYSAPI NTSTATUS WINE_SYSCALL NtPrivilegeObjectAuditAlarm(PUNICODE_STRING,HANDLE,HANDLE,ULONG,PPRIVILEGE_SET,BOOLEAN); +NTSYSAPI NTSTATUS WINE_SYSCALL NtPrivilegedServiceAuditAlarm(PUNICODE_STRING,PUNICODE_STRING,HANDLE,PPRIVILEGE_SET,BOOLEAN); +NTSYSAPI NTSTATUS WINE_SYSCALL NtProtectVirtualMemory(HANDLE,PVOID*,SIZE_T*,ULONG,ULONG*); +NTSYSAPI NTSTATUS WINE_SYSCALL NtPulseEvent(HANDLE,LONG*); +NTSYSAPI NTSTATUS WINE_SYSCALL NtQueueApcThread(HANDLE,PNTAPCFUNC,ULONG_PTR,ULONG_PTR,ULONG_PTR); +NTSYSAPI NTSTATUS WINE_SYSCALL NtQueryAttributesFile(const OBJECT_ATTRIBUTES*,FILE_BASIC_INFORMATION*); +NTSYSAPI NTSTATUS WINE_SYSCALL NtQueryDefaultLocale(BOOLEAN,LCID*); +NTSYSAPI NTSTATUS WINE_SYSCALL NtQueryDefaultUILanguage(LANGID*); +NTSYSAPI NTSTATUS WINE_SYSCALL NtQueryDirectoryFile(HANDLE,HANDLE,PIO_APC_ROUTINE,PVOID,PIO_STATUS_BLOCK,PVOID,ULONG,FILE_INFORMATION_CLASS,BOOLEAN,PUNICODE_STRING,BOOLEAN); +NTSYSAPI NTSTATUS WINE_SYSCALL NtQueryDirectoryObject(HANDLE,PDIRECTORY_BASIC_INFORMATION,ULONG,BOOLEAN,BOOLEAN,PULONG,PULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtQueryEaFile(HANDLE,PIO_STATUS_BLOCK,PVOID,ULONG,BOOLEAN,PVOID,ULONG,PULONG,BOOLEAN); +NTSYSAPI NTSTATUS WINE_SYSCALL NtQueryEvent(HANDLE,EVENT_INFORMATION_CLASS,PVOID,ULONG,PULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtQueryFullAttributesFile(const OBJECT_ATTRIBUTES*,FILE_NETWORK_OPEN_INFORMATION*); +NTSYSAPI NTSTATUS WINE_SYSCALL NtQueryInformationAtom(RTL_ATOM,ATOM_INFORMATION_CLASS,PVOID,ULONG,ULONG*); +NTSYSAPI NTSTATUS WINE_SYSCALL NtQueryInformationFile(HANDLE,PIO_STATUS_BLOCK,PVOID,LONG,FILE_INFORMATION_CLASS); +NTSYSAPI NTSTATUS WINE_SYSCALL NtQueryInformationJobObject(HANDLE,JOBOBJECTINFOCLASS,PVOID,ULONG,PULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtQueryInformationPort(HANDLE,PORT_INFORMATION_CLASS,PVOID,ULONG,PULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtQueryInformationProcess(HANDLE,PROCESSINFOCLASS,PVOID,ULONG,PULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtQueryInformationThread(HANDLE,THREADINFOCLASS,PVOID,ULONG,PULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtQueryInformationToken(HANDLE,TOKEN_INFORMATION_CLASS,PVOID,ULONG,PULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtQueryInstallUILanguage(LANGID*); +NTSYSAPI NTSTATUS WINE_SYSCALL NtQueryIntervalProfile(KPROFILE_SOURCE,PULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtQueryIoCompletion(HANDLE,IO_COMPLETION_INFORMATION_CLASS,PVOID,ULONG,PULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtQueryKey(HANDLE,KEY_INFORMATION_CLASS,void *,DWORD,DWORD *); +NTSYSAPI NTSTATUS WINE_SYSCALL NtQueryMultipleValueKey(HANDLE,PKEY_MULTIPLE_VALUE_INFORMATION,ULONG,PVOID,ULONG,PULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtQueryMutant(HANDLE,MUTANT_INFORMATION_CLASS,PVOID,ULONG,PULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtQueryObject(HANDLE, OBJECT_INFORMATION_CLASS, PVOID, ULONG, PULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtQueryOpenSubKeys(POBJECT_ATTRIBUTES,PULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtQueryPerformanceCounter(PLARGE_INTEGER, PLARGE_INTEGER); +NTSYSAPI NTSTATUS WINE_SYSCALL NtQuerySecurityObject(HANDLE,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR,ULONG,PULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtQuerySection(HANDLE,SECTION_INFORMATION_CLASS,PVOID,SIZE_T,SIZE_T*); +NTSYSAPI NTSTATUS WINE_SYSCALL NtQuerySemaphore(HANDLE,SEMAPHORE_INFORMATION_CLASS,PVOID,ULONG,PULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtQuerySymbolicLinkObject(HANDLE,PUNICODE_STRING,PULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtQuerySystemEnvironmentValue(PUNICODE_STRING,PWCHAR,ULONG,PULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtQuerySystemEnvironmentValueEx(PUNICODE_STRING,GUID*,void*,ULONG*,ULONG*); +NTSYSAPI NTSTATUS WINE_SYSCALL NtQuerySystemInformation(SYSTEM_INFORMATION_CLASS,PVOID,ULONG,PULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtQuerySystemInformationEx(SYSTEM_INFORMATION_CLASS,void*,ULONG,void*,ULONG,ULONG*); +NTSYSAPI NTSTATUS WINE_SYSCALL NtQuerySystemTime(PLARGE_INTEGER); +NTSYSAPI NTSTATUS WINE_SYSCALL NtQueryTimer(HANDLE,TIMER_INFORMATION_CLASS,PVOID,ULONG,PULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtQueryTimerResolution(PULONG,PULONG,PULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtQueryValueKey(HANDLE,const UNICODE_STRING *,KEY_VALUE_INFORMATION_CLASS,void *,DWORD,DWORD *); +NTSYSAPI NTSTATUS WINE_SYSCALL NtQueryLicenseValue(const UNICODE_STRING *,ULONG *,PVOID,ULONG,ULONG *); +NTSYSAPI NTSTATUS WINE_SYSCALL NtQueryVirtualMemory(HANDLE,LPCVOID,MEMORY_INFORMATION_CLASS,PVOID,SIZE_T,SIZE_T*); +NTSYSAPI NTSTATUS WINE_SYSCALL NtQueryVolumeInformationFile(HANDLE,PIO_STATUS_BLOCK,PVOID,ULONG,FS_INFORMATION_CLASS); +NTSYSAPI NTSTATUS WINE_SYSCALL NtRaiseException(PEXCEPTION_RECORD,PCONTEXT,BOOL); +NTSYSAPI NTSTATUS WINE_SYSCALL NtRaiseHardError(NTSTATUS,ULONG,PUNICODE_STRING,PVOID*,HARDERROR_RESPONSE_OPTION,PHARDERROR_RESPONSE); +NTSYSAPI NTSTATUS WINE_SYSCALL NtReadFile(HANDLE,HANDLE,PIO_APC_ROUTINE,PVOID,PIO_STATUS_BLOCK,PVOID,ULONG,PLARGE_INTEGER,PULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtReadFileScatter(HANDLE,HANDLE,PIO_APC_ROUTINE,PVOID,PIO_STATUS_BLOCK,FILE_SEGMENT_ELEMENT*,ULONG,PLARGE_INTEGER,PULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtReadRequestData(HANDLE,PLPC_MESSAGE,ULONG,PVOID,ULONG,PULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtReadVirtualMemory(HANDLE,const void*,void*,SIZE_T,SIZE_T*); +NTSYSAPI NTSTATUS WINE_SYSCALL NtRegisterThreadTerminatePort(HANDLE); +NTSYSAPI NTSTATUS WINE_SYSCALL NtReleaseKeyedEvent(HANDLE,const void*,BOOLEAN,const LARGE_INTEGER*); +NTSYSAPI NTSTATUS WINE_SYSCALL NtReleaseMutant(HANDLE,PLONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtReleaseSemaphore(HANDLE,ULONG,PULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtRemoveIoCompletion(HANDLE,PULONG_PTR,PULONG_PTR,PIO_STATUS_BLOCK,PLARGE_INTEGER); +NTSYSAPI NTSTATUS WINE_SYSCALL NtRemoveIoCompletionEx(HANDLE,FILE_IO_COMPLETION_INFORMATION*,ULONG,ULONG*,LARGE_INTEGER*,BOOLEAN); +NTSYSAPI NTSTATUS WINE_SYSCALL NtRemoveProcessDebug(HANDLE,HANDLE); +NTSYSAPI NTSTATUS WINE_SYSCALL NtRenameKey(HANDLE,UNICODE_STRING*); +NTSYSAPI NTSTATUS WINE_SYSCALL NtReplaceKey(POBJECT_ATTRIBUTES,HANDLE,POBJECT_ATTRIBUTES); +NTSYSAPI NTSTATUS WINE_SYSCALL NtReplyPort(HANDLE,PLPC_MESSAGE); +NTSYSAPI NTSTATUS WINE_SYSCALL NtReplyWaitReceivePort(HANDLE,PULONG,PLPC_MESSAGE,PLPC_MESSAGE); +NTSYSAPI NTSTATUS WINE_SYSCALL NtReplyWaitReceivePortEx(HANDLE,PVOID*,PPORT_MESSAGE,PPORT_MESSAGE,PLARGE_INTEGER); +NTSYSAPI NTSTATUS WINE_SYSCALL NtReplyWaitReplyPort(HANDLE,PLPC_MESSAGE); +NTSYSAPI NTSTATUS WINE_SYSCALL NtRequestPort(HANDLE,PLPC_MESSAGE); +NTSYSAPI NTSTATUS WINE_SYSCALL NtRequestWaitReplyPort(HANDLE,PLPC_MESSAGE,PLPC_MESSAGE); +NTSYSAPI NTSTATUS WINE_SYSCALL NtResetEvent(HANDLE,LONG*); +NTSYSAPI NTSTATUS WINE_SYSCALL NtResetWriteWatch(HANDLE,PVOID,SIZE_T); +NTSYSAPI NTSTATUS WINE_SYSCALL NtRestoreKey(HANDLE,HANDLE,ULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtResumeProcess(HANDLE); +NTSYSAPI NTSTATUS WINE_SYSCALL NtResumeThread(HANDLE,PULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtSaveKey(HANDLE,HANDLE); +NTSYSAPI NTSTATUS WINE_SYSCALL NtSecureConnectPort(PHANDLE,PUNICODE_STRING,PSECURITY_QUALITY_OF_SERVICE,PLPC_SECTION_WRITE,PSID,PLPC_SECTION_READ,PULONG,PVOID,PULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtSetContextThread(HANDLE,const CONTEXT*); +NTSYSAPI NTSTATUS WINE_SYSCALL NtSetDefaultHardErrorPort(HANDLE); +NTSYSAPI NTSTATUS WINE_SYSCALL NtSetDefaultLocale(BOOLEAN,LCID); +NTSYSAPI NTSTATUS WINE_SYSCALL NtSetDefaultUILanguage(LANGID); +NTSYSAPI NTSTATUS WINE_SYSCALL NtSetEaFile(HANDLE,PIO_STATUS_BLOCK,PVOID,ULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtSetEvent(HANDLE,LONG*); +NTSYSAPI NTSTATUS WINE_SYSCALL NtSetHighEventPair(HANDLE); +NTSYSAPI NTSTATUS WINE_SYSCALL NtSetHighWaitLowEventPair(HANDLE); +NTSYSAPI NTSTATUS WINE_SYSCALL NtSetHighWaitLowThread(VOID); +NTSYSAPI NTSTATUS WINE_SYSCALL NtSetInformationDebugObject(HANDLE,DEBUGOBJECTINFOCLASS,PVOID,ULONG,ULONG*); +NTSYSAPI NTSTATUS WINE_SYSCALL NtSetInformationFile(HANDLE,PIO_STATUS_BLOCK,PVOID,ULONG,FILE_INFORMATION_CLASS); +NTSYSAPI NTSTATUS WINE_SYSCALL NtSetInformationJobObject(HANDLE,JOBOBJECTINFOCLASS,PVOID,ULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtSetInformationKey(HANDLE,const int,PVOID,ULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtSetInformationObject(HANDLE, OBJECT_INFORMATION_CLASS, PVOID, ULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtSetInformationProcess(HANDLE,PROCESS_INFORMATION_CLASS,PVOID,ULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtSetInformationThread(HANDLE,THREADINFOCLASS,LPCVOID,ULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtSetInformationToken(HANDLE,TOKEN_INFORMATION_CLASS,PVOID,ULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtSetIntervalProfile(ULONG,KPROFILE_SOURCE); +NTSYSAPI NTSTATUS WINE_SYSCALL NtSetIoCompletion(HANDLE,ULONG_PTR,ULONG_PTR,NTSTATUS,SIZE_T); +NTSYSAPI NTSTATUS WINE_SYSCALL NtSetLdtEntries(ULONG,LDT_ENTRY,ULONG,LDT_ENTRY); +NTSYSAPI NTSTATUS WINE_SYSCALL NtSetLowEventPair(HANDLE); +NTSYSAPI NTSTATUS WINE_SYSCALL NtSetLowWaitHighEventPair(HANDLE); +NTSYSAPI NTSTATUS WINE_SYSCALL NtSetLowWaitHighThread(VOID); +NTSYSAPI NTSTATUS WINE_SYSCALL NtSetSecurityObject(HANDLE,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR); +NTSYSAPI NTSTATUS WINE_SYSCALL NtSetSystemEnvironmentValue(PUNICODE_STRING,PUNICODE_STRING); +NTSYSAPI NTSTATUS WINE_SYSCALL NtSetSystemInformation(SYSTEM_INFORMATION_CLASS,PVOID,ULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtSetSystemPowerState(POWER_ACTION,SYSTEM_POWER_STATE,ULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtSetSystemTime(const LARGE_INTEGER*,LARGE_INTEGER*); +NTSYSAPI NTSTATUS WINE_SYSCALL NtSetThreadExecutionState(EXECUTION_STATE,EXECUTION_STATE*); +NTSYSAPI NTSTATUS WINE_SYSCALL NtSetTimer(HANDLE, const LARGE_INTEGER*, PTIMER_APC_ROUTINE, PVOID, BOOLEAN, ULONG, BOOLEAN*); +NTSYSAPI NTSTATUS WINE_SYSCALL NtSetTimerResolution(ULONG,BOOLEAN,PULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtSetValueKey(HANDLE,const UNICODE_STRING *,ULONG,ULONG,const void *,ULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtSetVolumeInformationFile(HANDLE,PIO_STATUS_BLOCK,PVOID,ULONG,FS_INFORMATION_CLASS); +NTSYSAPI NTSTATUS WINE_SYSCALL NtSignalAndWaitForSingleObject(HANDLE,HANDLE,BOOLEAN,const LARGE_INTEGER*); +NTSYSAPI NTSTATUS WINE_SYSCALL NtShutdownSystem(SHUTDOWN_ACTION); +NTSYSAPI NTSTATUS WINE_SYSCALL NtStartProfile(HANDLE); +NTSYSAPI NTSTATUS WINE_SYSCALL NtStopProfile(HANDLE); +NTSYSAPI NTSTATUS WINE_SYSCALL NtSuspendProcess(HANDLE); +NTSYSAPI NTSTATUS WINE_SYSCALL NtSuspendThread(HANDLE,PULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtSystemDebugControl(SYSDBG_COMMAND,PVOID,ULONG,PVOID,ULONG,PULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtTerminateJobObject(HANDLE,NTSTATUS); +NTSYSAPI NTSTATUS WINE_SYSCALL NtTerminateProcess(HANDLE,LONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtTerminateThread(HANDLE,LONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtTestAlert(VOID); +NTSYSAPI NTSTATUS WINE_SYSCALL NtTraceControl(ULONG,void*,ULONG,void*,ULONG,ULONG*); +NTSYSAPI NTSTATUS WINE_SYSCALL NtUnloadDriver(const UNICODE_STRING *); +NTSYSAPI NTSTATUS WINE_SYSCALL NtUnloadKey(POBJECT_ATTRIBUTES); +NTSYSAPI NTSTATUS WINE_SYSCALL NtUnloadKeyEx(POBJECT_ATTRIBUTES,HANDLE); +NTSYSAPI NTSTATUS WINE_SYSCALL NtUnlockFile(HANDLE,PIO_STATUS_BLOCK,PLARGE_INTEGER,PLARGE_INTEGER,PULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtUnlockVirtualMemory(HANDLE,PVOID*,SIZE_T*,ULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtUnmapViewOfSection(HANDLE,PVOID); +NTSYSAPI NTSTATUS WINE_SYSCALL NtVdmControl(ULONG,PVOID); +NTSYSAPI NTSTATUS WINE_SYSCALL NtWaitForDebugEvent(HANDLE,BOOLEAN,LARGE_INTEGER*,DBGUI_WAIT_STATE_CHANGE*); +NTSYSAPI NTSTATUS WINE_SYSCALL NtWaitForKeyedEvent(HANDLE,const void*,BOOLEAN,const LARGE_INTEGER*); +NTSYSAPI NTSTATUS WINE_SYSCALL NtWaitForSingleObject(HANDLE,BOOLEAN,const LARGE_INTEGER*); +NTSYSAPI NTSTATUS WINE_SYSCALL NtWaitForMultipleObjects(ULONG,const HANDLE*,BOOLEAN,BOOLEAN,const LARGE_INTEGER*); +NTSYSAPI NTSTATUS WINE_SYSCALL NtWaitHighEventPair(HANDLE); +NTSYSAPI NTSTATUS WINE_SYSCALL NtWaitLowEventPair(HANDLE); +NTSYSAPI NTSTATUS WINE_SYSCALL NtWriteFile(HANDLE,HANDLE,PIO_APC_ROUTINE,PVOID,PIO_STATUS_BLOCK,const void*,ULONG,PLARGE_INTEGER,PULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtWriteFileGather(HANDLE,HANDLE,PIO_APC_ROUTINE,PVOID,PIO_STATUS_BLOCK,FILE_SEGMENT_ELEMENT*,ULONG,PLARGE_INTEGER,PULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtWriteRequestData(HANDLE,PLPC_MESSAGE,ULONG,PVOID,ULONG,PULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtWriteVirtualMemory(HANDLE,void*,const void*,SIZE_T,SIZE_T*); +NTSYSAPI NTSTATUS WINE_SYSCALL NtYieldExecution(void);
NTSYSAPI NTSTATUS WINAPI RtlAbsoluteToSelfRelativeSD(PSECURITY_DESCRIPTOR,PSECURITY_DESCRIPTOR,PULONG); NTSYSAPI void WINAPI RtlAcquirePebLock(void); @@ -4449,10 +4457,10 @@ NTSYSAPI NTSTATUS WINAPI RtlWow64GetThreadContext(HANDLE,WOW64_CONTEXT*); NTSYSAPI NTSTATUS WINAPI RtlWow64GetThreadSelectorEntry(HANDLE,THREAD_DESCRIPTOR_INFORMATION*,ULONG,ULONG*); NTSYSAPI NTSTATUS WINAPI RtlWow64SetThreadContext(HANDLE,const WOW64_CONTEXT*); #else -NTSYSAPI NTSTATUS WINAPI NtWow64AllocateVirtualMemory64(HANDLE,ULONG64*,ULONG64,ULONG64*,ULONG,ULONG); -NTSYSAPI NTSTATUS WINAPI NtWow64GetNativeSystemInformation(SYSTEM_INFORMATION_CLASS,void*,ULONG,ULONG*); -NTSYSAPI NTSTATUS WINAPI NtWow64ReadVirtualMemory64(HANDLE,ULONG64,void*,ULONG64,ULONG64*); -NTSYSAPI NTSTATUS WINAPI NtWow64WriteVirtualMemory64(HANDLE,ULONG64,const void*,ULONG64,ULONG64*); +NTSYSAPI NTSTATUS WINE_SYSCALL NtWow64AllocateVirtualMemory64(HANDLE,ULONG64*,ULONG64,ULONG64*,ULONG,ULONG); +NTSYSAPI NTSTATUS WINE_SYSCALL NtWow64GetNativeSystemInformation(SYSTEM_INFORMATION_CLASS,void*,ULONG,ULONG*); +NTSYSAPI NTSTATUS WINE_SYSCALL NtWow64ReadVirtualMemory64(HANDLE,ULONG64,void*,ULONG64,ULONG64*); +NTSYSAPI NTSTATUS WINE_SYSCALL NtWow64WriteVirtualMemory64(HANDLE,ULONG64,const void*,ULONG64,ULONG64*); NTSYSAPI LONGLONG WINAPI RtlConvertLongToLargeInteger(LONG); NTSYSAPI ULONGLONG WINAPI RtlConvertUlongToLargeInteger(ULONG); NTSYSAPI LONGLONG WINAPI RtlEnlargedIntegerMultiply(INT,INT); @@ -4512,9 +4520,9 @@ NTSYSAPI void WINAPI TpWaitForWork(TP_WORK *,BOOL);
/* Wine internal functions */
-NTSYSAPI NTSTATUS WINAPI wine_nt_to_unix_file_name( const OBJECT_ATTRIBUTES *attr, char *nameA, ULONG *size, - UINT disposition ); -NTSYSAPI NTSTATUS WINAPI wine_unix_to_nt_file_name( const char *name, WCHAR *buffer, ULONG *size ); +NTSYSAPI NTSTATUS WINE_SYSCALL wine_nt_to_unix_file_name( const OBJECT_ATTRIBUTES *attr, char *nameA, + ULONG *size, UINT disposition ); +NTSYSAPI NTSTATUS WINE_SYSCALL wine_unix_to_nt_file_name( const char *name, WCHAR *buffer, ULONG *size );
/*********************************************************************** @@ -4602,6 +4610,7 @@ static inline PLIST_ENTRY RemoveTailList(PLIST_ENTRY le) #ifdef __WINESRC__
/* Wine internal functions */ +extern int WINE_SYSCALL __wine_dbg_write( const char *str, unsigned int len ); extern NTSTATUS CDECL __wine_init_unix_lib( HMODULE module, DWORD reason, const void *ptr_in, void *ptr_out );
/* The thread information for 16-bit threads */
Hi,
While running your changed tests, I think I found new failures. Being a bot and all I'm not very good at pattern recognition, so I might be wrong, but could you please double-check?
Full results can be found at: https://testbot.winehq.org/JobDetails.pl?Key=98795
Your paranoid android.
=== debiant2 (build log) ===
Task: Could not create the wow32 wineprefix: Failed to disable the crash dialogs: Task: WineTest did not produce the wow32 report
Zebediah Figura zfigura@codeweavers.com writes:
Note also that the definition of WINE_SYSCALL is guarded by _NTSYSTEM_. This looks like it breaks import from Unix libraries, but in practice the only Unix library to import Nt* syscalls defines _NTSYSTEM_. This seems a bit fragile to me, but the current state looks already fragile, so I'm leaving it alone in this patch, for now...
Unix libraries that use the new __wine_unix_call scheme can link directly to ntdll functions, and would need the same treatment.
I was planning to do something like this once the Unix lib transition is complete, but I think right now it's a bit premature.