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
2025
June
May
April
March
February
January
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
October 2008
----- 2025 -----
June 2025
May 2025
April 2025
March 2025
February 2025
January 2025
----- 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
25 participants
517 discussions
Start a n
N
ew thread
[pschweitzer] 36770: Merged r36663 with pierre-fsd
by pschweitzer@svn.reactos.org
Author: pschweitzer Date: Thu Oct 16 13:18:24 2008 New Revision: 36770 URL:
http://svn.reactos.org/svn/reactos?rev=36770&view=rev
Log: Merged r36663 with pierre-fsd Modified: branches/pierre-fsd/lib/rtl/generictable.c branches/pierre-fsd/lib/rtl/splaytree.c Modified: branches/pierre-fsd/lib/rtl/generictable.c URL:
http://svn.reactos.org/svn/reactos/branches/pierre-fsd/lib/rtl/generictable…
============================================================================== --- branches/pierre-fsd/lib/rtl/generictable.c [iso-8859-1] (original) +++ branches/pierre-fsd/lib/rtl/generictable.c [iso-8859-1] Thu Oct 16 13:18:24 2008 @@ -352,7 +352,7 @@ else { /* Otherwise, try using the real successor */ - FoundNode = RtlRealSuccessor(Table->TableRoot); + FoundNode = RtlRealSuccessor(*RestartKey); if (FoundNode) Table->TableRoot = RtlSplay(FoundNode); } Modified: branches/pierre-fsd/lib/rtl/splaytree.c URL:
http://svn.reactos.org/svn/reactos/branches/pierre-fsd/lib/rtl/splaytree.c?…
============================================================================== --- branches/pierre-fsd/lib/rtl/splaytree.c [iso-8859-1] (original) +++ branches/pierre-fsd/lib/rtl/splaytree.c [iso-8859-1] Thu Oct 16 13:18:24 2008 @@ -40,7 +40,7 @@ if (!(RtlLeftChild(N)) && !(RtlRightChild(N))) { /* If we are also the root, then the tree is gone */ - return NULL; + if (RtlIsRoot(N)) return NULL; /* Get our parent */ P = RtlParent(N);
16 years, 7 months
1
0
0
0
[tkreuzer] 36769: Win32 structure cleanup part 1 / x: - replace W32THREAD with THREADINFO, define W32THREAD like it's on Windows and make it part of THREADINFO.
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Thu Oct 16 12:52:38 2008 New Revision: 36769 URL:
http://svn.reactos.org/svn/reactos?rev=36769&view=rev
Log: Win32 structure cleanup part 1 / x: - replace W32THREAD with THREADINFO, define W32THREAD like it's on Windows and make it part of THREADINFO. Modified: trunk/reactos/subsystems/win32/win32k/include/callback.h trunk/reactos/subsystems/win32/win32k/include/caret.h trunk/reactos/subsystems/win32/win32k/include/desktop.h trunk/reactos/subsystems/win32/win32k/include/hook.h trunk/reactos/subsystems/win32/win32k/include/input.h trunk/reactos/subsystems/win32/win32k/include/object.h trunk/reactos/subsystems/win32/win32k/include/painting.h trunk/reactos/subsystems/win32/win32k/include/win32.h trunk/reactos/subsystems/win32/win32k/main/dllmain.c trunk/reactos/subsystems/win32/win32k/ntuser/callback.c trunk/reactos/subsystems/win32/win32k/ntuser/caret.c trunk/reactos/subsystems/win32/win32k/ntuser/clipboard.c trunk/reactos/subsystems/win32/win32k/ntuser/cursoricon.c trunk/reactos/subsystems/win32/win32k/ntuser/desktop.c trunk/reactos/subsystems/win32/win32k/ntuser/event.c trunk/reactos/subsystems/win32/win32k/ntuser/focus.c trunk/reactos/subsystems/win32/win32k/ntuser/hook.c trunk/reactos/subsystems/win32/win32k/ntuser/input.c trunk/reactos/subsystems/win32/win32k/ntuser/kbdlayout.c trunk/reactos/subsystems/win32/win32k/ntuser/keyboard.c trunk/reactos/subsystems/win32/win32k/ntuser/message.c trunk/reactos/subsystems/win32/win32k/ntuser/misc.c trunk/reactos/subsystems/win32/win32k/ntuser/msgqueue.c trunk/reactos/subsystems/win32/win32k/ntuser/painting.c trunk/reactos/subsystems/win32/win32k/ntuser/simplecall.c trunk/reactos/subsystems/win32/win32k/ntuser/sysparams.c trunk/reactos/subsystems/win32/win32k/ntuser/timer.c trunk/reactos/subsystems/win32/win32k/ntuser/useratom.c trunk/reactos/subsystems/win32/win32k/ntuser/window.c trunk/reactos/subsystems/win32/win32k/ntuser/winpos.c trunk/reactos/subsystems/win32/win32k/ntuser/winsta.c trunk/reactos/subsystems/win32/win32k/objects/gdiobj.c Modified: trunk/reactos/subsystems/win32/win32k/include/callback.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/in…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/include/callback.h [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/include/callback.h [iso-8859-1] Thu Oct 16 12:52:38 2008 @@ -46,7 +46,7 @@ WINEVENTPROC Proc); VOID FASTCALL -IntCleanupThreadCallbacks(PW32THREAD W32Thread); +IntCleanupThreadCallbacks(PTHREADINFO W32Thread); PVOID FASTCALL IntCbAllocateMemory(ULONG Size); Modified: trunk/reactos/subsystems/win32/win32k/include/caret.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/in…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/include/caret.h [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/include/caret.h [iso-8859-1] Thu Oct 16 12:52:38 2008 @@ -7,7 +7,7 @@ #define IDCARETTIMER (0xffff) BOOL FASTCALL -co_IntDestroyCaret(PW32THREAD Win32Thread); +co_IntDestroyCaret(PTHREADINFO Win32Thread); BOOL FASTCALL IntSetCaretBlinkTime(UINT uMSeconds); Modified: trunk/reactos/subsystems/win32/win32k/include/desktop.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/in…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/include/desktop.h [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/include/desktop.h [iso-8859-1] Thu Oct 16 12:52:38 2008 @@ -198,11 +198,13 @@ DesktopHeapGetUserDelta(VOID) { PW32HEAP_USER_MAPPING Mapping; + PTHREADINFO pti; HANDLE hDesktopHeap; ULONG_PTR Delta = 0; - ASSERT(PsGetCurrentThreadWin32Thread()->Desktop != NULL); - hDesktopHeap = PsGetCurrentThreadWin32Thread()->Desktop->hDesktopHeap; + pti = PsGetCurrentThreadWin32Thread(); + ASSERT(pti->Desktop != NULL); + hDesktopHeap = pti->Desktop->hDesktopHeap; Mapping = PsGetCurrentProcessWin32Process()->HeapMappings.Next; while (Mapping != NULL) Modified: trunk/reactos/subsystems/win32/win32k/include/hook.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/in…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/include/hook.h [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/include/hook.h [iso-8859-1] Thu Oct 16 12:52:38 2008 @@ -18,7 +18,7 @@ #define NB_HOOKS (WH_MAXHOOK-WH_MINHOOK+1) #define HOOKID_TO_INDEX(HookId) (HookId - WH_MINHOOK) #define HOOKID_TO_FLAG(HookId) (1 << ((HookId) + 1)) -#define ISITHOOKED(HookId) (PsGetCurrentThreadWin32Thread()->Hooks & HOOKID_TO_FLAG(HookId)) +#define ISITHOOKED(HookId) (((PTHREADINFO)PsGetCurrentThreadWin32Thread())->Hooks & HOOKID_TO_FLAG(HookId)) typedef struct tagHOOKTABLE { Modified: trunk/reactos/subsystems/win32/win32k/include/input.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/in…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/include/input.h [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/include/input.h [iso-8859-1] Thu Oct 16 12:52:38 2008 @@ -27,7 +27,7 @@ VOID W32kUnregisterPrimitiveMessageQueue(VOID); PKBL W32kGetDefaultKeyLayout(VOID); VOID FASTCALL W32kKeyProcessMessage(LPMSG Msg, PKBDTABLES KeyLayout, BYTE Prefix); -BOOL FASTCALL IntBlockInput(PW32THREAD W32Thread, BOOL BlockIt); +BOOL FASTCALL IntBlockInput(PTHREADINFO W32Thread, BOOL BlockIt); BOOL FASTCALL IntMouseInput(MOUSEINPUT *mi); BOOL FASTCALL IntKeyboardInput(KEYBDINPUT *ki); Modified: trunk/reactos/subsystems/win32/win32k/include/object.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/in…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/include/object.h [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/include/object.h [iso-8859-1] Thu Oct 16 12:52:38 2008 @@ -87,7 +87,7 @@ static __inline VOID UserAssertLastRef(PVOID obj, const char *file, int line) { - PW32THREAD W32Thread; + PTHREADINFO W32Thread; PSINGLE_LIST_ENTRY ReferenceEntry; PUSER_REFERENCE_ENTRY UserReferenceEntry; @@ -122,7 +122,7 @@ static __inline VOID UserRefObjectCo(PVOID obj, PUSER_REFERENCE_ENTRY UserReferenceEntry) { - PW32THREAD W32Thread; + PTHREADINFO W32Thread; W32Thread = PsGetCurrentThreadWin32Thread(); ASSERT(W32Thread != NULL); @@ -135,7 +135,7 @@ static __inline VOID UserDerefObjectCo(PVOID obj) { - PW32THREAD W32Thread; + PTHREADINFO W32Thread; PSINGLE_LIST_ENTRY ReferenceEntry; PUSER_REFERENCE_ENTRY UserReferenceEntry; Modified: trunk/reactos/subsystems/win32/win32k/include/painting.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/in…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/include/painting.h [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/include/painting.h [iso-8859-1] Thu Oct 16 12:52:38 2008 @@ -10,7 +10,7 @@ VOID FASTCALL IntInvalidateWindows(PWINDOW_OBJECT Window, HRGN hRgn, ULONG Flags); BOOL FASTCALL -IntGetPaintMessage(HWND hWnd, UINT MsgFilterMin, UINT MsgFilterMax, PW32THREAD Thread, +IntGetPaintMessage(HWND hWnd, UINT MsgFilterMin, UINT MsgFilterMax, PTHREADINFO Thread, MSG *Message, BOOL Remove); INT FASTCALL UserRealizePalette(HDC); Modified: trunk/reactos/subsystems/win32/win32k/include/win32.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/in…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/include/win32.h [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/include/win32.h [iso-8859-1] Thu Oct 16 12:52:38 2008 @@ -3,22 +3,42 @@ #include <pshpack1.h> +typedef struct _TL +{ + struct _TL* next; + PVOID pobj; + PVOID pfnFree; +} TL, *PTL; + typedef struct _W32THREAD { + PETHREAD pEThread; + ULONG RefCount; + PTL ptlW32; + PVOID pgdiDcattr; + PVOID pgdiBrushAttr; + PVOID pUMPDObjs; + PVOID pUMPDHeap; + DWORD dwEngAcquireCount; + PVOID pSemTable; + PVOID pUMPDObj; +} W32THREAD, *PW32THREAD; + +typedef struct _THREADINFO +{ + W32THREAD W32Thread; + struct _USER_MESSAGE_QUEUE* MessageQueue; LIST_ENTRY WindowListHead; LIST_ENTRY W32CallbackListHead; struct _KBL* KeyboardLayout; struct _DESKTOP_OBJECT* Desktop; HANDLE hDesktop; - PVOID pgdiDcattr; - PVOID pgdiBrushAttr; - DWORD dwEngAcquireCount; BOOLEAN IsExiting; SINGLE_LIST_ENTRY ReferencesList; ULONG Hooks; PW32THREADINFO ThreadInfo; -} W32THREAD, *PW32THREAD; +} THREADINFO, *PTHREADINFO; #include <poppack.h> @@ -49,5 +69,4 @@ PW32PROCESSINFO ProcessInfo; } W32PROCESS, *PW32PROCESS; - #endif /* __INCLUDE_NAPI_WIN32_H */ Modified: trunk/reactos/subsystems/win32/win32k/main/dllmain.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ma…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/main/dllmain.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/main/dllmain.c [iso-8859-1] Thu Oct 16 12:52:38 2008 @@ -174,7 +174,7 @@ PSW32THREADCALLOUTTYPE Type) { struct _EPROCESS *Process; - PW32THREAD Win32Thread; + PTHREADINFO Win32Thread; DECLARE_RETURN(NTSTATUS); DPRINT("Enter Win32kThreadCallback\n"); @@ -190,12 +190,12 @@ { /* FIXME - lock the process */ Win32Thread = ExAllocatePoolWithTag(NonPagedPool, - sizeof(W32THREAD), + sizeof(THREADINFO), TAG('W', '3', '2', 't')); if (Win32Thread == NULL) RETURN( STATUS_NO_MEMORY); - RtlZeroMemory(Win32Thread, sizeof(W32THREAD)); + RtlZeroMemory(Win32Thread, sizeof(THREADINFO)); PsSetThreadWin32Thread(Thread, Win32Thread); /* FIXME - unlock the process */ @@ -344,11 +344,11 @@ if (Thread->Tcb.Win32Thread == NULL) { - Thread->Tcb.Win32Thread = ExAllocatePool (NonPagedPool, sizeof(W32THREAD)); + Thread->Tcb.Win32Thread = ExAllocatePool (NonPagedPool, sizeof(THREADINFO)); if (Thread->Tcb.Win32Thread == NULL) return STATUS_NO_MEMORY; - RtlZeroMemory(Thread->Tcb.Win32Thread, sizeof(W32THREAD)); + RtlZeroMemory(Thread->Tcb.Win32Thread, sizeof(THREADINFO)); Win32kThreadCallback(Thread, PsW32ThreadCalloutInitialize); } Modified: trunk/reactos/subsystems/win32/win32k/ntuser/callback.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/ntuser/callback.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/ntuser/callback.c [iso-8859-1] Thu Oct 16 12:52:38 2008 @@ -42,7 +42,7 @@ typedef struct _INT_CALLBACK_HEADER { - /* list entry in the W32THREAD structure */ + /* list entry in the THREADINFO structure */ LIST_ENTRY ListEntry; } INT_CALLBACK_HEADER, *PINT_CALLBACK_HEADER; @@ -51,7 +51,7 @@ IntCbAllocateMemory(ULONG Size) { PINT_CALLBACK_HEADER Mem; - PW32THREAD W32Thread; + PTHREADINFO W32Thread; if(!(Mem = ExAllocatePoolWithTag(PagedPool, Size + sizeof(INT_CALLBACK_HEADER), TAG_CALLBACK))) @@ -73,7 +73,7 @@ IntCbFreeMemory(PVOID Data) { PINT_CALLBACK_HEADER Mem; - PW32THREAD W32Thread; + PTHREADINFO W32Thread; ASSERT(Data); @@ -90,7 +90,7 @@ } VOID FASTCALL -IntCleanupThreadCallbacks(PW32THREAD W32Thread) +IntCleanupThreadCallbacks(PTHREADINFO W32Thread) { PLIST_ENTRY CurrentEntry; PINT_CALLBACK_HEADER Mem; Modified: trunk/reactos/subsystems/win32/win32k/ntuser/caret.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/ntuser/caret.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/ntuser/caret.c [iso-8859-1] Thu Oct 16 12:52:38 2008 @@ -40,7 +40,7 @@ } BOOL FASTCALL -co_IntDestroyCaret(PW32THREAD Win32Thread) +co_IntDestroyCaret(PTHREADINFO Win32Thread) { PUSER_MESSAGE_QUEUE ThreadQueue; ThreadQueue = (PUSER_MESSAGE_QUEUE)Win32Thread->MessageQueue; @@ -61,7 +61,8 @@ IntSetCaretBlinkTime(UINT uMSeconds) { /* Don't save the new value to the registry! */ - PWINSTATION_OBJECT WinStaObject = PsGetCurrentThreadWin32Thread()->Desktop->WindowStation; + PTHREADINFO pti = PsGetCurrentThreadWin32Thread(); + PWINSTATION_OBJECT WinStaObject = pti->Desktop->WindowStation; /* windows doesn't do this check */ if((uMSeconds < MIN_CARETBLINKRATE) || (uMSeconds > MAX_CARETBLINKRATE)) @@ -146,10 +147,12 @@ UINT FASTCALL IntGetCaretBlinkTime(VOID) { + PTHREADINFO pti; PWINSTATION_OBJECT WinStaObject; UINT Ret; - WinStaObject = PsGetCurrentThreadWin32Thread()->Desktop->WindowStation; + pti = PsGetCurrentThreadWin32Thread(); + WinStaObject = pti->Desktop->WindowStation; Ret = WinStaObject->CaretBlinkRate; if(!Ret) @@ -171,8 +174,11 @@ BOOL FASTCALL co_IntSetCaretPos(int X, int Y) { - PUSER_MESSAGE_QUEUE ThreadQueue; - ThreadQueue = (PUSER_MESSAGE_QUEUE)PsGetCurrentThreadWin32Thread()->MessageQueue; + PTHREADINFO pti; + PUSER_MESSAGE_QUEUE ThreadQueue; + + pti = PsGetCurrentThreadWin32Thread(); + ThreadQueue = pti->MessageQueue; if(ThreadQueue->CaretInfo->hWnd) { @@ -194,8 +200,11 @@ BOOL FASTCALL IntSwitchCaretShowing(PVOID Info) { - PUSER_MESSAGE_QUEUE ThreadQueue; - ThreadQueue = (PUSER_MESSAGE_QUEUE)PsGetCurrentThreadWin32Thread()->MessageQueue; + PTHREADINFO pti; + PUSER_MESSAGE_QUEUE ThreadQueue; + + pti = PsGetCurrentThreadWin32Thread(); + ThreadQueue = pti->MessageQueue; if(ThreadQueue->CaretInfo->hWnd) { @@ -212,8 +221,11 @@ VOID FASTCALL co_IntDrawCaret(HWND hWnd) { - PUSER_MESSAGE_QUEUE ThreadQueue; - ThreadQueue = (PUSER_MESSAGE_QUEUE)PsGetCurrentThreadWin32Thread()->MessageQueue; + PTHREADINFO pti; + PUSER_MESSAGE_QUEUE ThreadQueue; + + pti = PsGetCurrentThreadWin32Thread(); + ThreadQueue = pti->MessageQueue; if(ThreadQueue->CaretInfo->hWnd && ThreadQueue->CaretInfo->Visible && ThreadQueue->CaretInfo->Showing) @@ -228,6 +240,7 @@ BOOL FASTCALL co_UserHideCaret(PWINDOW_OBJECT Window OPTIONAL) { + PTHREADINFO pti; PUSER_MESSAGE_QUEUE ThreadQueue; if (Window) ASSERT_REFS_CO(Window); @@ -238,7 +251,8 @@ return FALSE; } - ThreadQueue = (PUSER_MESSAGE_QUEUE)PsGetCurrentThreadWin32Thread()->MessageQueue; + pti = PsGetCurrentThreadWin32Thread(); + ThreadQueue = pti->MessageQueue; if(Window && ThreadQueue->CaretInfo->hWnd != Window->hSelf) { @@ -261,6 +275,7 @@ BOOL FASTCALL co_UserShowCaret(PWINDOW_OBJECT Window OPTIONAL) { + PTHREADINFO pti; PUSER_MESSAGE_QUEUE ThreadQueue; if (Window) ASSERT_REFS_CO(Window); @@ -271,7 +286,8 @@ return FALSE; } - ThreadQueue = (PUSER_MESSAGE_QUEUE)PsGetCurrentThreadWin32Thread()->MessageQueue; + pti = PsGetCurrentThreadWin32Thread(); + ThreadQueue = pti->MessageQueue; if(Window && ThreadQueue->CaretInfo->hWnd != Window->hSelf) { @@ -304,6 +320,7 @@ int nHeight) { PWINDOW_OBJECT Window; + PTHREADINFO pti; PUSER_MESSAGE_QUEUE ThreadQueue; DECLARE_RETURN(BOOL); @@ -321,7 +338,8 @@ RETURN(FALSE); } - ThreadQueue = (PUSER_MESSAGE_QUEUE)PsGetCurrentThreadWin32Thread()->MessageQueue; + pti = PsGetCurrentThreadWin32Thread(); + ThreadQueue = pti->MessageQueue; if (ThreadQueue->CaretInfo->Visible) { @@ -374,6 +392,7 @@ NtUserGetCaretPos( LPPOINT lpPoint) { + PTHREADINFO pti; PUSER_MESSAGE_QUEUE ThreadQueue; NTSTATUS Status; DECLARE_RETURN(BOOL); @@ -381,7 +400,8 @@ DPRINT("Enter NtUserGetCaretPos\n"); UserEnterShared(); - ThreadQueue = (PUSER_MESSAGE_QUEUE)PsGetCurrentThreadWin32Thread()->MessageQueue; + pti = PsGetCurrentThreadWin32Thread(); + ThreadQueue = pti->MessageQueue; Status = MmCopyToCaller(lpPoint, &(ThreadQueue->CaretInfo->Pos), sizeof(POINT)); if(!NT_SUCCESS(Status)) Modified: trunk/reactos/subsystems/win32/win32k/ntuser/clipboard.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/ntuser/clipboard.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/ntuser/clipboard.c [iso-8859-1] Thu Oct 16 12:52:38 2008 @@ -15,27 +15,8 @@ #define DATA_DELAYED_RENDER 0 #define DATA_SYNTHESIZED_RENDER -1 -#define USE_WINSTA \ - PWINSTATION_OBJECT WinStaObj; \ - WinStaObj = PsGetCurrentThreadWin32Thread()->Desktop->WindowStation; - -#define WINSTA_ClipboardThread WinStaObj->Clipboard->ClipboardThread -#define WINSTA_ClipboardOwnerThread WinStaObj->Clipboard->ClipboardOwnerThread -#define WINSTA_ClipboardWindow WinStaObj->Clipboard->ClipboardWindow -#define WINSTA_ClipboardViewerWindow WinStaObj->Clipboard->ClipboardViewerWindow -#define WINSTA_ClipboardOwnerWindow WinStaObj->Clipboard->ClipboardOwnerWindow -#define WINSTA_sendDrawClipboardMsg WinStaObj->Clipboard->sendDrawClipboardMsg -#define WINSTA_recentlySetClipboard WinStaObj->Clipboard->recentlySetClipboard -#define WINSTA_delayedRender WinStaObj->Clipboard->delayedRender -#define WINSTA_lastEnumClipboardFormats WinStaObj->Clipboard->lastEnumClipboardFormats -#define WINSTA_ClipboardSequenceNumber WinStaObj->Clipboard->ClipboardSequenceNumber -#define WINSTA_WindowsChain WinStaObj->Clipboard->WindowsChain -#define WINSTA_ClipboardData WinStaObj->Clipboard->ClipboardData -#define WINSTA_synthesizedData WinStaObj->Clipboard->synthesizedData -#define WINSTA_synthesizedDataSize WinStaObj->Clipboard->synthesizedDataSize - -PW32THREAD ClipboardThread; -PW32THREAD ClipboardOwnerThread; +PTHREADINFO ClipboardThread; +PTHREADINFO ClipboardOwnerThread; PWINDOW_OBJECT ClipboardWindow; PWINDOW_OBJECT ClipboardViewerWindow; PWINDOW_OBJECT ClipboardOwnerWindow; @@ -1145,11 +1126,13 @@ VOID FASTCALL IntIncrementSequenceNumber(VOID) { - - USE_WINSTA - - WINSTA_ClipboardSequenceNumber++; - + PTHREADINFO pti; + PWINSTATION_OBJECT WinStaObj; + + pti = PsGetCurrentThreadWin32Thread(); + WinStaObj = pti->Desktop->WindowStation; + + WinStaObj->Clipboard->ClipboardSequenceNumber++; } DWORD STDCALL Modified: trunk/reactos/subsystems/win32/win32k/ntuser/cursoricon.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/ntuser/cursoricon.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/ntuser/cursoricon.c [iso-8859-1] Thu Oct 16 12:52:38 2008 @@ -1820,7 +1820,8 @@ NTAPI UserShowCursor(BOOL bShow) { - PWINSTATION_OBJECT WinSta = PsGetCurrentThreadWin32Thread()->Desktop->WindowStation; + PTHREADINFO pti = PsGetCurrentThreadWin32Thread(); + PWINSTATION_OBJECT WinSta = pti->Desktop->WindowStation; PSYSTEM_CURSORINFO CurInfo; HDC Screen; Modified: trunk/reactos/subsystems/win32/win32k/ntuser/desktop.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/ntuser/desktop.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/ntuser/desktop.c [iso-8859-1] Thu Oct 16 12:52:38 2008 @@ -580,7 +580,8 @@ HWND FASTCALL IntGetCurrentThreadDesktopWindow(VOID) { - PDESKTOP_OBJECT pdo = PsGetCurrentThreadWin32Thread()->Desktop; + PTHREADINFO pti = PsGetCurrentThreadWin32Thread(); + PDESKTOP_OBJECT pdo = pti->Desktop; if (NULL == pdo) { DPRINT1("Thread doesn't have a desktop\n"); @@ -782,7 +783,8 @@ */ BOOL IntRegisterShellHookWindow(HWND hWnd) { - PDESKTOP_OBJECT Desktop = PsGetCurrentThreadWin32Thread()->Desktop; + PTHREADINFO pti = PsGetCurrentThreadWin32Thread(); + PDESKTOP_OBJECT Desktop = pti->Desktop; PSHELL_HOOK_WINDOW Entry; DPRINT("IntRegisterShellHookWindow\n"); @@ -813,7 +815,8 @@ */ BOOL IntDeRegisterShellHookWindow(HWND hWnd) { - PDESKTOP_OBJECT Desktop = PsGetCurrentThreadWin32Thread()->Desktop; + PTHREADINFO pti = PsGetCurrentThreadWin32Thread(); + PDESKTOP_OBJECT Desktop = pti->Desktop; PSHELL_HOOK_WINDOW Current; LIST_FOR_EACH(Current, &Desktop->ShellHookWindows, SHELL_HOOK_WINDOW, ListEntry) @@ -1363,7 +1366,8 @@ COLORREF color_old; UINT align_old; int mode_old; - PWINSTATION_OBJECT WinSta = PsGetCurrentThreadWin32Thread()->Desktop->WindowStation; + PTHREADINFO pti = PsGetCurrentThreadWin32Thread(); + PWINSTATION_OBJECT WinSta = pti->Desktop->WindowStation; DECLARE_RETURN(BOOL); UserEnterExclusive(); @@ -1674,14 +1678,14 @@ { /* just return the handle, we queried the desktop handle of a thread running in the same context */ - Ret = ((PW32THREAD)Thread->Tcb.Win32Thread)->hDesktop; + Ret = ((PTHREADINFO)Thread->Tcb.Win32Thread)->hDesktop; ObDereferenceObject(Thread); RETURN(Ret); } /* get the desktop handle and the desktop of the thread */ - if(!(hThreadDesktop = ((PW32THREAD)Thread->Tcb.Win32Thread)->hDesktop) || - !(DesktopObject = ((PW32THREAD)Thread->Tcb.Win32Thread)->Desktop)) + if(!(hThreadDesktop = ((PTHREADINFO)Thread->Tcb.Win32Thread)->hDesktop) || + !(DesktopObject = ((PTHREADINFO)Thread->Tcb.Win32Thread)->Desktop)) { ObDereferenceObject(Thread); DPRINT1("Desktop information of thread 0x%x broken!?\n", dwThreadId); @@ -1854,7 +1858,7 @@ IN BOOL FreeOnFailure) { PDESKTOP_OBJECT OldDesktop; - PW32THREAD W32Thread; + PTHREADINFO W32Thread; NTSTATUS Status; BOOL MapHeap; Modified: trunk/reactos/subsystems/win32/win32k/ntuser/event.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/ntuser/event.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/ntuser/event.c [iso-8859-1] Thu Oct 16 12:52:38 2008 @@ -105,7 +105,7 @@ /* FIXME should get timeout from * HKEY_CURRENT_USER\Control Panel\Desktop\LowLevelHooksTimeout */ - Status = co_MsqSendMessage(((PW32THREAD)pEH->Thread->Tcb.Win32Thread)->MessageQueue, + Status = co_MsqSendMessage(((PTHREADINFO)pEH->Thread->Tcb.Win32Thread)->MessageQueue, hwnd, event, 0, Modified: trunk/reactos/subsystems/win32/win32k/ntuser/focus.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/ntuser/focus.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/ntuser/focus.c [iso-8859-1] Thu Oct 16 12:52:38 2008 @@ -40,8 +40,11 @@ HWND FASTCALL IntGetThreadFocusWindow() { + PTHREADINFO pti; PUSER_MESSAGE_QUEUE ThreadQueue; - ThreadQueue = (PUSER_MESSAGE_QUEUE)PsGetCurrentThreadWin32Thread()->MessageQueue; + + pti = PsGetCurrentThreadWin32Thread(); + ThreadQueue = pti->MessageQueue; return ThreadQueue != NULL ? ThreadQueue->FocusWindow : 0; } @@ -312,6 +315,7 @@ HWND FASTCALL co_IntSetActiveWindow(PWINDOW_OBJECT Window OPTIONAL) { + PTHREADINFO pti; PUSER_MESSAGE_QUEUE ThreadQueue; HWND hWndPrev; HWND hWnd = 0; @@ -320,7 +324,8 @@ if (Window) ASSERT_REFS_CO(Window); - ThreadQueue = (PUSER_MESSAGE_QUEUE)PsGetCurrentThreadWin32Thread()->MessageQueue; + pti = PsGetCurrentThreadWin32Thread(); + ThreadQueue = pti->MessageQueue; ASSERT(ThreadQueue != 0); if (Window != 0) @@ -358,12 +363,14 @@ co_IntSetFocusWindow(PWINDOW_OBJECT Window OPTIONAL) { HWND hWndPrev = 0; + PTHREADINFO pti; PUSER_MESSAGE_QUEUE ThreadQueue; if (Window) ASSERT_REFS_CO(Window); - ThreadQueue = (PUSER_MESSAGE_QUEUE)PsGetCurrentThreadWin32Thread()->MessageQueue; + pti = PsGetCurrentThreadWin32Thread(); + ThreadQueue = pti->MessageQueue; ASSERT(ThreadQueue != 0); hWndPrev = ThreadQueue->FocusWindow; @@ -425,8 +432,11 @@ HWND FASTCALL UserGetActiveWindow() { + PTHREADINFO pti; PUSER_MESSAGE_QUEUE ThreadQueue; - ThreadQueue = (PUSER_MESSAGE_QUEUE)PsGetCurrentThreadWin32Thread()->MessageQueue; + + pti = PsGetCurrentThreadWin32Thread(); + ThreadQueue = pti->MessageQueue; return( ThreadQueue ? ThreadQueue->ActiveWindow : 0); } @@ -443,6 +453,7 @@ if (hWnd) { PWINDOW_OBJECT Window; + PTHREADINFO pti; PUSER_MESSAGE_QUEUE ThreadQueue; HWND hWndPrev; @@ -451,7 +462,8 @@ RETURN( 0); } - ThreadQueue = (PUSER_MESSAGE_QUEUE)PsGetCurrentThreadWin32Thread()->MessageQueue; + pti = PsGetCurrentThreadWin32Thread(); + ThreadQueue = pti->MessageQueue; if (Window->MessageQueue != ThreadQueue) { @@ -482,12 +494,14 @@ HWND STDCALL IntGetCapture(VOID) { + PTHREADINFO pti; PUSER_MESSAGE_QUEUE ThreadQueue; DECLARE_RETURN(HWND); DPRINT("Enter IntGetCapture\n"); - ThreadQueue = (PUSER_MESSAGE_QUEUE)PsGetCurrentThreadWin32Thread()->MessageQueue; + pti = PsGetCurrentThreadWin32Thread(); + ThreadQueue = pti->MessageQueue; RETURN( ThreadQueue ? ThreadQueue->CaptureWindow : 0); CLEANUP: @@ -501,6 +515,7 @@ HWND STDCALL NtUserSetCapture(HWND hWnd) { + PTHREADINFO pti; PUSER_MESSAGE_QUEUE ThreadQueue; PWINDOW_OBJECT Window; HWND hWndPrev; @@ -509,7 +524,8 @@ DPRINT("Enter NtUserSetCapture(%x)\n", hWnd); UserEnterExclusive(); - ThreadQueue = (PUSER_MESSAGE_QUEUE)PsGetCurrentThreadWin32Thread()->MessageQueue; + pti = PsGetCurrentThreadWin32Thread(); + ThreadQueue = pti->MessageQueue; if((Window = UserGetWindowObject(hWnd))) { @@ -545,6 +561,7 @@ { if (Window) { + PTHREADINFO pti; PUSER_MESSAGE_QUEUE ThreadQueue; HWND hWndPrev; PWINDOW_OBJECT TopWnd; @@ -553,7 +570,8 @@ ASSERT_REFS_CO(Window); - ThreadQueue = (PUSER_MESSAGE_QUEUE)PsGetCurrentThreadWin32Thread()->MessageQueue; + pti = PsGetCurrentThreadWin32Thread(); + ThreadQueue = pti->MessageQueue; Wnd = Window->Wnd; if (Wnd->Style & (WS_MINIMIZE | WS_DISABLED)) Modified: trunk/reactos/subsystems/win32/win32k/ntuser/hook.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/ntuser/hook.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/ntuser/hook.c [iso-8859-1] Thu Oct 16 12:52:38 2008 @@ -72,9 +72,9 @@ static PHOOK IntAddHook(PETHREAD Thread, int HookId, BOOLEAN Global, PWINSTATION_OBJECT WinStaObj) { - PW32THREAD W32Thread; + PTHREADINFO W32Thread; PHOOK Hook; - PHOOKTABLE Table = Global ? GlobalHooks : MsqGetHooks(((PW32THREAD)Thread->Tcb.Win32Thread)->MessageQueue); + PHOOKTABLE Table = Global ? GlobalHooks : MsqGetHooks(((PTHREADINFO)Thread->Tcb.Win32Thread)->MessageQueue); HANDLE Handle; if (NULL == Table) @@ -90,7 +90,7 @@ } else { - MsqSetHooks(((PW32THREAD)Thread->Tcb.Win32Thread)->MessageQueue, Table); + MsqSetHooks(((PTHREADINFO)Thread->Tcb.Win32Thread)->MessageQueue, Table); } } @@ -106,7 +106,7 @@ if (Thread) { - W32Thread = ((PW32THREAD)Thread->Tcb.Win32Thread); + W32Thread = ((PTHREADINFO)Thread->Tcb.Win32Thread); ASSERT(W32Thread != NULL); W32Thread->Hooks |= HOOKID_TO_FLAG(HookId); if (W32Thread->ThreadInfo != NULL) @@ -130,7 +130,7 @@ return GlobalHooks; } - return MsqGetHooks(((PW32THREAD)Hook->Thread->Tcb.Win32Thread)->MessageQueue); + return MsqGetHooks(((PTHREADINFO)Hook->Thread->Tcb.Win32Thread)->MessageQueue); } /* get the first hook in the chain */ @@ -208,7 +208,7 @@ static VOID IntRemoveHook(PHOOK Hook, PWINSTATION_OBJECT WinStaObj, BOOL TableAlreadyLocked) { - PW32THREAD W32Thread; + PTHREADINFO W32Thread; PHOOKTABLE Table = IntGetTable(Hook); ASSERT(NULL != Table); @@ -217,7 +217,7 @@ return; } - W32Thread = ((PW32THREAD)Hook->Thread->Tcb.Win32Thread); + W32Thread = ((PTHREADINFO)Hook->Thread->Tcb.Win32Thread); ASSERT(W32Thread != NULL); W32Thread->Hooks &= ~HOOKID_TO_FLAG(Hook->HookId); if (W32Thread->ThreadInfo != NULL) @@ -274,7 +274,7 @@ /* FIXME should get timeout from * HKEY_CURRENT_USER\Control Panel\Desktop\LowLevelHooksTimeout */ - Status = co_MsqSendMessage(((PW32THREAD)Hook->Thread->Tcb.Win32Thread)->MessageQueue, + Status = co_MsqSendMessage(((PTHREADINFO)Hook->Thread->Tcb.Win32Thread)->MessageQueue, (HWND) Code, Hook->HookId, wParam, @@ -295,7 +295,7 @@ co_HOOK_CallHooks(INT HookId, INT Code, WPARAM wParam, LPARAM lParam) { PHOOK Hook, SaveHook; - PW32THREAD Win32Thread; + PTHREADINFO pti; PCLIENTINFO ClientInfo; PHOOKTABLE Table; LRESULT Result; @@ -304,14 +304,14 @@ ASSERT(WH_MINHOOK <= HookId && HookId <= WH_MAXHOOK); - Win32Thread = PsGetCurrentThreadWin32Thread(); - if (NULL == Win32Thread) + pti = PsGetCurrentThreadWin32Thread(); + if (!pti) { Table = NULL; } else { - Table = MsqGetHooks(Win32Thread->MessageQueue); + Table = MsqGetHooks(pti->MessageQueue); } if (NULL == Table || ! (Hook = IntGetFirstValidHook(Table, HookId))) @@ -361,7 +361,7 @@ } else { - IntReleaseHookChain(MsqGetHooks(PsGetCurrentThreadWin32Thread()->MessageQueue), HookId, WinStaObj); + IntReleaseHookChain(MsqGetHooks(pti->MessageQueue), HookId, WinStaObj); IntReleaseHookChain(GlobalHooks, HookId, WinStaObj); ObDereferenceObject(WinStaObj); } Modified: trunk/reactos/subsystems/win32/win32k/ntuser/input.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/ntuser/input.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/ntuser/input.c [iso-8859-1] Thu Oct 16 12:52:38 2008 @@ -790,14 +790,14 @@ FocusThread = FocusQueue->Thread; if (!(FocusThread && FocusThread->Tcb.Win32Thread && - ((PW32THREAD)FocusThread->Tcb.Win32Thread)->KeyboardLayout)) + ((PTHREADINFO)FocusThread->Tcb.Win32Thread)->KeyboardLayout)) continue; /* This function uses lParam to fill wParam according to the * keyboard layout in use. */ W32kKeyProcessMessage(&msg, - ((PW32THREAD)FocusThread->Tcb.Win32Thread)->KeyboardLayout->KBTables, + ((PTHREADINFO)FocusThread->Tcb.Win32Thread)->KeyboardLayout->KBTables, KeyInput.Flags & KEY_E0 ? 0xE0 : (KeyInput.Flags & KEY_E1 ? 0xE1 : 0)); @@ -892,9 +892,9 @@ } BOOL FASTCALL -IntBlockInput(PW32THREAD W32Thread, BOOL BlockIt) -{ - PW32THREAD OldBlock; +IntBlockInput(PTHREADINFO W32Thread, BOOL BlockIt) +{ + PTHREADINFO OldBlock; ASSERT(W32Thread); if(!W32Thread->Desktop || (W32Thread->IsExiting && BlockIt)) @@ -1225,7 +1225,7 @@ LPINPUT pInput, INT cbSize) { - PW32THREAD W32Thread; + PTHREADINFO W32Thread; UINT cnt; DECLARE_RETURN(UINT); Modified: trunk/reactos/subsystems/win32/win32k/ntuser/kbdlayout.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/ntuser/kbdlayout.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/ntuser/kbdlayout.c [iso-8859-1] Thu Oct 16 12:52:38 2008 @@ -407,7 +407,7 @@ return TRUE; } -static PKBL co_UserActivateKbl(PW32THREAD w32Thread, PKBL pKbl, UINT Flags) +static PKBL co_UserActivateKbl(PTHREADINFO w32Thread, PKBL pKbl, UINT Flags) { PKBL Prev; @@ -444,7 +444,7 @@ { NTSTATUS Status; PETHREAD Thread; - PW32THREAD W32Thread; + PTHREADINFO W32Thread; HKL Ret; if(!dwThreadId) @@ -523,13 +523,15 @@ { BOOL ret = FALSE; PKBL pKbl; + PTHREADINFO pti; UserEnterShared(); _SEH_TRY { ProbeForWrite(lpszName, KL_NAMELENGTH*sizeof(WCHAR), 1); - pKbl = PsGetCurrentThreadWin32Thread()->KeyboardLayout; + pti = PsGetCurrentThreadWin32Thread(); + pKbl = pti->KeyboardLayout; RtlCopyMemory(lpszName, pKbl->Name, KL_NAMELENGTH*sizeof(WCHAR)); ret = TRUE; } @@ -614,7 +616,7 @@ { PKBL pKbl; HKL Ret = NULL; - PW32THREAD pWThread; + PTHREADINFO pWThread; UserEnterExclusive(); Modified: trunk/reactos/subsystems/win32/win32k/ntuser/keyboard.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/ntuser/keyboard.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/ntuser/keyboard.c [iso-8859-1] Thu Oct 16 12:52:38 2008 @@ -420,6 +420,7 @@ IntTranslateKbdMessage(LPMSG lpMsg, HKL dwhkl) { + PTHREADINFO pti; static INT dead_char = 0; LONG UState = 0; WCHAR wp[2] = { 0 }; @@ -428,8 +429,8 @@ BOOL Result = FALSE; DWORD ScanCode = 0; - - keyLayout = PsGetCurrentThreadWin32Thread()->KeyboardLayout->KBTables; + pti = PsGetCurrentThreadWin32Thread(); + keyLayout = pti->KeyboardLayout->KBTables; if( !keyLayout ) return FALSE; @@ -439,7 +440,7 @@ ScanCode = (lpMsg->lParam >> 16) & 0xff; /* All messages have to contain the cursor point. */ - IntGetCursorLocation(PsGetCurrentThreadWin32Thread()->Desktop->WindowStation, + IntGetCursorLocation(pti->Desktop->WindowStation, &NewMsg.pt); UState = ToUnicodeInner(lpMsg->wParam, HIWORD(lpMsg->lParam) & 0xff, @@ -476,14 +477,14 @@ NewMsg.wParam = dead_char; NewMsg.lParam = lpMsg->lParam; dead_char = 0; - MsqPostMessage(PsGetCurrentThreadWin32Thread()->MessageQueue, &NewMsg, FALSE, QS_KEY); + MsqPostMessage(pti->MessageQueue, &NewMsg, FALSE, QS_KEY); } NewMsg.hwnd = lpMsg->hwnd; NewMsg.wParam = wp[0]; NewMsg.lParam = lpMsg->lParam; DPRINT( "CHAR='%c' %04x %08x\n", wp[0], wp[0], lpMsg->lParam ); - MsqPostMessage(PsGetCurrentThreadWin32Thread()->MessageQueue, &NewMsg, FALSE, QS_KEY); + MsqPostMessage(pti->MessageQueue, &NewMsg, FALSE, QS_KEY); Result = TRUE; } else if (UState == -1) @@ -494,7 +495,7 @@ NewMsg.wParam = wp[0]; NewMsg.lParam = lpMsg->lParam; dead_char = wp[0]; - MsqPostMessage(PsGetCurrentThreadWin32Thread()->MessageQueue, &NewMsg, FALSE, QS_KEY); + MsqPostMessage(pti->MessageQueue, &NewMsg, FALSE, QS_KEY); Result = TRUE; } @@ -664,13 +665,15 @@ STDCALL NtUserMapVirtualKeyEx( UINT Code, UINT Type, DWORD keyboardId, HKL dwhkl ) { + PTHREADINFO pti; PKBDTABLES keyLayout; DECLARE_RETURN(UINT); DPRINT("Enter NtUserMapVirtualKeyEx\n"); UserEnterExclusive(); - keyLayout = PsGetCurrentThreadWin32Thread() ? PsGetCurrentThreadWin32Thread()->KeyboardLayout->KBTables : 0; + pti = PsGetCurrentThreadWin32Thread(); + keyLayout = pti ? pti->KeyboardLayout->KBTables : 0; if( !keyLayout ) RETURN(0); @@ -695,6 +698,7 @@ UINT wFlags, HKL dwhkl ) { + PTHREADINFO pti; BYTE KeyStateBuf[0x100]; PWCHAR OutPwszBuff = 0; int ret = 0; @@ -723,14 +727,14 @@ } RtlZeroMemory( OutPwszBuff, sizeof( WCHAR ) * cchBuff ); + pti = PsGetCurrentThreadWin32Thread(); ret = ToUnicodeInner( wVirtKey, wScanCode, KeyStateBuf, OutPwszBuff, cchBuff, wFlags, - PsGetCurrentThreadWin32Thread() ? - PsGetCurrentThreadWin32Thread()->KeyboardLayout->KBTables : 0 ); + pti ? pti->KeyboardLayout->KBTables : 0 ); MmCopyToCaller(pwszBuff,OutPwszBuff,sizeof(WCHAR)*cchBuff); ExFreePool(OutPwszBuff); @@ -757,6 +761,7 @@ STDCALL NtUserGetKeyNameText( LONG lParam, LPWSTR lpString, int nSize ) { + PTHREADINFO pti; int i; DWORD ret = 0; UINT CareVk = 0; @@ -770,8 +775,8 @@ DPRINT("Enter NtUserGetKeyNameText\n"); UserEnterShared(); - keyLayout = PsGetCurrentThreadWin32Thread() ? - PsGetCurrentThreadWin32Thread()->KeyboardLayout->KBTables : 0; + pti = PsGetCurrentThreadWin32Thread(); + keyLayout = pti ? pti->KeyboardLayout->KBTables : 0; if( !keyLayout || nSize < 1 ) RETURN(0); Modified: trunk/reactos/subsystems/win32/win32k/ntuser/message.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/ntuser/message.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/ntuser/message.c [iso-8859-1] Thu Oct 16 12:52:38 2008 @@ -303,7 +303,7 @@ { BOOL SameThread = FALSE; - if (Window->ti == PsGetCurrentThreadWin32Thread()->ThreadInfo) + if (Window->ti == ((PTHREADINFO)PsGetCurrentThreadWin32Thread())->ThreadInfo) SameThread = TRUE; if ((!SameThread && (Window->ti->Hooks & HOOKID_TO_FLAG(WH_CALLWNDPROC))) || @@ -325,7 +325,7 @@ { BOOL SameThread = FALSE; - if (Window->ti == PsGetCurrentThreadWin32Thread()->ThreadInfo) + if (Window->ti == ((PTHREADINFO)PsGetCurrentThreadWin32Thread())->ThreadInfo) SameThread = TRUE; if ((!SameThread && (Window->ti->Hooks & HOOKID_TO_FLAG(WH_CALLWNDPROCRET))) || @@ -740,6 +740,7 @@ UINT MsgFilterMax, UINT RemoveMsg) { + PTHREADINFO pti; LARGE_INTEGER LargeTickCount; PUSER_MESSAGE_QUEUE ThreadQueue; PUSER_MESSAGE Message; @@ -751,7 +752,8 @@ /* The queues and order in which they are checked are documented in the MSDN article on GetMessage() */ - ThreadQueue = (PUSER_MESSAGE_QUEUE)PsGetCurrentThreadWin32Thread()->MessageQueue; + pti = PsGetCurrentThreadWin32Thread(); + ThreadQueue = pti->MessageQueue; /* Inspect RemoveMsg flags */ /* FIXME: The only flag we process is PM_REMOVE - processing of others must still be implemented */ @@ -827,7 +829,7 @@ ; /* Check for paint messages. */ - if (IntGetPaintMessage(hWnd, MsgFilterMin, MsgFilterMax, PsGetCurrentThreadWin32Thread(), &Msg->Msg, RemoveMessages)) + if (IntGetPaintMessage(hWnd, MsgFilterMin, MsgFilterMax, pti, &Msg->Msg, RemoveMessages)) { Msg->FreeLParam = FALSE; goto MsgExit; @@ -1056,11 +1058,13 @@ UINT MsgFilterMin, UINT MsgFilterMax) { + PTHREADINFO pti; PUSER_MESSAGE_QUEUE ThreadQueue; NTSTATUS Status; USER_MESSAGE Msg; - ThreadQueue = (PUSER_MESSAGE_QUEUE)PsGetCurrentThreadWin32Thread()->MessageQueue; + pti = PsGetCurrentThreadWin32Thread(); + ThreadQueue = pti->MessageQueue; do { @@ -1292,14 +1296,16 @@ WPARAM wParam, LPARAM lParam) { + PTHREADINFO pti; MSG UserModeMsg, KernelModeMsg; LARGE_INTEGER LargeTickCount; NTSTATUS Status; PMSGMEMORY MsgMemoryEntry; + pti = PsGetCurrentThreadWin32Thread(); if (WM_QUIT == Msg) { - MsqPostQuitMessage(PsGetCurrentThreadWin32Thread()->MessageQueue, wParam); + MsqPostQuitMessage(pti->MessageQueue, wParam); } else if (Wnd == HWND_BROADCAST) { @@ -1344,7 +1350,7 @@ SetLastWin32Error(ERROR_INVALID_PARAMETER); return FALSE; } - IntGetCursorLocation(PsGetCurrentThreadWin32Thread()->Desktop->WindowStation, + IntGetCursorLocation(pti->Desktop->WindowStation, &KernelModeMsg.pt); KeQueryTickCount(&LargeTickCount); KernelModeMsg.time = MsqCalculateMessageTime(&LargeTickCount); @@ -1386,7 +1392,7 @@ { MSG UserModeMsg, KernelModeMsg; PETHREAD peThread; - PW32THREAD pThread; + PTHREADINFO pThread; NTSTATUS Status; PMSGMEMORY MsgMemoryEntry; DECLARE_RETURN(BOOL); @@ -1398,7 +1404,7 @@ if( Status == STATUS_SUCCESS ) { - pThread = (PW32THREAD)peThread->Tcb.Win32Thread; + pThread = (PTHREADINFO)peThread->Tcb.Win32Thread; if( !pThread || !pThread->MessageQueue ) { ObDereferenceObject( peThread ); @@ -1473,7 +1479,7 @@ PMSGMEMORY MsgMemoryEntry; INT lParamBufferSize; LPARAM lParamPacked; - PW32THREAD Win32Thread; + PTHREADINFO Win32Thread; DECLARE_RETURN(LRESULT); USER_REFERENCE_ENTRY Ref; @@ -1642,6 +1648,7 @@ LPARAM lParam) { ULONG_PTR Result; + PTHREADINFO pti; PWINDOW_OBJECT Window; if(hWnd == HWND_BROADCAST) @@ -1654,7 +1661,8 @@ return 0; } - if(Window->MessageQueue != PsGetCurrentThreadWin32Thread()->MessageQueue) + pti = PsGetCurrentThreadWin32Thread(); + if(Window->MessageQueue != pti->MessageQueue) { Result = UserPostMessage(hWnd, Msg, wParam, lParam); } @@ -1676,6 +1684,7 @@ PDOSENDMESSAGE dsm, PNTUSERSENDMESSAGEINFO UnsafeInfo) { + PTHREADINFO pti; LRESULT Result = TRUE; NTSTATUS Status; PWINDOW_OBJECT Window; @@ -1704,8 +1713,9 @@ /* FIXME: Check for an exiting window. */ /* See if the current thread can handle the message */ - if (HWND_BROADCAST != hWnd && NULL != PsGetCurrentThreadWin32Thread() && - Window->MessageQueue == PsGetCurrentThreadWin32Thread()->MessageQueue) + pti = PsGetCurrentThreadWin32Thread(); + if (HWND_BROADCAST != hWnd && NULL != pti && + Window->MessageQueue == pti->MessageQueue) { /* Gather the information usermode needs to call the window proc directly */ Info.HandledByKernel = FALSE; @@ -1870,6 +1880,7 @@ else { ULONG_PTR PResult; + PTHREADINFO pti; PWINDOW_OBJECT Window; NTSTATUS Status; MSG UserModeMsg; @@ -1878,7 +1889,8 @@ if(!(Window = UserGetWindowObject(hWnd))) return FALSE; - if(Window->MessageQueue != PsGetCurrentThreadWin32Thread()->MessageQueue) + pti = PsGetCurrentThreadWin32Thread(); + if(Window->MessageQueue != pti->MessageQueue) { // Send message w/o waiting for it. Result = UserPostMessage(hWnd, Msg, wParam, lParam); } @@ -1952,13 +1964,15 @@ DWORD STDCALL IntGetQueueStatus(BOOL ClearChanges) { + PTHREADINFO pti; PUSER_MESSAGE_QUEUE Queue; DWORD Result; DECLARE_RETURN(DWORD); DPRINT("Enter IntGetQueueStatus\n"); - Queue = PsGetCurrentThreadWin32Thread()->MessageQueue; + pti = PsGetCurrentThreadWin32Thread(); + Queue = pti->MessageQueue; Result = MAKELONG(Queue->QueueBits, Queue->ChangedBits); if (ClearChanges) @@ -1976,9 +1990,9 @@ BOOL STDCALL IntInitMessagePumpHook() { - if (((PW32THREAD)PsGetCurrentThread()->Tcb.Win32Thread)->ThreadInfo) - { - ((PW32THREAD)PsGetCurrentThread()->Tcb.Win32Thread)->ThreadInfo->ClientThreadInfo.dwcPumpHook++; + if (((PTHREADINFO)PsGetCurrentThread()->Tcb.Win32Thread)->ThreadInfo) + { + ((PTHREADINFO)PsGetCurrentThread()->Tcb.Win32Thread)->ThreadInfo->ClientThreadInfo.dwcPumpHook++; return TRUE; } return FALSE; @@ -1987,13 +2001,13 @@ BOOL STDCALL IntUninitMessagePumpHook() { - if (((PW32THREAD)PsGetCurrentThread()->Tcb.Win32Thread)->ThreadInfo) - { - if (((PW32THREAD)PsGetCurrentThread()->Tcb.Win32Thread)->ThreadInfo->ClientThreadInfo.dwcPumpHook <= 0) + if (((PTHREADINFO)PsGetCurrentThread()->Tcb.Win32Thread)->ThreadInfo) + { + if (((PTHREADINFO)PsGetCurrentThread()->Tcb.Win32Thread)->ThreadInfo->ClientThreadInfo.dwcPumpHook <= 0) { return FALSE; } - ((PW32THREAD)PsGetCurrentThread()->Tcb.Win32Thread)->ThreadInfo->ClientThreadInfo.dwcPumpHook--; + ((PTHREADINFO)PsGetCurrentThread()->Tcb.Win32Thread)->ThreadInfo->ClientThreadInfo.dwcPumpHook--; return TRUE; } return FALSE; Modified: trunk/reactos/subsystems/win32/win32k/ntuser/misc.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/ntuser/misc.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/ntuser/misc.c [iso-8859-1] Thu Oct 16 12:52:38 2008 @@ -130,12 +130,12 @@ SetLastWin32Error(ERROR_ACCESS_DENIED); RETURN( FALSE); } - Desktop = ((PW32THREAD)Thread->Tcb.Win32Thread)->Desktop; + Desktop = ((PTHREADINFO)Thread->Tcb.Win32Thread)->Desktop; } else { /* get the foreground thread */ - PW32THREAD W32Thread = (PW32THREAD)PsGetCurrentThread()->Tcb.Win32Thread; + PTHREADINFO W32Thread = (PTHREADINFO)PsGetCurrentThread()->Tcb.Win32Thread; Desktop = W32Thread->Desktop; if(Desktop) { @@ -438,7 +438,7 @@ PTEB Teb; PW32THREADINFO ti; PCLIENTINFO ci; - PW32THREAD W32Thread = PsGetCurrentThreadWin32Thread(); + PTHREADINFO W32Thread = PsGetCurrentThreadWin32Thread(); if (W32Thread == NULL) { @@ -446,7 +446,7 @@ return NULL; } - /* allocate a W32THREAD structure if neccessary */ + /* allocate a THREADINFO structure if neccessary */ if (W32Thread->ThreadInfo == NULL) { ti = UserHeapAlloc(sizeof(W32THREADINFO)); Modified: trunk/reactos/subsystems/win32/win32k/ntuser/msgqueue.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/ntuser/msgqueue.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/ntuser/msgqueue.c [iso-8859-1] Thu Oct 16 12:52:38 2008 @@ -93,7 +93,7 @@ HANDLE FASTCALL IntMsqSetWakeMask(DWORD WakeMask) { - PW32THREAD Win32Thread; + PTHREADINFO Win32Thread; PUSER_MESSAGE_QUEUE MessageQueue; HANDLE MessageEventHandle; @@ -111,7 +111,7 @@ BOOL FASTCALL IntMsqClearWakeMask(VOID) { - PW32THREAD Win32Thread; + PTHREADINFO Win32Thread; PUSER_MESSAGE_QUEUE MessageQueue; Win32Thread = PsGetCurrentThreadWin32Thread(); @@ -235,17 +235,19 @@ BOOL FASTCALL MsqIsDblClk(LPMSG Msg, BOOL Remove) { + PTHREADINFO pti; PWINSTATION_OBJECT WinStaObject; PSYSTEM_CURSORINFO CurInfo; LONG dX, dY; BOOL Res; - if (PsGetCurrentThreadWin32Thread()->Desktop == NULL) + pti = PsGetCurrentThreadWin32Thread(); + if (pti->Desktop == NULL) { return FALSE; } - WinStaObject = PsGetCurrentThreadWin32Thread()->Desktop->WindowStation; + WinStaObject = pti->Desktop->WindowStation; CurInfo = IntGetSysCursorInfo(WinStaObject); Res = (Msg->hwnd == (HWND)CurInfo->LastClkWnd) && @@ -811,7 +813,7 @@ MsqPostHotKeyMessage(PVOID Thread, HWND hWnd, WPARAM wParam, LPARAM lParam) { PWINDOW_OBJECT Window; - PW32THREAD Win32Thread; + PTHREADINFO Win32Thread; PWINSTATION_OBJECT WinSta; MSG Mesg; LARGE_INTEGER LargeTickCount; @@ -1100,6 +1102,7 @@ UINT uTimeout, BOOL Block, INT HookMessage, ULONG_PTR *uResult) { + PTHREADINFO pti; PUSER_SENT_MESSAGE Message; KEVENT CompletionEvent; NTSTATUS WaitStatus; @@ -1116,7 +1119,8 @@ KeInitializeEvent(&CompletionEvent, NotificationEvent, FALSE); - ThreadQueue = PsGetCurrentThreadWin32Thread()->MessageQueue; + pti = PsGetCurrentThreadWin32Thread(); + ThreadQueue = pti->MessageQueue; ASSERT(ThreadQueue != MessageQueue); Timeout.QuadPart = (LONGLONG) uTimeout * (LONGLONG) -10000; @@ -1603,9 +1607,11 @@ MsqSetMessageExtraInfo(LPARAM lParam) { LPARAM Ret; + PTHREADINFO pti; PUSER_MESSAGE_QUEUE MessageQueue; - MessageQueue = PsGetCurrentThreadWin32Thread()->MessageQueue; + pti = PsGetCurrentThreadWin32Thread(); + MessageQueue = pti->MessageQueue; if(!MessageQueue) { return 0; @@ -1620,9 +1626,11 @@ LPARAM FASTCALL MsqGetMessageExtraInfo(VOID) { + PTHREADINFO pti; PUSER_MESSAGE_QUEUE MessageQueue; - MessageQueue = PsGetCurrentThreadWin32Thread()->MessageQueue; + pti = PsGetCurrentThreadWin32Thread(); + MessageQueue = pti->MessageQueue; if(!MessageQueue) { return 0; @@ -1822,6 +1830,7 @@ LARGE_INTEGER LargeTickCount; PLIST_ENTRY EnumEntry; BOOLEAN GotMessage; + PTHREADINFO pti; DPRINT("MsqGetTimerMessage queue %p msg %p restart %s\n", MessageQueue, Msg, Restart ? "TRUE" : "FALSE"); @@ -1873,7 +1882,8 @@ Msg->lParam = (LPARAM) Timer->TimerFunc; KeQueryTickCount(&LargeTickCount); Msg->time = MsqCalculateMessageTime(&LargeTickCount); - IntGetCursorLocation(PsGetCurrentThreadWin32Thread()->Desktop->WindowStation, + pti = PsGetCurrentThreadWin32Thread(); + IntGetCursorLocation(pti->Desktop->WindowStation, &Msg->pt); if (Restart) Modified: trunk/reactos/subsystems/win32/win32k/ntuser/painting.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/ntuser/painting.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/ntuser/painting.c [iso-8859-1] Thu Oct 16 12:52:38 2008 @@ -636,7 +636,7 @@ } HWND FASTCALL -IntFindWindowToRepaint(PWINDOW_OBJECT Window, PW32THREAD Thread) +IntFindWindowToRepaint(PWINDOW_OBJECT Window, PTHREADINFO Thread) { HWND hChild; PWINDOW_OBJECT TempWindow; @@ -680,7 +680,7 @@ BOOL FASTCALL IntGetPaintMessage(HWND hWnd, UINT MsgFilterMin, UINT MsgFilterMax, - PW32THREAD Thread, MSG *Message, BOOL Remove) + PTHREADINFO Thread, MSG *Message, BOOL Remove) { PUSER_MESSAGE_QUEUE MessageQueue = (PUSER_MESSAGE_QUEUE)Thread->MessageQueue; @@ -721,7 +721,7 @@ ASSERT_REFS_CO(Window); - Desktop = ((PW32THREAD)PsGetCurrentThread()->Tcb.Win32Thread)->Desktop; + Desktop = ((PTHREADINFO)PsGetCurrentThread()->Tcb.Win32Thread)->Desktop; CaretInfo = ((PUSER_MESSAGE_QUEUE)Desktop->ActiveMessageQueue)->CaretInfo; hWndCaret = CaretInfo->hWnd; Modified: trunk/reactos/subsystems/win32/win32k/ntuser/simplecall.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/ntuser/simplecall.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/ntuser/simplecall.c [iso-8859-1] Thu Oct 16 12:52:38 2008 @@ -493,7 +493,7 @@ case TWOPARAM_ROUTINE_SETGUITHRDHANDLE: { - PUSER_MESSAGE_QUEUE MsgQueue = ((PW32THREAD)PsGetCurrentThread()->Tcb.Win32Thread)->MessageQueue; + PUSER_MESSAGE_QUEUE MsgQueue = ((PTHREADINFO)PsGetCurrentThread()->Tcb.Win32Thread)->MessageQueue; ASSERT(MsgQueue); RETURN( (DWORD)MsqSetStateWindow(MsgQueue, (ULONG)Param1, (HWND)Param2)); Modified: trunk/reactos/subsystems/win32/win32k/ntuser/sysparams.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/ntuser/sysparams.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/ntuser/sysparams.c [iso-8859-1] Thu Oct 16 12:52:38 2008 @@ -465,7 +465,8 @@ case SPI_SETWORKAREA: { RECT *rc; - PDESKTOP_OBJECT Desktop = PsGetCurrentThreadWin32Thread()->Desktop; + PTHREADINFO pti = PsGetCurrentThreadWin32Thread(); + PDESKTOP_OBJECT Desktop = pti->Desktop; if(!Desktop) { @@ -482,7 +483,8 @@ } case SPI_GETWORKAREA: { - PDESKTOP_OBJECT Desktop = PsGetCurrentThreadWin32Thread()->Desktop; + PTHREADINFO pti = PsGetCurrentThreadWin32Thread(); + PDESKTOP_OBJECT Desktop = pti->Desktop; if(!Desktop) { Modified: trunk/reactos/subsystems/win32/win32k/ntuser/timer.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/ntuser/timer.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/ntuser/timer.c [iso-8859-1] Thu Oct 16 12:52:38 2008 @@ -61,6 +61,7 @@ { PWINDOW_OBJECT Window; UINT_PTR Ret = 0; + PTHREADINFO pti; PUSER_MESSAGE_QUEUE MessageQueue; DPRINT("IntSetTimer wnd %x id %p elapse %u timerproc %p systemtimer %s\n", @@ -84,7 +85,8 @@ HintIndex = ++IDEvent; IntUnlockWindowlessTimerBitmap(); Ret = IDEvent; - MessageQueue = PsGetCurrentThreadWin32Thread()->MessageQueue; + pti = PsGetCurrentThreadWin32Thread(); + MessageQueue = pti->MessageQueue; } else { @@ -149,16 +151,18 @@ BOOL FASTCALL IntKillTimer(HWND Wnd, UINT_PTR IDEvent, BOOL SystemTimer) { + PTHREADINFO pti; PWINDOW_OBJECT Window = NULL; DPRINT("IntKillTimer wnd %x id %p systemtimer %s\n", Wnd, IDEvent, SystemTimer ? "TRUE" : "FALSE"); + pti = PsGetCurrentThreadWin32Thread(); if (Wnd) { Window = UserGetWindowObject(Wnd); - if (! MsqKillTimer(PsGetCurrentThreadWin32Thread()->MessageQueue, Wnd, + if (! MsqKillTimer(pti->MessageQueue, Wnd, IDEvent, SystemTimer ? WM_SYSTIMER : WM_TIMER)) { // Give it another chance to find the timer. @@ -175,7 +179,7 @@ /* window-less timer? */ if ((Wnd == NULL) && ! SystemTimer) { - if (! MsqKillTimer(PsGetCurrentThreadWin32Thread()->MessageQueue, Wnd, + if (! MsqKillTimer(pti->MessageQueue, Wnd, IDEvent, SystemTimer ? WM_SYSTIMER : WM_TIMER)) { DPRINT1("Unable to locate timer in message queue for Window-less timer.\n"); Modified: trunk/reactos/subsystems/win32/win32k/ntuser/useratom.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/ntuser/useratom.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/ntuser/useratom.c [iso-8859-1] Thu Oct 16 12:52:38 2008 @@ -33,9 +33,11 @@ IntAddAtom(LPWSTR AtomName) { NTSTATUS Status = STATUS_SUCCESS; + PTHREADINFO pti; RTL_ATOM Atom; - if (PsGetCurrentThreadWin32Thread()->Desktop == NULL) + pti = PsGetCurrentThreadWin32Thread(); + if (pti->Desktop == NULL) { SetLastNtError(Status); return (RTL_ATOM)0; @@ -55,9 +57,11 @@ IntGetAtomName(RTL_ATOM nAtom, LPWSTR lpBuffer, ULONG nSize) { NTSTATUS Status = STATUS_SUCCESS; + PTHREADINFO pti; ULONG Size = nSize; - if (PsGetCurrentThreadWin32Thread()->Desktop == NULL) + pti = PsGetCurrentThreadWin32Thread(); + if (pti->Desktop == NULL) { SetLastNtError(Status); return 0; Modified: trunk/reactos/subsystems/win32/win32k/ntuser/window.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/ntuser/window.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/ntuser/window.c [iso-8859-1] Thu Oct 16 12:52:38 2008 @@ -363,7 +363,7 @@ */ static LRESULT co_UserFreeWindow(PWINDOW_OBJECT Window, PW32PROCESS ProcessData, - PW32THREAD ThreadData, + PTHREADINFO ThreadData, BOOLEAN SendMessages) { HWND *Children; @@ -697,11 +697,11 @@ VOID FASTCALL co_DestroyThreadWindows(struct _ETHREAD *Thread) { - PW32THREAD WThread; + PTHREADINFO WThread; PLIST_ENTRY Current; PWINDOW_OBJECT Wnd; USER_REFERENCE_ENTRY Ref; - WThread = (PW32THREAD)Thread->Tcb.Win32Thread; + WThread = (PTHREADINFO)Thread->Tcb.Win32Thread; while (!IsListEmpty(&WThread->WindowListHead)) { @@ -771,7 +771,7 @@ IntGetSystemMenu(PWINDOW_OBJECT Window, BOOL bRevert, BOOL RetMenu) { PMENU_OBJECT Menu, NewMenu = NULL, SysMenu = NULL, ret = NULL; - PW32THREAD W32Thread; + PTHREADINFO W32Thread; HMENU hNewMenu, hSysMenu; ROSMENUITEMINFO ItemInfo; @@ -1315,7 +1315,7 @@ else { PETHREAD Thread; - PW32THREAD W32Thread; + PTHREADINFO W32Thread; PLIST_ENTRY Current; PWINDOW_OBJECT Window; @@ -1324,7 +1324,7 @@ { return ERROR_INVALID_PARAMETER; } - if(!(W32Thread = (PW32THREAD)Thread->Tcb.Win32Thread)) + if(!(W32Thread = (PTHREADINFO)Thread->Tcb.Win32Thread)) { ObDereferenceObject(Thread); DPRINT("Thread is not a GUI Thread!\n"); @@ -1523,8 +1523,10 @@ DECLARE_RETURN(HWND); BOOL HasOwner; USER_REFERENCE_ENTRY ParentRef, Ref; - - ParentWindowHandle = PsGetCurrentThreadWin32Thread()->Desktop->DesktopWindow; + PTHREADINFO pti; + + pti = PsGetCurrentThreadWin32Thread(); + ParentWindowHandle = pti->Desktop->DesktopWindow; OwnerWindowHandle = NULL; if (hWndParent == HWND_MESSAGE) @@ -1568,7 +1570,7 @@ /* Check the window station. */ ti = GetW32ThreadInfo(); - if (ti == NULL || PsGetCurrentThreadWin32Thread()->Desktop == NULL) + if (ti == NULL || pti->Desktop == NULL) { DPRINT1("Thread is not attached to a desktop! Cannot create window!\n"); RETURN( (HWND)0); @@ -1606,7 +1608,7 @@ RETURN(NULL); } - WinSta = PsGetCurrentThreadWin32Thread()->Desktop->WindowStation; + WinSta = pti->Desktop->WindowStation; //FIXME: Reference thread/desktop instead ObReferenceObjectByPointer(WinSta, KernelMode, ExWindowStationObjectType, 0); @@ -1644,11 +1646,11 @@ ObDereferenceObject(WinSta); - if (NULL == PsGetCurrentThreadWin32Thread()->Desktop->DesktopWindow) + if (NULL == pti->Desktop->DesktopWindow) { /* If there is no desktop window yet, we must be creating it */ - PsGetCurrentThreadWin32Thread()->Desktop->DesktopWindow = hWnd; - PsGetCurrentThreadWin32Thread()->Desktop->DesktopInfo->Wnd = Wnd; + pti->Desktop->DesktopWindow = hWnd; + pti->Desktop->DesktopInfo->Wnd = Wnd; } /* @@ -1664,7 +1666,7 @@ Wnd->Instance = hInstance; Window->hSelf = hWnd; - Window->MessageQueue = PsGetCurrentThreadWin32Thread()->MessageQueue; + Window->MessageQueue = pti->MessageQueue; IntReferenceMessageQueue(Window->MessageQueue); Window->Parent = ParentWindow; Wnd->Parent = ParentWindow ? ParentWindow->Wnd : NULL; @@ -1790,7 +1792,7 @@ Wnd->IDMenu = (UINT) hMenu; /* Insert the window into the thread's window list. */ - InsertTailList (&PsGetCurrentThreadWin32Thread()->WindowListHead, &Window->ThreadListEntry); + InsertTailList (&pti->WindowListHead, &Window->ThreadListEntry); /* Handle "CS_CLASSDC", it is tested first. */ if ((Wnd->Class->Style & CS_CLASSDC) && !(Wnd->Class->Dce)) // One DCE per class to have CLASS. @@ -1842,7 +1844,7 @@ PRTL_USER_PROCESS_PARAMETERS ProcessParams; BOOL CalculatedDefPosSize = FALSE; - IntGetDesktopWorkArea(((PW32THREAD)Window->OwnerThread->Tcb.Win32Thread)->Desktop, &WorkArea); + IntGetDesktopWorkArea(((PTHREADINFO)Window->OwnerThread->Tcb.Win32Thread)->Desktop, &WorkArea); rc = WorkArea; ProcessParams = PsGetCurrentProcess()->Peb->ProcessParameters; @@ -3650,7 +3652,7 @@ /* * Remove extended window style bit WS_EX_TOPMOST for shell windows. */ - WindowStation = ((PW32THREAD)Window->OwnerThread->Tcb.Win32Thread)->Desktop->WindowStation; + WindowStation = ((PTHREADINFO)Window->OwnerThread->Tcb.Win32Thread)->Desktop->WindowStation; if(WindowStation) { if (hWnd == WindowStation->ShellWindow || hWnd == WindowStation->ShellListView) @@ -4485,6 +4487,7 @@ if ((DesktopWindow = UserGetWindowObject(IntGetDesktopWindow()))) { + PTHREADINFO pti; USHORT Hit; pt.x = X; @@ -4494,7 +4497,8 @@ //its possible this referencing is useless, thou it shouldnt hurt... UserRefObjectCo(DesktopWindow, &Ref); - Hit = co_WinPosWindowFromPoint(DesktopWindow, PsGetCurrentThreadWin32Thread()->MessageQueue, &pt, &Window); + pti = PsGetCurrentThreadWin32Thread(); + Hit = co_WinPosWindowFromPoint(DesktopWindow, pti->MessageQueue, &pt, &Window); if(Window) { Modified: trunk/reactos/subsystems/win32/win32k/ntuser/winpos.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/ntuser/winpos.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/ntuser/winpos.c [iso-8859-1] Thu Oct 16 12:52:38 2008 @@ -257,7 +257,8 @@ if (!Wnd->InternalPosInitialized) { RECT WorkArea; - PDESKTOP_OBJECT Desktop = PsGetCurrentThreadWin32Thread()->Desktop; /* Or rather get it from the window? */ + PTHREADINFO pti = PsGetCurrentThreadWin32Thread(); + PDESKTOP_OBJECT Desktop = pti->Desktop; /* Or rather get it from the window? */ Parent = Window->Parent; if(Parent) @@ -401,7 +402,8 @@ { UINT XInc, YInc; RECT WorkArea; - PDESKTOP_OBJECT Desktop = PsGetCurrentThreadWin32Thread()->Desktop; /* Or rather get it from the window? */ + PTHREADINFO pti = PsGetCurrentThreadWin32Thread(); + PDESKTOP_OBJECT Desktop = pti->Desktop; /* Or rather get it from the window? */ IntGetDesktopWorkArea(Desktop, &WorkArea); Modified: trunk/reactos/subsystems/win32/win32k/ntuser/winsta.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/ntuser/winsta.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/ntuser/winsta.c [iso-8859-1] Thu Oct 16 12:52:38 2008 @@ -918,6 +918,7 @@ UserGetProcessWindowStation(VOID) { NTSTATUS Status; + PTHREADINFO pti; HWINSTA WinSta; if(PsGetCurrentProcess() != CsrProcess) @@ -927,7 +928,8 @@ else { DPRINT1("Should use ObFindHandleForObject\n"); - Status = ObOpenObjectByPointer(PsGetCurrentThreadWin32Thread()->Desktop->WindowStation, + pti = PsGetCurrentThreadWin32Thread(); + Status = ObOpenObjectByPointer(pti->Desktop->WindowStation, 0, NULL, WINSTA_ALL_ACCESS, @@ -970,7 +972,7 @@ IntGetWinStaObj(VOID) { PWINSTATION_OBJECT WinStaObj; - PW32THREAD Win32Thread; + PTHREADINFO Win32Thread; PEPROCESS CurrentProcess; /* Modified: trunk/reactos/subsystems/win32/win32k/objects/gdiobj.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/objects/gdiobj.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/objects/gdiobj.c [iso-8859-1] Thu Oct 16 12:52:38 2008 @@ -366,7 +366,7 @@ PrevProcId = _InterlockedCompareExchangePointer((PVOID*)&Entry->ProcessId, LockedProcessId, 0); if (PrevProcId == NULL) { - PW32THREAD Thread = PsGetCurrentThreadWin32Thread(); + PW32THREAD Thread = (PW32THREAD)PsGetCurrentThreadWin32Thread(); HGDIOBJ Handle; Entry->KernelData = newObject; @@ -803,7 +803,7 @@ if ( (Entry->KernelData != NULL) && ((Entry->Type << GDI_ENTRY_UPPER_SHIFT) == HandleUpper) ) { - PW32THREAD Thread = PsGetCurrentThreadWin32Thread(); + PW32THREAD Thread = (PW32THREAD)PsGetCurrentThreadWin32Thread(); Object = Entry->KernelData; if (Object->cExclusiveLock == 0) @@ -1046,7 +1046,7 @@ DPRINT("GDIOBJ_ConvertToStockObj: hObj: 0x%08x\n", hObj); - Thread = PsGetCurrentThreadWin32Thread(); + Thread = (PW32THREAD)PsGetCurrentThreadWin32Thread(); if (!GDI_HANDLE_IS_STOCKOBJ(hObj)) { @@ -1172,7 +1172,7 @@ DPRINT("GDIOBJ_SetOwnership: hObj: 0x%x, NewProcess: 0x%x\n", ObjectHandle, (NewOwner ? PsGetProcessId(NewOwner) : 0)); - Thread = PsGetCurrentThreadWin32Thread(); + Thread = (PW32THREAD)PsGetCurrentThreadWin32Thread(); if (!GDI_HANDLE_IS_STOCKOBJ(ObjectHandle)) { @@ -1301,7 +1301,7 @@ DPRINT("GDIOBJ_CopyOwnership: from: 0x%x, to: 0x%x\n", CopyFrom, CopyTo); - Thread = PsGetCurrentThreadWin32Thread(); + Thread = (PW32THREAD)PsGetCurrentThreadWin32Thread(); if (!GDI_HANDLE_IS_STOCKOBJ(CopyFrom) && !GDI_HANDLE_IS_STOCKOBJ(CopyTo)) {
16 years, 7 months
1
0
0
0
[tkreuzer] 36768: Change return type of PsGetCurrentThreadWin32Thread to PVOID. Kernel don't know 'bout W32THREAD!
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Thu Oct 16 12:21:08 2008 New Revision: 36768 URL:
http://svn.reactos.org/svn/reactos?rev=36768&view=rev
Log: Change return type of PsGetCurrentThreadWin32Thread to PVOID. Kernel don't know 'bout W32THREAD! Modified: trunk/reactos/include/ndk/psfuncs.h trunk/reactos/ntoskrnl/ps/thread.c Modified: trunk/reactos/include/ndk/psfuncs.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/ndk/psfuncs.h?rev=…
============================================================================== --- trunk/reactos/include/ndk/psfuncs.h [iso-8859-1] (original) +++ trunk/reactos/include/ndk/psfuncs.h [iso-8859-1] Thu Oct 16 12:21:08 2008 @@ -35,7 +35,7 @@ // Win32K Process/Thread Functions // NTKERNELAPI -struct _W32THREAD* +PVOID NTAPI PsGetCurrentThreadWin32Thread( VOID Modified: trunk/reactos/ntoskrnl/ps/thread.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ps/thread.c?rev=3…
============================================================================== --- trunk/reactos/ntoskrnl/ps/thread.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/ps/thread.c [iso-8859-1] Thu Oct 16 12:21:08 2008 @@ -850,7 +850,7 @@ /* * @implemented */ -struct _W32THREAD* +PVOID NTAPI PsGetCurrentThreadWin32Thread(VOID) {
16 years, 7 months
1
0
0
0
[gschneider] 36767: No need to unlock, if locking failed. Fixes CID 186.
by gschneider@svn.reactos.org
Author: gschneider Date: Thu Oct 16 12:12:25 2008 New Revision: 36767 URL:
http://svn.reactos.org/svn/reactos?rev=36767&view=rev
Log: No need to unlock, if locking failed. Fixes CID 186. Modified: trunk/reactos/subsystems/win32/win32k/ntuser/cursoricon.c Modified: trunk/reactos/subsystems/win32/win32k/ntuser/cursoricon.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/ntuser/cursoricon.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/ntuser/cursoricon.c [iso-8859-1] Thu Oct 16 12:12:25 2008 @@ -1850,7 +1850,6 @@ BitmapObj = BITMAPOBJ_LockBitmap(dcbmp); if ( !BitmapObj ) { - BITMAPOBJ_UnlockBitmap(BitmapObj); return showpointer; /* No Mouse */ }
16 years, 7 months
1
0
0
0
[khornicek] 36765: - remove dead code, fixes CID 60, CID 61
by khornicek@svn.reactos.org
Author: khornicek Date: Thu Oct 16 03:50:56 2008 New Revision: 36765 URL:
http://svn.reactos.org/svn/reactos?rev=36765&view=rev
Log: - remove dead code, fixes CID 60, CID 61 Modified: trunk/reactos/dll/cpl/desk/advmon.c trunk/reactos/dll/cpl/desk/settings.c Modified: trunk/reactos/dll/cpl/desk/advmon.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/desk/advmon.c?rev=…
============================================================================== --- trunk/reactos/dll/cpl/desk/advmon.c [iso-8859-1] (original) +++ trunk/reactos/dll/cpl/desk/advmon.c [iso-8859-1] Thu Oct 16 03:50:56 2008 @@ -86,7 +86,9 @@ HPSXA hpsxaDev, hpsxaDisp; BOOL Ret; IDataObject *pdo; +#ifdef _MSC_VER HMODULE hShell32 = NULL; +#endif CPSEAE msvc_SHCreatePropSheetExtArrayEx; /* silence gcc warning */ @@ -140,8 +142,10 @@ IDataObject_Release(pdo); +#ifdef _MSC_VER if (hShell32) FreeLibrary(hShell32); +#endif return Ret; } Modified: trunk/reactos/dll/cpl/desk/settings.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/desk/settings.c?re…
============================================================================== --- trunk/reactos/dll/cpl/desk/settings.c [iso-8859-1] (original) +++ trunk/reactos/dll/cpl/desk/settings.c [iso-8859-1] Thu Oct 16 03:50:56 2008 @@ -243,8 +243,6 @@ HeapFree(GetProcessHeap(), 0, name); if (key != NULL) HeapFree(GetProcessHeap(), 0, key); - if (devid != NULL) - HeapFree(GetProcessHeap(), 0, devid); return FALSE; }
16 years, 7 months
1
0
0
0
[khornicek] 36764: don't loop (UINT)-1 times if the section is not present, CID 445
by khornicek@svn.reactos.org
Author: khornicek Date: Wed Oct 15 13:59:47 2008 New Revision: 36764 URL:
http://svn.reactos.org/svn/reactos?rev=36764&view=rev
Log: don't loop (UINT)-1 times if the section is not present, CID 445 Modified: trunk/reactos/dll/cpl/intl/advanced.c Modified: trunk/reactos/dll/cpl/intl/advanced.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/intl/advanced.c?re…
============================================================================== --- trunk/reactos/dll/cpl/intl/advanced.c [iso-8859-1] (original) +++ trunk/reactos/dll/cpl/intl/advanced.c [iso-8859-1] Wed Oct 15 13:59:47 2008 @@ -26,14 +26,15 @@ static BOOL GetSupportedCP(VOID) { - UINT uiCPage, Count, Number; + UINT uiCPage, Number; + LONG Count; INFCONTEXT infCont; LPCPAGE lpCPage; HANDLE hCPage; CPINFOEX cpInfEx; //TCHAR Section[MAX_PATH]; - Count = (UINT) SetupGetLineCount(hIntlInf, _T("CodePages")); + Count = SetupGetLineCount(hIntlInf, _T("CodePages")); if (Count <= 0) return FALSE; for (Number = 0; Number < Count; Number++)
16 years, 7 months
1
0
0
0
[khornicek] 36763: remove unneeded check, it's ok to create new context in this case
by khornicek@svn.reactos.org
Author: khornicek Date: Wed Oct 15 13:39:04 2008 New Revision: 36763 URL:
http://svn.reactos.org/svn/reactos?rev=36763&view=rev
Log: remove unneeded check, it's ok to create new context in this case Modified: trunk/reactos/dll/3rdparty/mesa32/src/drivers/windows/icd/icd.c Modified: trunk/reactos/dll/3rdparty/mesa32/src/drivers/windows/icd/icd.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/3rdparty/mesa32/src/dr…
============================================================================== --- trunk/reactos/dll/3rdparty/mesa32/src/drivers/windows/icd/icd.c [iso-8859-1] (original) +++ trunk/reactos/dll/3rdparty/mesa32/src/drivers/windows/icd/icd.c [iso-8859-1] Wed Oct 15 13:39:04 2008 @@ -51,6 +51,7 @@ typedef void *HPBUFFERARB; +GLAPI const char * GLAPIENTRY wglGetExtensionsStringARB(HDC hdc); GLAPI const char * GLAPIENTRY wglGetExtensionsStringEXT (void); GLAPI BOOL GLAPIENTRY wglChoosePixelFormatARB (HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats); GLAPI BOOL GLAPIENTRY wglSwapIntervalEXT (int interval); @@ -159,14 +160,8 @@ WGLAPI HGLRC GLAPIENTRY DrvCreateContext(HDC hdc) { - HWND hWnd; int i = 0; - if(!(hWnd = WindowFromDC(hdc))) - { - SetLastError(0); - return(NULL); - } if (!ctx_count) { for(i=0;i<MESAWGL_CTX_MAX_COUNT;i++) @@ -361,7 +356,7 @@ WGLAPI PROC GLAPIENTRY DrvGetProcAddress(LPCSTR lpszProc) { int i; - PROC p = (PROC) (int) _glapi_get_proc_address((const char *) lpszProc); + PROC p = (PROC) _glapi_get_proc_address((const char *) lpszProc); if (p) return p;
16 years, 7 months
1
0
0
0
Re: [ros-diffs] [hyperion] 36761: added lib/rtl/rtl-common.rbuild modified lib/rtl/rtl.rbuild Compile rtl twice, as rtl_umode and rtl_kmode. Allows conditional compilation of RTL (finally!), instead of necessitating hacks like RtlpGetMode() "rtl" mod
by Alex Ionescu
Well, you just removed the one thing ReactOS did different from NT and that I thought was really revolutionary and innovative, because it saves on compile time. It's funny, because I've been trying to sell this as a better approach to building RTL (It's built at least 4 times in the real NT tree, I think -- loader, user-mode tools/testing, kernel, user-mode). Best regards, Alex Ionescu On Wed, Oct 15, 2008 at 11:45 AM, <hyperion(a)svn.reactos.org> wrote: > Author: hyperion > Date: Wed Oct 15 10:45:11 2008 > New Revision: 36761 > > URL:
http://svn.reactos.org/svn/reactos?rev=36761&view=rev
> Log: > added lib/rtl/rtl-common.rbuild > modified lib/rtl/rtl.rbuild > Compile rtl twice, as rtl_umode and rtl_kmode. Allows conditional compilation of RTL (finally!), instead of necessitating hacks like RtlpGetMode() > "rtl" module now a dummy static library for things like <include base="rtl"> > > modified boot/freeldr/freeldr/freeldr.rbuild > modified boot/freeldr/freeldr/setupldr.rbuild > modified ntoskrnl/ntoskrnl-generic.rbuild > rtl -> rtl_kmode > > modified dll/ntdll/ntdll.rbuild > rtl -> rtl_umode > > This commit dedicated to Fireball and Stefan100 (now get to work! >:3) > > Added: > trunk/reactos/lib/rtl/rtl-common.rbuild (with props) > Modified: > trunk/reactos/boot/freeldr/freeldr/freeldr.rbuild > trunk/reactos/boot/freeldr/freeldr/setupldr.rbuild > trunk/reactos/dll/ntdll/ntdll.rbuild > trunk/reactos/lib/rtl/rtl.rbuild > trunk/reactos/ntoskrnl/ntoskrnl-generic.rbuild > > Modified: trunk/reactos/boot/freeldr/freeldr/freeldr.rbuild > URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/freel…
> ============================================================================== > --- trunk/reactos/boot/freeldr/freeldr/freeldr.rbuild [iso-8859-1] (original) > +++ trunk/reactos/boot/freeldr/freeldr/freeldr.rbuild [iso-8859-1] Wed Oct 15 10:45:11 2008 > @@ -11,7 +11,7 @@ > <library>freeldr_main</library> > <library>rossym</library> > <library>cmlib</library> > - <library>rtl</library> > + <library>rtl_kmode</library> > <library>libcntpr</library> > <linkerflag>-static</linkerflag> > <linkerflag>-lgcc</linkerflag> > > Modified: trunk/reactos/boot/freeldr/freeldr/setupldr.rbuild > URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/setup…
> ============================================================================== > --- trunk/reactos/boot/freeldr/freeldr/setupldr.rbuild [iso-8859-1] (original) > +++ trunk/reactos/boot/freeldr/freeldr/setupldr.rbuild [iso-8859-1] Wed Oct 15 10:45:11 2008 > @@ -9,7 +9,7 @@ > <library>setupldr_main</library> > <library>rossym</library> > <library>cmlib</library> > - <library>rtl</library> > + <library>rtl_kmode</library> > <library>libcntpr</library> > <linkerflag>-nostartfiles</linkerflag> > <linkerflag>-nostdlib</linkerflag> > > Modified: trunk/reactos/dll/ntdll/ntdll.rbuild > URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/ntdll/ntdll.rbuild?rev…
> ============================================================================== > --- trunk/reactos/dll/ntdll/ntdll.rbuild [iso-8859-1] (original) > +++ trunk/reactos/dll/ntdll/ntdll.rbuild [iso-8859-1] Wed Oct 15 10:45:11 2008 > @@ -12,7 +12,7 @@ > <define name="_WIN32_WINNT">0x0502</define> > <define name="_NTOSKRNL_" /> > <define name="__NO_CTYPE_INLINES" /> > - <library>rtl</library> > + <library>rtl_umode</library> > <library>ntdllsys</library> > <library>libcntpr</library> > <library>pseh</library> > > Added: trunk/reactos/lib/rtl/rtl-common.rbuild > URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/rtl-common.rbuild?…
> ============================================================================== > --- trunk/reactos/lib/rtl/rtl-common.rbuild (added) > +++ trunk/reactos/lib/rtl/rtl-common.rbuild [iso-8859-1] Wed Oct 15 10:45:11 2008 > @@ -1,0 +1,98 @@ > +<?xml version="1.0"?> > + > +<include base="rtl">.</include> > +<define name="_NTOSKRNL_" /> > +<define name="__NO_CTYPE_INLINES" /> > +<define name="NO_RTL_INLINES" /> > +<define name="_NTSYSTEM_" /> > +<define name="_NTDLLBUILD_" /> > +<if property="ARCH" value="i386"> > + <directory name="i386"> > + <file>debug_asm.S</file> > + <file>except_asm.s</file> > + <file>except.c</file> > + <file>random_asm.S</file> > + <file>rtlswap.S</file> > + <file>rtlmem.s</file> > + <file>res_asm.s</file> > + <file>thread.c</file> > + </directory> > +</if> > +<if property="ARCH" value="powerpc"> > +<directory name="powerpc"> > + <file>debug.c</file> > + <file>except.c</file> > + <file>interlocked.c</file> > + <file>rtlmem.s</file> > + <file>rtlswap.s</file> > + <file>thread.c</file> > +</directory> > +</if> > +<if property="ARCH" value="arm"> > + <directory name="arm"> > + <file>debug_asm.S</file> > + </directory> > + <file>mem.c</file> > + <file>memgen.c</file> > +</if> > +<directory name="austin"> > + <file>avl.c</file> > + <file>tree.c</file> > +</directory> > + > +<file>access.c</file> > +<file>acl.c</file> > +<file>actctx.c</file> > +<file>atom.c</file> > +<file>bitmap.c</file> > +<file>bootdata.c</file> > +<file>compress.c</file> > +<file>condvar.c</file> > +<file>crc32.c</file> > +<file>critical.c</file> > +<file>dbgbuffer.c</file> > +<file>debug.c</file> > +<file>dos8dot3.c</file> > +<file>encode.c</file> > +<file>env.c</file> > +<file>error.c</file> > +<file>exception.c</file> > +<file>generictable.c</file> > +<file>handle.c</file> > +<file>heap.c</file> > +<file>image.c</file> > +<file>interlck.c</file> > +<file>message.c</file> > +<file>largeint.c</file> > +<file>luid.c</file> > +<file>network.c</file> > +<file>nls.c</file> > +<file>path.c</file> > +<file>ppb.c</file> > +<file>process.c</file> > +<file>propvar.c</file> > +<file>qsort.c</file> > +<file>random.c</file> > +<file>rangelist.c</file> > +<file>registry.c</file> > +<file>res.c</file> > +<file>resource.c</file> > +<file>sd.c</file> > +<file>security.c</file> > +<file>slist.c</file> > +<file>sid.c</file> > +<file>sprintf.c</file> > +<file>srw.c</file> > +<file>swprintf.c</file> > +<file>splaytree.c</file> > +<file>thread.c</file> > +<file>time.c</file> > +<file>timezone.c</file> > +<file>timerqueue.c</file> > +<file>unicode.c</file> > +<file>unicodeprefix.c</file> > +<file>vectoreh.c</file> > +<file>version.c</file> > +<file>wait.c</file> > +<file>workitem.c</file> > +<pch>rtl.h</pch> > > Propchange: trunk/reactos/lib/rtl/rtl-common.rbuild > ------------------------------------------------------------------------------ > svn:eol-style = native > > Modified: trunk/reactos/lib/rtl/rtl.rbuild > URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/rtl.rbuild?rev=367…
> ============================================================================== > --- trunk/reactos/lib/rtl/rtl.rbuild [iso-8859-1] (original) > +++ trunk/reactos/lib/rtl/rtl.rbuild [iso-8859-1] Wed Oct 15 10:45:11 2008 > @@ -1,100 +1,15 @@ > <?xml version="1.0"?> > <!DOCTYPE module SYSTEM "../../tools/rbuild/project.dtd"> > -<module name="rtl" type="staticlibrary"> > - <define name="_NTOSKRNL_" /> > - <define name="__NO_CTYPE_INLINES" /> > - <define name="NO_RTL_INLINES" /> > - <define name="_NTSYSTEM_" /> > - <define name="_NTDLLBUILD_" /> > - <include base="rtl">.</include> > - <if property="ARCH" value="i386"> > - <directory name="i386"> > - <file>debug_asm.S</file> > - <file>except_asm.s</file> > - <file>except.c</file> > - <file>random_asm.S</file> > - <file>rtlswap.S</file> > - <file>rtlmem.s</file> > - <file>res_asm.s</file> > - <file>thread.c</file> > - </directory> > - </if> > - <if property="ARCH" value="powerpc"> > - <directory name="powerpc"> > - <file>debug.c</file> > - <file>except.c</file> > - <file>interlocked.c</file> > - <file>rtlmem.s</file> > - <file>rtlswap.s</file> > - <file>thread.c</file> > - </directory> > - </if> > - <if property="ARCH" value="arm"> > - <directory name="arm"> > - <file>debug_asm.S</file> > - </directory> > - <file>mem.c</file> > - <file>memgen.c</file> > - </if> > - <directory name="austin"> > - <file>avl.c</file> > - <file>tree.c</file> > - </directory> > > - <file>access.c</file> > - <file>acl.c</file> > - <file>actctx.c</file> > - <file>atom.c</file> > - <file>bitmap.c</file> > - <file>bootdata.c</file> > - <file>compress.c</file> > - <file>condvar.c</file> > - <file>crc32.c</file> > - <file>critical.c</file> > - <file>dbgbuffer.c</file> > - <file>debug.c</file> > - <file>dos8dot3.c</file> > - <file>encode.c</file> > - <file>env.c</file> > - <file>error.c</file> > - <file>exception.c</file> > - <file>generictable.c</file> > - <file>handle.c</file> > - <file>heap.c</file> > - <file>image.c</file> > - <file>interlck.c</file> > - <file>message.c</file> > - <file>largeint.c</file> > - <file>luid.c</file> > - <file>network.c</file> > - <file>nls.c</file> > - <file>path.c</file> > - <file>ppb.c</file> > - <file>process.c</file> > - <file>propvar.c</file> > - <file>qsort.c</file> > - <file>random.c</file> > - <file>rangelist.c</file> > - <file>registry.c</file> > - <file>res.c</file> > - <file>resource.c</file> > - <file>sd.c</file> > - <file>security.c</file> > - <file>slist.c</file> > - <file>sid.c</file> > - <file>sprintf.c</file> > - <file>srw.c</file> > - <file>swprintf.c</file> > - <file>splaytree.c</file> > - <file>thread.c</file> > - <file>time.c</file> > - <file>timezone.c</file> > - <file>timerqueue.c</file> > - <file>unicode.c</file> > - <file>unicodeprefix.c</file> > - <file>vectoreh.c</file> > - <file>version.c</file> > - <file>wait.c</file> > - <file>workitem.c</file> > - <pch>rtl.h</pch> > -</module> > +<group xmlns:xi="
http://www.w3.org/2001/XInclude
"> > + <module name="rtl_umode" type="staticlibrary"> > + <xi:include href="rtl-common.rbuild" /> > + </module> > + > + <module name="rtl_kmode" type="staticlibrary"> > + <xi:include href="rtl-common.rbuild" /> > + </module> > + > + <!-- dummy module to enable <include base="rtl"> --> > + <module name="rtl" type="staticlibrary" /> > +</group> > > Modified: trunk/reactos/ntoskrnl/ntoskrnl-generic.rbuild > URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ntoskrnl-generic.…
> ============================================================================== > --- trunk/reactos/ntoskrnl/ntoskrnl-generic.rbuild [iso-8859-1] (original) > +++ trunk/reactos/ntoskrnl/ntoskrnl-generic.rbuild [iso-8859-1] Wed Oct 15 10:45:11 2008 > @@ -26,7 +26,7 @@ > <library>hal</library> > <library>pseh</library> > <library>cmlib</library> > - <library>rtl</library> > + <library>rtl_kmode</library> > <library>rossym</library> > <library>libcntpr</library> > <library>kdcom</library> > >
16 years, 7 months
1
0
0
0
[janderwald] 36762: - Implement Advanced Status IP Information Dialog - Import language strings from netcfgx - Add icon group (32x32) - ncpa is now a candidate for deletion
by janderwald@svn.reactos.org
Author: janderwald Date: Wed Oct 15 12:20:55 2008 New Revision: 36762 URL:
http://svn.reactos.org/svn/reactos?rev=36762&view=rev
Log: - Implement Advanced Status IP Information Dialog - Import language strings from netcfgx - Add icon group (32x32) - ncpa is now a candidate for deletion Modified: trunk/reactos/dll/win32/netshell/lanconnectui.c trunk/reactos/dll/win32/netshell/lang/bg-BG.rc trunk/reactos/dll/win32/netshell/lang/cs-CZ.rc trunk/reactos/dll/win32/netshell/lang/da-DK.rc trunk/reactos/dll/win32/netshell/lang/de-DE.rc trunk/reactos/dll/win32/netshell/lang/el-GR.rc trunk/reactos/dll/win32/netshell/lang/en-US.rc trunk/reactos/dll/win32/netshell/lang/es-ES.rc trunk/reactos/dll/win32/netshell/lang/fr-FR.rc trunk/reactos/dll/win32/netshell/lang/hu-HU.rc trunk/reactos/dll/win32/netshell/lang/id-ID.rc trunk/reactos/dll/win32/netshell/lang/it-IT.rc trunk/reactos/dll/win32/netshell/lang/ja-JP.rc trunk/reactos/dll/win32/netshell/lang/nl-NL.rc trunk/reactos/dll/win32/netshell/lang/no-NO.rc trunk/reactos/dll/win32/netshell/lang/pl-PL.rc trunk/reactos/dll/win32/netshell/lang/ru-RU.rc trunk/reactos/dll/win32/netshell/lang/sk-SK.rc trunk/reactos/dll/win32/netshell/lang/sv-SE.rc trunk/reactos/dll/win32/netshell/lang/uk-UA.rc trunk/reactos/dll/win32/netshell/lang/zh-CN.rc trunk/reactos/dll/win32/netshell/lanstatusui.c trunk/reactos/dll/win32/netshell/netshell.rbuild trunk/reactos/dll/win32/netshell/precomp.h trunk/reactos/dll/win32/netshell/res/neterror.ico trunk/reactos/dll/win32/netshell/res/netidle.ico trunk/reactos/dll/win32/netshell/res/netoff.ico trunk/reactos/dll/win32/netshell/res/netrec.ico trunk/reactos/dll/win32/netshell/res/nettrans.ico trunk/reactos/dll/win32/netshell/res/nettrrec.ico trunk/reactos/dll/win32/netshell/resource.h Modified: trunk/reactos/dll/win32/netshell/lanconnectui.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netshell/lanconn…
============================================================================== --- trunk/reactos/dll/win32/netshell/lanconnectui.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/netshell/lanconnectui.c [iso-8859-1] Wed Oct 15 12:20:55 2008 @@ -284,7 +284,6 @@ pItem = (PNET_ITEM)lvItem.lParam; pNCfgComp = (INetCfgComponent*) pItem->pNCfgComp; - hr = INetCfgComponent_RaisePropertyUi(pNCfgComp, GetParent(hwndDlg), NCRP_QUERY_PROPERTY_UI, (IUnknown*)This); if (SUCCEEDED(hr)) { Modified: trunk/reactos/dll/win32/netshell/lang/bg-BG.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netshell/lang/bg…
============================================================================== --- trunk/reactos/dll/win32/netshell/lang/bg-BG.rc [iso-8859-1] (original) +++ trunk/reactos/dll/win32/netshell/lang/bg-BG.rc [iso-8859-1] Wed Oct 15 12:20:55 2008 @@ -101,4 +101,6 @@ IDS_FORMAT_GBIT "%u ÃÁ/ñ" IDS_DURATION_DAY "%d äåí %s" IDS_DURATION_DAYS "%d äíè %s" + IDS_ASSIGNED_DHCP "Çàäàäåíî îò DHCP" + IDS_ASSIGNED_MANUAL "Ðú÷íî íàñòðîåíî" END Modified: trunk/reactos/dll/win32/netshell/lang/cs-CZ.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netshell/lang/cs…
============================================================================== --- trunk/reactos/dll/win32/netshell/lang/cs-CZ.rc [iso-8859-1] (original) +++ trunk/reactos/dll/win32/netshell/lang/cs-CZ.rc [iso-8859-1] Wed Oct 15 12:20:55 2008 @@ -98,5 +98,7 @@ IDS_FORMAT_GBIT "%u GBit/s" IDS_DURATION_DAY "%d Day %s" IDS_DURATION_DAYS "%d Days %s" + IDS_ASSIGNED_DHCP "Pøiøazeno DHCP" + IDS_ASSIGNED_MANUAL "Ruènì nastaveno" END Modified: trunk/reactos/dll/win32/netshell/lang/da-DK.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netshell/lang/da…
============================================================================== --- trunk/reactos/dll/win32/netshell/lang/da-DK.rc [iso-8859-1] (original) +++ trunk/reactos/dll/win32/netshell/lang/da-DK.rc [iso-8859-1] Wed Oct 15 12:20:55 2008 @@ -98,6 +98,8 @@ IDS_FORMAT_GBIT "%u GBit/s" IDS_DURATION_DAY "%d Day %s" IDS_DURATION_DAYS "%d Days %s" + IDS_ASSIGNED_DHCP "Assigned by DHCP" + IDS_ASSIGNED_MANUAL "Manually configured" END Modified: trunk/reactos/dll/win32/netshell/lang/de-DE.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netshell/lang/de…
============================================================================== --- trunk/reactos/dll/win32/netshell/lang/de-DE.rc [iso-8859-1] (original) +++ trunk/reactos/dll/win32/netshell/lang/de-DE.rc [iso-8859-1] Wed Oct 15 12:20:55 2008 @@ -101,4 +101,6 @@ IDS_FORMAT_GBIT "%u GBit/s" IDS_DURATION_DAY "%d Tag %s" IDS_DURATION_DAYS "%d Tage %s" + IDS_ASSIGNED_DHCP "Von DHCP zugewiesen" + IDS_ASSIGNED_MANUAL "Manuell konfiguriert" END Modified: trunk/reactos/dll/win32/netshell/lang/el-GR.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netshell/lang/el…
============================================================================== --- trunk/reactos/dll/win32/netshell/lang/el-GR.rc [iso-8859-1] (original) +++ trunk/reactos/dll/win32/netshell/lang/el-GR.rc [iso-8859-1] Wed Oct 15 12:20:55 2008 @@ -98,5 +98,7 @@ IDS_FORMAT_GBIT "%u GBit/s" IDS_DURATION_DAY "%d Day %s" IDS_DURATION_DAYS "%d Days %s" + IDS_ASSIGNED_DHCP "Ïñßóôçêå áðü ôï DHCP" + IDS_ASSIGNED_MANUAL "Ïñßóôçêå ÷åéñïêßíçôá" END Modified: trunk/reactos/dll/win32/netshell/lang/en-US.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netshell/lang/en…
============================================================================== --- trunk/reactos/dll/win32/netshell/lang/en-US.rc [iso-8859-1] (original) +++ trunk/reactos/dll/win32/netshell/lang/en-US.rc [iso-8859-1] Wed Oct 15 12:20:55 2008 @@ -100,5 +100,7 @@ IDS_FORMAT_GBIT "%u GBit/s" IDS_DURATION_DAY "%d Day %s" IDS_DURATION_DAYS "%d Days %s" + IDS_ASSIGNED_DHCP "Assigned by DHCP" + IDS_ASSIGNED_MANUAL "Manually configured" END Modified: trunk/reactos/dll/win32/netshell/lang/es-ES.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netshell/lang/es…
============================================================================== --- trunk/reactos/dll/win32/netshell/lang/es-ES.rc [iso-8859-1] (original) +++ trunk/reactos/dll/win32/netshell/lang/es-ES.rc [iso-8859-1] Wed Oct 15 12:20:55 2008 @@ -94,5 +94,7 @@ IDS_FORMAT_GBIT "%u GBit/s" IDS_DURATION_DAY "%d Día %s" IDS_DURATION_DAYS "%d Días %s" + IDS_ASSIGNED_DHCP "Asignado por DHCP" + IDS_ASSIGNED_MANUAL "Configurado manualmente" END Modified: trunk/reactos/dll/win32/netshell/lang/fr-FR.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netshell/lang/fr…
============================================================================== --- trunk/reactos/dll/win32/netshell/lang/fr-FR.rc [iso-8859-1] (original) +++ trunk/reactos/dll/win32/netshell/lang/fr-FR.rc [iso-8859-1] Wed Oct 15 12:20:55 2008 @@ -98,4 +98,6 @@ IDS_FORMAT_GBIT "%u GBit/s" IDS_DURATION_DAY "%d Day %s" IDS_DURATION_DAYS "%d Days %s" + IDS_ASSIGNED_DHCP "Assignée par DHCP" + IDS_ASSIGNED_MANUAL "Configurée manuellement" END Modified: trunk/reactos/dll/win32/netshell/lang/hu-HU.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netshell/lang/hu…
============================================================================== --- trunk/reactos/dll/win32/netshell/lang/hu-HU.rc [iso-8859-1] (original) +++ trunk/reactos/dll/win32/netshell/lang/hu-HU.rc [iso-8859-1] Wed Oct 15 12:20:55 2008 @@ -99,4 +99,6 @@ IDS_FORMAT_GBIT "%u GBit/s" IDS_DURATION_DAY "%d Day %s" IDS_DURATION_DAYS "%d Days %s" + IDS_ASSIGNED_DHCP "Assigned by DHCP" + IDS_ASSIGNED_MANUAL "Manually configured" END Modified: trunk/reactos/dll/win32/netshell/lang/id-ID.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netshell/lang/id…
============================================================================== --- trunk/reactos/dll/win32/netshell/lang/id-ID.rc [iso-8859-1] (original) +++ trunk/reactos/dll/win32/netshell/lang/id-ID.rc [iso-8859-1] Wed Oct 15 12:20:55 2008 @@ -98,4 +98,6 @@ IDS_FORMAT_GBIT "%u GBit/s" IDS_DURATION_DAY "%d Day %s" IDS_DURATION_DAYS "%d Days %s" + IDS_ASSIGNED_DHCP "Assigned by DHCP" + IDS_ASSIGNED_MANUAL "Manually configured" END Modified: trunk/reactos/dll/win32/netshell/lang/it-IT.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netshell/lang/it…
============================================================================== --- trunk/reactos/dll/win32/netshell/lang/it-IT.rc [iso-8859-1] (original) +++ trunk/reactos/dll/win32/netshell/lang/it-IT.rc [iso-8859-1] Wed Oct 15 12:20:55 2008 @@ -104,5 +104,7 @@ IDS_FORMAT_GBIT "%u GBit/s" IDS_DURATION_DAY "%d Day %s" IDS_DURATION_DAYS "%d Days %s" + IDS_ASSIGNED_DHCP "Assegnato da DHCP" + IDS_ASSIGNED_MANUAL "Configurato manualmente" END Modified: trunk/reactos/dll/win32/netshell/lang/ja-JP.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netshell/lang/ja…
============================================================================== --- trunk/reactos/dll/win32/netshell/lang/ja-JP.rc [iso-8859-1] (original) +++ trunk/reactos/dll/win32/netshell/lang/ja-JP.rc [iso-8859-1] Wed Oct 15 12:20:55 2008 @@ -98,4 +98,6 @@ IDS_FORMAT_GBIT "%u GBit/s" IDS_DURATION_DAY "%d Day %s" IDS_DURATION_DAYS "%d Days %s" + IDS_ASSIGNED_DHCP "Assigned by DHCP" + IDS_ASSIGNED_MANUAL "Manually configured" END Modified: trunk/reactos/dll/win32/netshell/lang/nl-NL.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netshell/lang/nl…
============================================================================== --- trunk/reactos/dll/win32/netshell/lang/nl-NL.rc [iso-8859-1] (original) +++ trunk/reactos/dll/win32/netshell/lang/nl-NL.rc [iso-8859-1] Wed Oct 15 12:20:55 2008 @@ -98,6 +98,8 @@ IDS_FORMAT_GBIT "%u GBit/s" IDS_DURATION_DAY "%d Day %s" IDS_DURATION_DAYS "%d Days %s" + IDS_ASSIGNED_DHCP "Assigned by DHCP" + IDS_ASSIGNED_MANUAL "Manually configured" END Modified: trunk/reactos/dll/win32/netshell/lang/no-NO.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netshell/lang/no…
============================================================================== --- trunk/reactos/dll/win32/netshell/lang/no-NO.rc [iso-8859-1] (original) +++ trunk/reactos/dll/win32/netshell/lang/no-NO.rc [iso-8859-1] Wed Oct 15 12:20:55 2008 @@ -103,5 +103,7 @@ IDS_FORMAT_GBIT "%u GBit/s" IDS_DURATION_DAY "%d dag %s" IDS_DURATION_DAYS "%d dager %s" + IDS_ASSIGNED_DHCP "Tilordnet av DHCP" + IDS_ASSIGNED_MANUAL "Manuelt konfigurert" END Modified: trunk/reactos/dll/win32/netshell/lang/pl-PL.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netshell/lang/pl…
============================================================================== --- trunk/reactos/dll/win32/netshell/lang/pl-PL.rc [iso-8859-1] (original) +++ trunk/reactos/dll/win32/netshell/lang/pl-PL.rc [iso-8859-1] Wed Oct 15 12:20:55 2008 @@ -99,5 +99,7 @@ IDS_FORMAT_GBIT "%u GBit/s" IDS_DURATION_DAY "%d Day %s" IDS_DURATION_DAYS "%d Days %s" + IDS_ASSIGNED_DHCP "Przydzielony przez DHCP" + IDS_ASSIGNED_MANUAL "Ustawiony rêcznie" END Modified: trunk/reactos/dll/win32/netshell/lang/ru-RU.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netshell/lang/ru…
============================================================================== --- trunk/reactos/dll/win32/netshell/lang/ru-RU.rc [iso-8859-1] (original) +++ trunk/reactos/dll/win32/netshell/lang/ru-RU.rc [iso-8859-1] Wed Oct 15 12:20:55 2008 @@ -99,4 +99,6 @@ IDS_FORMAT_GBIT "%u ÃÁàéò/s" IDS_DURATION_DAY "%d Äåíü %s" IDS_DURATION_DAYS "%d Äíåé %s" + IDS_ASSIGNED_DHCP "Ïðèñâîåí DHCP" + IDS_ASSIGNED_MANUAL "Íàñòðîåí âðó÷íóþ" END Modified: trunk/reactos/dll/win32/netshell/lang/sk-SK.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netshell/lang/sk…
============================================================================== --- trunk/reactos/dll/win32/netshell/lang/sk-SK.rc [iso-8859-1] (original) +++ trunk/reactos/dll/win32/netshell/lang/sk-SK.rc [iso-8859-1] Wed Oct 15 12:20:55 2008 @@ -105,4 +105,6 @@ IDS_FORMAT_GBIT "%u GBitov/s" IDS_DURATION_DAY "%d deò %s" IDS_DURATION_DAYS "%d dní %s" + IDS_ASSIGNED_DHCP "Pridelená DHCP serverom" + IDS_ASSIGNED_MANUAL "Nakonfigurovaná manuálne" END Modified: trunk/reactos/dll/win32/netshell/lang/sv-SE.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netshell/lang/sv…
============================================================================== --- trunk/reactos/dll/win32/netshell/lang/sv-SE.rc [iso-8859-1] (original) +++ trunk/reactos/dll/win32/netshell/lang/sv-SE.rc [iso-8859-1] Wed Oct 15 12:20:55 2008 @@ -99,4 +99,6 @@ IDS_FORMAT_GBIT "%u GBit/s" IDS_DURATION_DAY "%d Day %s" IDS_DURATION_DAYS "%d Days %s" + IDS_ASSIGNED_DHCP "Assigned by DHCP" + IDS_ASSIGNED_MANUAL "Manually configured" END Modified: trunk/reactos/dll/win32/netshell/lang/uk-UA.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netshell/lang/uk…
============================================================================== --- trunk/reactos/dll/win32/netshell/lang/uk-UA.rc [iso-8859-1] (original) +++ trunk/reactos/dll/win32/netshell/lang/uk-UA.rc [iso-8859-1] Wed Oct 15 12:20:55 2008 @@ -101,4 +101,6 @@ IDS_FORMAT_GBIT "%u GBit/s" IDS_DURATION_DAY "%d Day %s" IDS_DURATION_DAYS "%d Days %s" + IDS_ASSIGNED_DHCP "Íàäàíî DHCP" + IDS_ASSIGNED_MANUAL "Íàëàøòîâàíî âðó÷íó" END Modified: trunk/reactos/dll/win32/netshell/lang/zh-CN.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netshell/lang/zh…
============================================================================== --- trunk/reactos/dll/win32/netshell/lang/zh-CN.rc [iso-8859-1] (original) +++ trunk/reactos/dll/win32/netshell/lang/zh-CN.rc [iso-8859-1] Wed Oct 15 12:20:55 2008 @@ -98,4 +98,6 @@ IDS_FORMAT_GBIT "%u GBit/s" IDS_DURATION_DAY "%d Day %s" IDS_DURATION_DAYS "%d Days %s" + IDS_ASSIGNED_DHCP "Assigned by DHCP" + IDS_ASSIGNED_MANUAL "Manually configured" END Modified: trunk/reactos/dll/win32/netshell/lanstatusui.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netshell/lanstat…
============================================================================== --- trunk/reactos/dll/win32/netshell/lanstatusui.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/netshell/lanstatusui.c [iso-8859-1] Wed Oct 15 12:20:55 2008 @@ -30,8 +30,12 @@ HWND hwndDlg; /* status dialog window */ DWORD dwAdapterIndex; UINT_PTR nIDEvent; + UINT DHCPEnabled; DWORD dwInOctets; DWORD dwOutOctets; + DWORD IpAddress; + DWORD SubnetMask; + DWORD Gateway; UINT uID; UINT Status; }LANSTATUSUI_CONTEXT; @@ -260,10 +264,7 @@ InitializeLANStatusUiDlg(HWND hwndDlg, LANSTATUSUI_CONTEXT * pContext) { WCHAR szBuffer[MAX_PATH] = {0}; - NETCON_PROPERTIES * pProperties = NULL; - DWORD dwSize, dwAdapterIndex, dwResult; - LPOLESTR pStr; - IP_ADAPTER_INFO * pAdapterInfo; + NETCON_PROPERTIES * pProperties; if (INetConnection_GetProperties(pContext->pNet, &pProperties) != NOERROR) return; @@ -279,52 +280,13 @@ SendDlgItemMessageW(hwndDlg, IDC_STATUS, WM_SETTEXT, 0, (LPARAM)szBuffer); - if (FAILED(StringFromCLSID(&pProperties->guidId, &pStr))) - { - NcFreeNetconProperties(pProperties); - return; - } - NcFreeNetconProperties(pProperties); - - /* get the IfTable */ - dwSize = 0; - dwResult = GetAdaptersInfo(NULL, &dwSize); - if (dwResult!= ERROR_BUFFER_OVERFLOW) - { - CoTaskMemFree(pStr); - return; - } - - pAdapterInfo = (PIP_ADAPTER_INFO)CoTaskMemAlloc(dwSize); - if (!pAdapterInfo) - { - CoTaskMemFree(pAdapterInfo); - CoTaskMemFree(pStr); - return; - } - - if (GetAdaptersInfo(pAdapterInfo, &dwSize) != NO_ERROR) - { - CoTaskMemFree(pAdapterInfo); - CoTaskMemFree(pStr); - return; - } - - if (!GetAdapterIndexFromNetCfgInstanceId(pAdapterInfo, pStr, &dwAdapterIndex)) - { - CoTaskMemFree(pAdapterInfo); - CoTaskMemFree(pStr); - return; - } - CoTaskMemFree(pStr); - pContext->dwAdapterIndex = dwAdapterIndex; pContext->dwInOctets = 0; pContext->dwOutOctets = 0; /* update adapter info */ pContext->Status = -1; UpdateLanStatus(hwndDlg, pContext); - CoTaskMemFree(pAdapterInfo); + NcFreeNetconProperties(pProperties); } INT_PTR @@ -336,8 +298,11 @@ LPARAM lParam ) { + WCHAR szBuffer[100] = {0}; PROPSHEETPAGE *page; LANSTATUSUI_CONTEXT * pContext; + DWORD dwIpAddr; + switch(uMsg) { @@ -345,6 +310,31 @@ page = (PROPSHEETPAGE*)lParam; pContext = (LANSTATUSUI_CONTEXT*)page->lParam; SetWindowLongPtr(hwndDlg, DWLP_USER, (LONG_PTR)pContext); + if (pContext->DHCPEnabled) + LoadStringW(netshell_hInstance, IDS_ASSIGNED_DHCP, szBuffer, sizeof(szBuffer)/sizeof(WCHAR)); + else + LoadStringW(netshell_hInstance, IDS_ASSIGNED_MANUAL, szBuffer, sizeof(szBuffer)/sizeof(WCHAR)); + + szBuffer[(sizeof(szBuffer)/sizeof(WCHAR))-1] = L'\0'; + SendDlgItemMessageW(hwndDlg, IDC_DETAILSTYPE, WM_SETTEXT, 0, (LPARAM)szBuffer); + + + dwIpAddr = ntohl(pContext->IpAddress); + swprintf(szBuffer, L"%u.%u.%u.%u", FIRST_IPADDRESS(dwIpAddr), SECOND_IPADDRESS(dwIpAddr), + THIRD_IPADDRESS(dwIpAddr), FOURTH_IPADDRESS(dwIpAddr)); + SendDlgItemMessageW(hwndDlg, IDC_DETAILSIP, WM_SETTEXT, 0, (LPARAM)szBuffer); + + dwIpAddr = ntohl(pContext->SubnetMask); + swprintf(szBuffer, L"%u.%u.%u.%u", FIRST_IPADDRESS(dwIpAddr), SECOND_IPADDRESS(dwIpAddr), + THIRD_IPADDRESS(dwIpAddr), FOURTH_IPADDRESS(dwIpAddr)); + SendDlgItemMessageW(hwndDlg, IDC_DETAILSSUBNET, WM_SETTEXT, 0, (LPARAM)szBuffer); + + dwIpAddr = ntohl(pContext->Gateway); + swprintf(szBuffer, L"%u.%u.%u.%u", FIRST_IPADDRESS(dwIpAddr), SECOND_IPADDRESS(dwIpAddr), + THIRD_IPADDRESS(dwIpAddr), FOURTH_IPADDRESS(dwIpAddr)); + SendDlgItemMessageW(hwndDlg, IDC_DETAILSGATEWAY, WM_SETTEXT, 0, (LPARAM)szBuffer); + + return TRUE; default: break; @@ -406,6 +396,65 @@ } VOID +InitializePropertyDialog( + LANSTATUSUI_CONTEXT * pContext, + NETCON_PROPERTIES * pProperties) +{ + DWORD dwSize, dwAdapterIndex, dwResult; + LPOLESTR pStr; + IP_ADAPTER_INFO * pAdapterInfo, *pCurAdapter; + + if (FAILED(StringFromCLSID(&pProperties->guidId, &pStr))) + { + return; + } + + /* get the IfTable */ + dwSize = 0; + dwResult = GetAdaptersInfo(NULL, &dwSize); + if (dwResult!= ERROR_BUFFER_OVERFLOW) + { + CoTaskMemFree(pStr); + return; + } + + pAdapterInfo = (PIP_ADAPTER_INFO)CoTaskMemAlloc(dwSize); + if (!pAdapterInfo) + { + CoTaskMemFree(pAdapterInfo); + CoTaskMemFree(pStr); + return; + } + + if (GetAdaptersInfo(pAdapterInfo, &dwSize) != NO_ERROR) + { + CoTaskMemFree(pAdapterInfo); + CoTaskMemFree(pStr); + return; + } + + if (!GetAdapterIndexFromNetCfgInstanceId(pAdapterInfo, pStr, &dwAdapterIndex)) + { + CoTaskMemFree(pAdapterInfo); + CoTaskMemFree(pStr); + return; + } + + pCurAdapter = pAdapterInfo; + while(pCurAdapter->Index != dwAdapterIndex) + pCurAdapter = pCurAdapter->Next; + + + pContext->IpAddress = inet_addr(pCurAdapter->IpAddressList.IpAddress.String); + pContext->SubnetMask = inet_addr(pCurAdapter->IpAddressList.IpMask.String); + pContext->Gateway = inet_addr(pCurAdapter->GatewayList.IpAddress.String); + pContext->DHCPEnabled = pCurAdapter->DhcpEnabled; + CoTaskMemFree(pStr); + CoTaskMemFree(pAdapterInfo); + pContext->dwAdapterIndex = dwAdapterIndex; +} + +VOID ShowStatusPropertyDialog( LANSTATUSUI_CONTEXT * pContext, HWND hwndDlg) @@ -428,7 +477,7 @@ pinfo.pszCaption = pProperties->pszwName; pinfo.dwFlags |= PSH_PROPTITLE; } - + InitializePropertyDialog(pContext, pProperties); if (pProperties->MediaType == NCM_LAN && pProperties->Status == NCS_CONNECTED) { hppages[0] = InitializePropertySheetPage(MAKEINTRESOURCEW(IDD_LAN_NETSTATUS), LANStatusUiDlg, (LPARAM)pContext, NULL); @@ -449,6 +498,7 @@ { ShowNetConnectionProperties(pContext->pNet, pContext->hwndDlg); } + NcFreeNetconProperties(pProperties); } } Modified: trunk/reactos/dll/win32/netshell/netshell.rbuild URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netshell/netshel…
============================================================================== --- trunk/reactos/dll/win32/netshell/netshell.rbuild [iso-8859-1] (original) +++ trunk/reactos/dll/win32/netshell/netshell.rbuild [iso-8859-1] Wed Oct 15 12:20:55 2008 @@ -17,6 +17,7 @@ <library>uuid</library> <library>advapi32</library> <library>setupapi</library> + <library>ws2_32</library> <library>comctl32</library> <pch>precomp.h</pch> <file>netshell.c</file> Modified: trunk/reactos/dll/win32/netshell/precomp.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netshell/precomp…
============================================================================== --- trunk/reactos/dll/win32/netshell/precomp.h [iso-8859-1] (original) +++ trunk/reactos/dll/win32/netshell/precomp.h [iso-8859-1] Wed Oct 15 12:20:55 2008 @@ -14,7 +14,7 @@ #define COBJMACROS #define NONAMELESSUNION #define NONAMELESSSTRUCT - +#include <winsock2.h> #include <windows.h> #include <shlguid.h> Modified: trunk/reactos/dll/win32/netshell/res/neterror.ico URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netshell/res/net…
============================================================================== Binary files - no diff available. Modified: trunk/reactos/dll/win32/netshell/res/netidle.ico URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netshell/res/net…
============================================================================== Binary files - no diff available. Modified: trunk/reactos/dll/win32/netshell/res/netoff.ico URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netshell/res/net…
============================================================================== Binary files - no diff available. Modified: trunk/reactos/dll/win32/netshell/res/netrec.ico URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netshell/res/net…
============================================================================== Binary files - no diff available. Modified: trunk/reactos/dll/win32/netshell/res/nettrans.ico URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netshell/res/net…
============================================================================== Binary files - no diff available. Modified: trunk/reactos/dll/win32/netshell/res/nettrrec.ico URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netshell/res/net…
============================================================================== Binary files - no diff available. Modified: trunk/reactos/dll/win32/netshell/resource.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netshell/resourc…
============================================================================== --- trunk/reactos/dll/win32/netshell/resource.h [iso-8859-1] (original) +++ trunk/reactos/dll/win32/netshell/resource.h [iso-8859-1] Wed Oct 15 12:20:55 2008 @@ -78,4 +78,6 @@ #define IDS_FORMAT_GBIT 10203 #define IDS_DURATION_DAY 10204 #define IDS_DURATION_DAYS 10205 +#define IDS_ASSIGNED_DHCP 10206 +#define IDS_ASSIGNED_MANUAL 10207
16 years, 7 months
1
0
0
0
[hyperion] 36761: added lib/rtl/rtl-common.rbuild modified lib/rtl/rtl.rbuild Compile rtl twice, as rtl_umode and rtl_kmode. Allows conditional compilation of RTL (finally!), instead of necessitating hacks like RtlpGetMode() "rtl" module now a dummy static library for things like <include base="rtl"> modified boot/freeldr/freeldr/freeldr.rbuild modified boot/freeldr/freeldr/setupldr.rbuild modified ntoskrnl/ntoskrnl-generic.rbuild rtl -> rtl_kmode modified dll/ntdll/ntdll.rbuild rtl -> rtl_umode
by hyperion@svn.reactos.org
Author: hyperion Date: Wed Oct 15 10:45:11 2008 New Revision: 36761 URL:
http://svn.reactos.org/svn/reactos?rev=36761&view=rev
Log: added lib/rtl/rtl-common.rbuild modified lib/rtl/rtl.rbuild Compile rtl twice, as rtl_umode and rtl_kmode. Allows conditional compilation of RTL (finally!), instead of necessitating hacks like RtlpGetMode() "rtl" module now a dummy static library for things like <include base="rtl"> modified boot/freeldr/freeldr/freeldr.rbuild modified boot/freeldr/freeldr/setupldr.rbuild modified ntoskrnl/ntoskrnl-generic.rbuild rtl -> rtl_kmode modified dll/ntdll/ntdll.rbuild rtl -> rtl_umode This commit dedicated to Fireball and Stefan100 (now get to work! >:3) Added: trunk/reactos/lib/rtl/rtl-common.rbuild (with props) Modified: trunk/reactos/boot/freeldr/freeldr/freeldr.rbuild trunk/reactos/boot/freeldr/freeldr/setupldr.rbuild trunk/reactos/dll/ntdll/ntdll.rbuild trunk/reactos/lib/rtl/rtl.rbuild trunk/reactos/ntoskrnl/ntoskrnl-generic.rbuild Modified: trunk/reactos/boot/freeldr/freeldr/freeldr.rbuild URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/freel…
============================================================================== --- trunk/reactos/boot/freeldr/freeldr/freeldr.rbuild [iso-8859-1] (original) +++ trunk/reactos/boot/freeldr/freeldr/freeldr.rbuild [iso-8859-1] Wed Oct 15 10:45:11 2008 @@ -11,7 +11,7 @@ <library>freeldr_main</library> <library>rossym</library> <library>cmlib</library> - <library>rtl</library> + <library>rtl_kmode</library> <library>libcntpr</library> <linkerflag>-static</linkerflag> <linkerflag>-lgcc</linkerflag> Modified: trunk/reactos/boot/freeldr/freeldr/setupldr.rbuild URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/setup…
============================================================================== --- trunk/reactos/boot/freeldr/freeldr/setupldr.rbuild [iso-8859-1] (original) +++ trunk/reactos/boot/freeldr/freeldr/setupldr.rbuild [iso-8859-1] Wed Oct 15 10:45:11 2008 @@ -9,7 +9,7 @@ <library>setupldr_main</library> <library>rossym</library> <library>cmlib</library> - <library>rtl</library> + <library>rtl_kmode</library> <library>libcntpr</library> <linkerflag>-nostartfiles</linkerflag> <linkerflag>-nostdlib</linkerflag> Modified: trunk/reactos/dll/ntdll/ntdll.rbuild URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/ntdll/ntdll.rbuild?rev…
============================================================================== --- trunk/reactos/dll/ntdll/ntdll.rbuild [iso-8859-1] (original) +++ trunk/reactos/dll/ntdll/ntdll.rbuild [iso-8859-1] Wed Oct 15 10:45:11 2008 @@ -12,7 +12,7 @@ <define name="_WIN32_WINNT">0x0502</define> <define name="_NTOSKRNL_" /> <define name="__NO_CTYPE_INLINES" /> - <library>rtl</library> + <library>rtl_umode</library> <library>ntdllsys</library> <library>libcntpr</library> <library>pseh</library> Added: trunk/reactos/lib/rtl/rtl-common.rbuild URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/rtl-common.rbuild?…
============================================================================== --- trunk/reactos/lib/rtl/rtl-common.rbuild (added) +++ trunk/reactos/lib/rtl/rtl-common.rbuild [iso-8859-1] Wed Oct 15 10:45:11 2008 @@ -1,0 +1,98 @@ +<?xml version="1.0"?> + +<include base="rtl">.</include> +<define name="_NTOSKRNL_" /> +<define name="__NO_CTYPE_INLINES" /> +<define name="NO_RTL_INLINES" /> +<define name="_NTSYSTEM_" /> +<define name="_NTDLLBUILD_" /> +<if property="ARCH" value="i386"> + <directory name="i386"> + <file>debug_asm.S</file> + <file>except_asm.s</file> + <file>except.c</file> + <file>random_asm.S</file> + <file>rtlswap.S</file> + <file>rtlmem.s</file> + <file>res_asm.s</file> + <file>thread.c</file> + </directory> +</if> +<if property="ARCH" value="powerpc"> +<directory name="powerpc"> + <file>debug.c</file> + <file>except.c</file> + <file>interlocked.c</file> + <file>rtlmem.s</file> + <file>rtlswap.s</file> + <file>thread.c</file> +</directory> +</if> +<if property="ARCH" value="arm"> + <directory name="arm"> + <file>debug_asm.S</file> + </directory> + <file>mem.c</file> + <file>memgen.c</file> +</if> +<directory name="austin"> + <file>avl.c</file> + <file>tree.c</file> +</directory> + +<file>access.c</file> +<file>acl.c</file> +<file>actctx.c</file> +<file>atom.c</file> +<file>bitmap.c</file> +<file>bootdata.c</file> +<file>compress.c</file> +<file>condvar.c</file> +<file>crc32.c</file> +<file>critical.c</file> +<file>dbgbuffer.c</file> +<file>debug.c</file> +<file>dos8dot3.c</file> +<file>encode.c</file> +<file>env.c</file> +<file>error.c</file> +<file>exception.c</file> +<file>generictable.c</file> +<file>handle.c</file> +<file>heap.c</file> +<file>image.c</file> +<file>interlck.c</file> +<file>message.c</file> +<file>largeint.c</file> +<file>luid.c</file> +<file>network.c</file> +<file>nls.c</file> +<file>path.c</file> +<file>ppb.c</file> +<file>process.c</file> +<file>propvar.c</file> +<file>qsort.c</file> +<file>random.c</file> +<file>rangelist.c</file> +<file>registry.c</file> +<file>res.c</file> +<file>resource.c</file> +<file>sd.c</file> +<file>security.c</file> +<file>slist.c</file> +<file>sid.c</file> +<file>sprintf.c</file> +<file>srw.c</file> +<file>swprintf.c</file> +<file>splaytree.c</file> +<file>thread.c</file> +<file>time.c</file> +<file>timezone.c</file> +<file>timerqueue.c</file> +<file>unicode.c</file> +<file>unicodeprefix.c</file> +<file>vectoreh.c</file> +<file>version.c</file> +<file>wait.c</file> +<file>workitem.c</file> +<pch>rtl.h</pch> Propchange: trunk/reactos/lib/rtl/rtl-common.rbuild ------------------------------------------------------------------------------ svn:eol-style = native Modified: trunk/reactos/lib/rtl/rtl.rbuild URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/rtl.rbuild?rev=367…
============================================================================== --- trunk/reactos/lib/rtl/rtl.rbuild [iso-8859-1] (original) +++ trunk/reactos/lib/rtl/rtl.rbuild [iso-8859-1] Wed Oct 15 10:45:11 2008 @@ -1,100 +1,15 @@ <?xml version="1.0"?> <!DOCTYPE module SYSTEM "../../tools/rbuild/project.dtd"> -<module name="rtl" type="staticlibrary"> - <define name="_NTOSKRNL_" /> - <define name="__NO_CTYPE_INLINES" /> - <define name="NO_RTL_INLINES" /> - <define name="_NTSYSTEM_" /> - <define name="_NTDLLBUILD_" /> - <include base="rtl">.</include> - <if property="ARCH" value="i386"> - <directory name="i386"> - <file>debug_asm.S</file> - <file>except_asm.s</file> - <file>except.c</file> - <file>random_asm.S</file> - <file>rtlswap.S</file> - <file>rtlmem.s</file> - <file>res_asm.s</file> - <file>thread.c</file> - </directory> - </if> - <if property="ARCH" value="powerpc"> - <directory name="powerpc"> - <file>debug.c</file> - <file>except.c</file> - <file>interlocked.c</file> - <file>rtlmem.s</file> - <file>rtlswap.s</file> - <file>thread.c</file> - </directory> - </if> - <if property="ARCH" value="arm"> - <directory name="arm"> - <file>debug_asm.S</file> - </directory> - <file>mem.c</file> - <file>memgen.c</file> - </if> - <directory name="austin"> - <file>avl.c</file> - <file>tree.c</file> - </directory> - <file>access.c</file> - <file>acl.c</file> - <file>actctx.c</file> - <file>atom.c</file> - <file>bitmap.c</file> - <file>bootdata.c</file> - <file>compress.c</file> - <file>condvar.c</file> - <file>crc32.c</file> - <file>critical.c</file> - <file>dbgbuffer.c</file> - <file>debug.c</file> - <file>dos8dot3.c</file> - <file>encode.c</file> - <file>env.c</file> - <file>error.c</file> - <file>exception.c</file> - <file>generictable.c</file> - <file>handle.c</file> - <file>heap.c</file> - <file>image.c</file> - <file>interlck.c</file> - <file>message.c</file> - <file>largeint.c</file> - <file>luid.c</file> - <file>network.c</file> - <file>nls.c</file> - <file>path.c</file> - <file>ppb.c</file> - <file>process.c</file> - <file>propvar.c</file> - <file>qsort.c</file> - <file>random.c</file> - <file>rangelist.c</file> - <file>registry.c</file> - <file>res.c</file> - <file>resource.c</file> - <file>sd.c</file> - <file>security.c</file> - <file>slist.c</file> - <file>sid.c</file> - <file>sprintf.c</file> - <file>srw.c</file> - <file>swprintf.c</file> - <file>splaytree.c</file> - <file>thread.c</file> - <file>time.c</file> - <file>timezone.c</file> - <file>timerqueue.c</file> - <file>unicode.c</file> - <file>unicodeprefix.c</file> - <file>vectoreh.c</file> - <file>version.c</file> - <file>wait.c</file> - <file>workitem.c</file> - <pch>rtl.h</pch> -</module> +<group xmlns:xi="
http://www.w3.org/2001/XInclude
"> + <module name="rtl_umode" type="staticlibrary"> + <xi:include href="rtl-common.rbuild" /> + </module> + + <module name="rtl_kmode" type="staticlibrary"> + <xi:include href="rtl-common.rbuild" /> + </module> + + <!-- dummy module to enable <include base="rtl"> --> + <module name="rtl" type="staticlibrary" /> +</group> Modified: trunk/reactos/ntoskrnl/ntoskrnl-generic.rbuild URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ntoskrnl-generic.…
============================================================================== --- trunk/reactos/ntoskrnl/ntoskrnl-generic.rbuild [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/ntoskrnl-generic.rbuild [iso-8859-1] Wed Oct 15 10:45:11 2008 @@ -26,7 +26,7 @@ <library>hal</library> <library>pseh</library> <library>cmlib</library> - <library>rtl</library> + <library>rtl_kmode</library> <library>rossym</library> <library>libcntpr</library> <library>kdcom</library>
16 years, 7 months
1
0
0
0
← Newer
1
...
33
34
35
36
37
38
39
...
52
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
Results per page:
10
25
50
100
200