ReactOS.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
List overview
Download
Ros-diffs
June 2005
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
ros-diffs@reactos.org
22 participants
649 discussions
Start a n
N
ew thread
[navaraf] 15949: Use W32API.
by navaraf@svn.reactos.com
Use W32API. Modified: trunk/reactos/lib/kjs/include/jsconfig.h Modified: trunk/reactos/lib/kjs/include/jsint.h Modified: trunk/reactos/lib/kjs/kjs.xml Modified: trunk/reactos/lib/kjs/ksrc/compat.c Modified: trunk/reactos/lib/kjs/ksrc/js.c Modified: trunk/reactos/lib/kjs/ksrc/mrgsort.c Modified: trunk/reactos/lib/kjs/ksrc/regex.c Modified: trunk/reactos/lib/kjs/ksrc/vmjumps.c Modified: trunk/reactos/lib/kjs/ksrc/vmswitch.c Modified: trunk/reactos/lib/kjs/ksrc/vmswt0.c _____ Modified: trunk/reactos/lib/kjs/include/jsconfig.h --- trunk/reactos/lib/kjs/include/jsconfig.h 2005-06-17 07:57:37 UTC (rev 15948) +++ trunk/reactos/lib/kjs/include/jsconfig.h 2005-06-17 07:59:43 UTC (rev 15949) @@ -168,7 +168,6 @@ #define HAVE_UNISTD_H 1 #include "ddk/ntddk.h" -#include "ntos/rtl.h" /* #include "assert.h" */ #ifndef __TYPE_UINT64 typedef unsigned __int64 __uint64; _____ Modified: trunk/reactos/lib/kjs/include/jsint.h --- trunk/reactos/lib/kjs/include/jsint.h 2005-06-17 07:57:37 UTC (rev 15948) +++ trunk/reactos/lib/kjs/include/jsint.h 2005-06-17 07:59:43 UTC (rev 15949) @@ -32,7 +32,6 @@ /* We have always jsconfig.h */ #include <jsconfig.h> -#include "ddk/exfuncs.h" #include <stdio.h> #include <assert.h> _____ Modified: trunk/reactos/lib/kjs/kjs.xml --- trunk/reactos/lib/kjs/kjs.xml 2005-06-17 07:57:37 UTC (rev 15948) +++ trunk/reactos/lib/kjs/kjs.xml 2005-06-17 07:59:43 UTC (rev 15949) @@ -3,6 +3,8 @@ <include base="kjs">src</include> <include base="kjs">include</include> <define name="__NO_CTYPE_INLINES" /> + <define name="__USE_W32API" /> + <define name="_NTOSKRNL_" /> <directory name="ksrc"> <file>setjmp.S</file> <file>longjmp.S</file> _____ Modified: trunk/reactos/lib/kjs/ksrc/compat.c --- trunk/reactos/lib/kjs/ksrc/compat.c 2005-06-17 07:57:37 UTC (rev 15948) +++ trunk/reactos/lib/kjs/ksrc/compat.c 2005-06-17 07:59:43 UTC (rev 15949) @@ -1,10 +1,10 @@ #include "ddk/ntddk.h" -#include "ddk/kefuncs.h" #include "ctype.h" #include "jsconfig.h" void __kernel_abort() { - KEBUGCHECK(0); + DbgPrint("KeBugCheck (0x%X) at %s:%i\n", 0, __FILE__,__LINE__); + KeBugCheck(0); } void _assert( const char *expr, const char *file, int line ) { _____ Modified: trunk/reactos/lib/kjs/ksrc/js.c --- trunk/reactos/lib/kjs/ksrc/js.c 2005-06-17 07:57:37 UTC (rev 15948) +++ trunk/reactos/lib/kjs/ksrc/js.c 2005-06-17 07:59:43 UTC (rev 15949) @@ -30,7 +30,6 @@ #include "js.h" #include "jsint.h" #include "kjs.h" -#include "ddk/kefuncs.h" /* * Types and definitions. @@ -226,7 +225,7 @@ options->stacktrace_on_error, s_stdin, s_stdout, s_stderr); if (interp->vm == NULL) - KEBUGCHECK(0); + __kernel_abort(); /* Set some options. */ interp->vm->warn_undef = options->warn_undef; @@ -253,17 +252,17 @@ /* Define compiler to the virtual machine. */ bc = js_bc_read_data (js_compiler_bytecode, js_compiler_bytecode_len); if (bc == NULL) - KEBUGCHECK(0); + __kernel_abort(); result = js_vm_execute (interp->vm, bc); js_bc_free (bc); if (!result) - KEBUGCHECK(0); + __kernel_abort(); } /* Initialize our extensions. */ if (!js_define_module (interp, js_core_globals)) - KEBUGCHECK(0); + __kernel_abort(); /* Ok, we'r done. */ return interp; _____ Modified: trunk/reactos/lib/kjs/ksrc/mrgsort.c --- trunk/reactos/lib/kjs/ksrc/mrgsort.c 2005-06-17 07:57:37 UTC (rev 15948) +++ trunk/reactos/lib/kjs/ksrc/mrgsort.c 2005-06-17 07:59:43 UTC (rev 15949) @@ -28,7 +28,6 @@ */ #include "jsconfig.h" -#include "ddk/exfuncs.h" #define js_malloc(x) ExAllocatePool(NonPagedPool,x) #define js_free(x) ExFreePool(x) _____ Modified: trunk/reactos/lib/kjs/ksrc/regex.c --- trunk/reactos/lib/kjs/ksrc/regex.c 2005-06-17 07:57:37 UTC (rev 15948) +++ trunk/reactos/lib/kjs/ksrc/regex.c 2005-06-17 07:59:43 UTC (rev 15949) @@ -72,10 +72,6 @@ extern void *js_realloc( void *, int ); extern void *js_malloc( int ); -#define realloc js_realloc -#define malloc js_malloc -#define free js_free - #ifdef _LIBC /* We have to keep the namespace clean. */ # define regfree(preg) __regfree (preg) @@ -320,6 +316,11 @@ # define SIGN_EXTEND_CHAR(c) ((((unsigned char) (c)) ^ 128) - 128) #endif + +#define realloc js_realloc +#define malloc js_malloc +#define free js_free + /* Should we use malloc or alloca? If REGEX_MALLOC is not defined, we use `alloca' instead of `malloc'. This is because using malloc in re_search* or re_match* could cause memory leaks when C-g is used in _____ Modified: trunk/reactos/lib/kjs/ksrc/vmjumps.c --- trunk/reactos/lib/kjs/ksrc/vmjumps.c 2005-06-17 07:57:37 UTC (rev 15948) +++ trunk/reactos/lib/kjs/ksrc/vmjumps.c 2005-06-17 07:59:43 UTC (rev 15949) @@ -74,6 +74,7 @@ #define DONE() goto done +#undef ERROR #define ERROR(msg) \ do { \ JS_SAVE_REGS (); \ _____ Modified: trunk/reactos/lib/kjs/ksrc/vmswitch.c --- trunk/reactos/lib/kjs/ksrc/vmswitch.c 2005-06-17 07:57:37 UTC (rev 15948) +++ trunk/reactos/lib/kjs/ksrc/vmswitch.c 2005-06-17 07:59:43 UTC (rev 15949) @@ -54,6 +54,7 @@ #define DONE() goto done +#undef ERROR #define ERROR(msg) \ do { \ JS_SAVE_REGS (); \ _____ Modified: trunk/reactos/lib/kjs/ksrc/vmswt0.c --- trunk/reactos/lib/kjs/ksrc/vmswt0.c 2005-06-17 07:57:37 UTC (rev 15948) +++ trunk/reactos/lib/kjs/ksrc/vmswt0.c 2005-06-17 07:59:43 UTC (rev 15949) @@ -272,6 +272,7 @@ #define DONE() goto done +#undef ERROR #define ERROR(msg) \ do { \ JS_SAVE_REGS (); \
19 years, 6 months
1
0
0
0
[navaraf] 15948: Use W32API.
by navaraf@svn.reactos.com
Use W32API. Modified: trunk/reactos/lib/rtl/luid.c Modified: trunk/reactos/lib/rtl/mem.c Modified: trunk/reactos/lib/rtl/rtl.h Modified: trunk/reactos/lib/rtl/rtl.xml Modified: trunk/reactos/lib/rtl/unicode.c Modified: trunk/reactos/lib/rtl/version.c _____ Modified: trunk/reactos/lib/rtl/luid.c --- trunk/reactos/lib/rtl/luid.c 2005-06-17 07:55:45 UTC (rev 15947) +++ trunk/reactos/lib/rtl/luid.c 2005-06-17 07:57:37 UTC (rev 15948) @@ -50,6 +50,7 @@ } +#undef RtlEqualLuid /* * @implemented */ _____ Modified: trunk/reactos/lib/rtl/mem.c --- trunk/reactos/lib/rtl/mem.c 2005-06-17 07:55:45 UTC (rev 15947) +++ trunk/reactos/lib/rtl/mem.c 2005-06-17 07:57:37 UTC (rev 15948) @@ -84,6 +84,7 @@ } +#undef RtlFillMemory /* * @implemented */ @@ -123,7 +124,7 @@ } - +#undef RtlMoveMemory /* * @implemented */ @@ -155,6 +156,8 @@ UNIMPLEMENTED; } + +#undef RtlZeroMemory /* * @implemented */ _____ Modified: trunk/reactos/lib/rtl/rtl.h --- trunk/reactos/lib/rtl/rtl.h 2005-06-17 07:55:45 UTC (rev 15947) +++ trunk/reactos/lib/rtl/rtl.h 2005-06-17 07:57:37 UTC (rev 15948) @@ -9,6 +9,7 @@ /* INCLUDES ******************************************************************/ #include <ddk/ntddk.h> +#include <ddk/ntifs.h> #include <windows.h> #include <ntdll/rtl.h> #include <napi/teb.h> @@ -20,6 +21,7 @@ #include <ntdll/rtl.h> #include <rosrtl/thread.h> #include <winerror.h> +#include <ntos.h> #include <stdio.h> #define ROUNDUP(a,b) ((((a)+(b)-1)/(b))*(b)) _____ Modified: trunk/reactos/lib/rtl/rtl.xml --- trunk/reactos/lib/rtl/rtl.xml 2005-06-17 07:55:45 UTC (rev 15947) +++ trunk/reactos/lib/rtl/rtl.xml 2005-06-17 07:57:37 UTC (rev 15948) @@ -1,4 +1,6 @@ <module name="rtl" type="staticlibrary"> + <define name="__USE_W32API" /> + <define name="_NTOSKRNL_" /> <include base="rtl">.</include> <directory name="i386"> <file>allshl.s</file> _____ Modified: trunk/reactos/lib/rtl/unicode.c --- trunk/reactos/lib/rtl/unicode.c 2005-06-17 07:55:45 UTC (rev 15947) +++ trunk/reactos/lib/rtl/unicode.c 2005-06-17 07:57:37 UTC (rev 15948) @@ -341,8 +341,8 @@ BOOLEAN STDCALL RtlEqualUnicodeString( - IN PUNICODE_STRING String1, - IN PUNICODE_STRING String2, + IN CONST UNICODE_STRING *String1, + IN CONST UNICODE_STRING *String2, IN BOOLEAN CaseInsensitive) { ULONG i; _____ Modified: trunk/reactos/lib/rtl/version.c --- trunk/reactos/lib/rtl/version.c 2005-06-17 07:55:45 UTC (rev 15947) +++ trunk/reactos/lib/rtl/version.c 2005-06-17 07:57:37 UTC (rev 15948) @@ -29,7 +29,7 @@ */ /* INCLUDES *****************************************************************/ -#define __USE_W32API + #include "rtl.h" #define NDEBUG
19 years, 6 months
1
0
0
0
[navaraf] 15947: A bit of W32API friendliness...
by navaraf@svn.reactos.com
A bit of W32API friendliness... Modified: trunk/reactos/include/ntdll/ldr.h Modified: trunk/reactos/include/ntdll/rtl.h Modified: trunk/reactos/include/ntos/security.h _____ Modified: trunk/reactos/include/ntdll/ldr.h --- trunk/reactos/include/ntdll/ldr.h 2005-06-17 07:53:58 UTC (rev 15946) +++ trunk/reactos/include/ntdll/ldr.h 2005-06-17 07:55:45 UTC (rev 15947) @@ -5,13 +5,13 @@ #include <napi/teb.h> #include <reactos/rossym.h> -typedef NTSTATUS STDCALL_FUNC (*PEPFUNC)(PPEB); +typedef NTSTATUS (STDCALL *PEPFUNC)(PPEB); /* Type for a DLL's entry point */ -typedef BOOL STDCALL_FUNC -(* PDLLMAIN_FUNC)(HANDLE hInst, - ULONG ul_reason_for_call, - LPVOID lpReserved); +typedef BOOL +(STDCALL *PDLLMAIN_FUNC)(HANDLE hInst, + ULONG ul_reason_for_call, + LPVOID lpReserved); #if defined(__USE_W32API) || defined(__NTDLL__) /* _____ Modified: trunk/reactos/include/ntdll/rtl.h --- trunk/reactos/include/ntdll/rtl.h 2005-06-17 07:53:58 UTC (rev 15946) +++ trunk/reactos/include/ntdll/rtl.h 2005-06-17 07:55:45 UTC (rev 15947) @@ -147,7 +147,7 @@ typedef struct _RTL_RESOURCE { - CRITICAL_SECTION Lock; + RTL_CRITICAL_SECTION Lock; HANDLE SharedSemaphore; ULONG SharedWaiters; HANDLE ExclusiveSemaphore; _____ Modified: trunk/reactos/include/ntos/security.h --- trunk/reactos/include/ntos/security.h 2005-06-17 07:53:58 UTC (rev 15946) +++ trunk/reactos/include/ntos/security.h 2005-06-17 07:55:45 UTC (rev 15947) @@ -420,8 +420,13 @@ BOOL bInheritHandle; } SECURITY_ATTRIBUTES, *LPSECURITY_ATTRIBUTES; -#endif /* !__USE_W32API */ +#else /* !__USE_W32API */ +typedef struct _ACL_REVISION_INFORMATION *PACL_REVISION_INFORMATION; +typedef struct _ACL_SIZE_INFORMATION *PACL_SIZE_INFORMATION; + +#endif /* __USE_W32API */ + typedef struct { ACE_HEADER Header;
19 years, 6 months
1
0
0
0
[navaraf] 15946: Use W32API.
by navaraf@svn.reactos.com
Use W32API. Modified: trunk/reactos/lib/kbdda/kbdda.xml Modified: trunk/reactos/lib/kbddv/kbddv.xml Modified: trunk/reactos/lib/kbdes/kbdes.xml Modified: trunk/reactos/lib/kbdfr/kbdfr.xml Modified: trunk/reactos/lib/kbdgr/kbdgr.xml Modified: trunk/reactos/lib/kbdru/kbdru.xml Modified: trunk/reactos/lib/kbdse/kbdse.xml Modified: trunk/reactos/lib/kbdsg/kbdsg.xml Modified: trunk/reactos/lib/kbduk/kbduk.xml Modified: trunk/reactos/lib/kbdus/kbdus.xml _____ Modified: trunk/reactos/lib/kbdda/kbdda.xml --- trunk/reactos/lib/kbdda/kbdda.xml 2005-06-17 07:53:34 UTC (rev 15945) +++ trunk/reactos/lib/kbdda/kbdda.xml 2005-06-17 07:53:58 UTC (rev 15946) @@ -2,6 +2,8 @@ <importlibrary definition="kbdda.def" /> <include base="ntoskrnl">include</include> <define name="_DISABLE_TIDENTS" /> + <define name="__USE_W32API" /> + <define name="_WIN32_WINNT">0x0500</define> <file>kbdda.c</file> <file>kbdda.rc</file> </module> _____ Modified: trunk/reactos/lib/kbddv/kbddv.xml --- trunk/reactos/lib/kbddv/kbddv.xml 2005-06-17 07:53:34 UTC (rev 15945) +++ trunk/reactos/lib/kbddv/kbddv.xml 2005-06-17 07:53:58 UTC (rev 15946) @@ -2,6 +2,8 @@ <importlibrary definition="kbddv.def" /> <include base="ntoskrnl">include</include> <define name="_DISABLE_TIDENTS" /> + <define name="__USE_W32API" /> + <define name="_WIN32_WINNT">0x0500</define> <file>kbddv.c</file> <file>kbddv.rc</file> </module> _____ Modified: trunk/reactos/lib/kbdes/kbdes.xml --- trunk/reactos/lib/kbdes/kbdes.xml 2005-06-17 07:53:34 UTC (rev 15945) +++ trunk/reactos/lib/kbdes/kbdes.xml 2005-06-17 07:53:58 UTC (rev 15946) @@ -2,6 +2,8 @@ <importlibrary definition="kbdes.def" /> <include base="ntoskrnl">include</include> <define name="_DISABLE_TIDENTS" /> + <define name="__USE_W32API" /> + <define name="_WIN32_WINNT">0x0500</define> <file>kbdes.c</file> <file>kbdes.rc</file> </module> _____ Modified: trunk/reactos/lib/kbdfr/kbdfr.xml --- trunk/reactos/lib/kbdfr/kbdfr.xml 2005-06-17 07:53:34 UTC (rev 15945) +++ trunk/reactos/lib/kbdfr/kbdfr.xml 2005-06-17 07:53:58 UTC (rev 15946) @@ -2,6 +2,8 @@ <importlibrary definition="kbdfr.def" /> <include base="ntoskrnl">include</include> <define name="_DISABLE_TIDENTS" /> + <define name="__USE_W32API" /> + <define name="_WIN32_WINNT">0x0500</define> <file>kbdfr.c</file> <file>kbdfr.rc</file> </module> _____ Modified: trunk/reactos/lib/kbdgr/kbdgr.xml --- trunk/reactos/lib/kbdgr/kbdgr.xml 2005-06-17 07:53:34 UTC (rev 15945) +++ trunk/reactos/lib/kbdgr/kbdgr.xml 2005-06-17 07:53:58 UTC (rev 15946) @@ -2,6 +2,8 @@ <importlibrary definition="kbdgr.def" /> <include base="ntoskrnl">include</include> <define name="_DISABLE_TIDENTS" /> + <define name="__USE_W32API" /> + <define name="_WIN32_WINNT">0x0500</define> <file>kbdgr.c</file> <file>kbdgr.rc</file> </module> _____ Modified: trunk/reactos/lib/kbdru/kbdru.xml --- trunk/reactos/lib/kbdru/kbdru.xml 2005-06-17 07:53:34 UTC (rev 15945) +++ trunk/reactos/lib/kbdru/kbdru.xml 2005-06-17 07:53:58 UTC (rev 15946) @@ -2,6 +2,8 @@ <importlibrary definition="kbdru.def" /> <include base="ntoskrnl">include</include> <define name="_DISABLE_TIDENTS" /> + <define name="__USE_W32API" /> + <define name="_WIN32_WINNT">0x0500</define> <file>kbdru.c</file> <file>kbdru.rc</file> </module> _____ Modified: trunk/reactos/lib/kbdse/kbdse.xml --- trunk/reactos/lib/kbdse/kbdse.xml 2005-06-17 07:53:34 UTC (rev 15945) +++ trunk/reactos/lib/kbdse/kbdse.xml 2005-06-17 07:53:58 UTC (rev 15946) @@ -2,6 +2,8 @@ <importlibrary definition="kbdse.def" /> <include base="ntoskrnl">include</include> <define name="_DISABLE_TIDENTS" /> + <define name="__USE_W32API" /> + <define name="_WIN32_WINNT">0x0500</define> <file>kbdse.c</file> <file>kbdse.rc</file> </module> _____ Modified: trunk/reactos/lib/kbdsg/kbdsg.xml --- trunk/reactos/lib/kbdsg/kbdsg.xml 2005-06-17 07:53:34 UTC (rev 15945) +++ trunk/reactos/lib/kbdsg/kbdsg.xml 2005-06-17 07:53:58 UTC (rev 15946) @@ -2,6 +2,8 @@ <importlibrary definition="kbdsg.def" /> <include base="ntoskrnl">include</include> <define name="_DISABLE_TIDENTS" /> + <define name="__USE_W32API" /> + <define name="_WIN32_WINNT">0x0500</define> <file>kbdsg.c</file> <file>kbdsg.rc</file> </module> _____ Modified: trunk/reactos/lib/kbduk/kbduk.xml --- trunk/reactos/lib/kbduk/kbduk.xml 2005-06-17 07:53:34 UTC (rev 15945) +++ trunk/reactos/lib/kbduk/kbduk.xml 2005-06-17 07:53:58 UTC (rev 15946) @@ -2,6 +2,8 @@ <importlibrary definition="kbduk.def" /> <include base="ntoskrnl">include</include> <define name="_DISABLE_TIDENTS" /> + <define name="__USE_W32API" /> + <define name="_WIN32_WINNT">0x0500</define> <file>kbduk.c</file> <file>kbduk.rc</file> </module> _____ Modified: trunk/reactos/lib/kbdus/kbdus.xml --- trunk/reactos/lib/kbdus/kbdus.xml 2005-06-17 07:53:34 UTC (rev 15945) +++ trunk/reactos/lib/kbdus/kbdus.xml 2005-06-17 07:53:58 UTC (rev 15946) @@ -2,6 +2,8 @@ <importlibrary definition="kbdus.def" /> <include base="ntoskrnl">include</include> <define name="_DISABLE_TIDENTS" /> + <define name="__USE_W32API" /> + <define name="_WIN32_WINNT">0x0500</define> <file>kbdus.c</file> <file>kbdus.rc</file> </module>
19 years, 6 months
1
0
0
0
[navaraf] 15945: - Use standard TLS instead of custom TEB field.
by navaraf@svn.reactos.com
- Use standard TLS instead of custom TEB field. - Use W32API. Modified: trunk/reactos/lib/libwine/debug.c Modified: trunk/reactos/lib/libwine/libwine.xml _____ Modified: trunk/reactos/lib/libwine/debug.c --- trunk/reactos/lib/libwine/debug.c 2005-06-17 07:16:01 UTC (rev 15944) +++ trunk/reactos/lib/libwine/debug.c 2005-06-17 07:53:34 UTC (rev 15945) @@ -29,6 +29,18 @@ /* ---------------------------------------------------------------------- */ +static CRITICAL_SECTION WineDebugCS; +static CRITICAL_SECTION_DEBUG critsect_debug = +{ + 0, 0, &WineDebugCS, + { &critsect_debug.ProcessLocksList, &critsect_debug.ProcessLocksList }, + 0, 0, { 0, 0 } +}; +static CRITICAL_SECTION WineDebugCS = { &critsect_debug, -1, 0, 0, 0, 0 }; +static DWORD WineDebugTlsIndex = TLS_OUT_OF_INDEXES; + +/* ---------------------------------------------------------------------- */ + struct debug_info { char *str_pos; /* current position in strings buffer */ @@ -37,28 +49,40 @@ char output[1024]; /* current output line */ }; -static struct debug_info tmp; +static struct debug_info tmp = { tmp.strings, tmp.output }; /* get the debug info pointer for the current thread */ static inline struct debug_info *get_info(void) { - struct debug_info *info = NtCurrentTeb()->WineDebugInfo; - if (!info) + struct debug_info *info; + + if (WineDebugTlsIndex == TLS_OUT_OF_INDEXES) { - if (!tmp.str_pos) + EnterCriticalSection(&WineDebugCS); + if (WineDebugTlsIndex == TLS_OUT_OF_INDEXES) { - tmp.str_pos = tmp.strings; - tmp.out_pos = tmp.output; + DWORD NewTlsIndex = TlsAlloc(); + if (NewTlsIndex == TLS_OUT_OF_INDEXES) + { + LeaveCriticalSection(&WineDebugCS); + return &tmp; + } + info = HeapAlloc(GetProcessHeap(), 0, sizeof(*info)); + if (!info) + { + LeaveCriticalSection(&WineDebugCS); + TlsFree(NewTlsIndex); + return &tmp; + } + info->str_pos = info->strings; + info->out_pos = info->output; + TlsSetValue(NewTlsIndex, info); + WineDebugTlsIndex = NewTlsIndex; } - if (!RtlGetProcessHeap()) return &tmp; - /* setup the temp structure in case HeapAlloc wants to print something */ - NtCurrentTeb()->WineDebugInfo = &tmp; - info = RtlAllocateHeap(RtlGetProcessHeap(), 0, sizeof(*info)); - info->str_pos = info->strings; - info->out_pos = info->output; - NtCurrentTeb()->WineDebugInfo = info; + LeaveCriticalSection(&WineDebugCS); } - return info; + + return TlsGetValue(WineDebugTlsIndex); } /* allocate some tmp space for a string */ @@ -75,7 +99,11 @@ /* release extra space that we requested in gimme1() */ static inline void release(void *ptr) { - struct debug_info *info = NtCurrentTeb()->WineDebugInfo; + struct debug_info *info; + if (WineDebugTlsIndex == TLS_OUT_OF_INDEXES) + info = &tmp; + else + info = TlsGetValue(WineDebugTlsIndex); info->str_pos = ptr; } _____ Modified: trunk/reactos/lib/libwine/libwine.xml --- trunk/reactos/lib/libwine/libwine.xml 2005-06-17 07:16:01 UTC (rev 15944) +++ trunk/reactos/lib/libwine/libwine.xml 2005-06-17 07:53:34 UTC (rev 15945) @@ -1,5 +1,6 @@ <module name="wine" type="staticlibrary"> <define name="_DISABLE_TIDENTS" /> <define name="__REACTOS__" /> + <define name="__USE_W32API" /> <file>debug.c</file> </module>
19 years, 6 months
1
0
0
0
[navaraf] 15944: Add definitions of ACCESS_MAX_MS_V2_ACE_TYPE, ACCESS_ALLOWED_COMPOUND_ACE_TYPE, ACCESS_MAX_MS_V3_ACE_TYPE, ACCESS_MIN_MS_OBJECT_ACE_TYPE, ACCESS_ALLOWED_OBJECT_ACE_TYPE, ACCESS_DENIED_OBJECT_ACE_TYPE, SYSTEM_AUDIT_OBJECT_ACE_TYPE, SYSTEM_ALARM_OBJECT_ACE_TYPE, ACCESS_MAX_MS_OBJECT_ACE_TYPE, ACCESS_MAX_MS_V4_ACE_TYPE, ACCESS_MAX_MS_ACE_TYPE, ACCESS_ALLOWED_CALLBACK_ACE_TYPE, ACCESS_DENIED_CALLBACK_ACE_TYPE, ACCESS_ALLOWED_CALLBACK_OBJECT_ACE_TYPE, ACCESS_DENIED_CALLBACK_OBJECT_AC
by navaraf@svn.reactos.com
Add definitions of ACCESS_MAX_MS_V2_ACE_TYPE, ACCESS_ALLOWED_COMPOUND_ACE_TYPE, ACCESS_MAX_MS_V3_ACE_TYPE, ACCESS_MIN_MS_OBJECT_ACE_TYPE, ACCESS_ALLOWED_OBJECT_ACE_TYPE, ACCESS_DENIED_OBJECT_ACE_TYPE, SYSTEM_AUDIT_OBJECT_ACE_TYPE, SYSTEM_ALARM_OBJECT_ACE_TYPE, ACCESS_MAX_MS_OBJECT_ACE_TYPE, ACCESS_MAX_MS_V4_ACE_TYPE, ACCESS_MAX_MS_ACE_TYPE, ACCESS_ALLOWED_CALLBACK_ACE_TYPE, ACCESS_DENIED_CALLBACK_ACE_TYPE, ACCESS_ALLOWED_CALLBACK_OBJECT_ACE_TYPE, ACCESS_DENIED_CALLBACK_OBJECT_ACE_TYPE, SYSTEM_AUDIT_CALLBACK_ACE_TYPE, SYSTEM_ALARM_CALLBACK_ACE_TYPE, SYSTEM_AUDIT_CALLBACK_OBJECT_ACE_TYPE, SYSTEM_ALARM_CALLBACK_OBJECT_ACE_TYPE, ACCESS_MAX_MS_V5_ACE_TYPE, SID_MAX_SUB_AUTHORITIES, SID_RECOMMENDED_SUB_AUTHORITIES, SE_OWNER_DEFAULTED, SE_GROUP_DEFAULTED, SE_DACL_PRESENT, SE_DACL_DEFAULTED, SE_SACL_PRESENT, SE_SACL_DEFAULTED, SE_DACL_UNTRUSTED, SE_SERVER_SECURITY, SE_DACL_AUTO_INHERIT_REQ, SE_SACL_AUTO_INHERIT_REQ, SE_DACL_AUTO_INHERITED, SE_SACL_AUTO_INHERITED, SE_DACL_PROTECTED, SE_SACL_PROTECTED, SE_RM_CONTROL_VALID and SE_SELF_RELATIVE. Modified: trunk/reactos/w32api/include/ddk/ntifs.h _____ Modified: trunk/reactos/w32api/include/ddk/ntifs.h --- trunk/reactos/w32api/include/ddk/ntifs.h 2005-06-17 07:12:16 UTC (rev 15943) +++ trunk/reactos/w32api/include/ddk/ntifs.h 2005-06-17 07:16:01 UTC (rev 15944) @@ -63,10 +63,31 @@ #define DOS_DOT (L'"') /* also in winnt.h */ -#define ACCESS_ALLOWED_ACE_TYPE (0x0) -#define ACCESS_DENIED_ACE_TYPE (0x1) -#define SYSTEM_AUDIT_ACE_TYPE (0x2) -#define SYSTEM_ALARM_ACE_TYPE (0x3) +#define ACCESS_MIN_MS_ACE_TYPE (0x0) +#define ACCESS_ALLOWED_ACE_TYPE (0x0) +#define ACCESS_DENIED_ACE_TYPE (0x1) +#define SYSTEM_AUDIT_ACE_TYPE (0x2) +#define SYSTEM_ALARM_ACE_TYPE (0x3) +#define ACCESS_MAX_MS_V2_ACE_TYPE (0x3) +#define ACCESS_ALLOWED_COMPOUND_ACE_TYPE (0x4) +#define ACCESS_MAX_MS_V3_ACE_TYPE (0x4) +#define ACCESS_MIN_MS_OBJECT_ACE_TYPE (0x5) +#define ACCESS_ALLOWED_OBJECT_ACE_TYPE (0x5) +#define ACCESS_DENIED_OBJECT_ACE_TYPE (0x6) +#define SYSTEM_AUDIT_OBJECT_ACE_TYPE (0x7) +#define SYSTEM_ALARM_OBJECT_ACE_TYPE (0x8) +#define ACCESS_MAX_MS_OBJECT_ACE_TYPE (0x8) +#define ACCESS_MAX_MS_V4_ACE_TYPE (0x8) +#define ACCESS_MAX_MS_ACE_TYPE (0x8) +#define ACCESS_ALLOWED_CALLBACK_ACE_TYPE (0x9) +#define ACCESS_DENIED_CALLBACK_ACE_TYPE (0xA) +#define ACCESS_ALLOWED_CALLBACK_OBJECT_ACE_TYPE (0xB) +#define ACCESS_DENIED_CALLBACK_OBJECT_ACE_TYPE (0xC) +#define SYSTEM_AUDIT_CALLBACK_ACE_TYPE (0xD) +#define SYSTEM_ALARM_CALLBACK_ACE_TYPE (0xE) +#define SYSTEM_AUDIT_CALLBACK_OBJECT_ACE_TYPE (0xF) +#define SYSTEM_ALARM_CALLBACK_OBJECT_ACE_TYPE (0x10) +#define ACCESS_MAX_MS_V5_ACE_TYPE (0x10) #define COMPRESSION_FORMAT_NONE (0x0000) #define COMPRESSION_FORMAT_DEFAULT (0x0001) @@ -306,6 +327,8 @@ #define SECURITY_WORLD_RID (0x00000000L) #define SID_REVISION 1 +#define SID_MAX_SUB_AUTHORITIES 15 +#define SID_RECOMMENDED_SUB_AUTHORITIES 1 #define TOKEN_ASSIGN_PRIMARY (0x0001) #define TOKEN_DUPLICATE (0x0002) @@ -350,6 +373,23 @@ #define VACB_MAPPING_GRANULARITY (0x40000) #define VACB_OFFSET_SHIFT (18) +#define SE_OWNER_DEFAULTED 0x0001 +#define SE_GROUP_DEFAULTED 0x0002 +#define SE_DACL_PRESENT 0x0004 +#define SE_DACL_DEFAULTED 0x0008 +#define SE_SACL_PRESENT 0x0010 +#define SE_SACL_DEFAULTED 0x0020 +#define SE_DACL_UNTRUSTED 0x0040 +#define SE_SERVER_SECURITY 0x0080 +#define SE_DACL_AUTO_INHERIT_REQ 0x0100 +#define SE_SACL_AUTO_INHERIT_REQ 0x0200 +#define SE_DACL_AUTO_INHERITED 0x0400 +#define SE_SACL_AUTO_INHERITED 0x0800 +#define SE_DACL_PROTECTED 0x1000 +#define SE_SACL_PROTECTED 0x2000 +#define SE_RM_CONTROL_VALID 0x4000 +#define SE_SELF_RELATIVE 0x8000 + #define FSCTL_REQUEST_OPLOCK_LEVEL_1 CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 0, METHOD_BUFFERED, FILE_ANY_ACCESS) #define FSCTL_REQUEST_OPLOCK_LEVEL_2 CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 1, METHOD_BUFFERED, FILE_ANY_ACCESS) #define FSCTL_REQUEST_BATCH_OPLOCK CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 2, METHOD_BUFFERED, FILE_ANY_ACCESS)
19 years, 6 months
1
0
0
0
[navaraf] 15943: - Declare POLICY_NOTIFICATION_INFORMATION_CLASS and SECURITY_LOGON_SESSION_DATA.
by navaraf@svn.reactos.com
- Declare POLICY_NOTIFICATION_INFORMATION_CLASS and SECURITY_LOGON_SESSION_DATA. - Fix declaration of CRITICAL_SECTION and RTL_CRITICAL_SECTION. Modified: trunk/reactos/w32api/include/ntsecapi.h Modified: trunk/reactos/w32api/include/winbase.h Modified: trunk/reactos/w32api/include/winnt.h _____ Modified: trunk/reactos/w32api/include/ntsecapi.h --- trunk/reactos/w32api/include/ntsecapi.h 2005-06-17 00:13:44 UTC (rev 15942) +++ trunk/reactos/w32api/include/ntsecapi.h 2005-06-17 07:12:16 UTC (rev 15943) @@ -229,6 +229,15 @@ PolicyDomainLockoutInformation, PolicyDomainKerberosTicketInformation } POLICY_DOMAIN_INFORMATION_CLASS, *PPOLICY_DOMAIN_INFORMATION_CLASS; +typedef enum _POLICY_NOTIFICATION_INFORMATION_CLASS { + PolicyNotifyAuditEventsInformation = 1, + PolicyNotifyAccountDomainInformation, + PolicyNotifyServerRoleInformation, + PolicyNotifyDnsDomainInformation, + PolicyNotifyDomainEfsInformation, + PolicyNotifyDomainKerberosTicketInformation, + PolicyNotifyMachineAccountPasswordInformation +} POLICY_NOTIFICATION_INFORMATION_CLASS, *PPOLICY_NOTIFICATION_INFORMATION_CLASS; typedef enum _SECURITY_LOGON_TYPE { Interactive = 2, Network, @@ -237,6 +246,20 @@ Proxy, Unlock } SECURITY_LOGON_TYPE, *PSECURITY_LOGON_TYPE; +typedef struct _SECURITY_LOGON_SESSION_DATA { + ULONG Size; + LUID LogonId; + LSA_UNICODE_STRING UserName; + LSA_UNICODE_STRING LogonDomain; + LSA_UNICODE_STRING AuthenticationPackage; + ULONG LogonType; + ULONG Session; + PSID Sid; + LARGE_INTEGER LogonTime; + LSA_UNICODE_STRING LogonServer; + LSA_UNICODE_STRING DnsDomainName; + LSA_UNICODE_STRING Upn; +} SECURITY_LOGON_SESSION_DATA, *PSECURITY_LOGON_SESSION_DATA; typedef enum _TRUSTED_INFORMATION_CLASS { TrustedDomainNameInformation = 1, TrustedControllersInformation, _____ Modified: trunk/reactos/w32api/include/winbase.h --- trunk/reactos/w32api/include/winbase.h 2005-06-17 00:13:44 UTC (rev 15942) +++ trunk/reactos/w32api/include/winbase.h 2005-06-17 07:12:16 UTC (rev 15943) @@ -766,7 +766,7 @@ LONG RecursionCount; HANDLE OwningThread; HANDLE LockSemaphore; - DWORD SpinCount; + ULONG_PTR SpinCount; } CRITICAL_SECTION,*PCRITICAL_SECTION,*LPCRITICAL_SECTION; typedef struct _SYSTEMTIME { WORD wYear; _____ Modified: trunk/reactos/w32api/include/winnt.h --- trunk/reactos/w32api/include/winnt.h 2005-06-17 00:13:44 UTC (rev 15942) +++ trunk/reactos/w32api/include/winnt.h 2005-06-17 07:12:16 UTC (rev 15943) @@ -2287,7 +2287,7 @@ LONG RecursionCount; HANDLE OwningThread; HANDLE LockSemaphore; - DWORD Reserved; + ULONG_PTR SpinCount; } RTL_CRITICAL_SECTION,*PRTL_CRITICAL_SECTION; typedef struct _EVENTLOGRECORD { DWORD Length;
19 years, 6 months
1
0
0
0
[ion] 15942: Fix bug in gate code
by ion@svn.reactos.com
Fix bug in gate code Modified: trunk/reactos/ntoskrnl/ke/gate.c _____ Modified: trunk/reactos/ntoskrnl/ke/gate.c --- trunk/reactos/ntoskrnl/ke/gate.c 2005-06-17 00:13:10 UTC (rev 15941) +++ trunk/reactos/ntoskrnl/ke/gate.c 2005-06-17 00:13:44 UTC (rev 15942) @@ -44,8 +44,8 @@ do { /* Lock the APC Queue */ - KeAcquireSpinLock(&CurrentThread->ApcQueueLock, &OldIrql); - + OldIrql = KeAcquireDispatcherDatabaseLock(); + /* Check if it's already signaled */ if (!Gate->Header.SignalState) { @@ -53,7 +53,7 @@ Gate->Header.SignalState = 0; /* Unlock the Queue and return */ - KeReleaseSpinLock(&CurrentThread->ApcQueueLock, OldIrql); + KeReleaseDispatcherDatabaseLock(OldIrql); return; } @@ -78,9 +78,6 @@ KiWakeQueue(CurrentThread->Queue); } - /* Unlock the Queue*/ - KeReleaseSpinLock(&CurrentThread->ApcQueueLock, OldIrql); - /* Block the Thread */ DPRINT("Blocking the Thread: %x\n", CurrentThread); KiBlockThread(&Status,
19 years, 6 months
1
0
0
0
[ion] 15941: Fix strpbrk
by ion@svn.reactos.com
Fix strpbrk Modified: trunk/reactos/lib/string/strpbrk.c _____ Modified: trunk/reactos/lib/string/strpbrk.c --- trunk/reactos/lib/string/strpbrk.c 2005-06-16 22:15:43 UTC (rev 15940) +++ trunk/reactos/lib/string/strpbrk.c 2005-06-17 00:13:10 UTC (rev 15941) @@ -44,7 +44,7 @@ { if (char_map[*str / BIT_SIZE] & (1 << (*str % BIT_SIZE))) { - return str; + return (char*)str; } str++; }
19 years, 6 months
1
0
0
0
[gvg] 15940: Declare Guarded Mutex functions and export them
by gvg@svn.reactos.com
Declare Guarded Mutex functions and export them Modified: trunk/reactos/ntoskrnl/ntoskrnl.def Modified: trunk/reactos/w32api/include/ddk/winddk.h _____ Modified: trunk/reactos/ntoskrnl/ntoskrnl.def --- trunk/reactos/ntoskrnl/ntoskrnl.def 2005-06-16 21:02:52 UTC (rev 15939) +++ trunk/reactos/ntoskrnl/ntoskrnl.def 2005-06-16 22:15:43 UTC (rev 15940) @@ -508,6 +508,8 @@ Ke386IoSetAccessProcess@8 Ke386QueryIoAccessMap@8 Ke386SetIoAccessMap@8 +@KeAcquireGuardedMutex@4 +@KeAcquireGuardedMutexUnsafe@4 KeAcquireSpinLockAtDpcLevel@4 @KeAcquireDispatcherDatabaseLockAtDpcLevel@0 @KeAcquireInStackQueuedSpinLockAtDpcLevel@8 @@ -529,6 +531,7 @@ KeDetachProcess@0 KeDisconnectInterrupt@4 KeEnterCriticalRegion@0 +KeEnterGuardedRegion@0 KeEnterKernelDebugger@0 KeFindConfigurationEntry@16 KeFindConfigurationNextEntry@20 @@ -552,6 +555,7 @@ KeInitializeDeviceQueue@4 KeInitializeDpc@12 KeInitializeEvent@12 +@KeInitializeGuardedMutex@4 KeInitializeInterrupt@44 KeInitializeMutant@8 KeInitializeMutex@8 @@ -569,6 +573,7 @@ KeIsAttachedProcess@0 KeIsExecutingDpc@0 KeLeaveCriticalRegion@0 +KeLeaveGuardedRegion@0 KeLoaderBlock DATA KeNumberProcessors DATA KeProfileInterrupt@4 @@ -591,6 +596,8 @@ KeRegisterBugCheckCallback@20 KeRegisterBugCheckReasonCallback@16 @KeReleaseDispatcherDatabaseLockFromDpcLevel@0 +@KeReleaseGuardedMutexUnsafe@4 +@KeReleaseGuardedMutex@4 @KeReleaseInStackQueuedSpinLockFromDpcLevel@4 KeReleaseInterruptSpinLock@8 KeReleaseMutant@16 @@ -633,6 +640,7 @@ KeSynchronizeExecution@12 KeTerminateThread@4 KeTickCount DATA +@KeTryToAcquireGuardedMutex@4 KeUpdateRunTime@8 KeUpdateSystemTime@8 KeUnstackDetachProcess@4 _____ Modified: trunk/reactos/w32api/include/ddk/winddk.h --- trunk/reactos/w32api/include/ddk/winddk.h 2005-06-16 21:02:52 UTC (rev 15939) +++ trunk/reactos/w32api/include/ddk/winddk.h 2005-06-16 22:15:43 UTC (rev 15940) @@ -5350,6 +5350,52 @@ #endif +/* Guarded Mutex routines */ + +VOID +FASTCALL +KeAcquireGuardedMutex( + PKGUARDED_MUTEX GuardedMutex +); + +VOID +FASTCALL +KeAcquireGuardedMutexUnsafe( + PKGUARDED_MUTEX GuardedMutex +); + +VOID +STDCALL +KeEnterGuardedRegion(VOID); + +VOID +STDCALL +KeLeaveGuardedRegion(VOID); + +VOID +FASTCALL +KeInitializeGuardedMutex( + PKGUARDED_MUTEX GuardedMutex +); + +VOID +FASTCALL +KeReleaseGuardedMutexUnsafe( + PKGUARDED_MUTEX GuardedMutex +); + +VOID +FASTCALL +KeReleaseGuardedMutex( + PKGUARDED_MUTEX GuardedMutex +); + +BOOL +FASTCALL +KeTryToAcquireGuardedMutex( + PKGUARDED_MUTEX GuardedMutex +); + /** Executive support routines **/ NTOSAPI
19 years, 6 months
1
0
0
0
← Newer
1
...
39
40
41
42
43
44
45
...
65
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
Results per page:
10
25
50
100
200