ReactOS.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
List overview
Download
Ros-diffs
January 2010
----- 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
26 participants
522 discussions
Start a n
N
ew thread
[sserapion] 45116: [HAL] Fix mp and mps builds.
by sserapion@svn.reactos.org
Author: sserapion Date: Sun Jan 17 08:56:11 2010 New Revision: 45116 URL:
http://svn.reactos.org/svn/reactos?rev=45116&view=rev
Log: [HAL] Fix mp and mps builds. Modified: branches/ros-amd64-bringup/reactos/hal/halx86/hal_generic.rbuild branches/ros-amd64-bringup/reactos/hal/halx86/hal_generic_mp.rbuild branches/ros-amd64-bringup/reactos/hal/halx86/halmps.rbuild branches/ros-amd64-bringup/reactos/hal/halx86/mp/mpsirql.c Modified: branches/ros-amd64-bringup/reactos/hal/halx86/hal_generic.rbuild URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/hal/h…
============================================================================== --- branches/ros-amd64-bringup/reactos/hal/halx86/hal_generic.rbuild [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/hal/halx86/hal_generic.rbuild [iso-8859-1] Sun Jan 17 08:56:11 2010 @@ -38,7 +38,7 @@ <if property="ARCH" value="amd64"> <directory name="amd64"> <file>halinit.c</file> - <file>irq.s</file> + <file>irq.S</file> <file>misc.c</file> <file>pic.c</file> <file>systimer.S</file> Modified: branches/ros-amd64-bringup/reactos/hal/halx86/hal_generic_mp.rbuild URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/hal/h…
============================================================================== --- branches/ros-amd64-bringup/reactos/hal/halx86/hal_generic_mp.rbuild [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/hal/halx86/hal_generic_mp.rbuild [iso-8859-1] Sun Jan 17 08:56:11 2010 @@ -10,9 +10,13 @@ <file>spinlock.c</file> </directory> <directory name="mp"> - <if property="ARCH" value="i386"> - <file>irq.S</file> - </if> + <file>apic.c</file> + <file>halinit_mp.c</file> + <file>ioapic.c</file> + <file>ipi_mp.c</file> + <file>mpconfig.c</file> + <file>processor_mp.c</file> + <file>halmp.rc</file> </directory> </module> </group> Modified: branches/ros-amd64-bringup/reactos/hal/halx86/halmps.rbuild URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/hal/h…
============================================================================== --- branches/ros-amd64-bringup/reactos/hal/halx86/halmps.rbuild [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/hal/halx86/halmps.rbuild [iso-8859-1] Sun Jan 17 08:56:11 2010 @@ -12,14 +12,7 @@ <library>hal_generic_mp</library> <library>ntoskrnl</library> <directory name="mp"> - <file>apic.c</file> - <file>halinit_mp.c</file> - <file>ioapic.c</file> - <file>ipi_mp.c</file> - <file>mpconfig.c</file> <file>mpsirql.c</file> - <file>processor_mp.c</file> - <file>halmp.rc</file> <directory name="i386"> <file>mps.S</file> <file>mpsboot.asm</file> Modified: branches/ros-amd64-bringup/reactos/hal/halx86/mp/mpsirql.c URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/hal/h…
============================================================================== --- branches/ros-amd64-bringup/reactos/hal/halx86/mp/mpsirql.c [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/hal/halx86/mp/mpsirql.c [iso-8859-1] Sun Jan 17 08:56:11 2010 @@ -143,30 +143,6 @@ HalpLowerIrql (NewIrql, FALSE); } - -/********************************************************************** - * NAME EXPORTED - * KeLowerIrql - * - * DESCRIPTION - * Restores the irq level on the current processor - * - * ARGUMENTS - * NewIrql = Irql to lower to - * - * RETURN VALUE - * None - * - * NOTES - */ -#undef KeLowerIrql -VOID NTAPI -KeLowerIrql (KIRQL NewIrql) -{ - KfLowerIrql (NewIrql); -} - - /********************************************************************** * NAME EXPORTED * KfRaiseIrql @@ -213,32 +189,6 @@ } return OldIrql; -} - - -/********************************************************************** - * NAME EXPORTED - * KeRaiseIrql - * - * DESCRIPTION - * Raises the hardware priority (irql) - * - * ARGUMENTS - * NewIrql = Irql to raise to - * OldIrql (OUT) = Caller supplied storage for the previous irql - * - * RETURN VALUE - * None - * - * NOTES - * Calls KfRaiseIrql - */ -#undef KeRaiseIrql -VOID NTAPI -KeRaiseIrql (KIRQL NewIrql, - PKIRQL OldIrql) -{ - *OldIrql = KfRaiseIrql (NewIrql); }
14 years, 11 months
1
0
0
0
[sserapion] 45115: Fix building in compilers without __int64
by sserapion@svn.reactos.org
Author: sserapion Date: Sun Jan 17 08:31:35 2010 New Revision: 45115 URL:
http://svn.reactos.org/svn/reactos?rev=45115&view=rev
Log: Fix building in compilers without __int64 Modified: branches/ros-amd64-bringup/reactos/tools/rsym/rsym64.h Modified: branches/ros-amd64-bringup/reactos/tools/rsym/rsym64.h URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/tools…
============================================================================== --- branches/ros-amd64-bringup/reactos/tools/rsym/rsym64.h [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/tools/rsym/rsym64.h [iso-8859-1] Sun Jan 17 08:31:35 2010 @@ -4,7 +4,13 @@ //C_ASSERT(sizeof(ULONG) == 4); typedef unsigned char UBYTE; +#if defined(_MSC_VER) || defined(__MINGW32__) typedef unsigned __int64 ULONG64; +#else +#include <stdint.h> +typedef uint64_t ULONG64; +#endif + #define IMAGE_FILE_MACHINE_AMD64 0x8664 #define IMAGE_DIRECTORY_ENTRY_IMPORT 1
14 years, 11 months
1
0
0
0
[sserapion] 45114: [KDBG] - Fix issue were prompt was unresponsive after first command. - Enable x86_64 disassembly and default to intel syntax - Print addresses with %p so that their full 64bit glory is shown. - Fix a warning.
by sserapion@svn.reactos.org
Author: sserapion Date: Sun Jan 17 08:20:26 2010 New Revision: 45114 URL:
http://svn.reactos.org/svn/reactos?rev=45114&view=rev
Log: [KDBG] - Fix issue were prompt was unresponsive after first command. - Enable x86_64 disassembly and default to intel syntax - Print addresses with %p so that their full 64bit glory is shown. - Fix a warning. Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/kdbg/amd64/i386-dis.c branches/ros-amd64-bringup/reactos/ntoskrnl/kdbg/amd64/kdb_help.S branches/ros-amd64-bringup/reactos/ntoskrnl/kdbg/kdb.c branches/ros-amd64-bringup/reactos/ntoskrnl/kdbg/kdb_cli.c branches/ros-amd64-bringup/reactos/ntoskrnl/kdbg/kdb_symbols.c Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/kdbg/amd64/i386-dis.c URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
============================================================================== --- branches/ros-amd64-bringup/reactos/ntoskrnl/kdbg/amd64/i386-dis.c [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/ntoskrnl/kdbg/amd64/i386-dis.c [iso-8859-1] Sun Jan 17 08:20:26 2010 @@ -26,7 +26,7 @@ typedef unsigned char bfd_byte; enum bfd_endian { BFD_ENDIAN_BIG, BIG_ENDIAN_LITTLE, BFD_ENDIAN_UNKNOWN }; typedef void* bfd; -typedef signed int bfd_signed_vma; +typedef LONG_PTR bfd_signed_vma; #define bfd_mach_x86_64_intel_syntax 0 #define bfd_mach_x86_64 1 #define bfd_mach_i386_i386_intel_syntax 2 @@ -36,7 +36,7 @@ #define _(X) X #define ATTRIBUTE_UNUSED extern int sprintf(char *str, const char *format, ...); -#define sprintf_vma(BUF, VMA) sprintf(BUF, "0x%X", VMA) +#define sprintf_vma(BUF, VMA) sprintf(BUF, "%p", VMA) #define _setjmp setjmp #define _INC_SETJMPEX struct disassemble_info; @@ -82,7 +82,7 @@ { if (!KdbSymPrintAddress((void*)Addr)) { - DbgPrint("<%08x>", Addr); + DbgPrint("<%p>", Addr); } } @@ -2102,9 +2102,9 @@ p++; } #else - mode_64bit = 0; + mode_64bit = 1; priv.orig_sizeflag = AFLAG | DFLAG; - /*intel_syntax = 0;*/ + intel_syntax = 1; #endif if (intel_syntax) Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/kdbg/amd64/kdb_help.S URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
============================================================================== --- branches/ros-amd64-bringup/reactos/ntoskrnl/kdbg/amd64/kdb_help.S [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/ntoskrnl/kdbg/amd64/kdb_help.S [iso-8859-1] Sun Jan 17 08:20:26 2010 @@ -30,12 +30,12 @@ mov [rsp + KTRAP_FRAME_R11], r11 /* Save xmm registers */ -// movdqa [rsp + KTRAP_FRAME_Xmm0], xmm0 -// movdqa [rsp + KTRAP_FRAME_Xmm1], xmm1 -// movdqa [rsp + KTRAP_FRAME_Xmm2], xmm2 -// movdqa [rsp + KTRAP_FRAME_Xmm3], xmm3 -// movdqa [rsp + KTRAP_FRAME_Xmm4], xmm4 -// movdqa [rsp + KTRAP_FRAME_Xmm5], xmm5 + movdqa [rsp + KTRAP_FRAME_Xmm0], xmm0 + movdqa [rsp + KTRAP_FRAME_Xmm1], xmm1 + movdqa [rsp + KTRAP_FRAME_Xmm2], xmm2 + movdqa [rsp + KTRAP_FRAME_Xmm3], xmm3 + movdqa [rsp + KTRAP_FRAME_Xmm4], xmm4 + movdqa [rsp + KTRAP_FRAME_Xmm5], xmm5 /* Save cs and previous mode */ mov ax, cs Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/kdbg/kdb.c URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
============================================================================== --- branches/ros-amd64-bringup/reactos/ntoskrnl/kdbg/kdb.c [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/ntoskrnl/kdbg/kdb.c [iso-8859-1] Sun Jan 17 08:20:26 2010 @@ -461,7 +461,7 @@ } /* Get the interrupt descriptor */ - if (!NT_SUCCESS(KdbpSafeReadMemory(IntDesc, (PVOID)(ULONG_PTR)(Idtr.Base + (IntVect * 8)), sizeof (IntDesc)))) + if (!NT_SUCCESS(KdbpSafeReadMemory(IntDesc, (PVOID)((ULONG_PTR)Idtr.Base + (IntVect * 8)), sizeof (IntDesc)))) { /*KdbpPrint("Couldn't access memory at 0x%p\n", (ULONG_PTR)Idtr.Base + (IntVect * 8));*/ return FALSE; Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/kdbg/kdb_cli.c URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
============================================================================== --- branches/ros-amd64-bringup/reactos/ntoskrnl/kdbg/kdb_cli.c [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/ntoskrnl/kdbg/kdb_cli.c [iso-8859-1] Sun Jan 17 08:20:26 2010 @@ -548,7 +548,7 @@ while (Count > 0) { if (!KdbSymPrintAddress((PVOID)Address)) - KdbpPrint("<%x>:", Address); + KdbpPrint("<%p>:", Address); else KdbpPrint(":"); @@ -574,7 +574,7 @@ while (Count-- > 0) { if (!KdbSymPrintAddress((PVOID)Address)) - KdbpPrint("<%x>: ", Address); + KdbpPrint("<%p>: ", Address); else KdbpPrint(": "); @@ -2722,7 +2722,7 @@ NextKey = '\0'; } - if ((ULONG)(Buffer - Orig) >= (Size - 1)) + if ((ULONG_PTR)(Buffer - Orig) >= (Size - 1)) { /* Buffer is full, accept only newlines */ if (Key != '\n') @@ -3258,4 +3258,4 @@ /* Return the length */ return OutStringLength; -} +} Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/kdbg/kdb_symbols.c URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
============================================================================== --- branches/ros-amd64-bringup/reactos/ntoskrnl/kdbg/kdb_symbols.c [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/ntoskrnl/kdbg/kdb_symbols.c [iso-8859-1] Sun Jan 17 08:20:26 2010 @@ -142,12 +142,12 @@ FunctionName); if (NT_SUCCESS(Status)) { - DbgPrint("<%wZ:%x (%s:%d (%s))>", + DbgPrint("<%wZ:%p (%s:%d (%s))>", &LdrEntry->BaseDllName, RelativeAddress, FileName, LineNumber, FunctionName); } else { - DbgPrint("<%wZ:%x>", &LdrEntry->BaseDllName, RelativeAddress); + DbgPrint("<%wZ:%p>", &LdrEntry->BaseDllName, RelativeAddress); } return TRUE;
14 years, 11 months
1
0
0
0
[bfreisen] 45113: [Paint] Initial support for free selections, resizing selections and experimental selection transparency
by bfreisen@svn.reactos.org
Author: bfreisen Date: Sun Jan 17 00:21:45 2010 New Revision: 45113 URL:
http://svn.reactos.org/svn/reactos?rev=45113&view=rev
Log: [Paint] Initial support for free selections, resizing selections and experimental selection transparency Modified: trunk/reactos/base/applications/paint/globalvar.h trunk/reactos/base/applications/paint/main.c trunk/reactos/base/applications/paint/mouse.c trunk/reactos/base/applications/paint/selection.c trunk/reactos/base/applications/paint/winproc.c Modified: trunk/reactos/base/applications/paint/globalvar.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/paint/gl…
============================================================================== --- trunk/reactos/base/applications/paint/globalvar.h [iso-8859-1] (original) +++ trunk/reactos/base/applications/paint/globalvar.h [iso-8859-1] Sun Jan 17 00:21:45 2010 @@ -43,6 +43,7 @@ extern HWND hSelection; extern HWND hImageArea; extern HBITMAP hSelBm; +extern HBITMAP hSelMask; extern int palColors[28]; Modified: trunk/reactos/base/applications/paint/main.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/paint/ma…
============================================================================== --- trunk/reactos/base/applications/paint/main.c [iso-8859-1] (original) +++ trunk/reactos/base/applications/paint/main.c [iso-8859-1] Sun Jan 17 00:21:45 2010 @@ -60,6 +60,7 @@ HWND hSelection; HWND hImageArea; HBITMAP hSelBm; +HBITMAP hSelMask; /* initial palette colors; may be changed by the user during execution */ int palColors[28] = { 0x000000, 0x464646, 0x787878, 0x300099, 0x241ced, 0x0078ff, 0x0ec2ff, Modified: trunk/reactos/base/applications/paint/mouse.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/paint/mo…
============================================================================== --- trunk/reactos/base/applications/paint/mouse.c [iso-8859-1] (original) +++ trunk/reactos/base/applications/paint/mouse.c [iso-8859-1] Sun Jan 17 00:21:45 2010 @@ -27,6 +27,8 @@ POINT pointStack[256]; short pointSP; +POINT *ptStack = NULL; +int ptSP = 0; void startPaintingL(HDC hdc, short x, short y, int fg, int bg) @@ -38,15 +40,25 @@ switch (activeTool) { case 1: + ShowWindow(hSelection, SW_HIDE); + if (ptStack != NULL) + HeapFree(GetProcessHeap(), 0, ptStack); + ptStack = HeapAlloc(GetProcessHeap(), HEAP_GENERATE_EXCEPTIONS, sizeof(POINT) * 1024); + ptSP = 0; + ptStack[0].x = x; + ptStack[0].y = y; + break; case 10: case 11: case 13: case 15: case 16: newReversible(); + break; case 2: newReversible(); ShowWindow(hSelection, SW_HIDE); + rectSel_src[2] = rectSel_src[3] = 0; break; case 3: newReversible(); @@ -96,6 +108,17 @@ { switch (activeTool) { + case 1: + if (ptSP == 0) + newReversible(); + ptSP++; + if (ptSP % 1024 == 0) + ptStack = HeapReAlloc(GetProcessHeap(), HEAP_GENERATE_EXCEPTIONS, ptStack, sizeof(POINT) * (ptSP + 1024)); + ptStack[ptSP].x = max(0, min(x, imgXRes)); + ptStack[ptSP].y = max(0, min(y, imgYRes)); + resetToU1(); + Poly(hdc, ptStack, ptSP + 1, 0, 0, 2, 0, FALSE); + break; case 2: { short tempX; @@ -174,6 +197,56 @@ { switch (activeTool) { + case 1: + { + POINT *ptStackCopy; + int i; + rectSel_src[0] = rectSel_src[1] = 0x7fffffff; + rectSel_src[2] = rectSel_src[3] = 0; + for (i = 0; i <= ptSP; i++) + { + if (ptStack[i].x < rectSel_src[0]) + rectSel_src[0] = ptStack[i].x; + if (ptStack[i].y < rectSel_src[1]) + rectSel_src[1] = ptStack[i].y; + if (ptStack[i].x > rectSel_src[2]) + rectSel_src[2] = ptStack[i].x; + if (ptStack[i].y > rectSel_src[3]) + rectSel_src[3] = ptStack[i].y; + } + rectSel_src[2] += 1 - rectSel_src[0]; + rectSel_src[3] += 1 - rectSel_src[1]; + rectSel_dest[0] = rectSel_src[0]; + rectSel_dest[1] = rectSel_src[1]; + rectSel_dest[2] = rectSel_src[2]; + rectSel_dest[3] = rectSel_src[3]; + if (ptSP != 0) + { + DeleteObject(hSelMask); + hSelMask = CreateBitmap(rectSel_src[2], rectSel_src[3], 1, 1, NULL); + DeleteObject(SelectObject(hSelDC, hSelMask)); + ptStackCopy = HeapAlloc(GetProcessHeap(), HEAP_GENERATE_EXCEPTIONS, sizeof(POINT) * (ptSP + 1)); + for (i = 0; i <= ptSP; i++) + { + ptStackCopy[i].x = ptStack[i].x - rectSel_src[0]; + ptStackCopy[i].y = ptStack[i].y - rectSel_src[1]; + } + Poly(hSelDC, ptStackCopy, ptSP + 1, 0x00ffffff, 0x00ffffff, 1, 2, TRUE); + HeapFree(GetProcessHeap(), 0, ptStackCopy); + SelectObject(hSelDC, hSelBm = CreateDIBWithProperties(rectSel_src[2], rectSel_src[3])); + resetToU1(); + MaskBlt(hSelDC, 0, 0, rectSel_src[2], rectSel_src[3], hDrawingDC, rectSel_src[0], + rectSel_src[1], hSelMask, 0, 0, MAKEROP4(SRCCOPY, WHITENESS)); + Poly(hdc, ptStack, ptSP + 1, bg, bg, 1, 2, TRUE); + newReversible(); + + placeSelWin(); + ShowWindow(hSelection, SW_SHOW); + } + HeapFree(GetProcessHeap(), 0, ptStack); + ptStack = NULL; + break; + } case 2: resetToU1(); if ((rectSel_src[2] != 0) && (rectSel_src[3] != 0)) @@ -181,8 +254,12 @@ DeleteObject(SelectObject (hSelDC, hSelBm = (HBITMAP) CreateDIBWithProperties(rectSel_src[2], rectSel_src[3]))); + DeleteObject(hSelMask); BitBlt(hSelDC, 0, 0, rectSel_src[2], rectSel_src[3], hDrawingDC, rectSel_src[0], rectSel_src[1], SRCCOPY); + Rect(hdc, rectSel_src[0], rectSel_src[1], rectSel_src[0] + rectSel_src[2], + rectSel_src[1] + rectSel_src[3], bgColor, bgColor, 0, TRUE); + newReversible(); placeSelWin(); ShowWindow(hSelection, SW_SHOW); } @@ -255,6 +332,7 @@ case 15: case 16: newReversible(); + break; case 3: newReversible(); Replace(hdc, x, y, x, y, fg, bg, rubberRadius); Modified: trunk/reactos/base/applications/paint/selection.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/paint/se…
============================================================================== --- trunk/reactos/base/applications/paint/selection.c [iso-8859-1] (original) +++ trunk/reactos/base/applications/paint/selection.c [iso-8859-1] Sun Jan 17 00:21:45 2010 @@ -13,12 +13,51 @@ #include "drawing.h" #include "history.h" #include "mouse.h" +#include "dib.h" /* FUNCTIONS ********************************************************/ +LPCTSTR cursors[9] = { IDC_SIZEALL, IDC_SIZENWSE, IDC_SIZENS, IDC_SIZENESW, + IDC_SIZEWE, IDC_SIZEWE, IDC_SIZENESW, IDC_SIZENS, IDC_SIZENWSE +}; + BOOL moving = FALSE; +int action = 0; short xPos; short yPos; +short xFrac; +short yFrac; + +int +identifyCorner(short x, short y, short w, short h) +{ + if (y < 3) + { + if (x < 3) + return 1; + if ((x < w / 2 + 2) && (x >= w / 2 - 1)) + return 2; + if (x >= w - 3) + return 3; + } + if ((y < h / 2 + 2) && (y >= h / 2 - 1)) + { + if (x < 3) + return 4; + if (x >= w - 3) + return 5; + } + if (y >= h - 3) + { + if (x < 3) + return 6; + if ((x < w / 2 + 2) && (x >= w / 2 - 1)) + return 7; + if (x >= w - 3) + return 8; + } + return 0; +} LRESULT CALLBACK SelectionWinProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) @@ -41,36 +80,140 @@ xPos = LOWORD(lParam); yPos = HIWORD(lParam); SetCapture(hwnd); + if (action != 0) + SetCursor(LoadCursor(NULL, cursors[action])); moving = TRUE; break; case WM_MOUSEMOVE: if (moving) { + int xDelta; + int yDelta; resetToU1(); - rectSel_dest[0] += (short)LOWORD(lParam) - xPos; - rectSel_dest[1] += (short)HIWORD(lParam) - yPos; - - Rect(hDrawingDC, rectSel_src[0], rectSel_src[1], rectSel_src[0] + rectSel_src[2], - rectSel_src[1] + rectSel_src[3], bgColor, bgColor, 0, TRUE); + xFrac += (short)LOWORD(lParam) - xPos; + yFrac += (short)HIWORD(lParam) - yPos; + if (zoom < 1000) + { + xDelta = xFrac * 1000 / zoom; + xFrac = 0; + yDelta = yFrac * 1000 / zoom; + yFrac = 0; + } + else + { + xDelta = xFrac * 1000 / zoom; + xFrac -= (xFrac * 1000 / zoom) * zoom / 1000; + yDelta = yFrac * 1000 / zoom; + yFrac -= (yFrac * 1000 / zoom) * zoom / 1000; + } + switch (action) + { + case 0: + rectSel_dest[0] += xDelta; + rectSel_dest[1] += yDelta; + break; + case 1: + rectSel_dest[0] += xDelta; + rectSel_dest[1] += yDelta; + rectSel_dest[2] -= xDelta; + rectSel_dest[3] -= yDelta; + break; + case 2: + rectSel_dest[1] += yDelta; + rectSel_dest[3] -= yDelta; + break; + case 3: + rectSel_dest[2] += xDelta; + rectSel_dest[1] += yDelta; + break; + case 4: + rectSel_dest[0] += xDelta; + rectSel_dest[2] -= xDelta; + break; + case 5: + rectSel_dest[2] += xDelta; + break; + case 6: + rectSel_dest[0] += xDelta; + rectSel_dest[2] -= xDelta; + rectSel_dest[3] += yDelta; + break; + case 7: + rectSel_dest[3] += yDelta; + break; + case 8: + rectSel_dest[2] += xDelta; + rectSel_dest[3] += yDelta; + break; + } + + if (action != 0) + StretchBlt(hDrawingDC, rectSel_dest[0], rectSel_dest[1], rectSel_dest[2], rectSel_dest[3], hSelDC, 0, 0, GetDIBWidth(hSelBm), GetDIBHeight(hSelBm), SRCCOPY); + else if (transpBg == 0) - BitBlt(hDrawingDC, rectSel_dest[0], rectSel_dest[1], rectSel_dest[2], rectSel_dest[3], - hSelDC, 0, 0, SRCCOPY); + MaskBlt(hDrawingDC, rectSel_dest[0], rectSel_dest[1], rectSel_dest[2], rectSel_dest[3], + hSelDC, 0, 0, hSelMask, 0, 0, MAKEROP4(SRCCOPY, SRCAND)); else - BitBlt(hDrawingDC, rectSel_dest[0], rectSel_dest[1], rectSel_dest[2], rectSel_dest[3], - hSelDC, 0, 0, SRCAND); - //TransparentBlt(hDrawingDC, rectSel_dest[0], rectSel_dest[1], rectSel_dest[2], rectSel_dest[3], - // hSelDC, 0, 0, rectSel_dest[2], rectSel_dest[3], bgColor); + { + HBITMAP tempMask; + HBRUSH oldBrush; + HDC tempDC; + tempMask = CreateBitmap(rectSel_dest[2], rectSel_dest[3], 1, 1, NULL); + oldBrush = SelectObject(hSelDC, CreateSolidBrush(bgColor)); + tempDC = CreateCompatibleDC(hSelDC); + SelectObject(tempDC, tempMask); + MaskBlt(tempDC, 0, 0, rectSel_dest[2], rectSel_dest[3], hSelDC, 0, 0, hSelMask, 0, 0, + MAKEROP4(NOTSRCCOPY, BLACKNESS)); + DeleteDC(tempDC); + DeleteObject(SelectObject(hSelDC, oldBrush)); + + MaskBlt(hDrawingDC, rectSel_dest[0], rectSel_dest[1], rectSel_dest[2], rectSel_dest[3], + hSelDC, 0, 0, tempMask, 0, 0, MAKEROP4(SRCCOPY, SRCAND)); + DeleteObject(tempMask); + } SendMessage(hImageArea, WM_PAINT, 0, 0); xPos = LOWORD(lParam); yPos = HIWORD(lParam); //SendMessage(hwnd, WM_PAINT, 0, 0); } + else + { + int w = rectSel_dest[2] * zoom / 1000 + 6; + int h = rectSel_dest[3] * zoom / 1000 + 6; + xPos = LOWORD(lParam); + yPos = HIWORD(lParam); + action = identifyCorner(xPos, yPos, w, h); + if (action != 0) + SetCursor(LoadCursor(NULL, cursors[action])); + } break; case WM_LBUTTONUP: if (moving) { moving = FALSE; ReleaseCapture(); + if (action != 0) + { + HDC hTempDC; + HBITMAP hTempBm; + hTempDC = CreateCompatibleDC(hSelDC); + hTempBm = CreateDIBWithProperties(rectSel_dest[2], rectSel_dest[3]); + SelectObject(hTempDC, hTempBm); + SelectObject(hSelDC, hSelBm); + StretchBlt(hTempDC, 0, 0, rectSel_dest[2], rectSel_dest[3], hSelDC, 0, 0, + GetDIBWidth(hSelBm), GetDIBHeight(hSelBm), SRCCOPY); + DeleteObject(hSelBm); + hSelBm = hTempBm; + hTempBm = CreateBitmap(rectSel_dest[2], rectSel_dest[3], 1, 1, NULL); + SelectObject(hTempDC, hTempBm); + SelectObject(hSelDC, hSelMask); + StretchBlt(hTempDC, 0, 0, rectSel_dest[2], rectSel_dest[3], hSelDC, 0, 0, + GetDIBWidth(hSelMask), GetDIBHeight(hSelMask), SRCCOPY); + DeleteObject(hSelMask); + hSelMask = hTempBm; + SelectObject(hSelDC, hSelBm); + DeleteDC(hTempDC); + } placeSelWin(); ShowWindow(hSelection, SW_HIDE); ShowWindow(hSelection, SW_SHOW); Modified: trunk/reactos/base/applications/paint/winproc.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/paint/wi…
============================================================================== --- trunk/reactos/base/applications/paint/winproc.c [iso-8859-1] (original) +++ trunk/reactos/base/applications/paint/winproc.c [iso-8859-1] Sun Jan 17 00:21:45 2010 @@ -744,18 +744,15 @@ break; case IDM_EDITDELETESELECTION: { - /* FIXME: deleting freeform selections unsupported */ - RECT selectionRect, areaRect; - long x1, x2, y1, y2; - - GetWindowRect(hSelection, &selectionRect); - GetWindowRect(hImageArea, &areaRect); - x1 = ((selectionRect.left - areaRect.left) / (zoom / 1000)) + 1; - y1 = ((selectionRect.top - areaRect.top) / (zoom / 1000)) + 1; - x2 = (selectionRect.right - areaRect.left) / (zoom / 1000); - y2 = (selectionRect.bottom - areaRect.top) / (zoom / 1000); - Rect(hDrawingDC, x1, y1, x2, y2, bgColor, bgColor, 0, TRUE); - ShowWindow(hSelection, SW_HIDE); + /* remove selection window and already painted content using undo(), + paint Rect for rectangular selections and nothing for freeform selections */ + undo(); + if (activeTool == 2) + { + newReversible(); + Rect(hDrawingDC, rectSel_dest[0], rectSel_dest[1], rectSel_dest[2] + rectSel_dest[0], + rectSel_dest[3] + rectSel_dest[1], bgColor, bgColor, 0, TRUE); + } break; } case IDM_EDITSELECTALL:
14 years, 11 months
1
0
0
0
[tkreuzer] 45112: [KE] - Save extended xmm registers and in the ExceptionFrame - Restore registeres from the ExceptionFrame
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Sat Jan 16 20:21:37 2010 New Revision: 45112 URL:
http://svn.reactos.org/svn/reactos?rev=45112&view=rev
Log: [KE] - Save extended xmm registers and in the ExceptionFrame - Restore registeres from the ExceptionFrame Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/ke/amd64/trap.S Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/ke/amd64/trap.S URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
============================================================================== --- branches/ros-amd64-bringup/reactos/ntoskrnl/ke/amd64/trap.S [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/ntoskrnl/ke/amd64/trap.S [iso-8859-1] Sat Jan 16 20:21:37 2010 @@ -139,7 +139,7 @@ /* Save previous mode and swap gs when it was UserMode */ mov ax, [rbp + KTRAP_FRAME_SegCs] - and ax, 1 + and al, 1 mov [rbp + KTRAP_FRAME_PreviousMode], al jz 1f swapgs @@ -282,6 +282,16 @@ mov [rsp + KEXCEPTION_FRAME_R13], r13 mov [rsp + KEXCEPTION_FRAME_R14], r14 mov [rsp + KEXCEPTION_FRAME_R15], r15 + movdqa [rsp + KEXCEPTION_FRAME_Xmm6], xmm6 + movdqa [rsp + KEXCEPTION_FRAME_Xmm7], xmm7 + movdqa [rsp + KEXCEPTION_FRAME_Xmm8], xmm8 + movdqa [rsp + KEXCEPTION_FRAME_Xmm9], xmm9 + movdqa [rsp + KEXCEPTION_FRAME_Xmm10], xmm10 + movdqa [rsp + KEXCEPTION_FRAME_Xmm11], xmm11 + movdqa [rsp + KEXCEPTION_FRAME_Xmm12], xmm12 + movdqa [rsp + KEXCEPTION_FRAME_Xmm13], xmm13 + movdqa [rsp + KEXCEPTION_FRAME_Xmm14], xmm14 + movdqa [rsp + KEXCEPTION_FRAME_Xmm15], xmm15 mov qword ptr [rsp + KEXCEPTION_FRAME_Return], 0 /* Call KiDispatchException */ @@ -291,6 +301,22 @@ mov r9b, [r8 + KTRAP_FRAME_PreviousMode] // PreviousMode mov byte ptr [rsp + KEXCEPTION_FRAME_P5], 1 // FirstChance call _KiDispatchException + + /* Restore registers */ + mov r12, [rsp + KEXCEPTION_FRAME_R12] + mov r13, [rsp + KEXCEPTION_FRAME_R13] + mov r14, [rsp + KEXCEPTION_FRAME_R14] + mov r15, [rsp + KEXCEPTION_FRAME_R15] + movdqa xmm6, [rsp + KEXCEPTION_FRAME_Xmm6] + movdqa xmm7, [rsp + KEXCEPTION_FRAME_Xmm7] + movdqa xmm8, [rsp + KEXCEPTION_FRAME_Xmm8] + movdqa xmm9, [rsp + KEXCEPTION_FRAME_Xmm9] + movdqa xmm10, [rsp + KEXCEPTION_FRAME_Xmm10] + movdqa xmm11, [rsp + KEXCEPTION_FRAME_Xmm11] + movdqa xmm12, [rsp + KEXCEPTION_FRAME_Xmm12] + movdqa xmm13, [rsp + KEXCEPTION_FRAME_Xmm13] + movdqa xmm14, [rsp + KEXCEPTION_FRAME_Xmm14] + movdqa xmm15, [rsp + KEXCEPTION_FRAME_Xmm15] add rsp, SIZE_EXCEPTION_RECORD + SIZE_KEXCEPTION_FRAME ret
14 years, 11 months
1
0
0
0
[fireball] 45111: - Reduce differences to stock Wine code.
by fireball@svn.reactos.org
Author: fireball Date: Sat Jan 16 20:15:51 2010 New Revision: 45111 URL:
http://svn.reactos.org/svn/reactos?rev=45111&view=rev
Log: - Reduce differences to stock Wine code. Modified: branches/arwinss/reactos/dll/win32/gdi32/brush.c Modified: branches/arwinss/reactos/dll/win32/gdi32/brush.c URL:
http://svn.reactos.org/svn/reactos/branches/arwinss/reactos/dll/win32/gdi32…
============================================================================== --- branches/arwinss/reactos/dll/win32/gdi32/brush.c [iso-8859-1] (original) +++ branches/arwinss/reactos/dll/win32/gdi32/brush.c [iso-8859-1] Sat Jan 16 20:15:51 2010 @@ -153,10 +153,8 @@ { if (ptr->logbrush.lbStyle == BS_PATTERN) DeleteObject( (HGDIOBJ)ptr->logbrush.lbHatch ); -#ifndef __REACTOS__ else if (ptr->logbrush.lbStyle == BS_DIBPATTERN) GlobalFree( (HGLOBAL)ptr->logbrush.lbHatch ); -#endif } HeapFree( GetProcessHeap(), 0, ptr ); return 0;
14 years, 11 months
1
0
0
0
[spetreolle] 45110: silence wdmaud debug
by spetreolle@svn.reactos.org
Author: spetreolle Date: Sat Jan 16 19:54:31 2010 New Revision: 45110 URL:
http://svn.reactos.org/svn/reactos?rev=45110&view=rev
Log: silence wdmaud debug Modified: trunk/reactos/dll/win32/wdmaud.drv/wdmaud.rbuild Modified: trunk/reactos/dll/win32/wdmaud.drv/wdmaud.rbuild URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/wdmaud.drv/wdmau…
============================================================================== --- trunk/reactos/dll/win32/wdmaud.drv/wdmaud.rbuild [iso-8859-1] (original) +++ trunk/reactos/dll/win32/wdmaud.drv/wdmaud.rbuild [iso-8859-1] Sat Jan 16 19:54:31 2010 @@ -5,6 +5,7 @@ <include base="wdmaud_kernel">.</include> <include base="mmixer">.</include> <include base="libsamplerate">.</include> + <define name="NDEBUG">1</define> <!-- <define name="USE_MMIXER_LIB">1</define> Enable this line to bypass wdmaud + sysaudio --> <!-- <define name="USERMODE_MIXER">1</define> Enable this line to for usermode mixing support --> <library>mmebuddy</library>
14 years, 11 months
1
0
0
0
[spetreolle] 45109: Assign rpcss to its actual group. Fixes rpcss/spooler load order.
by spetreolle@svn.reactos.org
Author: spetreolle Date: Sat Jan 16 19:44:17 2010 New Revision: 45109 URL:
http://svn.reactos.org/svn/reactos?rev=45109&view=rev
Log: Assign rpcss to its actual group. Fixes rpcss/spooler load order. Modified: trunk/reactos/boot/bootdata/hivesys_i386.inf Modified: trunk/reactos/boot/bootdata/hivesys_i386.inf URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/bootdata/hivesys_i386…
============================================================================== --- trunk/reactos/boot/bootdata/hivesys_i386.inf [iso-8859-1] (original) +++ trunk/reactos/boot/bootdata/hivesys_i386.inf [iso-8859-1] Sat Jan 16 19:44:17 2010 @@ -861,6 +861,7 @@ "Video Save", \ "File System", \ "Event log", \ + "COM Infrastructure", \ "NDIS", \ "PNP_TDI", \ "TDI", \ @@ -1177,7 +1178,7 @@ HKLM,"SYSTEM\CurrentControlSet\Services\Rpcss","DisplayName",0x00000000,"Remote Procedure Call" HKLM,"SYSTEM\CurrentControlSet\Services\Rpcss","Description",0x00000000,"RPC subsystem which is responsible for Remote procedure Calls on the local machine" HKLM,"SYSTEM\CurrentControlSet\Services\Rpcss","ErrorControl",0x00010001,0x00000001 -HKLM,"SYSTEM\CurrentControlSet\Services\Rpcss","Group",0x00000000," RPC Service" +HKLM,"SYSTEM\CurrentControlSet\Services\Rpcss","Group",0x00000000,"COM Infrastructure" HKLM,"SYSTEM\CurrentControlSet\Services\Rpcss","ImagePath",0x00020000,"%SystemRoot%\system32\rpcss.exe" HKLM,"SYSTEM\CurrentControlSet\Services\Rpcss","ObjectName",0x00000000,"LocalSystem" HKLM,"SYSTEM\CurrentControlSet\Services\Rpcss","Start",0x00010001,0x00000002 @@ -1198,7 +1199,7 @@ HKLM,"SYSTEM\CurrentControlSet\Services\Spooler","Group",0x00000000,"SpoolerGroup" HKLM,"SYSTEM\CurrentControlSet\Services\Spooler","ImagePath",0x00020000,"%SystemRoot%\system32\spoolsv.exe" HKLM,"SYSTEM\CurrentControlSet\Services\Spooler","ObjectName",0x00000000,"LocalSystem" -HKLM,"SYSTEM\CurrentControlSet\Services\Spooler","Start",0x00010001,0x00000004 +HKLM,"SYSTEM\CurrentControlSet\Services\Spooler","Start",0x00010001,0x00000002 HKLM,"SYSTEM\CurrentControlSet\Services\Spooler","Type",0x00010001,0x00000110 ; WLAN service
14 years, 11 months
1
0
0
0
[ekohl] 45108: Display CSConfigFlags.
by ekohl@svn.reactos.org
Author: ekohl Date: Sat Jan 16 18:07:41 2010 New Revision: 45108 URL:
http://svn.reactos.org/svn/reactos?rev=45108&view=rev
Log: Display CSConfigFlags. Modified: trunk/reactos/dll/win32/devmgr/advprop.c Modified: trunk/reactos/dll/win32/devmgr/advprop.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/devmgr/advprop.c…
============================================================================== --- trunk/reactos/dll/win32/devmgr/advprop.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/devmgr/advprop.c [iso-8859-1] Sat Jan 16 18:07:41 2010 @@ -791,6 +791,7 @@ // SetListViewText(hwndListView, 0, dap->szTemp); } + static VOID DisplayDevNodeEnumerator(IN PDEVADVPROP_INFO dap, IN HWND hwndListView) @@ -825,6 +826,30 @@ } +static VOID +DisplayCsFlags(IN PDEVADVPROP_INFO dap, + IN HWND hwndListView) +{ + DWORD dwValue = 0; + INT index; + + CM_Get_HW_Prof_Flags_Ex(dap->szDevName, + 0, /* current hardware profile */ + &dwValue, + 0, + dap->hMachine); + + index = 0; + if (dwValue & CSCONFIGFLAG_DISABLED) + SetListViewText(hwndListView, index++, L"CSCONFIGFLAG_DISABLED"); + + if (dwValue & CSCONFIGFLAG_DO_NOT_CREATE) + SetListViewText(hwndListView, index++, L"CSCONFIGFLAG_DO_NOT_CREATE"); + + if (dwValue & CSCONFIGFLAG_DO_NOT_START) + SetListViewText(hwndListView, index++, L"CSCONFIGFLAG_DO_NOT_START"); +} + static VOID DisplayDeviceProperties(IN PDEVADVPROP_INFO dap, @@ -875,9 +900,6 @@ case 5: /* Enumerator */ DisplayDevNodeEnumerator(dap, hwndListView); -// DisplayDevicePropertyText(dap, -// hwndListView, -// SPDRP_ENUMERATOR_NAME); break; case 6: /* Capabilities */ @@ -897,22 +919,50 @@ SPDRP_CONFIGFLAGS); break; + case 9: /* CSConfig Flags */ + DisplayCsFlags(dap, + hwndListView); + break; + #if 0 - case 9: /* CSConfig Flags */ + case 10: /* Ejection relation */ + break; + + case 11: /* Removal relations */ + break; + + case 12: /* Bus relation */ break; #endif - case 13: /* Upper Filters */ + case 13: /* Device Upper Filters */ DisplayDevicePropertyText(dap, hwndListView, SPDRP_UPPERFILTERS); break; - case 14: /* Lower Filters */ + case 14: /* Device Lower Filters */ DisplayDevicePropertyText(dap, hwndListView, SPDRP_LOWERFILTERS); break; + +#if 0 + case 15: /* Class Upper Filters */ + break; + + case 16: /* Class Lower Filters */ + break; + + case 17: /* Class Installer */ + break; + + case 18: /* Class Coinstaller */ + break; + + case 19: /* Device Coinstaller */ + break; +#endif default: SetListViewText(hwndListView, 0, L"<Not implemented yet>");
14 years, 11 months
1
0
0
0
[ekohl] 45107: Implement CM_Set_HW_Prof[_Ex].
by ekohl@svn.reactos.org
Author: ekohl Date: Sat Jan 16 17:31:58 2010 New Revision: 45107 URL:
http://svn.reactos.org/svn/reactos?rev=45107&view=rev
Log: Implement CM_Set_HW_Prof[_Ex]. Modified: trunk/reactos/base/services/umpnpmgr/umpnpmgr.c trunk/reactos/dll/win32/setupapi/cfgmgr.c trunk/reactos/dll/win32/setupapi/setupapi.spec trunk/reactos/include/ddk/cfgmgr32.h trunk/reactos/include/reactos/idl/pnp.idl trunk/reactos/include/reactos/wine/cfgmgr32.h Modified: trunk/reactos/base/services/umpnpmgr/umpnpmgr.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/services/umpnpmgr/ump…
============================================================================== --- trunk/reactos/base/services/umpnpmgr/umpnpmgr.c [iso-8859-1] (original) +++ trunk/reactos/base/services/umpnpmgr/umpnpmgr.c [iso-8859-1] Sat Jan 16 17:31:58 2010 @@ -1809,7 +1809,9 @@ /* Function 55 */ DWORD PNP_SetHwProf( - handle_t hBinding) + handle_t hBinding, + DWORD ulHardwareProfile, + DWORD ulFlags) { UNIMPLEMENTED; return CR_CALL_NOT_IMPLEMENTED; Modified: trunk/reactos/dll/win32/setupapi/cfgmgr.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/setupapi/cfgmgr.…
============================================================================== --- trunk/reactos/dll/win32/setupapi/cfgmgr.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/setupapi/cfgmgr.c [iso-8859-1] Sat Jan 16 17:31:58 2010 @@ -3775,6 +3775,60 @@ /*********************************************************************** + * CM_Set_HW_Prof [SETUPAPI.@] + */ +CONFIGRET WINAPI CM_Set_HW_Prof( + ULONG ulHardwareProfile, ULONG ulFlags) +{ + TRACE("%lu %lu\n", ulHardwareProfile, ulFlags); + return CM_Set_HW_Prof_Ex(ulHardwareProfile, ulFlags, NULL); +} + + +/*********************************************************************** + * CM_Set_HW_Prof_Ex [SETUPAPI.@] + */ +CONFIGRET WINAPI CM_Set_HW_Prof_Ex( + ULONG ulHardwareProfile, ULONG ulFlags, HMACHINE hMachine) +{ + RPC_BINDING_HANDLE BindingHandle = NULL; + CONFIGRET ret; + + TRACE("%lu %lu %lx\n", ulHardwareProfile, ulFlags, hMachine); + + if (!IsUserAdmin()) + return CR_ACCESS_DENIED; + + if (ulFlags != 0) + return CR_INVALID_FLAG; + + if (hMachine != NULL) + { + BindingHandle = ((PMACHINE_INFO)hMachine)->BindingHandle; + if (BindingHandle == NULL) + return CR_FAILURE; + } + else + { + if (!PnpGetLocalHandles(&BindingHandle, NULL)) + return CR_FAILURE; + } + + RpcTryExcept + { + ret = PNP_SetHwProf(BindingHandle, ulHardwareProfile, ulFlags); + } + RpcExcept(EXCEPTION_EXECUTE_HANDLER) + { + ret = RpcStatusToCmStatus(RpcExceptionCode()); + } + RpcEndExcept; + + return ret; +} + + +/*********************************************************************** * CM_Set_HW_Prof_FlagsA [SETUPAPI.@] */ CONFIGRET WINAPI CM_Set_HW_Prof_FlagsA( Modified: trunk/reactos/dll/win32/setupapi/setupapi.spec URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/setupapi/setupap…
============================================================================== --- trunk/reactos/dll/win32/setupapi/setupapi.spec [iso-8859-1] (original) +++ trunk/reactos/dll/win32/setupapi/setupapi.spec [iso-8859-1] Sat Jan 16 17:31:58 2010 @@ -192,8 +192,8 @@ @ stdcall CM_Set_DevNode_Registry_PropertyW(long long ptr long long) @ stdcall CM_Set_DevNode_Registry_Property_ExA(long long ptr long long long) @ stdcall CM_Set_DevNode_Registry_Property_ExW(long long ptr long long long) -@ stub CM_Set_HW_Prof -@ stub CM_Set_HW_Prof_Ex +@ stdcall CM_Set_HW_Prof(long long) +@ stdcall CM_Set_HW_Prof_Ex(long long long) @ stdcall CM_Set_HW_Prof_FlagsA(str long long long) @ stdcall CM_Set_HW_Prof_FlagsW(wstr long long long) @ stdcall CM_Set_HW_Prof_Flags_ExA(str long long long long) Modified: trunk/reactos/include/ddk/cfgmgr32.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/ddk/cfgmgr32.h?rev…
============================================================================== --- trunk/reactos/include/ddk/cfgmgr32.h [iso-8859-1] (original) +++ trunk/reactos/include/ddk/cfgmgr32.h [iso-8859-1] Sat Jan 16 17:31:58 2010 @@ -2117,8 +2117,20 @@ #define CM_Set_DevNode_Registry_Property_Ex CM_Set_DevNode_Registry_Property_ExA #endif /* UNICODE */ -/* FIXME: Obsolete CM_Set_HW_Prof */ -/* FIXME: Obsolete CM_Set_HW_Prof_Ex */ +CMAPI +CONFIGRET +WINAPI +CM_Set_HW_Prof( + IN ULONG ulHardwareProfile, + IN ULONG ulFlags); + +CMAPI +CONFIGRET +WINAPI +CM_Set_HW_Prof_Ex( + IN ULONG ulHardwareProfile, + IN ULONG ulFlags, + IN HMACHINE hMachine); /* CM_Set_HW_Prof_Flags[_Ex].ulFlags constants */ #define CM_SET_HW_PROF_FLAGS_UI_NOT_OK (0x00000001) Modified: trunk/reactos/include/reactos/idl/pnp.idl URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/idl/pnp.id…
============================================================================== --- trunk/reactos/include/reactos/idl/pnp.idl [iso-8859-1] (original) +++ trunk/reactos/include/reactos/idl/pnp.idl [iso-8859-1] Sat Jan 16 17:31:58 2010 @@ -724,7 +724,9 @@ /* Function 55 */ DWORD PNP_SetHwProf( - [in] handle_t hBinding); + [in] handle_t hBinding, + [in] DWORD ulHardwareProfile, + [in] DWORD ulFlags); /* Function 56 */ DWORD PNP_QueryArbitratorFreeData( Modified: trunk/reactos/include/reactos/wine/cfgmgr32.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/wine/cfgmg…
============================================================================== --- trunk/reactos/include/reactos/wine/cfgmgr32.h [iso-8859-1] (original) +++ trunk/reactos/include/reactos/wine/cfgmgr32.h [iso-8859-1] Sat Jan 16 17:31:58 2010 @@ -301,6 +301,8 @@ CONFIGRET WINAPI CM_Get_First_Log_Conf_Ex( PLOG_CONF, DEVINST, ULONG, HMACHINE ); CONFIGRET WINAPI CM_Get_Global_State( PULONG, ULONG ); CONFIGRET WINAPI CM_Get_Global_State_Ex( PULONG, ULONG, HMACHINE ); +CONFIGRET WINAPI CM_Set_HW_Prof( ULONG, ULONG ); +CONFIGRET WINAPI CM_Set_HW_Prof_Ex( ULONG, ULONG, HMACHINE ); CONFIGRET WINAPI CM_Get_HW_Prof_FlagsA( DEVINSTID_A, ULONG, PULONG, ULONG ); CONFIGRET WINAPI CM_Get_HW_Prof_FlagsW( DEVINSTID_W, ULONG, PULONG, ULONG ); #define CM_Get_HW_Prof_Flags WINELIB_NAME_AW(CM_Get_HW_Prof_Flags)
14 years, 11 months
1
0
0
0
← Newer
1
...
23
24
25
26
27
28
29
...
53
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
Results per page:
10
25
50
100
200