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
December 2007
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
ros-diffs@reactos.org
22 participants
605 discussions
Start a n
N
ew thread
[fireball] 31008: - Remove GreatLordisms. - Slightly improve NtGdiOpenDCW() code (without changing the logic).
by fireball@svn.reactos.org
Author: fireball Date: Tue Dec 4 23:07:35 2007 New Revision: 31008 URL:
http://svn.reactos.org/svn/reactos?rev=31008&view=rev
Log: - Remove GreatLordisms. - Slightly improve NtGdiOpenDCW() code (without changing the logic). Modified: trunk/reactos/subsystems/win32/win32k/objects/dc.c Modified: trunk/reactos/subsystems/win32/win32k/objects/dc.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/objects/dc.c (original) +++ trunk/reactos/subsystems/win32/win32k/objects/dc.c Tue Dec 4 23:07:35 2007 @@ -732,25 +732,7 @@ RtlInitUnicodeString(&StdDriver, L"DISPLAY"); - if (Driver != NULL) - { - DPRINT("NAME Driver: %wZ\n", Driver); - } - else - { - DPRINT("NAME Driver: NULL\n", Driver); - } - - - if (Driver != NULL) - { - DPRINT("NAME Device: %wZ\n", Device); - } - else - { - DPRINT("NAME Device: NULL\n", Device); - } - + DPRINT("DriverName: %wZ, DeviceName: %wZ\n", Driver, Device); if (NULL == Driver || 0 == RtlCompareUnicodeString(Driver, &StdDriver, TRUE)) { @@ -792,12 +774,6 @@ return NtGdiCreateCompatibleDC(hDC); } - if (Driver != NULL && Driver->Buffer != NULL) - { - if (Driver!=NULL) - DPRINT("NAME: %wZ\n", Driver); - } - /* Allocate a DC object */ if ((hNewDC = DC_AllocDC(Driver)) == NULL) { @@ -922,10 +898,10 @@ } } - Ret = IntGdiCreateDC(NULL == Device ? NULL : &SafeDevice, + Ret = IntGdiCreateDC(Device ? &SafeDevice : NULL, NULL, - NULL == pUMdhpdev ? NULL : &Dhpdev, - NULL == InitData ? NULL : &SafeInitData, + pUMdhpdev ? &Dhpdev : NULL, + InitData ? &SafeInitData : NULL, (BOOL) iType); // FALSE 0 DCW, TRUE 1 ICW if (pUMdhpdev) pUMdhpdev = Dhpdev;
17 years
1
0
0
0
[gbrunmar] 31007: Fixed msvc project generation making duplicate project names.
by gbrunmar@svn.reactos.org
Author: gbrunmar Date: Tue Dec 4 22:53:47 2007 New Revision: 31007 URL:
http://svn.reactos.org/svn/reactos?rev=31007&view=rev
Log: Fixed msvc project generation making duplicate project names. Modified: trunk/reactos/tools/rbuild/backend/msvc/msvc.cpp Modified: trunk/reactos/tools/rbuild/backend/msvc/msvc.cpp URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/rbuild/backend/msvc/…
============================================================================== --- trunk/reactos/tools/rbuild/backend/msvc/msvc.cpp (original) +++ trunk/reactos/tools/rbuild/backend/msvc/msvc.cpp Tue Dec 4 22:53:47 2007 @@ -272,7 +272,7 @@ MSVCBackend::VcprojFileName ( const Module& module ) const { return FixSeparatorForSystemCommand( - ReplaceExtension ( module.output->relative_path + "\\" + module.output->name, "_" + _get_vc_dir() + "_auto.vcproj" ) + ReplaceExtension ( module.output->relative_path + "\\" + module.name, "_" + _get_vc_dir() + "_auto.vcproj" ) ); }
17 years
1
0
0
0
[fireball] 31006: - Fix _enable/_disable intrinsics when compiling with WDK 6001.
by fireball@svn.reactos.org
Author: fireball Date: Tue Dec 4 22:22:33 2007 New Revision: 31006 URL:
http://svn.reactos.org/svn/reactos?rev=31006&view=rev
Log: - Fix _enable/_disable intrinsics when compiling with WDK 6001. Modified: trunk/reactos/include/ndk/halfuncs.h Modified: trunk/reactos/include/ndk/halfuncs.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/ndk/halfuncs.h?rev…
============================================================================== --- trunk/reactos/include/ndk/halfuncs.h (original) +++ trunk/reactos/include/ndk/halfuncs.h Tue Dec 4 22:22:33 2007 @@ -55,6 +55,8 @@ // The DDK steals these away from you. // #ifdef _MSC_VER +void __cdecl _enable(void); +void __cdecl _disable(void); #pragma intrinsic(_enable) #pragma intrinsic(_disable) #endif
17 years
1
0
0
0
[fireball] 31005: - Fix a typo.
by fireball@svn.reactos.org
Author: fireball Date: Tue Dec 4 21:56:25 2007 New Revision: 31005 URL:
http://svn.reactos.org/svn/reactos?rev=31005&view=rev
Log: - Fix a typo. Modified: trunk/reactos/lib/cmlib/cmdata.h Modified: trunk/reactos/lib/cmlib/cmdata.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/cmlib/cmdata.h?rev=310…
============================================================================== --- trunk/reactos/lib/cmlib/cmdata.h (original) +++ trunk/reactos/lib/cmlib/cmdata.h Tue Dec 4 21:56:25 2007 @@ -105,8 +105,6 @@ }; //CM_KEY_REFERENCE ChildHiveReference; }; - HCELL_INDEX SubKeyLists[HTYPE_COUNT]; - CHILD_LIST ValueList; HCELL_INDEX Security; HCELL_INDEX Class; ULONG MaxNameLen;
17 years
1
0
0
0
[fireball] 31004: Do a full clean rebuild after this commit! - Begin fixing CM_KEY_NODE. - More proper use of registry lock in create operations. - Use ObOpenObjectByName (as a test only, ignore the results) in CmpLinkHiveToMaster. - Implement routines to acquire/release two KCB locks atomically. - Implement KCB dereference without lock. - Fix locking in CmpCreateKeyControlBlock so that it now properly locks KCBs when requested. - Implement rudimentary new-style parse routine that only walks the
by fireball@svn.reactos.org
Author: fireball Date: Tue Dec 4 21:44:51 2007 New Revision: 31004 URL:
http://svn.reactos.org/svn/reactos?rev=31004&view=rev
Log: Do a full clean rebuild after this commit! - Begin fixing CM_KEY_NODE. - More proper use of registry lock in create operations. - Use ObOpenObjectByName (as a test only, ignore the results) in CmpLinkHiveToMaster. - Implement routines to acquire/release two KCB locks atomically. - Implement KCB dereference without lock. - Fix locking in CmpCreateKeyControlBlock so that it now properly locks KCBs when requested. - Implement rudimentary new-style parse routine that only walks the registry path until it's time to create the link node (since this is the only scenario where it's called from). Prints out the status of the operation but doesn't actually do anything. Modified: trunk/reactos/lib/cmlib/cmdata.h trunk/reactos/ntoskrnl/cm/ntfunc.c trunk/reactos/ntoskrnl/cm/regobj.c trunk/reactos/ntoskrnl/config/cm.h trunk/reactos/ntoskrnl/config/cmkcbncb.c trunk/reactos/ntoskrnl/config/cmparse.c trunk/reactos/ntoskrnl/config/cmsysini.c Modified: trunk/reactos/lib/cmlib/cmdata.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/cmlib/cmdata.h?rev=310…
============================================================================== --- trunk/reactos/lib/cmlib/cmdata.h (original) +++ trunk/reactos/lib/cmlib/cmdata.h Tue Dec 4 21:44:51 2007 @@ -77,6 +77,15 @@ } CHILD_LIST, *PCHILD_LIST; // +// Node Key Reference to Parents +// +typedef struct _CM_KEY_REFERENCE +{ + HCELL_INDEX KeyCell; + PHHIVE KeyHive; +} CM_KEY_REFERENCE, *PCM_KEY_REFERENCE; + +// // Node Key // typedef struct _CM_KEY_NODE @@ -87,6 +96,15 @@ ULONG Spare; HCELL_INDEX Parent; ULONG SubKeyCounts[HTYPE_COUNT]; + union + { + struct + { + HCELL_INDEX SubKeyLists[HTYPE_COUNT]; + CHILD_LIST ValueList; + }; + //CM_KEY_REFERENCE ChildHiveReference; + }; HCELL_INDEX SubKeyLists[HTYPE_COUNT]; CHILD_LIST ValueList; HCELL_INDEX Security; Modified: trunk/reactos/ntoskrnl/cm/ntfunc.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/cm/ntfunc.c?rev=3…
============================================================================== --- trunk/reactos/ntoskrnl/cm/ntfunc.c (original) +++ trunk/reactos/ntoskrnl/cm/ntfunc.c Tue Dec 4 21:44:51 2007 @@ -136,6 +136,9 @@ Status = STATUS_OBJECT_NAME_NOT_FOUND; goto Cleanup; } + + /* Lock the registry */ + CmpLockRegistry(); /* Create the key */ Status = CmpDoCreate(Parent->KeyControlBlock->KeyHive, @@ -187,6 +190,9 @@ /* Add the keep-alive reference */ ObReferenceObject(KeyObject); + + /* Unlock registry */ + CmpUnlockRegistry(); /* Force a lazy flush */ CmpLazyFlush(); Modified: trunk/reactos/ntoskrnl/cm/regobj.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/cm/regobj.c?rev=3…
============================================================================== --- trunk/reactos/ntoskrnl/cm/regobj.c (original) +++ trunk/reactos/ntoskrnl/cm/regobj.c Tue Dec 4 21:44:51 2007 @@ -493,20 +493,31 @@ return STATUS_SUCCESS; } - +NTSTATUS +NTAPI +CmpParseKey2(IN PVOID ParseObject, + IN PVOID ObjectType, + IN OUT PACCESS_STATE AccessState, + IN KPROCESSOR_MODE AccessMode, + IN ULONG Attributes, + IN OUT PUNICODE_STRING CompleteName, + IN OUT PUNICODE_STRING RemainingName, + IN OUT PVOID Context OPTIONAL, + IN PSECURITY_QUALITY_OF_SERVICE SecurityQos OPTIONAL, + OUT PVOID *Object); NTSTATUS NTAPI CmpParseKey(IN PVOID ParsedObject, - IN PVOID ObjectType, - IN OUT PACCESS_STATE AccessState, - IN KPROCESSOR_MODE AccessMode, - IN ULONG Attributes, - IN OUT PUNICODE_STRING FullPath, - IN OUT PUNICODE_STRING RemainingName, - IN OUT PVOID Context OPTIONAL, - IN PSECURITY_QUALITY_OF_SERVICE SecurityQos OPTIONAL, - OUT PVOID *NextObject) + IN PVOID ObjectType, + IN OUT PACCESS_STATE AccessState, + IN KPROCESSOR_MODE AccessMode, + IN ULONG Attributes, + IN OUT PUNICODE_STRING FullPath, + IN OUT PUNICODE_STRING RemainingName, + IN OUT PVOID Context OPTIONAL, + IN PSECURITY_QUALITY_OF_SERVICE SecurityQos OPTIONAL, + OUT PVOID *NextObject) { HCELL_INDEX BlockOffset; PKEY_OBJECT FoundObject; @@ -523,6 +534,22 @@ PCM_KEY_CONTROL_BLOCK ParentKcb = NULL, Kcb; PCM_KEY_NODE Node; + /* Detect new-style parse */ + if (Context) + { + /* Call proper parse routine */ + return CmpParseKey2(ParsedObject, + ObjectType, + AccessState, + AccessMode, + Attributes, + FullPath, + RemainingName, + Context, + SecurityQos, + NextObject); + } + ParsedKey = ParsedObject; VERIFY_KEY_OBJECT(ParsedKey); Modified: trunk/reactos/ntoskrnl/config/cm.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/config/cm.h?rev=3…
============================================================================== --- trunk/reactos/ntoskrnl/config/cm.h (original) +++ trunk/reactos/ntoskrnl/config/cm.h Tue Dec 4 21:44:51 2007 @@ -192,15 +192,6 @@ ULONG Count; ULONG HashKey[ANYSIZE_ARRAY]; } CM_INDEX_HINT_BLOCK, *PCM_INDEX_HINT_BLOCK; - -// -// Key Reference -// -typedef struct _CM_KEY_REFERENCE -{ - HCELL_INDEX KeyCell; - PHHIVE KeyHive; -} CM_KEY_REFERENCE, *PCM_KEY_REFERENCE; // // Key Body @@ -782,6 +773,12 @@ VOID ); +BOOLEAN +NTAPI +CmpTestRegistryLock( + VOID +); + VOID NTAPI CmpLockRegistryExclusive( @@ -886,6 +883,12 @@ VOID NTAPI +CmpDereferenceKeyControlBlock( + IN PCM_KEY_CONTROL_BLOCK Kcb +); + +VOID +NTAPI EnlistKeyBodyWithKCB( IN PCM_KEY_BODY KeyObject, IN ULONG Flags @@ -904,6 +907,20 @@ IN PHHIVE Hive, IN HCELL_INDEX Cell, IN BOOLEAN Unlink +); + +VOID +NTAPI +CmpAcquireTwoKcbLocksExcusiveByKey( + IN ULONG ConvKey1, + IN ULONG ConvKey2 +); + +VOID +NTAPI +CmpReleaseTwoKcbLockByKey( + IN ULONG ConvKey1, + IN ULONG ConvKey2 ); // Modified: trunk/reactos/ntoskrnl/config/cmkcbncb.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/config/cmkcbncb.c…
============================================================================== --- trunk/reactos/ntoskrnl/config/cmkcbncb.c (original) +++ trunk/reactos/ntoskrnl/config/cmkcbncb.c Tue Dec 4 21:44:51 2007 @@ -503,6 +503,39 @@ VOID NTAPI +CmpDereferenceKeyControlBlock(IN PCM_KEY_CONTROL_BLOCK Kcb) +{ + LONG OldRefCount, NewRefCount; + ULONG ConvKey; + + /* Get the ref count and update it */ + OldRefCount = *(PLONG)&Kcb->RefCount; + NewRefCount = OldRefCount - 1; + + /* Check if we still have refenreces */ + if( (NewRefCount & 0xffff) > 0) + { + /* Do the dereference */ + if (InterlockedCompareExchange((PLONG)&Kcb->RefCount, + NewRefCount, + OldRefCount) == OldRefCount) + { + /* We'de done */ + return; + } + } + + /* Save the key */ + ConvKey = Kcb->ConvKey; + + /* Do the dereference inside the lock */ + CmpAcquireKcbLockExclusive(Kcb); + CmpDereferenceKeyControlBlockWithLock(Kcb, FALSE); + CmpReleaseKcbLockByKey(ConvKey); +} + +VOID +NTAPI CmpDereferenceKeyControlBlockWithLock(IN PCM_KEY_CONTROL_BLOCK Kcb, IN BOOLEAN LockHeldExclusively) { @@ -621,10 +654,19 @@ /* Check if we have two hash entires */ HashLock = Flags & CMP_LOCK_HASHES_FOR_KCB ? TRUE : FALSE; - if (HashLock) - { - /* Not yet implemented */ - KeBugCheck(0); + if (!HashLock) + { + /* It's not locked, do we have a parent? */ + if (Parent) + { + /* Lock the parent KCB and ourselves */ + CmpAcquireTwoKcbLocksExcusiveByKey(ConvKey, Parent->ConvKey); + } + else + { + /* Lock only ourselves */ + CmpAcquireKcbLockExclusive(Kcb); + } } /* Check if we already have a KCB */ @@ -746,10 +788,19 @@ ASSERT((!Kcb) || (Kcb->Delete == FALSE)); /* Check if we had locked the hashes */ - if (HashLock) - { - /* Not yet implemented: Unlock hashes */ - KeBugCheck(0); + if (!HashLock) + { + /* We locked them manually, do we have a parent? */ + if (Parent) + { + /* Unlock the parent KCB and ourselves */ + CmpReleaseTwoKcbLockByKey(ConvKey, Parent->ConvKey); + } + else + { + /* Unlock only ourselves */ + CmpReleaseKcbLockByKey(ConvKey); + } } /* Return the KCB */ @@ -764,3 +815,4 @@ ASSERT(FALSE); } + Modified: trunk/reactos/ntoskrnl/config/cmparse.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/config/cmparse.c?…
============================================================================== --- trunk/reactos/ntoskrnl/config/cmparse.c (original) +++ trunk/reactos/ntoskrnl/config/cmparse.c Tue Dec 4 21:44:51 2007 @@ -215,7 +215,7 @@ *KeyCell, KeyNode, ParentKcb, - 0, + CMP_LOCK_HASHES_FOR_KCB, Name); if (!Kcb) { @@ -281,6 +281,12 @@ UNICODE_STRING LocalClass = {0}; if (!Class) Class = &LocalClass; + /* Sanity check */ +#if 0 + ASSERT((CmpIsKcbLockedExclusive(ParentKcb) == TRUE) || + (CmpTestRegistryLockExclusive() == TRUE)); +#endif + /* Acquire the flusher lock */ ExAcquirePushLockShared((PVOID)&((PCMHIVE)Hive)->FlusherLock); @@ -447,7 +453,12 @@ //ASSERT(CmpIsKcbLockedExclusive(*CachedKcb)); /* Create the KCB. FIXME: Use lock flag */ - Kcb = CmpCreateKeyControlBlock(Hive, Cell, Node, *CachedKcb, 0, KeyName); + Kcb = CmpCreateKeyControlBlock(Hive, + Cell, + Node, + *CachedKcb, + CMP_LOCK_HASHES_FOR_KCB, + KeyName); if (!Kcb) return STATUS_INSUFFICIENT_RESOURCES; /* Make sure it's also locked, and set the pointer */ @@ -503,7 +514,10 @@ LARGE_INTEGER TimeStamp; PCM_KEY_NODE KeyNode; PCM_KEY_CONTROL_BLOCK Kcb = ParentKcb; - +#if 0 + CMP_ASSERT_REGISTRY_LOCK(); +#endif + /* Link nodes only allowed on the master */ if (Hive != &CmiVolatileHive->Hive) { @@ -712,3 +726,238 @@ ExReleasePushLock((PVOID)&((PCMHIVE)Hive)->FlusherLock); return Status; } + +NTSTATUS +NTAPI +CmpBuildHashStackAndLookupCache(IN PCM_KEY_BODY ParseObject, + IN OUT PCM_KEY_CONTROL_BLOCK *Kcb, + IN PUNICODE_STRING Current, + OUT PHHIVE *Hive, + OUT HCELL_INDEX *Cell, + OUT PULONG TotalRemainingSubkeys, + OUT PULONG MatchRemainSubkeyLevel, + OUT PULONG TotalSubkeys, + OUT PULONG OuterStackArray, + OUT PULONG *LockedKcbs) +{ + ULONG HashKeyCopy; + + /* We don't lock anything for now */ + *LockedKcbs = NULL; + + /* Make a copy of the hash key */ + HashKeyCopy = (*Kcb)->ConvKey; + + /* Calculate hash values */ + *TotalRemainingSubkeys = 0xBAADF00D; + + /* Lock the registry */ + CmpLockRegistry(); + + /* Return hive and cell data */ + *Hive = (*Kcb)->KeyHive; + *Cell = (*Kcb)->KeyCell; + + /* Return success for now */ + return STATUS_SUCCESS; +} + +NTSTATUS +NTAPI +CmpParseKey2(IN PVOID ParseObject, + IN PVOID ObjectType, + IN OUT PACCESS_STATE AccessState, + IN KPROCESSOR_MODE AccessMode, + IN ULONG Attributes, + IN OUT PUNICODE_STRING CompleteName, + IN OUT PUNICODE_STRING RemainingName, + IN OUT PVOID Context OPTIONAL, + IN PSECURITY_QUALITY_OF_SERVICE SecurityQos OPTIONAL, + OUT PVOID *Object) +{ + NTSTATUS Status = STATUS_UNSUCCESSFUL; + PCM_KEY_CONTROL_BLOCK Kcb, ParentKcb; + PHHIVE Hive = NULL; + PCM_KEY_NODE Node = NULL; + HCELL_INDEX Cell = HCELL_NIL, NextCell; + UNICODE_STRING Current, NextName; + PCM_PARSE_CONTEXT ParseContext = Context; + ULONG TotalRemainingSubkeys = 0, MatchRemainSubkeyLevel = 0, TotalSubkeys = 0; + PULONG LockedKcbs = NULL; + BOOLEAN Result, Last; + PAGED_CODE(); + DPRINT1("New style parse routine called: %wZ %wZ!\n", CompleteName, RemainingName); + + /* Loop path separators at the end */ + while ((RemainingName->Length) && + (RemainingName->Buffer[(RemainingName->Length / sizeof(WCHAR)) - 1] == + OBJ_NAME_PATH_SEPARATOR)) + { + /* Remove path separator */ + RemainingName->Length -= sizeof(WCHAR); + } + + /* Fail if this isn't a key object */ + if (ObjectType != CmpKeyObjectType) return STATUS_OBJECT_TYPE_MISMATCH; + + /* Copy the remaining name */ + Current = *RemainingName; + + /* Check if this is a create */ + if (!(ParseContext) || !(ParseContext->CreateOperation)) + { + /* It isn't, so no context */ + ParseContext = NULL; + } + + /* Grab the KCB */ + Kcb = ((PKEY_OBJECT)ParseObject)->KeyControlBlock; + DPRINT1("KCB Parse: %p\n", Kcb); + + /* Lookup in the cache */ + Status = CmpBuildHashStackAndLookupCache(ParseObject, + &Kcb, + &Current, + &Hive, + &Cell, + &TotalRemainingSubkeys, + &MatchRemainSubkeyLevel, + &TotalSubkeys, + NULL, + &LockedKcbs); + + /* This is now the parent */ + ParentKcb = Kcb; + DPRINT1("ParentKcb Parse: %p\n", ParentKcb); + DPRINT1("Hive Parse: %p\n", Hive); + DPRINT1("Cell Parse: %p\n", Cell); + + /* Check if everything was found cached */ + if (!TotalRemainingSubkeys) ASSERTMSG("Caching not implemented", FALSE); + + /* Don't do anything if we're being deleted */ + if (Kcb->Delete) return STATUS_OBJECT_NAME_NOT_FOUND; + + /* Check if this is a symlink */ + if (Kcb->Flags & KEY_SYM_LINK) + { + /* Not implemented */ + DPRINT1("Parsing sym link\n"); + while (TRUE); + } + + /* Get the key node */ + Node = (PCM_KEY_NODE)HvGetCell(Hive, Cell); + if (!Node) return STATUS_INSUFFICIENT_RESOURCES; + DPRINT1("Node Parse: %p\n", Node); + + /* Start parsing */ + Status = STATUS_SUCCESS; + while (TRUE) + { + /* Get the next component */ + Result = CmpGetNextName(&Current, &NextName, &Last); + DPRINT1("Result Parse: %p\n", Result); + if ((Result) && (NextName.Length)) + { + /* See if this is a sym link */ + if (!(Kcb->Flags & KEY_SYM_LINK)) + { + /* Find the subkey */ + NextCell = CmpFindSubKeyByName(Hive, Node, &NextName); + DPRINT1("NextCell Parse: %lx\n", NextCell); + if (NextCell != HCELL_NIL) + { + /* Get the new node */ + Cell = NextCell; + Node = (PCM_KEY_NODE)HvGetCell(Hive, Cell); + DPRINT1("Node Parse: %p\n", Node); + if (!Node) ASSERT(FALSE); + + /* Check if this was the last key */ + if (Last) + { + /* Shouldn't happen yet */ + DPRINT1("Unhandled: Open of last key\n"); + break; + } + + /* Get hive and cell from reference */ + //Hive = Node->ChildHiveReference.KeyHive; + //Cell = Node->ChildHiveReference.KeyCell; + Node = (PCM_KEY_NODE)HvGetCell(Hive, Cell); + DPRINT1("Node Parse: %p\n", Node); + if (!Node) ASSERT(FALSE); + + /* Create a KCB for this key */ + Kcb = CmpCreateKeyControlBlock(Hive, + Cell, + Node, + ParentKcb, + 0, + &NextName); + if (!Kcb) ASSERT(FALSE); + DPRINT1("Kcb Parse: %p\n", Kcb); + + /* Dereference the parent and set the new one */ + CmpDereferenceKeyControlBlock(ParentKcb); + ParentKcb = Kcb; + } + else + { + /* Check if this was the last key for a create */ + if ((Last) && (ParseContext)) + { + /* Check if we're doing a link node */ + if (ParseContext->CreateLink) + { + /* The only thing we should see */ + DPRINT1("Expected: Creating new link\n"); + } + else + { + /* Create: should not see this (yet) */ + DPRINT1("Unexpected: Creating new child\n"); + while (TRUE); + } + + /* Update disposition */ + ParseContext->Disposition = REG_CREATED_NEW_KEY; + break; + } + else + { + /* Key not found */ + Status = STATUS_OBJECT_NAME_NOT_FOUND; + break; + } + } + } + else + { + /* Not implemented */ + DPRINT1("Parsing sym link\n"); + while (TRUE); + } + } + else if ((Result) && (Last)) + { + /* Opening root: unexpected */ + DPRINT1("Unexpected: Opening root\n"); + while (TRUE); + } + else + { + /* Bogus */ + Status = STATUS_INVALID_PARAMETER; + break; + } + } + + /* Dereference the parent if it exists */ + if (ParentKcb) CmpDereferenceKeyControlBlock(ParentKcb); + + /* Unlock the registry */ + CmpUnlockRegistry(); + return STATUS_NOT_IMPLEMENTED; +} Modified: trunk/reactos/ntoskrnl/config/cmsysini.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/config/cmsysini.c…
============================================================================== --- trunk/reactos/ntoskrnl/config/cmsysini.c (original) +++ trunk/reactos/ntoskrnl/config/cmsysini.c Tue Dec 4 21:44:51 2007 @@ -504,6 +504,7 @@ UNICODE_STRING ObjectName; OBJECT_CREATE_INFORMATION ObjectCreateInfo; CM_PARSE_CONTEXT ParseContext = {0}; + HANDLE KeyHandle; PAGED_CODE(); /* Setup the object attributes */ @@ -529,6 +530,17 @@ /* We have one */ ParseContext.ChildHive.KeyCell = RegistryHive->Hive.BaseBlock->RootCell; } + + DPRINT1("Ready to parse\n"); + Status = ObOpenObjectByName(&ObjectAttributes, + CmpKeyObjectType, + KernelMode, + NULL, + KEY_READ | KEY_WRITE, + (PVOID)&ParseContext, + &KeyHandle); + DPRINT1("Parse done: %lx\n", Status); + //while (TRUE); /* Capture all the info */ Status = ObpCaptureObjectAttributes(&ObjectAttributes, @@ -1604,6 +1616,73 @@ VOID NTAPI +CmpAcquireTwoKcbLocksExcusiveByKey(IN ULONG ConvKey1, + IN ULONG ConvKey2) +{ + ULONG Index1, Index2; + + /* Sanity check */ + CMP_ASSERT_REGISTRY_LOCK(); + + /* Get hash indexes */ + Index1 = GET_HASH_INDEX(ConvKey1); + Index2 = GET_HASH_INDEX(ConvKey2); + + /* See which one is highest */ + if (Index1 < Index2) + { + /* Grab them in the proper order */ + CmpAcquireKcbLockExclusiveByKey(ConvKey1); + CmpAcquireKcbLockExclusiveByKey(ConvKey2); + } + else + { + /* Grab the second one first, then the first */ + CmpAcquireKcbLockExclusiveByKey(ConvKey2); + if (Index1 != Index2) CmpAcquireKcbLockExclusiveByKey(ConvKey1); + } +} + +VOID +NTAPI +CmpReleaseTwoKcbLockByKey(IN ULONG ConvKey1, + IN ULONG ConvKey2) +{ + ULONG Index1, Index2; + + /* Sanity check */ + CMP_ASSERT_REGISTRY_LOCK(); + + /* Get hash indexes */ + Index1 = GET_HASH_INDEX(ConvKey1); + Index2 = GET_HASH_INDEX(ConvKey2); + ASSERT((GET_HASH_ENTRY(CmpCacheTable, ConvKey2).Owner == KeGetCurrentThread()) || + (CmpTestRegistryLockExclusive())); + + /* See which one is highest */ + if (Index1 < Index2) + { + /* Grab them in the proper order */ + ASSERT((GET_HASH_ENTRY(CmpCacheTable, ConvKey1).Owner == KeGetCurrentThread()) || + (CmpTestRegistryLockExclusive())); + CmpReleaseKcbLockByKey(ConvKey2); + CmpReleaseKcbLockByKey(ConvKey1); + } + else + { + /* Release the first one first, then the second */ + if (Index1 != Index2) + { + ASSERT((GET_HASH_ENTRY(CmpCacheTable, ConvKey1).Owner == KeGetCurrentThread()) || + (CmpTestRegistryLockExclusive())); + CmpReleaseKcbLockByKey(ConvKey1); + } + CmpReleaseKcbLockByKey(ConvKey2); + } +} + +VOID +NTAPI CmShutdownSystem(VOID) { /* Kill the workers and fush all hives */
17 years
1
0
0
0
[hpoussin] 31003: Change service interface too
by hpoussin@svn.reactos.org
Author: hpoussin Date: Tue Dec 4 20:21:46 2007 New Revision: 31003 URL:
http://svn.reactos.org/svn/reactos?rev=31003&view=rev
Log: Change service interface too Modified: trunk/reactos/base/system/services/rpcserver.c trunk/reactos/dll/win32/advapi32/service/scm.c trunk/reactos/include/reactos/idl/svcctl.idl Modified: trunk/reactos/base/system/services/rpcserver.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/services/rpcse…
============================================================================== --- trunk/reactos/base/system/services/rpcserver.c (original) +++ trunk/reactos/base/system/services/rpcserver.c Tue Dec 4 20:21:46 2007 @@ -17,6 +17,9 @@ #define NDEBUG #include <debug.h> +#define SC_LOCK unsigned int +#define SC_STATUS_TYPE unsigned long +#define SC_ENUM_TYPE unsigned long /* GLOBALS *****************************************************************/ @@ -237,9 +240,9 @@ /* Function 0 */ -unsigned long +DWORD ScmrCloseServiceHandle(handle_t BindingHandle, - unsigned int hScObject) + unsigned long hScObject) { PMANAGER_HANDLE hManager; @@ -289,10 +292,10 @@ /* Function 1 */ -unsigned long +DWORD ScmrControlService(handle_t BindingHandle, - unsigned int hService, - unsigned long dwControl, + unsigned long hService, + DWORD dwControl, LPSERVICE_STATUS lpServiceStatus) { PSERVICE_HANDLE hSvc; @@ -378,9 +381,9 @@ /* Function 2 */ -unsigned long +DWORD ScmrDeleteService(handle_t BindingHandle, - unsigned int hService) + unsigned long hService) { PSERVICE_HANDLE hSvc; PSERVICE lpService; @@ -428,10 +431,10 @@ /* Function 3 */ -unsigned long +DWORD ScmrLockServiceDatabase(handle_t BindingHandle, - unsigned int hSCManager, - unsigned int *hLock) + unsigned long hSCManager, + SC_LOCK *hLock) { PMANAGER_HANDLE hMgr; @@ -457,13 +460,13 @@ /* Function 4 */ -unsigned long +DWORD ScmrQueryServiceObjectSecurity(handle_t BindingHandle, - unsigned int hService, - unsigned long dwSecurityInformation, + unsigned long hService, + DWORD dwSecurityInformation, unsigned char *lpSecurityDescriptor, - unsigned long dwSecuityDescriptorSize, - unsigned long *pcbBytesNeeded) + DWORD dwSecuityDescriptorSize, + DWORD *pcbBytesNeeded) { #if 0 PSERVICE_HANDLE hSvc; @@ -541,12 +544,12 @@ /* Function 5 */ -unsigned long +DWORD ScmrSetServiceObjectSecurity(handle_t BindingHandle, - unsigned int hService, - unsigned long dwSecurityInformation, + unsigned long hService, + DWORD dwSecurityInformation, unsigned char *lpSecurityDescriptor, - unsigned long dwSecuityDescriptorSize) + DWORD dwSecuityDescriptorSize) { PSERVICE_HANDLE hSvc; PSERVICE lpService; @@ -661,9 +664,9 @@ /* Function 6 */ -unsigned long +DWORD ScmrQueryServiceStatus(handle_t BindingHandle, - unsigned int hService, + unsigned long hService, LPSERVICE_STATUS lpServiceStatus) { PSERVICE_HANDLE hSvc; @@ -705,9 +708,9 @@ /* Function 7 */ -unsigned long +DWORD ScmrSetServiceStatus(handle_t BindingHandle, - unsigned long hServiceStatus, + SERVICE_STATUS_HANDLE hServiceStatus, LPSERVICE_STATUS lpServiceStatus) { PSERVICE lpService; @@ -736,9 +739,9 @@ /* Function 8 */ -unsigned long +DWORD ScmrUnlockServiceDatabase(handle_t BindingHandle, - unsigned int hLock) + SC_LOCK hLock) { DPRINT1("ScmrUnlockServiceDatabase() called\n"); /* FIXME */ @@ -747,9 +750,9 @@ /* Function 9 */ -unsigned long +DWORD ScmrNotifyBootConfigStatus(handle_t BindingHandle, - unsigned long BootAcceptable) + BOOL BootAcceptable) { DPRINT1("ScmrNotifyBootConfigStatus() called\n"); /* FIXME */ @@ -758,12 +761,12 @@ /* Function 10 */ -unsigned long +DWORD ScmrSetServiceBitsW(handle_t BindingHandle, - unsigned long hServiceStatus, - unsigned long dwServiceBits, - unsigned long bSetBitsOn, - unsigned long bUpdateImmediately, + SERVICE_STATUS_HANDLE hServiceStatus, + DWORD dwServiceBits, + BOOL bSetBitsOn, + BOOL bUpdateImmediately, wchar_t *lpString) { DPRINT1("ScmrSetServiceBitsW() called\n"); @@ -773,20 +776,20 @@ /* Function 11 */ -unsigned long +DWORD ScmrChangeServiceConfigW(handle_t BiningHandle, - unsigned int hService, - unsigned long dwServiceType, - unsigned long dwStartType, - unsigned long dwErrorControl, + unsigned long hService, + DWORD dwServiceType, + DWORD dwStartType, + DWORD dwErrorControl, wchar_t *lpBinaryPathName, wchar_t *lpLoadOrderGroup, - unsigned long *lpdwTagId, /* in, out, unique */ + DWORD *lpdwTagId, /* in, out, unique */ wchar_t *lpDependencies, - unsigned long dwDependenciesLength, + DWORD dwDependenciesLength, wchar_t *lpServiceStartName, wchar_t *lpPassword, - unsigned long dwPasswordLength, + DWORD dwPasswordLength, wchar_t *lpDisplayName) { DWORD dwError = ERROR_SUCCESS; @@ -994,24 +997,24 @@ /* Function 12 */ -unsigned long +DWORD ScmrCreateServiceW(handle_t BindingHandle, - unsigned int hSCManager, + unsigned long hSCManager, wchar_t *lpServiceName, wchar_t *lpDisplayName, - unsigned long dwDesiredAccess, - unsigned long dwServiceType, - unsigned long dwStartType, - unsigned long dwErrorControl, + DWORD dwDesiredAccess, + DWORD dwServiceType, + DWORD dwStartType, + DWORD dwErrorControl, wchar_t *lpBinaryPathName, wchar_t *lpLoadOrderGroup, - unsigned long *lpdwTagId, /* in, out */ + DWORD *lpdwTagId, /* in, out */ wchar_t *lpDependencies, - unsigned long dwDependenciesLength, + DWORD dwDependenciesLength, wchar_t *lpServiceStartName, wchar_t *lpPassword, - unsigned long dwPasswordLength, - unsigned int *hService) /* out */ + DWORD dwPasswordLength, + unsigned long *hService) /* out */ { PMANAGER_HANDLE hManager; DWORD dwError = ERROR_SUCCESS; @@ -1244,7 +1247,7 @@ if (dwError == ERROR_SUCCESS) { DPRINT("hService %lx\n", hServiceHandle); - *hService = (unsigned int)hServiceHandle; + *hService = (unsigned long)hServiceHandle; if (lpdwTagId != NULL) *lpdwTagId = lpService->dwTag; @@ -1255,7 +1258,7 @@ if (lpService->lpServiceName != NULL) HeapFree(GetProcessHeap(), 0, lpService->lpDisplayName); - if (hServiceHandle != NULL) + if (hServiceHandle) { /* Remove the service handle */ HeapFree(GetProcessHeap(), 0, hServiceHandle); @@ -1277,14 +1280,14 @@ /* Function 13 */ -unsigned long +DWORD ScmrEnumDependentServicesW(handle_t BindingHandle, - unsigned int hService, - unsigned long dwServiceState, + unsigned long hService, + DWORD dwServiceState, unsigned char *lpServices, - unsigned long cbBufSize, - unsigned long *pcbBytesNeeded, - unsigned long *lpServicesReturned) + DWORD cbBufSize, + DWORD *pcbBytesNeeded, + DWORD *lpServicesReturned) { DWORD dwError = ERROR_SUCCESS; @@ -1299,16 +1302,16 @@ /* Function 14 */ -unsigned long +DWORD ScmrEnumServicesStatusW(handle_t BindingHandle, - unsigned int hSCManager, - unsigned long dwServiceType, - unsigned long dwServiceState, + unsigned long hSCManager, + DWORD dwServiceType, + DWORD dwServiceState, unsigned char *lpServices, - unsigned long dwBufSize, - unsigned long *pcbBytesNeeded, - unsigned long *lpServicesReturned, - unsigned long *lpResumeHandle) + DWORD dwBufSize, + DWORD *pcbBytesNeeded, + DWORD *lpServicesReturned, + DWORD *lpResumeHandle) { PMANAGER_HANDLE hManager; PSERVICE lpService; @@ -1498,12 +1501,12 @@ /* Function 15 */ -unsigned long +DWORD ScmrOpenSCManagerW(handle_t BindingHandle, wchar_t *lpMachineName, wchar_t *lpDatabaseName, - unsigned long dwDesiredAccess, - unsigned int *hScm) + DWORD dwDesiredAccess, + unsigned long *hScm) { DWORD dwError; SC_HANDLE hHandle; @@ -1536,7 +1539,7 @@ return dwError; } - *hScm = (unsigned int)hHandle; + *hScm = (unsigned long)hHandle; DPRINT("*hScm = %x\n", *hScm); DPRINT("ScmrOpenSCManagerW() done\n"); @@ -1546,12 +1549,12 @@ /* Function 16 */ -unsigned long +DWORD ScmrOpenServiceW(handle_t BindingHandle, - unsigned int hSCManager, + unsigned long hSCManager, wchar_t *lpServiceName, - unsigned long dwDesiredAccess, - unsigned int *hService) + DWORD dwDesiredAccess, + unsigned long *hService) { PSERVICE lpService; PMANAGER_HANDLE hManager; @@ -1603,7 +1606,7 @@ return dwError; } - *hService = (unsigned int)hHandle; + *hService = (unsigned long)hHandle; DPRINT("*hService = %x\n", *hService); DPRINT("ScmrOpenServiceW() done\n"); @@ -1613,12 +1616,12 @@ /* Function 17 */ -unsigned long +DWORD ScmrQueryServiceConfigW(handle_t BindingHandle, - unsigned int hService, + unsigned long hService, unsigned char *lpServiceConfig, - unsigned long cbBufSize, - unsigned long *pcbBytesNeeded) + DWORD cbBufSize, + DWORD *pcbBytesNeeded) { DWORD dwError = ERROR_SUCCESS; PSERVICE_HANDLE hSvc; @@ -1773,12 +1776,12 @@ /* Function 18 */ -unsigned long +DWORD ScmrQueryServiceLockStatusW(handle_t BindingHandle, - unsigned int hSCManager, + unsigned long hSCManager, unsigned char *lpLockStatus, /* [out, unique, size_is(cbBufSize)] */ - unsigned long cbBufSize, /* [in] */ - unsigned long *pcbBytesNeeded) /* [out] */ + DWORD cbBufSize, /* [in] */ + DWORD *pcbBytesNeeded) /* [out] */ { DPRINT1("ScmrQueryServiceLockStatusW() called\n"); return ERROR_CALL_NOT_IMPLEMENTED; @@ -1786,12 +1789,12 @@ /* Function 19 */ -unsigned long +DWORD ScmrStartServiceW(handle_t BindingHandle, - unsigned int hService, - unsigned long dwNumServiceArgs, + unsigned long hService, + DWORD dwNumServiceArgs, unsigned char *lpServiceArgBuffer, - unsigned long cbBufSize) + DWORD cbBufSize) { DWORD dwError = ERROR_SUCCESS; PSERVICE_HANDLE hSvc; @@ -1837,12 +1840,12 @@ /* Function 20 */ -unsigned long +DWORD ScmrGetServiceDisplayNameW(handle_t BindingHandle, - unsigned int hSCManager, + unsigned long hSCManager, wchar_t *lpServiceName, wchar_t *lpDisplayName, /* [out, unique] */ - unsigned long *lpcchBuffer) + DWORD *lpcchBuffer) { // PMANAGER_HANDLE hManager; PSERVICE lpService; @@ -1887,12 +1890,12 @@ /* Function 21 */ -unsigned long +DWORD ScmrGetServiceKeyNameW(handle_t BindingHandle, - unsigned int hSCManager, + unsigned long hSCManager, wchar_t *lpDisplayName, wchar_t *lpServiceName, /* [out, unique] */ - unsigned long *lpcchBuffer) + DWORD *lpcchBuffer) { // PMANAGER_HANDLE hManager; PSERVICE lpService; @@ -1937,12 +1940,12 @@ /* Function 22 */ -unsigned long +DWORD ScmrSetServiceBitsA(handle_t BindingHandle, - unsigned long hServiceStatus, - unsigned long dwServiceBits, - unsigned long bSetBitsOn, - unsigned long bUpdateImmediately, + SERVICE_STATUS_HANDLE hServiceStatus, + DWORD dwServiceBits, + BOOL bSetBitsOn, + BOOL bUpdateImmediately, char *lpString) { DPRINT1("ScmrSetServiceBitsA() is unimplemented\n"); @@ -1951,20 +1954,20 @@ /* Function 23 */ -unsigned long +DWORD ScmrChangeServiceConfigA(handle_t BiningHandle, - unsigned int hService, - unsigned long dwServiceType, - unsigned long dwStartType, - unsigned long dwErrorControl, + unsigned long hService, + DWORD dwServiceType, + DWORD dwStartType, + DWORD dwErrorControl, char *lpBinaryPathName, char *lpLoadOrderGroup, - unsigned long *lpdwTagId, + DWORD *lpdwTagId, char *lpDependencies, - unsigned long dwDependenciesLength, + DWORD dwDependenciesLength, char *lpServiceStartName, char *lpPassword, - unsigned long dwPasswordLength, + DWORD dwPasswordLength, char *lpDisplayName) { DPRINT1("ScmrChangeServiceConfigA() is unimplemented\n"); @@ -1973,24 +1976,24 @@ /* Function 24 */ -unsigned long +DWORD ScmrCreateServiceA(handle_t BindingHandle, - unsigned int hSCManager, + unsigned long hSCManager, char *lpServiceName, char *lpDisplayName, - unsigned long dwDesiredAccess, - unsigned long dwServiceType, - unsigned long dwStartType, - unsigned long dwErrorControl, + DWORD dwDesiredAccess, + DWORD dwServiceType, + DWORD dwStartType, + DWORD dwErrorControl, char *lpBinaryPathName, char *lpLoadOrderGroup, - unsigned long *lpdwTagId, /* in, out */ + DWORD *lpdwTagId, /* in, out */ char *lpDependencies, - unsigned long dwDependenciesLength, + DWORD dwDependenciesLength, char *lpServiceStartName, char *lpPassword, - unsigned long dwPasswordLength, - unsigned int *hService) /* out */ + DWORD dwPasswordLength, + unsigned long *hService) /* out */ { DPRINT1("ScmrCreateServiceA() is unimplemented\n"); return ERROR_CALL_NOT_IMPLEMENTED; @@ -1998,14 +2001,14 @@ /* Function 25 */ -unsigned long +DWORD ScmrEnumDependentServicesA(handle_t BindingHandle, - unsigned int hService, - unsigned long dwServiceState, + unsigned long hService, + DWORD dwServiceState, unsigned char *lpServices, - unsigned long cbBufSize, - unsigned long *pcbBytesNeeded, - unsigned long *lpServicesReturned) + DWORD cbBufSize, + DWORD *pcbBytesNeeded, + DWORD *lpServicesReturned) { DPRINT1("ScmrEnumDependentServicesA() is unimplemented\n"); *pcbBytesNeeded = 0; @@ -2015,15 +2018,15 @@ /* Function 26 */ -unsigned long +DWORD ScmrEnumServicesStatusA(handle_t BindingHandle, - unsigned int hSCManager, - unsigned long dwServiceType, - unsigned long dwServiceState, + unsigned long hSCManager, + DWORD dwServiceType, + DWORD dwServiceState, unsigned char *lpServices, - unsigned long dwBufSize, - unsigned long *pcbBytesNeeded, - unsigned long *lpServicesReturned, + DWORD dwBufSize, + DWORD *pcbBytesNeeded, + DWORD *lpServicesReturned, unsigned long *lpResumeHandle) { DPRINT1("ScmrEnumServicesAtatusA() is unimplemented\n"); @@ -2032,12 +2035,12 @@ /* Function 27 */ -unsigned long +DWORD ScmrOpenSCManagerA(handle_t BindingHandle, char *lpMachineName, char *lpDatabaseName, - unsigned long dwDesiredAccess, - unsigned int *hScm) + DWORD dwDesiredAccess, + unsigned long *hScm) { UNICODE_STRING MachineName; UNICODE_STRING DatabaseName; @@ -2070,12 +2073,12 @@ /* Function 28 */ -unsigned int +DWORD ScmrOpenServiceA(handle_t BindingHandle, - unsigned int hSCManager, + unsigned long hSCManager, char *lpServiceName, - unsigned long dwDesiredAccess, - unsigned int *hService) + DWORD dwDesiredAccess, + unsigned long *hService) { UNICODE_STRING ServiceName; DWORD dwError; @@ -2098,12 +2101,12 @@ /* Function 29 */ -unsigned long +DWORD ScmrQueryServiceConfigA(handle_t BindingHandle, - unsigned int hService, + unsigned long hService, unsigned char *lpServiceConfig, - unsigned long cbBufSize, - unsigned long *pcbBytesNeeded) + DWORD cbBufSize, + DWORD *pcbBytesNeeded) { DPRINT1("ScmrQueryServiceConfigA() is unimplemented\n"); return ERROR_CALL_NOT_IMPLEMENTED; @@ -2111,12 +2114,12 @@ /* Function 30 */ -unsigned long +DWORD ScmrQueryServiceLockStatusA(handle_t BindingHandle, - unsigned int hSCManager, + unsigned long hSCManager, unsigned char *lpLockStatus, /* [out, unique, size_is(cbBufSize)] */ - unsigned long cbBufSize, /* [in] */ - unsigned long *pcbBytesNeeded) /* [out] */ + DWORD cbBufSize, /* [in] */ + DWORD *pcbBytesNeeded) /* [out] */ { DPRINT1("ScmrQueryServiceLockStatusA() called\n"); return ERROR_CALL_NOT_IMPLEMENTED; @@ -2124,12 +2127,12 @@ /* Function 31 */ -unsigned long +DWORD ScmrStartServiceA(handle_t BindingHandle, - unsigned int hService, - unsigned long dwNumServiceArgs, + unsigned long hService, + DWORD dwNumServiceArgs, unsigned char *lpServiceArgBuffer, - unsigned long cbBufSize) + DWORD cbBufSize) { DWORD dwError = ERROR_SUCCESS; PSERVICE_HANDLE hSvc; @@ -2179,12 +2182,12 @@ /* Function 32 */ -unsigned long +DWORD ScmrGetServiceDisplayNameA(handle_t BindingHandle, - unsigned int hSCManager, + unsigned long hSCManager, char *lpServiceName, char *lpDisplayName, /* [out, unique] */ - unsigned long *lpcchBuffer) + DWORD *lpcchBuffer) { DPRINT1("ScmrGetServiceDisplayNameA() is unimplemented\n"); return ERROR_CALL_NOT_IMPLEMENTED; @@ -2192,12 +2195,12 @@ /* Function 33 */ -unsigned long +DWORD ScmrGetServiceKeyNameA(handle_t BindingHandle, - unsigned int hSCManager, + unsigned long hSCManager, char *lpDisplayName, char *lpServiceName, /* [out, unique] */ - unsigned long *lpcchBuffer) + DWORD *lpcchBuffer) { DPRINT1("ScmrGetServiceKeyNameA() is unimplemented\n"); return ERROR_CALL_NOT_IMPLEMENTED; @@ -2205,7 +2208,7 @@ /* Function 34 */ -unsigned long +DWORD ScmrGetCurrentGroupStateW(handle_t BindingHandle) { DPRINT1("ScmrGetCurrentGroupStateW() is unimplemented\n"); @@ -2214,7 +2217,7 @@ /* Function 35 */ -unsigned long +DWORD ScmrEnumServiceGroupW(handle_t BindingHandle) { DPRINT1("ScmrEnumServiceGroupW() is unimplemented\n"); @@ -2223,12 +2226,12 @@ /* Function 36 */ -unsigned long +DWORD ScmrChangeServiceConfig2A(handle_t BindingHandle, - unsigned int hService, - unsigned long dwInfoLevel, + unsigned long hService, + DWORD dwInfoLevel, unsigned char *lpInfo, - unsigned long dwInfoSize) + DWORD dwInfoSize) { DPRINT1("ScmrChangeServiceConfig2A() is unimplemented\n"); return ERROR_CALL_NOT_IMPLEMENTED; @@ -2236,12 +2239,12 @@ /* Function 37 */ -unsigned long +DWORD ScmrChangeServiceConfig2W(handle_t BindingHandle, - unsigned int hService, - unsigned long dwInfoLevel, + unsigned long hService, + DWORD dwInfoLevel, unsigned char *lpInfo, - unsigned long dwInfoSize) + DWORD dwInfoSize) { DWORD dwError = ERROR_SUCCESS; PSERVICE_HANDLE hSvc; @@ -2332,13 +2335,13 @@ /* Function 38 */ -unsigned long +DWORD ScmrQueryServiceConfig2A(handle_t BindingHandle, - unsigned int hService, - unsigned long dwInfoLevel, + unsigned long hService, + DWORD dwInfoLevel, unsigned char *lpBuffer, - unsigned long cbBufSize, - unsigned long *pcbBytesNeeded) + DWORD cbBufSize, + DWORD *pcbBytesNeeded) { DPRINT1("ScmrQueryServiceConfig2A() is unimplemented\n"); return ERROR_CALL_NOT_IMPLEMENTED; @@ -2346,13 +2349,13 @@ /* Function 39 */ -unsigned long +DWORD ScmrQueryServiceConfig2W(handle_t BindingHandle, - unsigned int hService, - unsigned long dwInfoLevel, + unsigned long hService, + DWORD dwInfoLevel, unsigned char *lpBuffer, - unsigned long cbBufSize, - unsigned long *pcbBytesNeeded) + DWORD cbBufSize, + DWORD *pcbBytesNeeded) { DWORD dwError = ERROR_SUCCESS; PSERVICE_HANDLE hSvc; @@ -2444,13 +2447,13 @@ /* Function 40 */ -unsigned long +DWORD ScmrQueryServiceStatusEx(handle_t BindingHandle, - unsigned int hService, - unsigned long InfoLevel, + unsigned long hService, + SC_STATUS_TYPE InfoLevel, unsigned char *lpBuffer, /* out */ - unsigned long cbBufSize, - unsigned long *pcbBytesNeeded) /* out */ + DWORD cbBufSize, + DWORD *pcbBytesNeeded) /* out */ { LPSERVICE_STATUS_PROCESS lpStatus; PSERVICE_HANDLE hSvc; @@ -2505,16 +2508,16 @@ /* Function 41 */ -unsigned long +DWORD ScmrEnumServicesStatusExA(handle_t BindingHandle, - unsigned int hSCManager, - unsigned long InfoLevel, - unsigned long dwServiceType, - unsigned long dwServiceState, + unsigned long hSCManager, + SC_STATUS_TYPE InfoLevel, + DWORD dwServiceType, + DWORD dwServiceState, unsigned char *lpServices, - unsigned long dwBufSize, - unsigned long *pcbBytesNeeded, - unsigned long *lpServicesReturned, + DWORD dwBufSize, + DWORD *pcbBytesNeeded, + DWORD *lpServicesReturned, unsigned long *lpResumeHandle, char *pszGroupName) { @@ -2526,17 +2529,17 @@ /* Function 42 */ -unsigned long +DWORD ScmrEnumServicesStatusExW(handle_t BindingHandle, - unsigned int hSCManager, - unsigned long InfoLevel, - unsigned long dwServiceType, - unsigned long dwServiceState, + unsigned long hSCManager, + SC_ENUM_TYPE InfoLevel, + DWORD dwServiceType, + DWORD dwServiceState, unsigned char *lpServices, - unsigned long dwBufSize, - unsigned long *pcbBytesNeeded, - unsigned long *lpServicesReturned, - unsigned long *lpResumeHandle, + DWORD dwBufSize, + DWORD *pcbBytesNeeded, + DWORD *lpServicesReturned, + DWORD *lpResumeHandle, wchar_t *pszGroupName) { PMANAGER_HANDLE hManager; Modified: trunk/reactos/dll/win32/advapi32/service/scm.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/advapi32/service…
============================================================================== --- trunk/reactos/dll/win32/advapi32/service/scm.c (original) +++ trunk/reactos/dll/win32/advapi32/service/scm.c Tue Dec 4 20:21:46 2007 @@ -657,7 +657,7 @@ (LPWSTR)lpServiceStartName, NULL, /* FIXME: lpPassword */ 0, /* FIXME: dwPasswordLength */ - (unsigned int *)&hService); + (unsigned long *)&hService); if (dwError != ERROR_SUCCESS) { DPRINT("ScmrCreateServiceW() failed (Error %lu)\n", dwError); @@ -1334,7 +1334,7 @@ (LPSTR)lpMachineName, (LPSTR)lpDatabaseName, dwDesiredAccess, - (unsigned int*)&hScm); + (unsigned long*)&hScm); if (dwError != ERROR_SUCCESS) { DPRINT1("ScmrOpenSCManagerA() failed (Error %lu)\n", dwError); @@ -1373,7 +1373,7 @@ (LPWSTR)lpMachineName, (LPWSTR)lpDatabaseName, dwDesiredAccess, - (unsigned int*)&hScm); + (unsigned long*)&hScm); if (dwError != ERROR_SUCCESS) { DPRINT1("ScmrOpenSCManagerW() failed (Error %lu)\n", dwError); @@ -1410,7 +1410,7 @@ (unsigned int)hSCManager, (LPSTR)lpServiceName, dwDesiredAccess, - (unsigned int*)&hService); + (unsigned long*)&hService); if (dwError != ERROR_SUCCESS) { DPRINT1("ScmrOpenServiceA() failed (Error %lu)\n", dwError); @@ -1447,7 +1447,7 @@ (unsigned int)hSCManager, (LPWSTR)lpServiceName, dwDesiredAccess, - (unsigned int*)&hService); + (unsigned long*)&hService); if (dwError != ERROR_SUCCESS) { DPRINT("ScmrOpenServiceW() failed (Error %lu)\n", dwError); Modified: trunk/reactos/include/reactos/idl/svcctl.idl URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/idl/svcctl…
============================================================================== --- trunk/reactos/include/reactos/idl/svcctl.idl (original) +++ trunk/reactos/include/reactos/idl/svcctl.idl Tue Dec 4 20:21:46 2007 @@ -6,7 +6,7 @@ //#include <winsvc.h> #include "include/reactos/idl/wtypes.idl" -#define SC_HANDLE unsigned int +#define SC_HANDLE unsigned long #define SC_LOCK unsigned int #define SERVICE_STATUS_HANDLE unsigned long #define SC_STATUS_TYPE unsigned long @@ -268,7 +268,7 @@ [in] DWORD dwBufSize, [out] LPDWORD pcbBytesNeeded, [out] LPDWORD lpServicesReturned, - [in, out, unique] LPDWORD lpResumeHandle); + [in, out, unique] SC_HANDLE *lpResumeHandle); /* Function 27 */ DWORD R(OpenSCManagerA) ([in] handle_t BindingHandle, @@ -278,11 +278,11 @@ [out] SC_HANDLE *hScm); /* Function 28 */ - SC_HANDLE R(OpenServiceA) ([in] handle_t BindingHandle, - [in] SC_HANDLE hSCManager, - [in, string] LPCSTR lpServiceName, - [in] DWORD dwDesiredAccess, - [out] SC_HANDLE *hScm); + DWORD R(OpenServiceA) ([in] handle_t BindingHandle, + [in] SC_HANDLE hSCManager, + [in, string] LPCSTR lpServiceName, + [in] DWORD dwDesiredAccess, + [out] SC_HANDLE *hScm); /* Function 29 */ DWORD R(QueryServiceConfigA) ([in] handle_t BindingHandle, @@ -379,7 +379,7 @@ [in] DWORD cbBufSize, [out] LPDWORD pcbBytesNeeded, [out] LPDWORD lpServicesReturned, - [in, out, unique] LPDWORD lpResumeHandle, + [in, out, unique] SC_HANDLE *lpResumeHandle, [in, string, unique] LPCSTR pszGroupName); /* Function 42 */
17 years
1
0
0
0
[hpoussin] 31002: Update idl file too
by hpoussin@svn.reactos.org
Author: hpoussin Date: Tue Dec 4 20:10:45 2007 New Revision: 31002 URL:
http://svn.reactos.org/svn/reactos?rev=31002&view=rev
Log: Update idl file too Modified: trunk/reactos/include/reactos/idl/pnp.idl trunk/reactos/include/reactos/idl/wtypes.idl 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 (original) +++ trunk/reactos/include/reactos/idl/pnp.idl Tue Dec 4 20:10:45 2007 @@ -64,11 +64,11 @@ cpp_quote("#define PNP_BRANCH_ENUM 1") cpp_quote("#define PNP_BRANCH_CLASS 2") CONFIGRET PNP_EnumerateSubKeys(handle_t BindingHandle, - [in] unsigned long Branch, - [in] unsigned long Index, + [in] DWORD Branch, + [in] DWORD Index, [out, string, size_is(Length)] wchar_t *Buffer, - [in] unsigned long Length, - [out] unsigned long *RequiredLength, + [in] DWORD Length, + [out] DWORD *RequiredLength, [in] DWORD Flags); /* Function 10 */ @@ -93,11 +93,11 @@ /* Function 13 */ CONFIGRET PNP_GetDeviceRegProp(handle_t BindingHandle, [in, string] wchar_t *DeviceInstance, - [in] unsigned long Property, - [in, out] unsigned long *DataType, + [in] DWORD Property, + [in, out] DWORD *DataType, [out, size_is(*TransferLen)] char *Buffer, - [in, out] unsigned long *TransferLen, - [in, out] unsigned long *Length, + [in, out] DWORD *TransferLen, + [in, out] DWORD *Length, [in] DWORD Flags); /* Function 14 */ @@ -192,7 +192,7 @@ [in] DWORD Action, [in, string] wchar_t *DeviceId, [in] DWORD ProfileId, - [in, out] unsigned long *Value, + [in, out] DWORD *Value, [in] DWORD Flags); /* Function 42 */ Modified: trunk/reactos/include/reactos/idl/wtypes.idl URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/idl/wtypes…
============================================================================== --- trunk/reactos/include/reactos/idl/wtypes.idl (original) +++ trunk/reactos/include/reactos/idl/wtypes.idl Tue Dec 4 20:10:45 2007 @@ -2,7 +2,7 @@ #define WORD unsigned short #define DWORD unsigned long #define ULONG unsigned long -#define BOOL unsigned long +#define BOOL int #define LPSTR char* #define LPCSTR char* #define LPWSTR wchar_t*
17 years
1
0
0
0
[gedmurphy] 31001: the 'trash' americanism drives me mad
by gedmurphy@svn.reactos.org
Author: gedmurphy Date: Tue Dec 4 20:00:09 2007 New Revision: 31001 URL:
http://svn.reactos.org/svn/reactos?rev=31001&view=rev
Log: the 'trash' americanism drives me mad Added: trunk/reactos/dll/win32/shell32/lang/en-GB.rc (with props) Modified: trunk/reactos/dll/win32/shell32/shell32.rc Added: trunk/reactos/dll/win32/shell32/lang/en-GB.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/lang/en-…
============================================================================== --- trunk/reactos/dll/win32/shell32/lang/en-GB.rc (added) +++ trunk/reactos/dll/win32/shell32/lang/en-GB.rc Tue Dec 4 20:00:09 2007 @@ -1,0 +1,451 @@ +/* + * Copyright 1998 Juergen Schmied + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_UK + +MENU_001 MENU DISCARDABLE +BEGIN + MENUITEM "Lar&ge Icons", FCIDM_SHVIEW_BIGICON + MENUITEM "S&mall Icons", FCIDM_SHVIEW_SMALLICON + MENUITEM "&List", FCIDM_SHVIEW_LISTVIEW + MENUITEM "&Details", FCIDM_SHVIEW_REPORTVIEW +END + +/* shellview background menu */ +MENU_002 MENU DISCARDABLE +BEGIN + POPUP "" + BEGIN + POPUP "&View" + BEGIN + MENUITEM "Lar&ge Icons", FCIDM_SHVIEW_BIGICON + MENUITEM "S&mall Icons", FCIDM_SHVIEW_SMALLICON + MENUITEM "&List", FCIDM_SHVIEW_LISTVIEW + MENUITEM "&Details", FCIDM_SHVIEW_REPORTVIEW + END + MENUITEM SEPARATOR + POPUP "Arrange &Icons" + BEGIN + MENUITEM "By &Name", 0x30 /* column 0 */ + MENUITEM "By &Type", 0x32 /* column 2 */ + MENUITEM "By &Size", 0x31 /* ... */ + MENUITEM "By &Date", 0x33 + MENUITEM SEPARATOR + MENUITEM "&Auto Arrange", FCIDM_SHVIEW_AUTOARRANGE + END + MENUITEM "Line up Icons", FCIDM_SHVIEW_SNAPTOGRID + MENUITEM SEPARATOR + MENUITEM "Refresh", FCIDM_SHVIEW_REFRESH + MENUITEM SEPARATOR + MENUITEM "Paste", FCIDM_SHVIEW_INSERT + MENUITEM "Paste as Link", FCIDM_SHVIEW_INSERTLINK + MENUITEM SEPARATOR + MENUITEM "Properties", FCIDM_SHVIEW_PROPERTIES + END +END + +/* shellview item menu */ +MENU_SHV_FILE MENU DISCARDABLE +BEGIN + POPUP "" + BEGIN + MENUITEM "E&xplore", FCIDM_SHVIEW_EXPLORE + MENUITEM "&Open", FCIDM_SHVIEW_OPEN + MENUITEM SEPARATOR + MENUITEM "C&ut", FCIDM_SHVIEW_CUT + MENUITEM "&Copy", FCIDM_SHVIEW_COPY + MENUITEM SEPARATOR + MENUITEM "Create &Link", FCIDM_SHVIEW_CREATELINK + MENUITEM "&Delete", FCIDM_SHVIEW_DELETE + MENUITEM "&Rename", FCIDM_SHVIEW_RENAME + MENUITEM SEPARATOR + MENUITEM "&Properties", FCIDM_SHVIEW_PROPERTIES + END +END + +SHBRSFORFOLDER_MSGBOX DIALOG LOADONCALL MOVEABLE DISCARDABLE 15, 40, 188, 192 +STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU | DS_MODALFRAME | DS_SETFONT | DS_3DLOOK +CAPTION "Browse for Folder" +FONT 8, "MS Shell Dlg" +BEGIN + DEFPUSHBUTTON "OK", 1, 60, 175, 60, 15, BS_DEFPUSHBUTTON | WS_GROUP | WS_TABSTOP + PUSHBUTTON "Cancel", 2, 125, 175, 60, 15, WS_GROUP | WS_TABSTOP + LTEXT "", IDD_TITLE, 4, 4, 180, 12 + LTEXT "", IDD_STATUS, 4, 25, 180, 12 + CONTROL "", IDD_TREEVIEW, "SysTreeView32", TVS_HASBUTTONS | TVS_HASLINES | TVS_LINESATROOT | WS_BORDER | WS_TABSTOP, 4, 40, 180, 120 +END + +SHNEWBRSFORFOLDER_MSGBOX DIALOG LOADONCALL MOVEABLE DISCARDABLE 15, 40, 218, 196 +STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU | DS_MODALFRAME | DS_SETFONT | DS_3DLOOK +CAPTION "Browse for Folder" +FONT 8, "MS Shell Dlg" +BEGIN + LTEXT "", IDD_TITLE, 10, 8, 198, 24 + LTEXT "", IDD_STATUS, 10, 25, 198, 12 + LTEXT "Folder:", IDD_FOLDER, 10, 152, 40, 12 + CONTROL "", IDD_TREEVIEW, "SysTreeView32", TVS_HASBUTTONS | TVS_HASLINES | TVS_LINESATROOT | WS_BORDER | WS_TABSTOP, 12, 38, 194, 105 + EDITTEXT IDD_FOLDERTEXT, 46, 150, 160, 14, WS_BORDER | WS_GROUP | WS_TABSTOP + PUSHBUTTON "&Make New Folder", IDD_MAKENEWFOLDER, 12, 174, 77, 14, WS_GROUP | WS_TABSTOP + DEFPUSHBUTTON "OK", IDOK, 102, 174, 50, 14, BS_DEFPUSHBUTTON | WS_GROUP | WS_TABSTOP + PUSHBUTTON "Cancel", IDCANCEL, 156, 174, 50, 14, WS_GROUP | WS_TABSTOP +END + +SHELL_YESTOALL_MSGBOX DIALOG 200, 100, 280, 90 +STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU +CAPTION "Message" +FONT 8, "MS Shell Dlg" +BEGIN + DEFPUSHBUTTON "&Yes", IDYES, 34, 69, 53, 14, WS_GROUP | WS_TABSTOP + PUSHBUTTON "Yes to &all", IDD_YESTOALL, 92, 69, 65, 14, WS_GROUP | WS_TABSTOP + PUSHBUTTON "&No", IDNO, 162, 69, 53, 14, WS_GROUP | WS_TABSTOP + PUSHBUTTON "&Cancel", IDCANCEL, 220, 69, 53, 14, WS_GROUP | WS_TABSTOP + ICON "", IDD_ICON, 10, 10, 16, 16 + LTEXT "", IDD_MESSAGE, 40, 10, 238, 52, 0 +END + +IDD_SHELL_ABOUT DIALOGEX LOADONCALL MOVEABLE DISCARDABLE 0, 0, 275, 198 +STYLE DS_FIXEDSYS | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "About %s" +FONT 8, "MS Shell Dlg" +BEGIN + ICON "", IDC_SHELL_ABOUT_ICON, 7, 55, 21, 20 + LTEXT "", IDC_SHELL_ABOUT_APPNAME, 35, 55, 200, 10 + LTEXT "Version " KERNEL_VERSION_STR " (" KERNEL_VERSION_BUILD_STR ")", IDC_STATIC, 35, 65, 235, 10 + LTEXT REACTOS_DEFAULT_STR_LEGAL_COPYRIGHT, IDC_STATIC, 35, 75, 210, 10 + LTEXT "", IDC_SHELL_ABOUT_OTHERSTUFF, 35, 90, 180, 20 + LTEXT "This ReactOS version is registered to:", IDC_STATIC, 35, 115, 180, 10 + LTEXT "", IDC_SHELL_ABOUT_REG_USERNAME, 45, 125, 180, 10 + LTEXT "", IDC_SHELL_ABOUT_REG_ORGNAME, 45, 135, 180, 10 + LTEXT "", IDC_STATIC, 35, 147, 235, 1, SS_ETCHEDHORZ + LTEXT "Installed physical memory:", IDC_STATIC, 35, 152, 130, 10 + LTEXT "", IDC_SHELL_ABOUT_PHYSMEM, 167, 152, 88, 10 + DEFPUSHBUTTON "OK", IDOK, 220, 178, 50, 14 + + PUSHBUTTON "", IDC_SHELL_ABOUT_AUTHORS, 5, 178, 70, 14 +END + +IDD_SHELL_ABOUT_AUTHORS DIALOGEX MOVEABLE DISCARDABLE 35, 90, 235, 85 +STYLE DS_FIXEDSYS | WS_CHILD +FONT 8, "MS Shell Dlg" +BEGIN + LTEXT "ReactOS was brought to you by:", IDC_STATIC, 0, 0, 180, 10 + LISTBOX IDC_SHELL_ABOUT_AUTHORS_LISTBOX, 0, 10, 165, 75 +END + +SHELL_RUN_DLG DIALOG LOADONCALL MOVEABLE DISCARDABLE 0, 0, 227, 95 +STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU +CAPTION "" +FONT 8, "MS Shell Dlg" +BEGIN + ICON "", 12297, 7, 11, 18, 20, WS_VISIBLE + LTEXT "Type the name of a program, folder, document, or Internet resource, and ReactOS will open it for you.", 12289, 36, 11, 182, 18 + LTEXT "&Open:", 12305, 7, 39, 24, 10 + CONTROL "", 12298, "COMBOBOX", WS_TABSTOP | WS_GROUP | WS_VSCROLL | WS_VISIBLE | CBS_DISABLENOSCROLL | CBS_AUTOHSCROLL | CBS_DROPDOWN, 36, 37, 183, 100 + DEFPUSHBUTTON "OK", IDOK, 36, 63, 59, 14, WS_TABSTOP + PUSHBUTTON "Cancel", IDCANCEL, 98, 63, 59, 14, WS_TABSTOP + PUSHBUTTON "&Browse...", 12288, 160, 63, 59, 14, WS_TABSTOP +END + +SHELL_GENERAL_SHORTCUT_DLG DIALOGEX 0, 0, 235, 215 +STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION +CAPTION "Shortcut" +FONT 8, "MS Shell Dlg", 0, 0, 0x0 +BEGIN + ICON "", 14000, 10, 4, 30, 30, WS_VISIBLE + LTEXT "Target type:", 14004, 8, 38, 64, 10 + LTEXT "", 14005, 78, 38, 142, 10 + LTEXT "Target location:", 14006, 8, 58, 64, 10 + LTEXT "", 14007, 79, 58, 141, 10 + LTEXT "Target:", 14008, 8, 77, 45, 10 + EDITTEXT 14009, 79, 75, 150, 14, ES_AUTOHSCROLL + LTEXT "&Start in:", 14010, 8, 96, 57, 10 + EDITTEXT 14011, 79, 94, 150, 14, ES_AUTOHSCROLL + LTEXT "Shortcut &key:", 14014, 8, 115, 57, 10 + EDITTEXT 14015, 79, 112, 150, 14, ES_LEFT + LTEXT "Run:", 14016, 8, 134, 57, 10 + EDITTEXT 14017, 79, 131, 150, 14, ES_AUTOHSCROLL + LTEXT "C&omment:", 14018, 8, 152, 57, 10 + EDITTEXT 14019, 79, 149, 150, 14, ES_AUTOHSCROLL + PUSHBUTTON "&Find Target...", 14020, 9, 172, 70, 14, ES_LEFT + PUSHBUTTON "&Change Icon...", 14021, 84, 172, 70, 14, ES_LEFT + PUSHBUTTON "A&dvanced...", 14022, 159, 172, 70, 14, ES_LEFT +END + +SHELL_EXTENDED_SHORTCUT_DLG DIALOGEX 0, 0, 230, 150 +STYLE DS_SETFONT | DS_FIXEDSYS | WS_POPUP | WS_CAPTION +CAPTION "Extended Properties" +FONT 8, "MS Shell Dlg", 0, 0, 0x0 +BEGIN + LTEXT "Choose the advanced properties you want for this shortcut.", -1, 5, 30, 210, 10 + CHECKBOX "Run with different credentials", 14000, 25, 50, 150, 10 + LTEXT "This option can allow you to run the this shortcut as another user, or continue as yourself while protecting your computer and data from unauthorized program activity.", -1, 50, 60, 175, 40 + CHECKBOX "Run in seperate memory space", 14001, 25, 100, 90, 10, WS_DISABLED + PUSHBUTTON "OK", 1, 63, 124, 50, 15, WS_VISIBLE + PUSHBUTTON "Abort", 2, 120, 124, 50, 15, WS_VISIBLE +END + +SHELL_FILE_GENERAL_DLG DIALOGEX 0, 0, 240, 205 +STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION +CAPTION "General" +FONT 8, "MS Shell Dlg", 0, 0, 0x0 +BEGIN + ICON "", 14000, 10, 3, 30, 30, WS_VISIBLE + EDITTEXT 14001, 70, 9, 158, 14, ES_LEFT | ES_READONLY + LTEXT "Type of file:", 14004, 8, 35, 50, 10 + LTEXT "File", 14005, 68, 35, 160, 10 + LTEXT "Opens with:", 14006, 8, 53, 50, 10 + LTEXT "", 14007, 68, 53, 160, 10 + LTEXT "Location:", 14008, 8, 72, 45, 10 + LTEXT "", 14009, 68, 72, 315, 10 + LTEXT "Size:", 14010, 8, 93, 45, 10 + LTEXT "", 14011, 68, 93, 160, 10 + LTEXT "Created:", 14014, 8, 118, 45, 10 + LTEXT "", 14015, 68, 118, 160, 10 + LTEXT "Modified:", 14016, 8, 140, 45, 10 + LTEXT "", 14017, 68, 140, 160, 10 + LTEXT "Accessed:", 14018, 8, 160, 45, 10 + LTEXT "", 14019, 68, 160, 160, 10 + LTEXT "Attributes:", 14020, 8, 189, 45, 10 + CHECKBOX "&Read-only", 14021, 58, 189, 67, 10 + CHECKBOX "&Hidden", 14022, 126, 189, 50, 10 + CHECKBOX "&Archive", 14023, 181, 189, 49, 10 +END + +SHELL_FILE_VERSION_DLG DIALOGEX 0, 0, 235, 215 +STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION +CAPTION "Version" +FONT 8, "MS Shell Dlg", 0, 0, 0x0 +BEGIN + LTEXT "File version: ", 14000, 10, 10, 55, 10 + LTEXT "", 14001, 77, 10, 152, 10 + LTEXT "Description: ", 14002, 10, 27, 45, 10 + LTEXT "", 14003, 77, 27, 152, 10 + LTEXT "Copyright: ", 14004, 10, 46, 66, 10 + LTEXT "", 14005, 77, 46, 152, 10 + GROUPBOX "Other version information: ", 14006, 6, 70, 222, 115 + LTEXT "Item name: ", 14007, 13, 82, 50, 10 + LTEXT "Value: ", 14008, 112, 82, 45, 10 + LISTBOX 14009, 12, 94, 94, 83, LBS_STANDARD | WS_TABSTOP | LBS_NOTIFY + EDITTEXT 14010, 112, 93, 109, 83, ES_LEFT | WS_BORDER | WS_VSCROLL | WS_GROUP | ES_MULTILINE | ES_READONLY +END + +DRIVE_GENERAL_DLG DIALOGEX 0, 0, 240, 230 +STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION +CAPTION "General" +FONT 8, "MS Shell Dlg", 0, 0, 0x0 +BEGIN + EDITTEXT 14001, 40, 20, 190, 14, ES_LEFT|WS_BORDER|WS_GROUP + LTEXT "Type:", -1, 15, 55, 40, 10 + LTEXT "", 14002, 110, 55, 100, 10 + + LTEXT "File system:", -1, 15, 70, 100, 10 + LTEXT "", 14003, 110, 70, 100, 10 + + CONTROL "", 14013, "Static", SS_NOTIFY | SS_SUNKEN | SS_OWNERDRAW, 5, 90, 10, 10 + LTEXT "Used space:", -1, 25, 90, 120, 10 + LTEXT "", 14004, 110, 90, 120, 10 + LTEXT "", 14005, 200, 90, 40, 10 + + CONTROL "", 14014, "Static", SS_NOTIFY | SS_SUNKEN | SS_OWNERDRAW, 5, 105, 10, 10 + LTEXT "Free space:", -1, 25, 105, 70, 10 + LTEXT "", 14006, 110, 105, 120, 10 + LTEXT "", 14007, 200, 105, 40, 10 + + LTEXT "Capacity:", -1, 25, 125, 80, 10 + LTEXT "", 14008, 110, 125, 120, 10 + LTEXT "", 14009, 200, 125, 40, 10 + + CONTROL "", 14015, "Static", SS_NOTIFY | SS_SUNKEN | SS_OWNERDRAW, 20, 140, 200, 20 + + LTEXT "Drive %s", 14010, 100, 170, 40, 10 + PUSHBUTTON "Disk Cleanup", 14011, 180, 175, 50, 15, WS_TABSTOP + CHECKBOX "Compress drive to save disk space", 14012, 15, 205, 180, 10, WS_DISABLED + CHECKBOX "Allow Indexing Service to index this disk for fast file searching", 14012, 15, 220, 200, 10, WS_DISABLED +END + +DRIVE_EXTRA_DLG DIALOGEX 0, 0, 240, 230 +STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION +CAPTION "Tools" +FONT 8, "MS Shell Dlg", 0, 0, 0x0 +BEGIN + GROUPBOX "Error-checking", -1, 5, 5, 230, 60 + LTEXT "This option will check the volume for\nerrors.", -1, 40, 25, 160, 20 + PUSHBUTTON "Check Now...", 14000, 130, 45, 90, 15, WS_TABSTOP + GROUPBOX "Defragmentation", -1, 5, 65, 230, 60 + LTEXT "This option will defragment files on the volume", -1, 40, 85, 160, 20 + PUSHBUTTON "Defragment Now...", 14001, 130, 105, 90, 15, WS_TABSTOP + GROUPBOX "Backup", -1, 5, 130, 230, 60 + LTEXT "This option will back up files on the volume.", -1, 40, 150, 160, 20 + PUSHBUTTON "Backup Now...", 14002, 130, 170, 90, 15, WS_TABSTOP +END + +DRIVE_HARDWARE_DLG DIALOGEX 0, 0, 240, 230 +STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION +CAPTION "Hardware" +FONT 8, "MS Shell Dlg", 0, 0, 0x0 +BEGIN +END + +RUN_AS_DIALOG DIALOGEX 0, 0, 240, 190 +STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION +CAPTION "Run As" +FONT 8, "MS Shell Dlg", 0, 0, 0x0 +BEGIN + LTEXT "Which user account do you want to use to run this program?", -1, 10, 20, 220, 20 + CHECKBOX "Current User %s", 14000, 10, 45, 150, 10 + LTEXT "Protect my computer and data from unauthorized program activity", -1, 25, 57, 200, 10, WS_DISABLED + CHECKBOX "This option can prevent computer viruses from harming your computer or personal data, but selecting it might cause the program to function improperly.", 14001, 25, 68, 200, 30, WS_DISABLED | BS_MULTILINE + CHECKBOX "The following user:", 14002, 10, 100, 90, 10 + LTEXT "User name:", -1, 20, 118, 54, 10 + COMBOBOX 14003, 75, 115, 100, 15, CBS_DROPDOWNLIST | WS_VSCROLL | WS_VISIBLE | WS_TABSTOP + + PUSHBUTTON "...", 14004, 180, 115, 30, 14, WS_TABSTOP + LTEXT "Password:", -1, 20, 143, 53, 10 + EDITTEXT 14005, 74, 140, 100, 14, ES_LEFT | WS_BORDER | WS_GROUP + PUSHBUTTON "...", 14006, 180, 140, 30, 14, WS_TABSTOP + PUSHBUTTON "OK", 14007, 57, 170, 60, 14, WS_TABSTOP + PUSHBUTTON "Cancel", 14008, 122, 170, 60, 14, WS_TABSTOP +END + +BITBUCKET_PROPERTIES_DLG DIALOGEX 0, 0, 240, 190 +STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION +CAPTION "Recycle Bin Properties" +FONT 8, "MS Shell Dlg", 0, 0, 0x0 +BEGIN + CONTROL "", 14000, "SysListView32", LVS_REPORT | LVS_SHAREIMAGELISTS | WS_BORDER | WS_TABSTOP, 10, 10, 220, 50 + GROUPBOX "Settings for selected location", -1, 10, 72, 220, 70 + RADIOBUTTON "&Custom size:", 14001, 20, 90, 80, 10, WS_TABSTOP + EDITTEXT 14002, 106, 87, 50, 14, WS_TABSTOP | ES_NUMBER + LTEXT "M&aximum size(MB):", -1, 20, 105, 70, 10 + RADIOBUTTON "Do not move files to the &Recycle Bin. Remove files immediately when deleted.", 14003, 20, 117, 170, 20, BS_MULTILINE | WS_TABSTOP + RADIOBUTTON "&Display delete confirmation dialog", 14004, 20, 155, 140, 10, WS_TABSTOP +END + +OPEN_WITH_PROGRAMM_DLG DIALOGEX 0, 0, 264, 256 +STYLE DS_SETFONT | DS_FIXEDSYS | WS_POPUP | WS_CAPTION +CAPTION "Open With" +FONT 8, "MS Shell Dlg", 0, 0, 0x0 +BEGIN + ICON IDI_SHELL_OPEN_WITH, -1, 8, 12, 21, 20 + LTEXT "Choose the program you want to use to open this file:", -1, 44, 12, 211, 10 + LTEXT "File: ", 14001, 44, 25, 188, 10 + GROUPBOX "&Programs", -1, 7, 42, 249, 187 + CONTROL "", 14002, "SysListView32", LVS_REPORT | LVS_SINGLESEL | LVS_NOCOLUMNHEADER | LVS_SHAREIMAGELISTS | WS_BORDER | WS_TABSTOP, 16, 57, 230, 130 + AUTOCHECKBOX "&Always use the selected program to open this kind of file", 14003, 20, 193, 225, 10 + PUSHBUTTON "&Browse...", 14004, 198, 207, 50, 14 + PUSHBUTTON "OK", 14005, 150, 236, 50, 14 + PUSHBUTTON "Cancel", 14006, 206, 236, 50, 14 +END + +STRINGTABLE DISCARDABLE +BEGIN + /* columns in the shellview */ + IDS_SHV_COLUMN1 "File" + IDS_SHV_COLUMN2 "Size" + IDS_SHV_COLUMN3 "Type" + IDS_SHV_COLUMN4 "Modified" + IDS_SHV_COLUMN5 "Attributes" + IDS_SHV_COLUMN6 "Size" + IDS_SHV_COLUMN7 "Size available" + IDS_SHV_COLUMN8 "Name" + IDS_SHV_COLUMN9 "Comments" + IDS_SHV_COLUMN10 "Owner" + IDS_SHV_COLUMN11 "Group" + IDS_SHV_COLUMN_DELFROM "Original location" + IDS_SHV_COLUMN_DELDATE "Date deleted" + + /* special folders */ + IDS_DESKTOP "Desktop" + IDS_MYCOMPUTER "My Computer" + IDS_RECYCLEBIN_FOLDER_NAME "Recycle Bin" + IDS_CONTROLPANEL "Control Panel" + + /* context menus */ + IDS_VIEW_LARGE "Lar&ge Icons" + IDS_VIEW_SMALL "S&mall Icons" + IDS_VIEW_LIST "&List" + IDS_VIEW_DETAILS "&Details" + IDS_SELECT "Select" + IDS_OPEN "Open" + + IDS_CREATEFOLDER_DENIED "Unable to create new Folder: Permission denied." + IDS_CREATEFOLDER_CAPTION "Error during creation of a new folder" + IDS_DELETEITEM_CAPTION "Confirm file deletion" + IDS_DELETEFOLDER_CAPTION "Confirm folder deletion" + IDS_DELETEITEM_TEXT "Are you sure you want to delete '%1'?" + IDS_DELETEMULTIPLE_TEXT "Are you sure you want to delete these %1 items?" + IDS_DELETESELECTED_TEXT "Are you sure you want to delete the selected item(s)?" + IDS_TRASHITEM_TEXT "Are you sure that you want to send '%1' to the Recycle Bin?" + IDS_TRASHFOLDER_TEXT "Are you sure that you want to send '%1' and all its content to the Recycle Bin?" + IDS_TRASHMULTIPLE_TEXT "Are you sure that you want to send these %1 items to the Recycle Bin?" + IDS_CANTTRASH_TEXT "The item '%1' can't be sent to Recycle Bin. Do you want to delete it instead?" + IDS_OVERWRITEFILE_TEXT "This folder already contains a file called '%1'.\n\nDo you want to replace it?" + IDS_OVERWRITEFILE_CAPTION "Confirm file overwrite" + IDS_OVERWRITEFOLDER_TEXT "This folder already contains a folder named '%1'.\n\n"\ + "If the files in the destination folder have the same names as files in the\n"\ + "selected folder they will be replaced. Do you still want to move or copy\n"\ + "the folder?" + + /* message box strings */ + IDS_RESTART_TITLE "Restart" + IDS_RESTART_PROMPT "Do you want to restart the system?" + IDS_SHUTDOWN_TITLE "Shutdown" + IDS_SHUTDOWN_PROMPT "Do you want to shutdown?" + + /* shell folder path default values */ + IDS_PROGRAMS "Start Menu\\Programs" + IDS_PERSONAL "My Documents" + IDS_FAVORITES "Favorites" + IDS_STARTUP "Start Menu\\Programs\\StartUp" + IDS_RECENT "Recent" + IDS_SENDTO "SendTo" + IDS_STARTMENU "Start Menu" + IDS_MYMUSIC "My Music" + IDS_MYVIDEO "My Video" + IDS_DESKTOPDIRECTORY "Desktop" + IDS_NETHOOD "NetHood" + IDS_TEMPLATES "Templates" + IDS_APPDATA "Application Data" + IDS_PRINTHOOD "PrintHood" + IDS_LOCAL_APPDATA "Local Settings\\Application Data" + IDS_INTERNET_CACHE "Local Settings\\Temporary Internet Files" + IDS_COOKIES "Cookies" + IDS_HISTORY "Local Settings\\History" + IDS_PROGRAM_FILES "Program Files" + IDS_MYPICTURES "My Pictures" + IDS_PROGRAM_FILES_COMMON "Program Files\\Common Files" + IDS_COMMON_DOCUMENTS "Documents" + IDS_ADMINTOOLS "Start Menu\\Programs\\Administrative Tools" + IDS_COMMON_MUSIC "Documents\\My Music" + IDS_COMMON_PICTURES "Documents\\My Pictures" + IDS_COMMON_VIDEO "Documents\\My Video" + IDS_CDBURN_AREA "Local Settings\\Application Data\\Microsoft\\CD Burning" + + IDS_DRIVE_FIXED "Local Disk" + IDS_DRIVE_CDROM "CDROM" + IDS_DRIVE_NETWORK "Network Disk" + + IDS_OPEN_WITH "Open With" + IDS_OPEN_WITH_CHOOSE "Choose Program..." + + IDS_SHELL_ABOUT_AUTHORS "&Authors" + IDS_SHELL_ABOUT_BACK "< &Back" + FCIDM_SHVIEW_NEW "New" + FCIDM_SHVIEW_NEWFOLDER "New &Folder" + FCIDM_SHVIEW_NEWLINK "New &Link" +END Propchange: trunk/reactos/dll/win32/shell32/lang/en-GB.rc ------------------------------------------------------------------------------ svn:eol-style = native Modified: trunk/reactos/dll/win32/shell32/shell32.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/shell32.…
============================================================================== --- trunk/reactos/dll/win32/shell32/shell32.rc (original) +++ trunk/reactos/dll/win32/shell32/shell32.rc Tue Dec 4 20:00:09 2007 @@ -53,6 +53,7 @@ #include "lang/da-DK.rc" #include "lang/de-DE.rc" #include "lang/el-GR.rc" +#include "lang/en-GB.rc" #include "lang/en-US.rc" #include "lang/eo-EO.rc" #include "lang/es-ES.rc"
17 years
1
0
0
0
[hpoussin] 31000: Use win types when possible
by hpoussin@svn.reactos.org
Author: hpoussin Date: Tue Dec 4 19:40:12 2007 New Revision: 31000 URL:
http://svn.reactos.org/svn/reactos?rev=31000&view=rev
Log: Use win types when possible Modified: trunk/reactos/base/services/umpnpmgr/umpnpmgr.c 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 (original) +++ trunk/reactos/base/services/umpnpmgr/umpnpmgr.c Tue Dec 4 19:40:12 2007 @@ -194,14 +194,14 @@ /* Function 5 */ CONFIGRET PNP_ReportLogOn(handle_t BindingHandle, - unsigned long Admin, - unsigned long ProcessId) + BOOL Admin, + DWORD ProcessId) { HANDLE hProcess; UNREFERENCED_PARAMETER(BindingHandle); - DPRINT1("PNP_ReportLogOn(%lu, %lu) called\n", Admin, ProcessId); + DPRINT1("PNP_ReportLogOn(%u, %u) called\n", Admin, ProcessId); /* Get the users token */ hProcess = OpenProcess(PROCESS_ALL_ACCESS, @@ -233,7 +233,7 @@ CONFIGRET PNP_ValidateDeviceInstance(handle_t BindingHandle, wchar_t *DeviceInstance, - unsigned long Flags) + DWORD Flags) { CONFIGRET ret = CR_SUCCESS; HKEY hDeviceKey = NULL; @@ -270,7 +270,7 @@ CONFIGRET PNP_GetRootDeviceInstance(handle_t BindingHandle, wchar_t *DeviceInstance, - unsigned long Length) + DWORD Length) { CONFIGRET ret = CR_SUCCESS; @@ -297,11 +297,11 @@ /* Function 8 */ CONFIGRET PNP_GetRelatedDeviceInstance(handle_t BindingHandle, - unsigned long Relationship, + DWORD Relationship, wchar_t *DeviceId, wchar_t *RelatedDeviceId, - unsigned long Length, - unsigned long Flags) + DWORD Length, + DWORD Flags) { PLUGPLAY_CONTROL_RELATED_DEVICE_DATA PlugPlayData; CONFIGRET ret = CR_SUCCESS; @@ -343,11 +343,11 @@ /* Function 9 */ CONFIGRET PNP_EnumerateSubKeys(handle_t BindingHandle, - unsigned long Branch, - unsigned long Index, + DWORD Branch, + DWORD Index, wchar_t *Buffer, - unsigned long Length, - unsigned long *RequiredLength, + DWORD Length, + DWORD *RequiredLength, DWORD Flags) { CONFIGRET ret = CR_SUCCESS; @@ -458,11 +458,11 @@ CONFIGRET PNP_GetDeviceRegProp(handle_t BindingHandle, wchar_t *DeviceInstance, - unsigned long Property, - unsigned long *DataType, + DWORD Property, + DWORD *DataType, char *Buffer, - unsigned long *TransferLen, - unsigned long *Length, + DWORD *TransferLen, + DWORD *Length, DWORD Flags) { PLUGPLAY_CONTROL_PROPERTY_DATA PlugPlayData; @@ -1316,11 +1316,11 @@ /* Function 40 */ CONFIGRET PNP_HwProfFlags(handle_t BindingHandle, - unsigned long Action, + DWORD Action, wchar_t *DeviceId, - unsigned long ProfileId, - unsigned long *Value, // out - unsigned long Flags) + DWORD ProfileId, + DWORD *Value, // out + DWORD Flags) { CONFIGRET ret = CR_SUCCESS;
17 years
1
0
0
0
[dreimer] 30999: FIx the fix. (comdlg was hit, too)
by dreimer@svn.reactos.org
Author: dreimer Date: Tue Dec 4 19:37:34 2007 New Revision: 30999 URL:
http://svn.reactos.org/svn/reactos?rev=30999&view=rev
Log: FIx the fix. (comdlg was hit, too) Modified: trunk/tools/RosBE/RosBE-Windows/Root/ChangeLog.txt trunk/tools/RosBE/RosBE-Windows/Root/Clean.cmd Modified: trunk/tools/RosBE/RosBE-Windows/Root/ChangeLog.txt URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Root/Cha…
============================================================================== --- trunk/tools/RosBE/RosBE-Windows/Root/ChangeLog.txt (original) +++ trunk/tools/RosBE/RosBE-Windows/Root/ChangeLog.txt Tue Dec 4 19:37:34 2007 @@ -12,6 +12,7 @@ - Set the working directory for the "Options" shortcut correctly (see above bullet). (Colin Fink) - Add back detection of previous versions of RosBE (versions 0.3.5b2 and before). (Peter Ward) - Fix the uninstall previous routine. (Peter Ward) +- Fix a bug in Clean.cmd. It accidently killed some not anymore Autogenerated Resources. (Daniel Reimer) - Fix a bug in TimeDate.cmd. (Peter Ward) - Fix a bug in reladdr2line.cmd. (Peter Ward) - Change the default ReactOS source directory from APPDATA\RosBE\Source to PROFILE\reactos. (Peter Ward) Modified: trunk/tools/RosBE/RosBE-Windows/Root/Clean.cmd URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Root/Cle…
============================================================================== --- trunk/tools/RosBE/RosBE-Windows/Root/Clean.cmd (original) +++ trunk/tools/RosBE/RosBE-Windows/Root/Clean.cmd Tue Dec 4 19:37:34 2007 @@ -46,19 +46,6 @@ del /f "dll\win32\msi\instabsent.bmp" 1> NUL 2> NUL del /f "dll\win32\msi\instlocal.bmp" 1> NUL 2> NUL del /f "dll\win32\msi\instadvert.bmp" 1> NUL 2> NUL - del /f "dll\win32\comdlg32\network.ico" 1> NUL 2> NUL - del /f "dll\win32\comdlg32\fontpics.bmp" 1> NUL 2> NUL - del /f "dll\win32\comdlg32\pd32_nocollate.ico" 1> NUL 2> NUL - del /f "dll\win32\comdlg32\pd32_collate.ico" 1> NUL 2> NUL - del /f "dll\win32\comdlg32\folder.ico" 1> NUL 2> NUL - del /f "dll\win32\comdlg32\cdrom.ico" 1> NUL 2> NUL - del /f "dll\win32\comdlg32\floppy.ico" 1> NUL 2> NUL - del /f "dll\win32\comdlg32\pd32_landscape.ico" 1> NUL 2> NUL - del /f "dll\win32\comdlg32\folder2.ico" 1> NUL 2> NUL - del /f "dll\win32\comdlg32\800.bmp" 1> NUL 2> NUL - del /f "dll\win32\comdlg32\pd32_portrait.ico" 1> NUL 2> NUL - del /f "dll\win32\comdlg32\hdisk.ico" 1> NUL 2> NUL - del /f "dll\ntdll\napi.S" 1> NUL 2> NUL del /f "dll\ntdll\i386\napi.S" 1> NUL 2> NUL rmdir /q "dll\ntdll\i386" 1> NUL 2> NUL
17 years
1
0
0
0
← Newer
1
...
50
51
52
53
54
55
56
...
61
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
Results per page:
10
25
50
100
200