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 2012
----- 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
19 participants
559 discussions
Start a n
N
ew thread
[cgutman] 55137: [CLASS2] - Add back an accidentally removed line
by cgutman@svn.reactos.org
Author: cgutman Date: Tue Jan 24 03:33:45 2012 New Revision: 55137 URL:
http://svn.reactos.org/svn/reactos?rev=55137&view=rev
Log: [CLASS2] - Add back an accidentally removed line Modified: branches/usb-bringup-trunk/drivers/storage/class/class2/class2.c Modified: branches/usb-bringup-trunk/drivers/storage/class/class2/class2.c URL:
http://svn.reactos.org/svn/reactos/branches/usb-bringup-trunk/drivers/stora…
============================================================================== --- branches/usb-bringup-trunk/drivers/storage/class/class2/class2.c [iso-8859-1] (original) +++ branches/usb-bringup-trunk/drivers/storage/class/class2/class2.c [iso-8859-1] Tue Jan 24 03:33:45 2012 @@ -373,6 +373,9 @@ /* Assign a drive letter */ ScsiClassAssignDriveLetter(DeviceInfo); + + /* Move to the next port number */ + DriverExtension->PortNumber++; } else {
12 years, 11 months
1
0
0
0
[cgutman] 55136: [CLASS2] - Add more black magic to remove symbolic links when a drive is removed
by cgutman@svn.reactos.org
Author: cgutman Date: Tue Jan 24 03:25:52 2012 New Revision: 55136 URL:
http://svn.reactos.org/svn/reactos?rev=55136&view=rev
Log: [CLASS2] - Add more black magic to remove symbolic links when a drive is removed Modified: branches/usb-bringup-trunk/drivers/storage/class/class2/class2.c Modified: branches/usb-bringup-trunk/drivers/storage/class/class2/class2.c URL:
http://svn.reactos.org/svn/reactos/branches/usb-bringup-trunk/drivers/stora…
============================================================================== --- branches/usb-bringup-trunk/drivers/storage/class/class2/class2.c [iso-8859-1] (original) +++ branches/usb-bringup-trunk/drivers/storage/class/class2/class2.c [iso-8859-1] Tue Jan 24 03:25:52 2012 @@ -130,38 +130,57 @@ return STATUS_SUCCESS; } +/* The following hack to assign drive letters with a non-PnP storage stack */ + +typedef struct _CLASS_DEVICE_INFO { + ULONG Partitions; + ULONG DeviceNumber; + ULONG DriveNumber; + PDEVICE_OBJECT LowerDevice; +} CLASS_DEVICE_INFO, *PCLASS_DEVICE_INFO; + +typedef struct _CLASS_DRIVER_EXTENSION { + ULONG PortNumber; + CLASS_INIT_DATA InitializationData; +} CLASS_DRIVER_EXTENSION, *PCLASS_DRIVER_EXTENSION; + +VOID +NTAPI +ScsiClassRemoveDriveLetter(PCLASS_DEVICE_INFO DeviceInfo) +{ + WCHAR Buffer1[100]; + UNICODE_STRING DriveLetterU; + ULONG Index; + + DriveLetterU.Buffer = Buffer1; + DriveLetterU.MaximumLength = sizeof(Buffer1); + + /* Delete the symbolic link to PhysicalDriveX */ + DriveLetterU.Length = swprintf(DriveLetterU.Buffer, L"\\??\\PhysicalDrive%d", DeviceInfo->DriveNumber) * sizeof(WCHAR); + IoDeleteSymbolicLink(&DriveLetterU); + + DbgPrint("HACK: Deleted symbolic link %wZ\n", &DriveLetterU); + + for (Index = 0; Index < sizeof(ULONG) * 8; Index++) + { + if (DeviceInfo->Partitions & (1 << Index)) + { + DriveLetterU.Length = swprintf(DriveLetterU.Buffer, L"\\??\\%C:", ('C' + Index)) * sizeof(WCHAR); + IoDeleteSymbolicLink(&DriveLetterU); + DbgPrint("HACK: Deleted symbolic link %wZ\n", &DriveLetterU); + } + } +} + NTSTATUS NTAPI -ScsiClassPlugPlay( - IN PDEVICE_OBJECT DeviceObject, - IN PIRP Irp) -{ - PIO_STACK_LOCATION IrpSp = IoGetCurrentIrpStackLocation(Irp); - - if (IrpSp->MinorFunction == IRP_MN_START_DEVICE) - { - Irp->IoStatus.Status = STATUS_SUCCESS; - IoCompleteRequest(Irp, IO_NO_INCREMENT); - return STATUS_SUCCESS; - } - else - { - Irp->IoStatus.Status = STATUS_NOT_SUPPORTED; - IoCompleteRequest(Irp, IO_NO_INCREMENT); - return STATUS_NOT_SUPPORTED; - } -} - -/* This is a hack to assign drive letters with a non-PnP storage stack */ -NTSTATUS -NTAPI -ScsiClassAssignDriveLetter(VOID) +ScsiClassAssignDriveLetter(PCLASS_DEVICE_INFO DeviceInfo) { WCHAR Buffer1[100]; WCHAR Buffer2[100]; UNICODE_STRING DriveLetterU, PartitionU; NTSTATUS Status; - ULONG Index, PartitionNumber, DeviceNumber; + ULONG Index, PartitionNumber, DeviceNumber, DriveNumber; OBJECT_ATTRIBUTES ObjectAttributes; IO_STATUS_BLOCK Iosb; HANDLE PartitionHandle; @@ -170,6 +189,7 @@ Index = 0; DeviceNumber = 0; + DriveNumber = 0; PartitionNumber = 1; DriveLetterU.Buffer = Buffer1; DriveLetterU.MaximumLength = sizeof(Buffer1); @@ -204,9 +224,32 @@ } } while (Status == STATUS_SUCCESS); + /* Determine the correct drive number */ + do + { + /* Check that the drive exists */ + PartitionU.Length = swprintf(PartitionU.Buffer, L"\\??\\PhysicalDrive%d", DriveNumber) * sizeof(WCHAR); + InitializeObjectAttributes(&ObjectAttributes, + &PartitionU, + OBJ_CASE_INSENSITIVE | OBJ_KERNEL_HANDLE, + NULL, + NULL); + Status = ZwOpenFile(&PartitionHandle, + FILE_READ_ATTRIBUTES, + &ObjectAttributes, + &Iosb, + 0, + 0); + if (NT_SUCCESS(Status)) + { + ZwClose(PartitionHandle); + DriveNumber++; + } + } while (Status == STATUS_SUCCESS); + /* Create the symbolic link to PhysicalDriveX */ PartitionU.Length = swprintf(PartitionU.Buffer, L"\\Device\\Harddisk%d\\Partition0", DeviceNumber) * sizeof(WCHAR); - DriveLetterU.Length = swprintf(DriveLetterU.Buffer, L"\\??\\PhysicalDrive%d", DeviceNumber) * sizeof(WCHAR); + DriveLetterU.Length = swprintf(DriveLetterU.Buffer, L"\\??\\PhysicalDrive%d", DriveNumber) * sizeof(WCHAR); Status = IoCreateSymbolicLink(&DriveLetterU, &PartitionU); if (!NT_SUCCESS(Status)) @@ -248,18 +291,52 @@ Index++; } while (Status != STATUS_SUCCESS); + DeviceInfo->Partitions |= (1 << (Index - 1)); + DbgPrint("HACK: Created symbolic link %wZ -> %wZ\n", &PartitionU, &DriveLetterU); PartitionNumber++; } } + DeviceInfo->DeviceNumber = DeviceNumber; + DeviceInfo->DriveNumber = DriveNumber; + return STATUS_SUCCESS; } -typedef struct _CLASS_DRIVER_EXTENSION { - ULONG PortNumber; - CLASS_INIT_DATA InitializationData; -} CLASS_DRIVER_EXTENSION, *PCLASS_DRIVER_EXTENSION; +NTSTATUS +NTAPI +ScsiClassPlugPlay( + IN PDEVICE_OBJECT DeviceObject, + IN PIRP Irp) +{ + PIO_STACK_LOCATION IrpSp = IoGetCurrentIrpStackLocation(Irp); + + if (IrpSp->MinorFunction == IRP_MN_START_DEVICE) + { + IoSkipCurrentIrpStackLocation(Irp); + return STATUS_SUCCESS; + } + else if (IrpSp->MinorFunction == IRP_MN_REMOVE_DEVICE) + { + PCLASS_DEVICE_INFO DeviceInfo = DeviceObject->DeviceExtension; + + ScsiClassRemoveDriveLetter(DeviceInfo); + + Irp->IoStatus.Status = STATUS_SUCCESS; + IoCompleteRequest(Irp, IO_NO_INCREMENT); + + IoDetachDevice(DeviceInfo->LowerDevice); + IoDeleteDevice(DeviceObject); + return STATUS_SUCCESS; + } + else + { + Irp->IoStatus.Status = STATUS_NOT_SUPPORTED; + IoCompleteRequest(Irp, IO_NO_INCREMENT); + return STATUS_NOT_SUPPORTED; + } +} NTSTATUS NTAPI @@ -268,15 +345,34 @@ IN PDEVICE_OBJECT PhysicalDeviceObject) { PCLASS_DRIVER_EXTENSION DriverExtension = IoGetDriverObjectExtension(DriverObject, DriverObject); + PCLASS_DEVICE_INFO DeviceInfo; + PDEVICE_OBJECT DeviceObject; + NTSTATUS Status; if (DriverExtension->InitializationData.ClassFindDevices(DriverObject, NULL, &DriverExtension->InitializationData, PhysicalDeviceObject, DriverExtension->PortNumber)) { + /* Create a device object */ + Status = IoCreateDevice(DriverObject, + sizeof(CLASS_DEVICE_INFO), + NULL, + FILE_DEVICE_DISK, + 0, + FALSE, + &DeviceObject); + if (!NT_SUCCESS(Status)) + { + return Status; + } + + DeviceInfo = DeviceObject->DeviceExtension; + RtlZeroMemory(DeviceInfo, sizeof(CLASS_DEVICE_INFO)); + + /* Attach it to the PDO */ + DeviceInfo->LowerDevice = IoAttachDeviceToDeviceStack(DeviceObject, PhysicalDeviceObject); + /* Assign a drive letter */ - ScsiClassAssignDriveLetter(); - - /* Increment the port number */ - DriverExtension->PortNumber++; + ScsiClassAssignDriveLetter(DeviceInfo); } else { @@ -286,6 +382,7 @@ return STATUS_SUCCESS; } +/* ---- End hack ---- */
12 years, 11 months
1
0
0
0
[janderwald] 55135: [USBHUB] - Add more checks for detecting composite device
by janderwald@svn.reactos.org
Author: janderwald Date: Mon Jan 23 23:41:40 2012 New Revision: 55135 URL:
http://svn.reactos.org/svn/reactos?rev=55135&view=rev
Log: [USBHUB] - Add more checks for detecting composite device Modified: branches/usb-bringup-trunk/drivers/usb/usbhub_new/fdo.c Modified: branches/usb-bringup-trunk/drivers/usb/usbhub_new/fdo.c URL:
http://svn.reactos.org/svn/reactos/branches/usb-bringup-trunk/drivers/usb/u…
============================================================================== --- branches/usb-bringup-trunk/drivers/usb/usbhub_new/fdo.c [iso-8859-1] (original) +++ branches/usb-bringup-trunk/drivers/usb/usbhub_new/fdo.c [iso-8859-1] Mon Jan 23 23:41:40 2012 @@ -806,8 +806,25 @@ ULONG IsCompositeDevice( - PUSB_DEVICE_DESCRIPTOR DeviceDescriptor) + IN PUSB_DEVICE_DESCRIPTOR DeviceDescriptor, + IN PUSB_CONFIGURATION_DESCRIPTOR ConfigurationDescriptor) { + if (DeviceDescriptor->bNumConfigurations != 1) + { + // + // composite device must have only one configuration + // + return FALSE; + } + + if (ConfigurationDescriptor->bNumInterfaces < 2) + { + // + // composite device must have multiple interfaces + // + return FALSE; + } + if (DeviceDescriptor->bDeviceClass == 0) { // @@ -877,7 +894,7 @@ // // Construct the CompatibleIds // - if (IsCompositeDevice(DeviceDescriptor)) + if (IsCompositeDevice(DeviceDescriptor, UsbChildExtension->FullConfigDesc)) { Index += swprintf(&BufferPtr[Index], L"USB\\DevClass_%02x&SubClass_%02x&Prot_%02x",
12 years, 11 months
1
0
0
0
[janderwald] 55134: [USBHUB] - Check if the device is a composite device - Report USB\COMPOSITE as compatible id when a usb compsite device is detected
by janderwald@svn.reactos.org
Author: janderwald Date: Mon Jan 23 23:29:54 2012 New Revision: 55134 URL:
http://svn.reactos.org/svn/reactos?rev=55134&view=rev
Log: [USBHUB] - Check if the device is a composite device - Report USB\COMPOSITE as compatible id when a usb compsite device is detected Modified: branches/usb-bringup-trunk/drivers/usb/usbhub_new/fdo.c Modified: branches/usb-bringup-trunk/drivers/usb/usbhub_new/fdo.c URL:
http://svn.reactos.org/svn/reactos/branches/usb-bringup-trunk/drivers/usb/u…
============================================================================== --- branches/usb-bringup-trunk/drivers/usb/usbhub_new/fdo.c [iso-8859-1] (original) +++ branches/usb-bringup-trunk/drivers/usb/usbhub_new/fdo.c [iso-8859-1] Mon Jan 23 23:29:54 2012 @@ -804,6 +804,34 @@ return STATUS_SUCCESS; } +ULONG +IsCompositeDevice( + PUSB_DEVICE_DESCRIPTOR DeviceDescriptor) +{ + if (DeviceDescriptor->bDeviceClass == 0) + { + // + // composite device + // + return TRUE; + } + + if (DeviceDescriptor->bDeviceClass == 0xEF && + DeviceDescriptor->bDeviceSubClass == 0x02 && + DeviceDescriptor->bDeviceProtocol == 0x01) + { + // + // USB-IF association descriptor + // + return TRUE; + } + + // + // not a composite device + // + return FALSE; +} + NTSTATUS CreateDeviceIds( PDEVICE_OBJECT UsbChildDeviceObject) @@ -813,15 +841,22 @@ PWCHAR BufferPtr; WCHAR Buffer[100]; PHUB_CHILDDEVICE_EXTENSION UsbChildExtension; - + PUSB_DEVICE_DESCRIPTOR DeviceDescriptor; + + // + // get child device extension + // UsbChildExtension = (PHUB_CHILDDEVICE_EXTENSION)UsbChildDeviceObject->DeviceExtension; // // Initialize the CompatibleIds String // - UsbChildExtension->usCompatibleIds.Length = 144; + UsbChildExtension->usCompatibleIds.Length = 144; //FIXME UsbChildExtension->usCompatibleIds.MaximumLength = UsbChildExtension->usCompatibleIds.Length; + // + // allocate mem for compatible id string + // BufferPtr = ExAllocatePoolWithTag(NonPagedPool, UsbChildExtension->usCompatibleIds.Length, USB_HUB_TAG); @@ -832,39 +867,43 @@ } RtlZeroMemory(BufferPtr, UsbChildExtension->usCompatibleIds.Length); - Index = 0; + + // + // get device descriptor + // + DeviceDescriptor = &UsbChildExtension->DeviceDesc; + // // Construct the CompatibleIds // - if (UsbChildExtension->DeviceDesc.bDeviceClass == 0) - { - PUSB_INTERFACE_DESCRIPTOR InterDesc = (PUSB_INTERFACE_DESCRIPTOR) - ((ULONG_PTR)UsbChildExtension->FullConfigDesc + sizeof(USB_CONFIGURATION_DESCRIPTOR)); - + if (IsCompositeDevice(DeviceDescriptor)) + { + Index += swprintf(&BufferPtr[Index], + L"USB\\DevClass_%02x&SubClass_%02x&Prot_%02x", + DeviceDescriptor->bDeviceClass, DeviceDescriptor->bDeviceSubClass, DeviceDescriptor->bDeviceProtocol) + 1; + Index += swprintf(&BufferPtr[Index], + L"USB\\DevClass_%02x&SubClass_%02x", + DeviceDescriptor->bDeviceClass, DeviceDescriptor->bDeviceSubClass) + 1; + Index += swprintf(&BufferPtr[Index], + L"USB\\DevClass_%02x", + DeviceDescriptor->bDeviceClass) + 1; + Index += swprintf(&BufferPtr[Index], + L"USB\\COMPOSITE") + 1; + } + else + { Index += swprintf(&BufferPtr[Index], L"USB\\Class_%02x&SubClass_%02x&Prot_%02x", - InterDesc->bInterfaceClass,InterDesc->bInterfaceSubClass,InterDesc->bInterfaceProtocol) + 1; + DeviceDescriptor->bDeviceClass, DeviceDescriptor->bDeviceSubClass, DeviceDescriptor->bDeviceProtocol) + 1; Index += swprintf(&BufferPtr[Index], L"USB\\Class_%02x&SubClass_%02x", - InterDesc->bInterfaceClass,InterDesc->bInterfaceSubClass) + 1; + DeviceDescriptor->bDeviceClass, DeviceDescriptor->bDeviceSubClass) + 1; Index += swprintf(&BufferPtr[Index], L"USB\\Class_%02x", - InterDesc->bInterfaceClass) + 1; - } - else - { - PUSB_DEVICE_DESCRIPTOR DevDesc = &UsbChildExtension->DeviceDesc; - Index += swprintf(&BufferPtr[Index], - L"USB\\Class_%02x&SubClass_%02x&Prot_%02x", - DevDesc->bDeviceClass,DevDesc->bDeviceSubClass,DevDesc->bDeviceProtocol) + 1; - Index += swprintf(&BufferPtr[Index], - L"USB\\Class_%02x&SubClass_%02x", - DevDesc->bDeviceClass,DevDesc->bDeviceSubClass) + 1; - Index += swprintf(&BufferPtr[Index], - L"USB\\Class_%02x", - DevDesc->bDeviceClass) + 1; - } + DeviceDescriptor->bDeviceClass) + 1; + } + BufferPtr[Index] = UNICODE_NULL; UsbChildExtension->usCompatibleIds.Buffer = BufferPtr; DPRINT1("usCompatibleIds %wZ\n", &UsbChildExtension->usCompatibleIds);
12 years, 11 months
1
0
0
0
[akhaldi] 55133: [PSDK] * Update dwmapi.h from Wine.
by akhaldi@svn.reactos.org
Author: akhaldi Date: Mon Jan 23 22:30:15 2012 New Revision: 55133 URL:
http://svn.reactos.org/svn/reactos?rev=55133&view=rev
Log: [PSDK] * Update dwmapi.h from Wine. Modified: trunk/reactos/include/psdk/dwmapi.h Modified: trunk/reactos/include/psdk/dwmapi.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/psdk/dwmapi.h?rev=…
============================================================================== --- trunk/reactos/include/psdk/dwmapi.h [iso-8859-1] (original) +++ trunk/reactos/include/psdk/dwmapi.h [iso-8859-1] Mon Jan 23 22:30:15 2012 @@ -30,6 +30,7 @@ #endif DECLARE_HANDLE(HTHUMBNAIL); +typedef HTHUMBNAIL *PHTHUMBNAIL; typedef struct _MilMatrix3x2D { @@ -53,12 +54,14 @@ BOOL fTransitionOnMaximized; } DWM_BLURBEHIND, *PDWM_BLURBEHIND; +DWMAPI DwmDefWindowProc(HWND, UINT, WPARAM, LPARAM, LRESULT*); DWMAPI DwmEnableBlurBehindWindow(HWND, const DWM_BLURBEHIND *); DWMAPI DwmEnableComposition(UINT); DWMAPI DwmEnableMMCSS(BOOL); DWMAPI DwmExtendFrameIntoClientArea(HWND,const MARGINS*); DWMAPI DwmGetColorizationColor(DWORD*,BOOL); DWMAPI DwmIsCompositionEnabled(BOOL*); +DWMAPI DwmRegisterThumbnail(HWND, HWND, PHTHUMBNAIL); DWMAPI DwmSetWindowAttribute(HWND, DWORD, LPCVOID, DWORD); DWMAPI DwmUnregisterThumbnail(HTHUMBNAIL);
12 years, 11 months
1
0
0
0
[akhaldi] 55132: [MSI] * Add some registration that was missing from the sync.
by akhaldi@svn.reactos.org
Author: akhaldi Date: Mon Jan 23 21:40:37 2012 New Revision: 55132 URL:
http://svn.reactos.org/svn/reactos?rev=55132&view=rev
Log: [MSI] * Add some registration that was missing from the sync. Added: trunk/reactos/dll/win32/msi/msi.rgs (with props) Modified: trunk/reactos/dll/win32/msi/msi.rc Modified: trunk/reactos/dll/win32/msi/msi.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msi/msi.rc?rev=5…
============================================================================== --- trunk/reactos/dll/win32/msi/msi.rc [iso-8859-1] (original) +++ trunk/reactos/dll/win32/msi/msi.rc [iso-8859-1] Mon Jan 23 21:40:37 2012 @@ -69,6 +69,8 @@ /* @makedep: msiserver.rgs */ 2 WINE_REGISTRY msiserver.rgs +3 WINE_REGISTRY msi.rgs + /* @makedep: instadvert.bmp */ 0x1001 BITMAP instadvert.bmp Added: trunk/reactos/dll/win32/msi/msi.rgs URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msi/msi.rgs?rev=…
============================================================================== --- trunk/reactos/dll/win32/msi/msi.rgs (added) +++ trunk/reactos/dll/win32/msi/msi.rgs [iso-8859-1] Mon Jan 23 21:40:37 2012 @@ -1,0 +1,83 @@ +HKCR +{ + NoRemove Interface + { + '{7BDE2046-D03B-4FFC-B84C-A098F38CFF0B}' = s 'IWineMsiRemoteDatabase' + { + NumMethods = s 8 + ProxyStubClsid32 = s '{000C103E-0000-0000-C000-000000000046}' + } + '{902B3592-9D08-4DFD-A593-D07C52546421}' = s 'IWineMsiRemotePackage' + { + NumMethods = s 25 + ProxyStubClsid32 = s '{000C103E-0000-0000-C000-000000000046}' + } + '{56D58B64-8780-4C22-A8BC-8B0B29E4A9F8}' = s 'IWineMsiRemoteCustomAction' + { + NumMethods = s 4 + ProxyStubClsid32 = s '{000C103E-0000-0000-C000-000000000046}' + } + '{000C101C-0000-0000-C000-000000000046}' = s 'IMsiServer' + { + NumMethods = s 3 + ProxyStubClsid32 = s '{000C103E-0000-0000-C000-000000000046}' + } + '{000C101D-0000-0000-C000-000000000046}' = s 'IMsiMessage' + { + NumMethods = s 3 + ProxyStubClsid32 = s '{000C103E-0000-0000-C000-000000000046}' + } + '{000C1025-0000-0000-C000-000000000046}' = s 'IMsiCustomAction' + { + NumMethods = s 3 + ProxyStubClsid32 = s '{000C103E-0000-0000-C000-000000000046}' + } + '{000C1033-0000-0000-C000-000000000046}' = s 'IMsiRemoteAPI' + { + NumMethods = s 3 + ProxyStubClsid32 = s '{000C103E-0000-0000-C000-000000000046}' + } + } + NoRemove CLSID + { + '{000C101C-0000-0000-C000-000000000046}' = s 'Msi install server' + { + ProgId = s 'IMsiServer' + } + '{000C101D-0000-0000-C000-000000000046}' = s 'Microsoft Windows Installer Message RPC' + { + ProgId = s 'WindowsInstaller.Message' + } + '{000C103E-0000-0000-C000-000000000046}' = s 'PSFactoryBuffer' + { + InprocServer32 = s '%MODULE%' { val ThreadingModel = s 'Both' } + } + '{000C1082-0000-0000-C000-000000000046}' = s 'MsiTransform' + { + } + '{000C1084-0000-0000-C000-000000000046}' = s 'MsiDatabase' + { + } + '{000C1086-0000-0000-C000-000000000046}' = s 'MsiPatch' + { + } + '{000C1094-0000-0000-C000-000000000046}' = s 'MsiServerX3' + { + InprocServer32 = s '%MODULE%' { val ThreadingModel = s 'Apartment' } + } + '{BA26E6FA-4F27-4F56-953A-3F90272018AA}' = s 'WineMsiRemoteCustomAction' + { + } + '{902B3592-9D08-4DFD-A593-D07C52546421}' = s 'WineMsiRemotePackage' + { + } + } + 'IMsiServer' = s 'Msi install server' + { + CLSID = s '{000C101C-0000-0000-C000-000000000046}' + } + 'WindowsInstaller.Message' = s 'Microsoft Windows Installer Message RPC' + { + CLSID = s '{000C101D-0000-0000-C000-000000000046}' + } +} Propchange: trunk/reactos/dll/win32/msi/msi.rgs ------------------------------------------------------------------------------ svn:eol-style = native
12 years, 11 months
1
0
0
0
[akhaldi] 55131: [MSI/BOOTDATA] * Improve and correct registering the CLISDs for MSI (they match Wine and Windows now). This reverts r55052.
by akhaldi@svn.reactos.org
Author: akhaldi Date: Mon Jan 23 20:59:35 2012 New Revision: 55131 URL:
http://svn.reactos.org/svn/reactos?rev=55131&view=rev
Log: [MSI/BOOTDATA] * Improve and correct registering the CLISDs for MSI (they match Wine and Windows now). This reverts r55052. Added: trunk/reactos/dll/win32/msi/msiserver.rgs (with props) Modified: trunk/reactos/boot/bootdata/hivecls_i386.inf trunk/reactos/dll/win32/msi/msi.rc Modified: trunk/reactos/boot/bootdata/hivecls_i386.inf URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/bootdata/hivecls_i386…
============================================================================== --- trunk/reactos/boot/bootdata/hivecls_i386.inf [iso-8859-1] (original) +++ trunk/reactos/boot/bootdata/hivecls_i386.inf [iso-8859-1] Mon Jan 23 20:59:35 2012 @@ -280,10 +280,6 @@ HKCR,"AVIFile\shell\open\command","",0x00020000,"%SystemRoot%\system32\mplay32.exe %1" HKCR,"CLSID",,0x00000012 - -; For msi.dll -HKCR, "CLSID\{000C101D-0000-0000-C000-000000000046}", "DllVersion", "3.1.4000" -HKCR, "CLSID\{000C1090-0000-0000-C000-000000000046}", "InProcHandler32", "ole32.dll" ; For Shell32.dll HKCR,"CLSID\{1F4DE370-D627-11D1-BA4F-00A0C91EEDBA}","",0x00000000,"Computer Search Results Folder" Modified: trunk/reactos/dll/win32/msi/msi.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msi/msi.rc?rev=5…
============================================================================== --- trunk/reactos/dll/win32/msi/msi.rc [iso-8859-1] (original) +++ trunk/reactos/dll/win32/msi/msi.rc [iso-8859-1] Mon Jan 23 20:59:35 2012 @@ -66,6 +66,9 @@ /* @makedep: msiserver.tlb */ 1 TYPELIB msiserver.tlb +/* @makedep: msiserver.rgs */ +2 WINE_REGISTRY msiserver.rgs + /* @makedep: instadvert.bmp */ 0x1001 BITMAP instadvert.bmp Added: trunk/reactos/dll/win32/msi/msiserver.rgs URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msi/msiserver.rg…
============================================================================== --- trunk/reactos/dll/win32/msi/msiserver.rgs (added) +++ trunk/reactos/dll/win32/msi/msiserver.rgs [iso-8859-1] Mon Jan 23 20:59:35 2012 @@ -1,0 +1,8 @@ +HKCR +{ + NoRemove CLSID + { + '{000C101D-0000-0000-C000-000000000046}' { DllVersion = s '3.1.4000' } + '{000C1090-0000-0000-C000-000000000046}' { InProcHandler32 = s 'ole32.dll' } + } +} Propchange: trunk/reactos/dll/win32/msi/msiserver.rgs ------------------------------------------------------------------------------ svn:eol-style = native
12 years, 11 months
1
0
0
0
[rharabien] 55130: [NTOSKRNL] - Fix returning uninitialized status (CID 15086)
by rharabien@svn.reactos.org
Author: rharabien Date: Mon Jan 23 20:49:08 2012 New Revision: 55130 URL:
http://svn.reactos.org/svn/reactos?rev=55130&view=rev
Log: [NTOSKRNL] - Fix returning uninitialized status (CID 15086) Modified: trunk/reactos/ntoskrnl/se/sid.c Modified: trunk/reactos/ntoskrnl/se/sid.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/se/sid.c?rev=5513…
============================================================================== --- trunk/reactos/ntoskrnl/se/sid.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/se/sid.c [iso-8859-1] Mon Jan 23 20:49:08 2012 @@ -266,7 +266,6 @@ { ULONG SidSize = 0; PISID NewSid, Sid = (PISID)InputSid; - NTSTATUS Status; PAGED_CODE(); @@ -274,14 +273,9 @@ { _SEH2_TRY { - ProbeForRead(Sid, - FIELD_OFFSET(SID, - SubAuthority), - sizeof(UCHAR)); + ProbeForRead(Sid, FIELD_OFFSET(SID, SubAuthority), sizeof(UCHAR)); SidSize = RtlLengthRequiredSid(Sid->SubAuthorityCount); - ProbeForRead(Sid, - SidSize, - sizeof(UCHAR)); + ProbeForRead(Sid, SidSize, sizeof(UCHAR)); } _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER) { @@ -291,58 +285,43 @@ _SEH2_END; /* allocate a SID and copy it */ - NewSid = ExAllocatePool(PoolType, - SidSize); - if (NewSid != NULL) + NewSid = ExAllocatePool(PoolType, SidSize); + if (!NewSid) + return STATUS_INSUFFICIENT_RESOURCES; + + _SEH2_TRY { - _SEH2_TRY - { - RtlCopyMemory(NewSid, - Sid, - SidSize); - - *CapturedSid = NewSid; - } - _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER) - { - /* Free the SID and return the exception code */ - ExFreePoolWithTag(NewSid, TAG_SID); - _SEH2_YIELD(return _SEH2_GetExceptionCode()); - } - _SEH2_END; - } - else - { - Status = STATUS_INSUFFICIENT_RESOURCES; - } - } - else if (!CaptureIfKernel) - { - *CapturedSid = InputSid; - return STATUS_SUCCESS; - } - else - { - SidSize = RtlLengthRequiredSid(Sid->SubAuthorityCount); - - /* allocate a SID and copy it */ - NewSid = ExAllocatePool(PoolType, - SidSize); - if (NewSid != NULL) - { - RtlCopyMemory(NewSid, - Sid, - SidSize); + RtlCopyMemory(NewSid, Sid, SidSize); *CapturedSid = NewSid; } - else + _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER) { - Status = STATUS_INSUFFICIENT_RESOURCES; + /* Free the SID and return the exception code */ + ExFreePoolWithTag(NewSid, TAG_SID); + _SEH2_YIELD(return _SEH2_GetExceptionCode()); } - } - - return Status; + _SEH2_END; + } + else if (!CaptureIfKernel) + { + *CapturedSid = InputSid; + } + else + { + SidSize = RtlLengthRequiredSid(Sid->SubAuthorityCount); + + /* allocate a SID and copy it */ + NewSid = ExAllocatePool(PoolType, SidSize); + if (NewSid == NULL) + return STATUS_INSUFFICIENT_RESOURCES; + + RtlCopyMemory(NewSid, Sid, SidSize); + + *CapturedSid = NewSid; + } + + return STATUS_SUCCESS; } VOID
12 years, 11 months
1
0
0
0
[tfaber] 55129: [DDK/XDK] - Disable VS11 warning about cast between different function classes (IO_DPC_ROUTINE to KDEFERRED_ROUTINE) where needed
by tfaber@svn.reactos.org
Author: tfaber Date: Mon Jan 23 19:58:06 2012 New Revision: 55129 URL:
http://svn.reactos.org/svn/reactos?rev=55129&view=rev
Log: [DDK/XDK] - Disable VS11 warning about cast between different function classes (IO_DPC_ROUTINE to KDEFERRED_ROUTINE) where needed Modified: trunk/reactos/include/ddk/wdm.h trunk/reactos/include/xdk/iofuncs.h Modified: trunk/reactos/include/ddk/wdm.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/ddk/wdm.h?rev=5512…
============================================================================== --- trunk/reactos/include/ddk/wdm.h [iso-8859-1] (original) +++ trunk/reactos/include/ddk/wdm.h [iso-8859-1] Mon Jan 23 19:58:06 2012 @@ -13763,9 +13763,16 @@ _In_ PDEVICE_OBJECT DeviceObject, _In_ PIO_DPC_ROUTINE DpcRoutine) { +#ifdef _MSC_VER +#pragma warning(push) +#pragma warning(disable:28024) +#endif KeInitializeDpc(&DeviceObject->Dpc, (PKDEFERRED_ROUTINE) DpcRoutine, DeviceObject); +#ifdef _MSC_VER +#pragma warning(pop) +#endif } #define DEVICE_INTERFACE_INCLUDE_NONACTIVE 0x00000001 @@ -13821,6 +13828,7 @@ { #ifdef _MSC_VER #pragma warning(push) +#pragma warning(disable:28024) #pragma warning(disable:28128) #endif KeInitializeThreadedDpc(&DeviceObject->Dpc, Modified: trunk/reactos/include/xdk/iofuncs.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/xdk/iofuncs.h?rev=…
============================================================================== --- trunk/reactos/include/xdk/iofuncs.h [iso-8859-1] (original) +++ trunk/reactos/include/xdk/iofuncs.h [iso-8859-1] Mon Jan 23 19:58:06 2012 @@ -2793,9 +2793,16 @@ _In_ PDEVICE_OBJECT DeviceObject, _In_ PIO_DPC_ROUTINE DpcRoutine) { +#ifdef _MSC_VER +#pragma warning(push) +#pragma warning(disable:28024) +#endif KeInitializeDpc(&DeviceObject->Dpc, (PKDEFERRED_ROUTINE) DpcRoutine, DeviceObject); +#ifdef _MSC_VER +#pragma warning(pop) +#endif } #define DEVICE_INTERFACE_INCLUDE_NONACTIVE 0x00000001 @@ -2851,6 +2858,7 @@ { #ifdef _MSC_VER #pragma warning(push) +#pragma warning(disable:28024) #pragma warning(disable:28128) #endif KeInitializeThreadedDpc(&DeviceObject->Dpc,
12 years, 11 months
1
0
0
0
[tfaber] 55128: [NTOSKRNL/IO] - Always use interlocked operations on DeviceObject->ReferenceCount
by tfaber@svn.reactos.org
Author: tfaber Date: Mon Jan 23 19:48:18 2012 New Revision: 55128 URL:
http://svn.reactos.org/svn/reactos?rev=55128&view=rev
Log: [NTOSKRNL/IO] - Always use interlocked operations on DeviceObject->ReferenceCount Modified: trunk/reactos/ntoskrnl/io/iomgr/device.c trunk/reactos/ntoskrnl/io/iomgr/file.c Modified: trunk/reactos/ntoskrnl/io/iomgr/device.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/io/iomgr/device.c…
============================================================================== --- trunk/reactos/ntoskrnl/io/iomgr/device.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/io/iomgr/device.c [iso-8859-1] Mon Jan 23 19:48:18 2012 @@ -486,7 +486,7 @@ ASSERT(DeviceObject->ReferenceCount); /* Dereference the device */ - DeviceObject->ReferenceCount--; + InterlockedDecrement(&DeviceObject->ReferenceCount); /* * Check if we can unload it and it's safe to unload (or if we're forcing Modified: trunk/reactos/ntoskrnl/io/iomgr/file.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/io/iomgr/file.c?r…
============================================================================== --- trunk/reactos/ntoskrnl/io/iomgr/file.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/io/iomgr/file.c [iso-8859-1] Mon Jan 23 19:48:18 2012 @@ -157,7 +157,7 @@ else { /* Increase reference count */ - DeviceObject->ReferenceCount++; + InterlockedIncrement(&DeviceObject->ReferenceCount); return STATUS_SUCCESS; } }
12 years, 11 months
1
0
0
0
← Newer
1
...
20
21
22
23
24
25
26
...
56
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
Results per page:
10
25
50
100
200