Re: [ros-dev] [ros-diffs] [pschweitzer] 69221: [MOUNTMGR] Implement the IOCTL IOCTL_MOUNTMGR_VOLUME_MOUNT_POINT_CREATED: - Implement WriteRemoteDatabaseEntry() - Implement MountMgrVolumeMountPointCrea
u can implement thisit is wonderful On Mon, Sep 14, 2015 at 8:54 AM, Alex Ionescuwrote: > Lol, make sure not to implement the huge vulnerability Microsoft patched > two months ago (win2k->xp-style database migration). > > Best regards, > Alex Ionescu > > On Sun, Sep 13, 2015 at 6:52 PM, wrote: > >> Author: pschweitzer >> Date: Sun Sep 13 22:52:07 2015 >> New Revision: 69221 >> >> URL: http://svn.reactos.org/svn/reactos?rev=69221=rev >> Log: >> [MOUNTMGR] >> Implement the IOCTL IOCTL_MOUNTMGR_VOLUME_MOUNT_POINT_CREATED: >> - Implement WriteRemoteDatabaseEntry() >> - Implement MountMgrVolumeMountPointCreated() >> >> Modified: >> trunk/reactos/drivers/filters/mountmgr/database.c >> trunk/reactos/drivers/filters/mountmgr/device.c >> trunk/reactos/drivers/filters/mountmgr/mntmgr.h >> trunk/reactos/drivers/filters/mountmgr/mountmgr.c >> >> Modified: trunk/reactos/drivers/filters/mountmgr/database.c >> URL: >> http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filters/mountmgr/database.c?rev=69221=69220=69221=diff >> >> == >> --- trunk/reactos/drivers/filters/mountmgr/database.c [iso-8859-1] >> (original) >> +++ trunk/reactos/drivers/filters/mountmgr/database.c [iso-8859-1] Sun >> Sep 13 22:52:07 2015 >> @@ -192,6 +192,39 @@ >> } >> >> return Entry; >> +} >> + >> +/* >> + * @implemented >> + */ >> +NTSTATUS >> +WriteRemoteDatabaseEntry(IN HANDLE Database, >> + IN LONG Offset, >> + IN PDATABASE_ENTRY Entry) >> +{ >> +NTSTATUS Status; >> +LARGE_INTEGER ByteOffset; >> +IO_STATUS_BLOCK IoStatusBlock; >> + >> +ByteOffset.QuadPart = Offset; >> +Status = ZwWriteFile(Database, >> + NULL, >> + NULL, >> + NULL, >> + , >> + Entry, >> + Entry->EntrySize, >> + , >> + NULL); >> +if (NT_SUCCESS(Status)) >> +{ >> +if (IoStatusBlock.Information < Entry->EntrySize) >> +{ >> +Status = STATUS_INSUFFICIENT_RESOURCES; >> +} >> +} >> + >> +return Status; >> } >> >> /* >> >> Modified: trunk/reactos/drivers/filters/mountmgr/device.c >> URL: >> http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filters/mountmgr/device.c?rev=69221=69220=69221=diff >> >> == >> --- trunk/reactos/drivers/filters/mountmgr/device.c [iso-8859-1] >> (original) >> +++ trunk/reactos/drivers/filters/mountmgr/device.c [iso-8859-1] Sun >> Sep 13 22:52:07 2015 >> @@ -1688,15 +1688,242 @@ >> return Status; >> } >> >> +/* >> + * @implemented >> + */ >> NTSTATUS >> MountMgrVolumeMountPointCreated(IN PDEVICE_EXTENSION DeviceExtension, >> IN PIRP Irp, >> IN NTSTATUS LockStatus) >> { >> -UNREFERENCED_PARAMETER(DeviceExtension); >> -UNREFERENCED_PARAMETER(Irp); >> -UNREFERENCED_PARAMETER(LockStatus); >> -return STATUS_NOT_IMPLEMENTED; >> +LONG Offset; >> +BOOLEAN Found; >> +NTSTATUS Status; >> +HANDLE RemoteDatabase; >> +PMOUNTDEV_UNIQUE_ID UniqueId; >> +PDATABASE_ENTRY DatabaseEntry; >> +PASSOCIATED_DEVICE_ENTRY AssociatedEntry; >> +PDEVICE_INFORMATION DeviceInformation, TargetDeviceInformation; >> +UNICODE_STRING LinkTarget, SourceDeviceName, SourceSymbolicName, >> TargetVolumeName, VolumeName, DbName; >> + >> +/* Initialize string */ >> +LinkTarget.Length = 0; >> +LinkTarget.MaximumLength = 0xC8; >> +LinkTarget.Buffer = AllocatePool(LinkTarget.MaximumLength); >> +if (LinkTarget.Buffer == NULL) >> +{ >> +return STATUS_INSUFFICIENT_RESOURCES; >> +} >> + >> +/* If the mount point was created, then, it changed! >> + * Also use it to query some information >> + */ >> +Status = MountMgrVolumeMountPointChanged(DeviceExtension, Irp, >> LockStatus, , , ); >> +/* Pending means DB are under synchronization, bail out */ >> +if (Status == STATUS_PENDING) >> +{ >> +FreePool(LinkTarget.Buffer); >> +FreePool(SourceDeviceName.Buffer); >> +FreePool(SourceSymbolicName.Buffer); >> +return STATUS_PENDING; >> +} >> +else if (!NT_SUCCESS(Status)) >> +{ >> +FreePool(LinkTarget.Buffer); >> +return Status; >> +} >> + >> +/* Query the device information */ >> +Status = FindDeviceInfo(DeviceExtension, , FALSE, >> ); >> +if (!NT_SUCCESS(Status)) >> +{ >> +/* If it failed, first try to get volume name */ >> +Status = QueryVolumeName(0, NULL, , >> , ); >> +if (!NT_SUCCESS(Status)) >> +{ >> +/* Then, try to read the symlink */ >>
Re: [ros-dev] reactos.org is down
Sorry Sent from my Windows Phone From: Aleksey Bragin Sent: 14-10-2013 PM 02:41 To: ReactOS Development List Subject: Re: [ros-dev] reactos.org is down Z, don't take that too seriously ;-) Regards, Aleksey Bragin On 14.10.2013 7:12, Zachary Gorden wrote: Please refrain from making demands of a non-profit, volunteer driven project. It's impolite bordering towards insulting to the people working on the project. On Sun, Oct 13, 2013 at 7:45 PM, Ameer Ali ameerali...@gmail.com wrote: Again its happeningpls don't repeat.. Sent from my Windows Phone From: Pierre Schweitzer Sent: 14-10-2013 AM 02:58 To: ros-dev@reactos.org Subject: Re: [ros-dev] reactos.org is down We're back online. On 13/10/2013 22:51, Pierre Schweitzer wrote: The faulty server is being replaced at the moment. On 13/10/2013 19:52, Pierre Schweitzer wrote: Hi, this is known issue (which has been handled 13 minutes after it happened - just for the record ;-)). Unfortunately, so far, it is not going very well. This affects: www.reactos.org, jira.reactos.org, dev.reactos.org, code.reactos.org, ns1.reactos.org (use NS2 for the moment). We're sorry for the caused inconvenience. With my best regards, Pierre On 13/10/2013 18:20, ? wrote: reactos.org is down -- ? ?? ???, ?. ___ Ros-dev mailing list Ros-dev@reactos.org http://www.reactos.org/mailman/listinfo/ros-dev ___ Ros-dev mailing list Ros-dev@reactos.org http://www.reactos.org/mailman/listinfo/ros-dev
Re: [ros-dev] reactos.org is down
Again its happeningpls don't repeat.. Sent from my Windows Phone -- From: Pierre Schweitzer Sent: 14-10-2013 AM 02:58 To: ros-dev@reactos.org Subject: Re: [ros-dev] reactos.org is down We're back online. On 13/10/2013 22:51, Pierre Schweitzer wrote: The faulty server is being replaced at the moment. On 13/10/2013 19:52, Pierre Schweitzer wrote: Hi, this is known issue (which has been handled 13 minutes after it happened - just for the record ;-)). Unfortunately, so far, it is not going very well. This affects: www.reactos.org, jira.reactos.org, dev.reactos.org,code.reactos.org, ns1.reactos.org (use NS2 for the moment). We're sorry for the caused inconvenience. With my best regards, Pierre On 13/10/2013 18:20, ? wrote: reactos.org is down -- ? ?? ???, ?. ___ Ros-dev mailing listRos-dev@reactos.orghttp://www.reactos.org/mailman/listinfo/ros-dev ___ Ros-dev mailing listRos-dev@reactos.orghttp://www.reactos.org/mailman/listinfo/ros-dev ___ Ros-dev mailing listRos-dev@reactos.orghttp://www.reactos.org/mailman/listinfo/ros-dev -- Pierre Schweitzerpierre at reactos.org System Administrator ReactOS Foundation ___ Ros-dev mailing list Ros-dev@reactos.org http://www.reactos.org/mailman/listinfo/ros-dev
Re: [ros-dev] Branches status cleanup
Good work buddies... Sent from my Windows Phone From: Aleksey Bragin Sent: 09-10-2013 PM 06:37 To: ReactOS Development List Subject: Re: [ros-dev] Branches status cleanup If he starts from the latter, then he would have more than enough money to fund all ReactOS development and buy Microsoft Corp. :D Regards, Aleksey On 09.10.2013 16:55, Hermès BÉLUSCA - MAÏTO wrote: Tip: order your priorities !! -Message d'origine- De : ros-dev-boun...@reactos.org [mailto:ros-dev-boun...@reactos.org] De la part de Timo Kreuzer Envoyé : mercredi 9 octobre 2013 11:08 À : ReactOS Development List Objet : Re: [ros-dev] Branches status cleanup Am 09.10.2013 10:18, schrieb Thomas Faber: On 2013-10-07 23:03, Aleksey Bragin wrote: GSoC_2011 Five subbranches. What's their status? Were they all merged? - Claudiu's and mine are fully merged. - According to SVN I took the explorer_new fixes from Andrew's into trunk last year ... I'll recheck whether that was everything. - Timo's is unmerged and has some unmet dependencies IIRC. - Giannis merged most or all of his, but he should know best if there's anything useful in there still. Please keep my GSoC branch, it contains code for the font engine rewrite, which is still WIP and I plan to continue on it after the DIB rewrite branch is finished. (And after I fixed PSEH3, implemented PSEH for C++ and CLANG, fixed a dozen Jira issues, rewrote Mm and Cc and found a cure for cancer.) ___ Ros-dev mailing list Ros-dev@reactos.org http://www.reactos.org/mailman/listinfo/ros-dev ___ Ros-dev mailing list Ros-dev@reactos.org http://www.reactos.org/mailman/listinfo/ros-dev
Re: [ros-dev] reactos.org is down
Makesure that reactos.org site is available at everytime.Many activity got pending due to this. Don't repeat. Provide action plan for the same.urgent Sent from my Linux Phone -- From: Pierre Schweitzer Sent: 22-09-2013 PM 03:26 To: ros-dev@reactos.org Subject: Re: [ros-dev] reactos.org is down Hi, we're currently getting back online. Sorry for the inconvenience caused by this downtime. With my best regards, On 22/09/2013 11:25, Александр wrote: reactos.org is down -- С наилучшими пожеланиями, Александр. ___ Ros-dev mailing listRos-dev@reactos.orghttp://www.reactos.org/mailman/listinfo/ros-dev -- Pierre Schweitzerpierre at reactos.org System Administrator ReactOS Foundation ___ Ros-dev mailing list Ros-dev@reactos.org http://www.reactos.org/mailman/listinfo/ros-dev
Re: [ros-dev] reactos.org is down
Give contact details for immediate fund transfer... Sent from my Windows Phone -Original Message- From: Pierre Schweitzer Sent: 22-09-2013 PM 04:31 To: ReactOS Development List Subject: Re: [ros-dev] reactos.org is down Your offer to pay a full-time sysadmins team (4 is fine), with on-call time for the next year has been well received. Thanks as well to offer us two more machines to ensure this never happens again. Please contact ReactOS Deutschland e.V. for fund transfert information. Such considerable efforts are never forgotten. On 22/09/2013 12:39, Ameer Ali wrote: Makesure that reactos.org site is available at everytime.Many activity got pending due to this. Don't repeat. Provide action plan for the same.urgent Sent from my Linux Phone -- From: Pierre Schweitzer Sent: 22-09-2013 PM 03:26 To: ros-dev@reactos.org Subject: Re: [ros-dev] reactos.org is down Hi, we're currently getting back online. Sorry for the inconvenience caused by this downtime. With my best regards, On 22/09/2013 11:25, Александр wrote: reactos.org is down -- Pierre Schweitzerpierre at reactos.org System Administrator ReactOS Foundation ___ Ros-dev mailing list Ros-dev@reactos.org http://www.reactos.org/mailman/listinfo/ros-dev ___ Ros-dev mailing list Ros-dev@reactos.org http://www.reactos.org/mailman/listinfo/ros-dev
Re: [ros-dev] Google Montreal Tech Talk
Me too have same opinion... Sent from my windows Phone From: Aleksey Bragin Sent: 06-09-2013 AM 01:09 To: ReactOS Development List Subject: Re: [ros-dev] Google Montreal Tech Talk On 05.09.2013 23:00, Sven Barth wrote: On 05.09.2013 16:36, Александр wrote: Tell them about http://www.youtube.com/watch?v=BzJTZY54r0I training course called operating systems based on Reactos in Moscow State Technical University by Aleksey Bragin. Also tell them about 2000 pages of Chinese textbook devoted to Reactos 1) http://yadi.sk/d/yRbwE6-23NqQu 2) http://yadi.sk/d/CxgVpVzS3G-GQ Pity that I understand neither Russian nor Chinese... @Aleksey: If you allow I have two small suggestions regarding your style of lecture based on the linked video (I don't know whether this already changed since the time of recording though): - try to look towards your students - please keep your hands out of your pockets As a student I definitely prefer presenters that respect these two points (and yes, I'm aware that this can be hard) Regards, Sven Thanks Sven, I improved after watching the first recorded video of the lecture myself, and tried to fix those issues in the next lectures. Next time to practice would be 2014 spring when I am reading the same course to the new 2nd year students. Regards, Aleksey Bragin ___ Ros-dev mailing list Ros-dev@reactos.org http://www.reactos.org/mailman/listinfo/ros-dev ___ Ros-dev mailing list Ros-dev@reactos.org http://www.reactos.org/mailman/listinfo/ros-dev
Re: [ros-dev] [ros-diffs] [akhaldi] 59962: [COMCTL32] * Implement
an undocumented flag for the rebar control. This flag is used by browseui and is needed to show the explorer window properly. Should be sent Upstream. Brough... MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit U R rite Sent from my linux Phone From: Aleksey Bragin Sent: 02-09-2013 PM 06:54 To: ros-dev@reactos.org Subject: Re: [ros-dev] [ros-diffs] [akhaldi] 59962: [COMCTL32] * Implement an undocumented flag for the rebar control. This flag is used by browseui and is needed to show the explorer window properly. Should be sent Upstream. Brough... It would be great to make a testcase and actually submit this to Wine. Regards, Aleksey On 02.09.2013 16:56, akha...@svn.reactos.org wrote: Author: akhaldi Date: Mon Sep 2 12:56:20 2013 New Revision: 59962 URL: http://svn.reactos.org/svn/reactos?rev=59962view=rev Log: [COMCTL32] * Implement an undocumented flag for the rebar control. This flag is used by browseui and is needed to show the explorer window properly. Should be sent Upstream. Brought to you by Giannis Adamopoulos (Smiley). * Update the sync diff. Modified: trunk/reactos/dll/win32/comctl32/comctl32_ros.diff trunk/reactos/dll/win32/comctl32/rebar.c Modified: trunk/reactos/dll/win32/comctl32/comctl32_ros.diff URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/comctl32/comctl32_ros.diff?rev=59962r1=59961r2=59962view=diff == --- trunk/reactos/dll/win32/comctl32/comctl32_ros.diff[iso-8859-1] (original) +++ trunk/reactos/dll/win32/comctl32/comctl32_ros.diff[iso-8859-1] Mon Sep 2 12:56:20 2013 @@ -1,8 +1,90 @@ -Index: commctrl.c -=== commctrl.c (revision 55577) -+++ commctrl.c (working copy) -@@ -71,6 +71,19 @@ +diff -prudN e:\Wine\dlls\comctl32/comctl32.spec e:\reactos\dll\win32\comctl32/comctl32.spec +--- e:\Wine\dlls\comctl32/comctl32.spec 2011-09-16 23:22:35.964767000 +0100 e:\reactos\dll\win32\comctl32/comctl32.spec 2012-06-04 11:26:55.545450700 +0100 +@@ -15,7 +15,7 @@ + 11 stdcall -noname DPA_Merge(ptr ptr long ptr ptr long) + #12 stub Cctl1632_ThunkData32 + 13 stdcall MakeDragList(long) +- 14 stdcall LBItemFromPt(long int64 long) ++ 14 stdcall LBItemFromPt(long double long) #(long int64 long) + 15 stdcall DrawInsert(long long long) + 16 stdcall CreateUpDownControl(long long long long long long long long long long long long) + 17 stdcall InitCommonControls() +@@ -30,8 +30,8 @@ + 155 stdcall -noname FindMRUStringA(long str ptr) + 156 stdcall -noname DelMRUString(long long) + 157 stdcall -noname CreateMRUListLazyA(ptr long long long) +-163 stub -noname CreatePage +-164 stub -noname CreateProxyPage ++163 stdcall -noname CreatePage(long ptr) ++164 stdcall -noname CreateProxyPage(long long) + 167 stdcall -noname AddMRUData(long ptr long) + 169 stdcall -noname FindMRUData(long ptr long ptr) + 233 stdcall -noname Str_GetPtrA(str str long) +@@ -88,13 +88,13 @@ + 376 stdcall -noname IntlStrEqWorkerA(long str str long) + 377 stdcall -noname IntlStrEqWorkerW(long wstr wstr long) + 382 stdcall -noname SmoothScrollWindow(ptr) +-383 stub -noname DoReaderMode ++383 stdcall -noname DoReaderMode(ptr) + 384 stdcall -noname SetPathWordBreakProc(ptr long) + 385 stdcall -ordinal DPA_EnumCallback(long long long) + 386 stdcall -ordinal DPA_DestroyCallback(ptr ptr long) + 387 stdcall -ordinal DSA_EnumCallback(ptr ptr long) + 388 stdcall -ordinal DSA_DestroyCallback(ptr ptr long) +-389 stub -noname SHGetProcessDword ++389 stdcall -noname SHGetProcessDword(long long) + 390 stdcall -noname ImageList_SetColorTable(ptr long long ptr) + 400 stdcall -ordinal CreateMRUListW(ptr) + 401 stdcall -ordinal AddMRUStringW(long wstr) +@@ -188,6 +188,7 @@ + @ stdcall PropertySheet(ptr) PropertySheetA + @ stdcall PropertySheetA(ptr) + @ stdcall PropertySheetW(ptr) ++@ stdcall RegisterClassNameW(wstr) + @ stdcall TaskDialogIndirect(ptr ptr ptr ptr) + @ stdcall UninitializeFlatSB(long) + @ stdcall _TrackMouseEvent(ptr) + +diff -prudN e:\Wine\dlls\comctl32/commctrl.c e:\reactos\dll\win32\comctl32/commctrl.c +--- e:\Wine\dlls\comctl32/commctrl.c 2011-11-24 17:55:01.900415100 +0100 e:\reactos\dll\win32\comctl32/commctrl.c 2013-01-25 14:12:39.829654200 +0100 +@@ -52,25 +52,42 @@ + * -- ICC_WIN95_CLASSES + */ + ++#define WIN32_NO_STATUS ++#define _INC_WINDOWS ++#define COM_NO_WINDOWS_H ++ + #include stdarg.h +-#include string.h +-#include stdlib.h ++//#include string.h ++//#include stdlib.h + +-#include windef.h +-#include winbase.h +-#include wingdi.h +-#include winuser.h +-#include winnls.h +-#include commctrl.h +-#include winerror.h +-#include winreg.h ++#include windef.h ++#include winbase.h ++//#include wingdi.h ++//#include winuser.h ++#include
Re: [ros-dev] Easy job for enhancing our Explorer!
Hi, I have some great icon with me If U request I will give for free Sent from my linux Phone From: Colin Finck Sent: 31-08-2013 PM 03:36 To: ros-dev@reactos.org Subject: [ros-dev] Easy job for enhancing our Explorer! Hi all! As suggested in the meeting on Thursday, we need someone to create replacements for all icons used in Windows Explorer. Just have a look at this screenshot of Giannis' recent work to get an idea: http://i.imgur.com/WzxVn7V.png It definitely looks promising, but we obviously can't release it with the XP icons ;) Gladly, the Tango icon library contains a lot of great icons, which may already be suitable for Explorer. Others could be created easily when mixing several icons. For example, the icon for the Folders button in Explorer can be created out of two simple folders, and a single folder icon is definitely present in Tango. This only requires basic knowledge of Inkscape (www.inkscape.org). To give you another example: I already needed such mixed icons in my PeopleMap. I've released my modified SVG files here: http://svn.reactos.org/svn/web/trunk/resources/peoplemap/?pathrev=700 Apart from the fairly simple Inkscape task, the icons need to be properly converted to ICO files in all required sizes. Giannis or other shell guys can probably tell you about the sizes we need. At least, this requires a proper icon editor with support for 24/32 bit icons (used to be a problem in the past, don't know if it still is). For just creating ICO files out of existing PNG files, I had good experiences with @icon sushi (http://www.towofu.net/soft/e-aicon.php). So, there we have it: A job for enhancing our Explorer which doesn't even need a developer! :) If I had time for it, I'd probably do it myself, but I'm pretty sure there are other interested people as well. Cheers, Colin ___ Ros-dev mailing list Ros-dev@reactos.org http://www.reactos.org/mailman/listinfo/ros-dev ___ Ros-dev mailing list Ros-dev@reactos.org http://www.reactos.org/mailman/listinfo/ros-dev