Author: jimtabor
Date: Fri Nov 9 21:05:41 2007
New Revision: 30304
URL: http://svn.reactos.org/svn/reactos?rev=30304&view=rev
Log:
No need for dca here if the ScreenDeviceContext is set inaccessible. So free the dca.
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/winsta.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/winsta.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/winsta.c (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/winsta.c Fri Nov 9 21:05:41 2007
@@ -304,7 +304,8 @@
IntDestroyPrimarySurface();
return FALSE;
}
- DC_SetOwnership(ScreenDeviceContext, NULL);
+ DC_FreeDcAttr(ScreenDeviceContext); // Free the dcattr!
+ DC_SetOwnership(ScreenDeviceContext, NULL); // This hDC is inaccessible!
/* Setup the cursor */
co_IntLoadDefaultCursors();
@@ -316,7 +317,7 @@
IntEndDesktopGraphics(VOID)
{
if (NULL != ScreenDeviceContext)
- {
+ { // No need to allocate a new dcattr.
DC_SetOwnership(ScreenDeviceContext, PsGetCurrentProcess());
NtGdiDeleteObjectApp(ScreenDeviceContext);
ScreenDeviceContext = NULL;
Author: peterw
Date: Fri Nov 9 21:03:34 2007
New Revision: 30303
URL: http://svn.reactos.org/svn/reactos?rev=30303&view=rev
Log:
- Fix Typo.
Modified:
trunk/tools/RosBE/RosBE-Windows/Root/Help.cmd
Modified: trunk/tools/RosBE/RosBE-Windows/Root/Help.cmd
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Root/Hel…
==============================================================================
--- trunk/tools/RosBE/RosBE-Windows/Root/Help.cmd (original)
+++ trunk/tools/RosBE/RosBE-Windows/Root/Help.cmd Fri Nov 9 21:03:34 2007
@@ -142,7 +142,7 @@
echo either of the options is not given you will be prompted for it.
echo.
echo FILE - This can be either a fully specified path or just the
- echo file name [you can use partial name ie. ntdll*] of
+ echo file name [you can use a partial name ie. ntdll*] of
echo the executable to be analyzed. When using just a file
echo the current directory and all sub-directories are
echo searched.
Author: peterw
Date: Fri Nov 9 20:51:02 2007
New Revision: 30302
URL: http://svn.reactos.org/svn/reactos?rev=30302&view=rev
Log:
- Remove references to tools that will no longer be included.
Modified:
trunk/tools/RosBE/RosBE-Windows/Root/LICENSE.txt
trunk/tools/RosBE/RosBE-Windows/Root/README.odt
trunk/tools/RosBE/RosBE-Windows/Root/README.txt
Modified: trunk/tools/RosBE/RosBE-Windows/Root/LICENSE.txt
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Root/LIC…
==============================================================================
--- trunk/tools/RosBE/RosBE-Windows/Root/LICENSE.txt (original)
+++ trunk/tools/RosBE/RosBE-Windows/Root/LICENSE.txt Fri Nov 9 20:51:02 2007
@@ -9,23 +9,7 @@
- NASM is licensed under the LGPLv2.1.
-- tee is licensed under the GPLv2.
-
-- test is licensed under the GPLv2 or later.
-
-- cut is licensed under the GPLv2 or later.
-
-- grep is licensed under the GPLv2 or later.
-
-- sed is licensed under the GPLv2 or later.
-
-- pcre is licensed under the GPLv2 or later.
-
- svn is licensed under the Apache/BSD-style open source license.
-
-- libiconv is licensed under the LGPLv2.
-
-- libintl is licensed under the LGPLv2.1 and is part of the GNU gettext package.
*** The complete text of the GNU GENERAL PUBLIC LICENSE v2
Modified: trunk/tools/RosBE/RosBE-Windows/Root/README.odt
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Root/REA…
==============================================================================
Binary files - no diff available.
Modified: trunk/tools/RosBE/RosBE-Windows/Root/README.txt
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Root/REA…
==============================================================================
--- trunk/tools/RosBE/RosBE-Windows/Root/README.txt (original)
+++ trunk/tools/RosBE/RosBE-Windows/Root/README.txt Fri Nov 9 20:51:02 2007
@@ -39,12 +39,6 @@
NSIS (Nullsoft Scriptable Install System)
http://nsis.sourceforge.net
-The GnuWin32 Project (tee/test/sed/grep and their dependencies were obtained here)
-http://gnuwin32.sourceforge.net
-
-Olof's Tools (cut)
-http://www.ltr-data.se
-
Subversion Client
http://subversion.tigris.org
Author: greatlrd
Date: Fri Nov 9 20:33:02 2007
New Revision: 30301
URL: http://svn.reactos.org/svn/reactos?rev=30301&view=rev
Log:
Update the documentation
adding lite more code
Modified:
branches/reactx/reactos/dll/directx/ksuser/ksuser.c
branches/reactx/reactos/dll/directx/ksuser/ksuser.h
Modified: branches/reactx/reactos/dll/directx/ksuser/ksuser.c
URL: http://svn.reactos.org/svn/reactos/branches/reactx/reactos/dll/directx/ksus…
==============================================================================
--- branches/reactx/reactos/dll/directx/ksuser/ksuser.c (original)
+++ branches/reactx/reactos/dll/directx/ksuser/ksuser.c Fri Nov 9 20:33:02 2007
@@ -20,17 +20,16 @@
/*++
* @name KsCreateAllocator
* @implemented
-*
-* The function KsCreateAllocator
-*
-* @param
-*
-* @param
-*
-* @param ACCESS_MASK DesiredAccess
-* Desrided access
-*
-* @param
+* The function KsCreateAllocator creates a handle to an allocator for the given sink connection handle
+*
+* @param HANDLE ConnectionHandle
+* Handle to the sink connection on which to create the allocator
+*
+* @param PKSALLOCATOR_FRAMING AllocatorFraming
+* the input param we using to alloc our framing
+*
+* @param PHANDLE AllocatorHandle
+* Our new handle that we have alloc
*
* @return
* Return NTSTATUS error code or sussess code.
@@ -59,16 +58,16 @@
* @name KsCreateClock
* @implemented
*
-* The function KsCreateClock
-*
-* @param
-*
-* @param
-*
-* @param ACCESS_MASK DesiredAccess
-* Desrided access
-*
-* @param
+* The function KsCreateClock creates handle to clock instance
+*
+* @param HANDLE ConnectionHandle
+* Handle to use to create the clock
+*
+* @param PKSCLOCK_CREATE ClockCreate
+* paramenter to use to create the clock
+*
+* @param PHANDLE ClockHandle
+* The new handle
*
* @return
* Return NTSTATUS error code or sussess code.
@@ -92,42 +91,58 @@
ClockHandle);
}
-
-
/*++
* @name KsCreatePin
* @implemented
*
-* The function KsCreatePin
-*
-* @param
-*
-* @param
-*
+* The function KsCreatePin passes a connection request to device and create pin instance
+*
+* @param HANDLE FilterHandle
+* handle of the filter initiating the create request
+*
+* @param PKSPIN_CONNECT Connect
+* Pointer to a KSPIN_CONNECT structure that contains parameters for the requested connection.
+* This should be followed in memory by a KSDATAFORMAT data structure, describing the data format
+* requested for the connection.
+
* @param ACCESS_MASK DesiredAccess
* Desrided access
*
-* @param
-*
-* @return
-* Return NTSTATUS error code or sussess code.
-*
-* @remarks.
-* none
-*
-*--*/
+* @param PHANDLE ConnectionHandle
+* connection handle passed
+*
+* @return
+* Return NTSTATUS error code or sussess code.
+*
+* @remarks.
+* The flag in PKSDATAFORMAT is not really document,
+* to find it u need api mointor allot api and figout
+* how it works, only flag I have found is the
+* KSDATAFORMAT_ATTRIBUTES flag, it doing a Align
+* of LONLONG size, it also round up it.
+*
+*--*/
+
KSDDKAPI
NTSTATUS
NTAPI
KsCreatePin(HANDLE FilterHandle,
PKSPIN_CONNECT Connect,
ACCESS_MASK DesiredAccess,
- OUT PHANDLE ConnectionHandle)
-{
+ PHANDLE ConnectionHandle)
+{
+ ULONG BufferSize = sizeof(KSPIN_CONNECT);
+ PKSDATAFORMAT DataFormat = ((PKSDATAFORMAT) ( ((ULONG)Connect) + ((ULONG)sizeof(KSPIN_CONNECT)) ) );
+
+ if (DataFormat->Flags & KSDATAFORMAT_ATTRIBUTES)
+ {
+ BufferSize += (ROUND_UP(DataFormat->FormatSize,sizeof(LONGLONG)) + DataFormat->FormatSize);
+ }
+
return KsiCreateObjectType(FilterHandle,
KSSTRING_Pin,
Connect,
- sizeof(KSPIN_CONNECT),
+ BufferSize,
DesiredAccess,
ConnectionHandle);
Modified: branches/reactx/reactos/dll/directx/ksuser/ksuser.h
URL: http://svn.reactos.org/svn/reactos/branches/reactx/reactos/dll/directx/ksus…
==============================================================================
--- branches/reactx/reactos/dll/directx/ksuser/ksuser.h (original)
+++ branches/reactx/reactos/dll/directx/ksuser/ksuser.h Fri Nov 9 20:33:02 2007
@@ -3,6 +3,7 @@
#define _KSDDK_
#include <windows.h>
+#include <reactos/helper.h>
#ifndef NTSTATUS
#define NTSTATUS DWORD