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
2025
January
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
November 2007
----- 2025 -----
January 2025
----- 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
20 participants
888 discussions
Start a n
N
ew thread
[fireball] 30691: - Add a check for an incorrect virtual size. Currently ReactOS's floppy.sys has such an incorrect section.
by fireball@svn.reactos.org
Author: fireball Date: Fri Nov 23 16:39:31 2007 New Revision: 30691 URL:
http://svn.reactos.org/svn/reactos?rev=30691&view=rev
Log: - Add a check for an incorrect virtual size. Currently ReactOS's floppy.sys has such an incorrect section. Modified: trunk/reactos/lib/rossym/frommem.c Modified: trunk/reactos/lib/rossym/frommem.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rossym/frommem.c?rev=3…
============================================================================== --- trunk/reactos/lib/rossym/frommem.c (original) +++ trunk/reactos/lib/rossym/frommem.c Fri Nov 23 16:39:31 2007 @@ -24,8 +24,9 @@ PIMAGE_DOS_HEADER DosHeader; PIMAGE_NT_HEADERS NtHeaders; PIMAGE_SECTION_HEADER SectionHeader; - unsigned SectionIndex; - char SectionName[IMAGE_SIZEOF_SHORT_NAME]; + ULONG SectionIndex; + BOOLEAN RosSymSectionFound = FALSE; + CHAR SectionName[IMAGE_SIZEOF_SHORT_NAME]; /* Check if MZ header is valid */ DosHeader = (PIMAGE_DOS_HEADER) ImageStart; @@ -58,11 +59,13 @@ { if (0 == memcmp(SectionName, SectionHeader->Name, IMAGE_SIZEOF_SHORT_NAME)) { + RosSymSectionFound = TRUE; break; } SectionHeader++; } - if (NtHeaders->FileHeader.NumberOfSections <= SectionIndex) + + if (!RosSymSectionFound) { DPRINT("No %s section found\n", ROSSYM_SECTION_NAME); return FALSE; @@ -76,6 +79,12 @@ return FALSE; } + if (SectionHeader->VirtualAddress + SectionHeader->Misc.VirtualSize > ImageSize) + { + DPRINT("Bad %s section virtual size!\n", ROSSYM_SECTION_NAME); + return FALSE; + } + /* Load it */ return RosSymCreateFromRaw((char *) ImageStart + SectionHeader->VirtualAddress, SectionHeader->SizeOfRawData, RosSymInfo);
17 years, 1 month
1
0
0
0
[cwittich] 30689: link to secur32 - will be needed by newer wine versions
by cwittich@svn.reactos.org
Author: cwittich Date: Fri Nov 23 13:10:21 2007 New Revision: 30689 URL:
http://svn.reactos.org/svn/reactos?rev=30689&view=rev
Log: link to secur32 - will be needed by newer wine versions Modified: trunk/reactos/dll/win32/wininet/wininet.rbuild Modified: trunk/reactos/dll/win32/wininet/wininet.rbuild URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/wininet/wininet.…
============================================================================== --- trunk/reactos/dll/win32/wininet/wininet.rbuild (original) +++ trunk/reactos/dll/win32/wininet/wininet.rbuild Fri Nov 23 13:10:21 2007 @@ -17,6 +17,7 @@ <library>mpr</library> <library>ws2_32</library> <library>crypt32</library> + <library>secur32</library> <file>cookie.c</file> <file>dialogs.c</file> <file>ftp.c</file>
17 years, 1 month
1
0
0
0
[cwittich] 30688: add stub for InitializeSecurityContextW
by cwittich@svn.reactos.org
Author: cwittich Date: Fri Nov 23 12:10:32 2007 New Revision: 30688 URL:
http://svn.reactos.org/svn/reactos?rev=30688&view=rev
Log: add stub for InitializeSecurityContextW Modified: trunk/reactos/dll/win32/secur32/secur32.def trunk/reactos/dll/win32/secur32/sspi.c Modified: trunk/reactos/dll/win32/secur32/secur32.def URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/secur32/secur32.…
============================================================================== --- trunk/reactos/dll/win32/secur32/secur32.def (original) +++ trunk/reactos/dll/win32/secur32/secur32.def Fri Nov 23 12:10:32 2007 @@ -40,7 +40,7 @@ ;@InitSecurityInterfaceA InitSecurityInterfaceW@0 InitializeSecurityContextA@48 -;InitializeSecurityContextW@48 +InitializeSecurityContextW@48 LsaEnumerateLogonSessions@8 LsaGetLogonSessionData@8 LsaRegisterPolicyChangeNotification@8 Modified: trunk/reactos/dll/win32/secur32/sspi.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/secur32/sspi.c?r…
============================================================================== --- trunk/reactos/dll/win32/secur32/sspi.c (original) +++ trunk/reactos/dll/win32/secur32/sspi.c Fri Nov 23 12:10:32 2007 @@ -156,6 +156,26 @@ return ERROR_CALL_NOT_IMPLEMENTED; } +SECURITY_STATUS +WINAPI +InitializeSecurityContextW ( + PCredHandle phCred, + PCtxtHandle phContext, + SEC_WCHAR* pszTarget, + ULONG fContextReq, + ULONG Reserved, + ULONG TargetData, + PSecBufferDesc pInput, + ULONG Reserved2, + PCtxtHandle phNewContext, + PSecBufferDesc pOut, + PULONG pfContextAttributes, + PTimeStamp pExpires + ) +{ + DPRINT1("%s() not implemented!\n", __FUNCTION__); + return ERROR_CALL_NOT_IMPLEMENTED; +} SECURITY_STATUS WINAPI
17 years, 1 month
1
0
0
0
[cwittich] 30687: don't try to alphablend monochrome bitmaps - fixes the red zone overwrite in opera 9.24
by cwittich@svn.reactos.org
Author: cwittich Date: Fri Nov 23 10:33:54 2007 New Revision: 30687 URL:
http://svn.reactos.org/svn/reactos?rev=30687&view=rev
Log: don't try to alphablend monochrome bitmaps - fixes the red zone overwrite in opera 9.24 Modified: trunk/reactos/subsystems/win32/win32k/ntuser/cursoricon.c Modified: trunk/reactos/subsystems/win32/win32k/ntuser/cursoricon.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/ntuser/cursoricon.c (original) +++ trunk/reactos/subsystems/win32/win32k/ntuser/cursoricon.c Fri Nov 23 10:33:54 2007 @@ -1400,7 +1400,10 @@ IconSize.cy = bmpMask.bmHeight / 2; } - if (bmpColor.bmBitsPixel == 32) + /* NtGdiCreateCompatibleBitmap will create a monochrome bitmap + when cxWidth or cyHeight is 0 + */ + if ((bmpColor.bmBitsPixel == 32) && (cxWidth != 0) && (cyHeight != 0)) { bAlpha = TRUE; }
17 years, 1 month
1
0
0
0
[greatlrd] 30686: small fix for cGetTTFFromFOT fix the number of param, did do a pedump. on export to found out it is @28 but I need look at my private note later
by greatlrd@svn.reactos.org
Author: greatlrd Date: Fri Nov 23 04:38:54 2007 New Revision: 30686 URL:
http://svn.reactos.org/svn/reactos?rev=30686&view=rev
Log: small fix for cGetTTFFromFOT fix the number of param, did do a pedump. on export to found out it is @28 but I need look at my private note later Modified: trunk/reactos/dll/win32/gdi32/gdi32.def trunk/reactos/dll/win32/gdi32/misc/stubs.c Modified: trunk/reactos/dll/win32/gdi32/gdi32.def URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/gdi32.def?…
============================================================================== --- trunk/reactos/dll/win32/gdi32/gdi32.def (original) +++ trunk/reactos/dll/win32/gdi32/gdi32.def Fri Nov 23 04:38:54 2007 @@ -620,5 +620,5 @@ XLATEOBJ_piVector@4 bInitSystemAndFontsDirectoriesW@8 bMakePathNameW@16 -cGetTTFFromFOT@4 +cGetTTFFromFOT@28 gdiPlaySpoolStream@24 Modified: trunk/reactos/dll/win32/gdi32/misc/stubs.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/misc/stubs…
============================================================================== --- trunk/reactos/dll/win32/gdi32/misc/stubs.c (original) +++ trunk/reactos/dll/win32/gdi32/misc/stubs.c Fri Nov 23 04:38:54 2007 @@ -2491,12 +2491,14 @@ /* * @unimplemented */ + +/* FIXME wrong protypes, it is a fastcall api */ DWORD STDCALL -cGetTTFFromFOT(DWORD unknown) -{ - UNIMPLEMENTED; - SetLastError(ERROR_CALL_NOT_IMPLEMENTED); - return 0; -} - +cGetTTFFromFOT(DWORD x1 ,DWORD x2 ,DWORD x3, DWORD x4, DWORD x5, DWORD x6, DWORD x7) +{ + UNIMPLEMENTED; + SetLastError(ERROR_CALL_NOT_IMPLEMENTED); + return 0; +} +
17 years, 1 month
1
0
0
0
[tkreuzer] 30685: add cGetTTFFromFOT stub. I don't know the number of parameters, but this allows loading gdi32 on win xp using myapp.exe.local gdi32api test on win xp: 209 tests pass, 62 tests fail.
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Fri Nov 23 04:08:47 2007 New Revision: 30685 URL:
http://svn.reactos.org/svn/reactos?rev=30685&view=rev
Log: add cGetTTFFromFOT stub. I don't know the number of parameters, but this allows loading gdi32 on win xp using myapp.exe.local gdi32api test on win xp: 209 tests pass, 62 tests fail. Modified: trunk/reactos/dll/win32/gdi32/gdi32.def trunk/reactos/dll/win32/gdi32/misc/stubs.c Modified: trunk/reactos/dll/win32/gdi32/gdi32.def URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/gdi32.def?…
============================================================================== --- trunk/reactos/dll/win32/gdi32/gdi32.def (original) +++ trunk/reactos/dll/win32/gdi32/gdi32.def Fri Nov 23 04:08:47 2007 @@ -620,5 +620,5 @@ XLATEOBJ_piVector@4 bInitSystemAndFontsDirectoriesW@8 bMakePathNameW@16 -;cGetTTFFromFOT +cGetTTFFromFOT@4 gdiPlaySpoolStream@24 Modified: trunk/reactos/dll/win32/gdi32/misc/stubs.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/misc/stubs…
============================================================================== --- trunk/reactos/dll/win32/gdi32/misc/stubs.c (original) +++ trunk/reactos/dll/win32/gdi32/misc/stubs.c Fri Nov 23 04:08:47 2007 @@ -2488,9 +2488,15 @@ - - - - - - +/* + * @unimplemented + */ +DWORD +STDCALL +cGetTTFFromFOT(DWORD unknown) +{ + UNIMPLEMENTED; + SetLastError(ERROR_CALL_NOT_IMPLEMENTED); + return 0; +} +
17 years, 1 month
1
0
0
0
[greatlrd] 30684: patch from Kamil Hornicek tykef at atlas dot cz (irc nick : Pigglesworth) update the dx version number for ddraw.dll to same as windows xp ddraw.dll it help some program works.
by greatlrd@svn.reactos.org
Author: greatlrd Date: Fri Nov 23 01:26:04 2007 New Revision: 30684 URL:
http://svn.reactos.org/svn/reactos?rev=30684&view=rev
Log: patch from Kamil Hornicek tykef at atlas dot cz (irc nick : Pigglesworth) update the dx version number for ddraw.dll to same as windows xp ddraw.dll it help some program works. Modified: trunk/reactos/dll/directx/ddraw/ddraw.rc Modified: trunk/reactos/dll/directx/ddraw/ddraw.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/ddraw/ddraw.rc…
============================================================================== --- trunk/reactos/dll/directx/ddraw/ddraw.rc (original) +++ trunk/reactos/dll/directx/ddraw/ddraw.rc Fri Nov 23 01:26:04 2007 @@ -5,9 +5,9 @@ #define REACTOS_STR_INTERNAL_NAME "ddraw\0" #define REACTOS_STR_ORIGINAL_FILENAME "ddraw.dll\0" -#define REACTOS_FILEVERSION 5,3,0,900 -#define REACTOS_STR_FILE_VERSION "5.3.0.900" -#define REACTOS_PRODUCTVERSION 5,3,0,900 -#define REACTOS_STR_PRODUCT_VERSION "5.3" +#define REACTOS_FILEVERSION 5,3,2600,2180 +#define REACTOS_STR_FILE_VERSION "5.3.2600.2180" +#define REACTOS_PRODUCTVERSION 5,3,2600,2180 +#define REACTOS_STR_PRODUCT_VERSION "5.3.2600.2180" #include <reactos/version.rc>
17 years, 1 month
1
0
0
0
[tkreuzer] 30683: add fontview to bootcd and add ttf file association See issue #1411 for more details.
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Thu Nov 22 23:15:30 2007 New Revision: 30683 URL:
http://svn.reactos.org/svn/reactos?rev=30683&view=rev
Log: add fontview to bootcd and add ttf file association See issue #1411 for more details. Modified: trunk/reactos/boot/bootdata/hivecls.inf trunk/reactos/boot/bootdata/packages/reactos.dff Modified: trunk/reactos/boot/bootdata/hivecls.inf URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/bootdata/hivecls.inf?…
============================================================================== --- trunk/reactos/boot/bootdata/hivecls.inf (original) +++ trunk/reactos/boot/bootdata/hivecls.inf Thu Nov 22 23:15:30 2007 @@ -99,6 +99,7 @@ HKCR,".ttf","",0x00000000,"ttffile" HKCR,"ttffile","",0x00000000,"TrueType Font File" HKCR,"ttffile\DefaultIcon","",0x00020000,"%SystemRoot%\system32\shell32.dll,-156" +HKCR,"ttffile\shell\open\command","",0x00020000,"%SystemRoot%\system32\fontview.exe %1" ; Help Files HKCR,".hlp","",0x00000000,"hlpfile" Modified: trunk/reactos/boot/bootdata/packages/reactos.dff URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/bootdata/packages/rea…
============================================================================== --- trunk/reactos/boot/bootdata/packages/reactos.dff (original) +++ trunk/reactos/boot/bootdata/packages/reactos.dff Thu Nov 22 23:15:30 2007 @@ -484,6 +484,7 @@ modules\rosapps\dflat32\edit.exe 1 optional modules\rosapps\downloader\downloader.exe 1 optional modules\rosapps\downloader\downloader.xml 1 optional +modules\rosapps\fontview\fontview.exe 1 optional modules\rosapps\gettype\gettype.exe 1 optional modules\rosapps\green\green.sys 1 optional modules\rosapps\imagesoft\imagesoft.exe 1 optional
17 years, 1 month
1
0
0
0
[greatlrd] 30682: Implement DirectDrawEnumerateW, DirectDrawEnumerateExW they always return DDERR_UNSUPPORTED
by greatlrd@svn.reactos.org
Author: greatlrd Date: Thu Nov 22 22:36:16 2007 New Revision: 30682 URL:
http://svn.reactos.org/svn/reactos?rev=30682&view=rev
Log: Implement DirectDrawEnumerateW, DirectDrawEnumerateExW they always return DDERR_UNSUPPORTED Modified: trunk/reactos/dll/directx/ddraw/main.c Modified: trunk/reactos/dll/directx/ddraw/main.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/ddraw/main.c?r…
============================================================================== --- trunk/reactos/dll/directx/ddraw/main.c (original) +++ trunk/reactos/dll/directx/ddraw/main.c Thu Nov 22 22:36:16 2007 @@ -204,17 +204,6 @@ return retValue; } - -/* - * UNIMPLEMENT - */ - -HRESULT WINAPI DirectDrawEnumerateW(LPDDENUMCALLBACKW lpCallback, - LPVOID lpContext) -{ - DX_STUB; -} - /* * UNIMPLEMENT */ @@ -255,9 +244,13 @@ return DDERR_UNSUPPORTED; } -/* - * UNIMPLEMENT - */ +HRESULT +WINAPI +DirectDrawEnumerateW(LPDDENUMCALLBACKW lpCallback, + LPVOID lpContext) +{ + return DDERR_UNSUPPORTED; +} HRESULT WINAPI @@ -265,9 +258,11 @@ LPVOID lpContext, DWORD dwFlags) { - /* Note this function are not longer supported in ddraw in windows 2003 */ - DX_STUB; -} + return DDERR_UNSUPPORTED; +} + + + /* See
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/
@@ -376,7 +371,7 @@ (dp2command->bCommand >= D3DDP2OP_LINELIST) ) // dp2command->bCommand >= with 15 to 255 { /* set error code for command 0 to 3, 8 and 15 to 255 */ - retCode = E_FAIL; + retCode = DDERR_INVALIDPARAMS; } else { /* set error code for 4 - 7, 9 - 12, 14 */
17 years, 1 month
1
0
0
0
[greatlrd] 30681: Implement DirectDrawEnumerateA the DirectDrawEnumerateProcData struct are from wine. rest of the code are writen by me. the DirectDrawEnumerateExA are not finish but it is a start.
by greatlrd@svn.reactos.org
Author: greatlrd Date: Thu Nov 22 22:11:43 2007 New Revision: 30681 URL:
http://svn.reactos.org/svn/reactos?rev=30681&view=rev
Log: Implement DirectDrawEnumerateA the DirectDrawEnumerateProcData struct are from wine. rest of the code are writen by me. the DirectDrawEnumerateExA are not finish but it is a start. Modified: trunk/reactos/dll/directx/ddraw/main.c Modified: trunk/reactos/dll/directx/ddraw/main.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/ddraw/main.c?r…
============================================================================== --- trunk/reactos/dll/directx/ddraw/main.c (original) +++ trunk/reactos/dll/directx/ddraw/main.c Thu Nov 22 22:11:43 2007 @@ -12,6 +12,7 @@ #include "rosdraw.h" + /* PSEH for SEH Support */ #include <pseh/pseh.h> @@ -19,7 +20,23 @@ // This function is exported by the dll - +typedef struct +{ + LPVOID lpCallback; + LPVOID lpContext; +} DirectDrawEnumerateProcData; + +BOOL +CALLBACK +TranslateCallbackA(GUID *lpGUID, + LPSTR lpDriverDescription, + LPSTR lpDriverName, + LPVOID lpContext, + HMONITOR hm) +{ + DirectDrawEnumerateProcData *pEPD = (DirectDrawEnumerateProcData*)lpContext; + return ((LPDDENUMCALLBACKA) pEPD->lpCallback)(lpGUID, lpDriverDescription, lpDriverName, pEPD->lpContext); +} /*++ * @name DirectDrawCreateClipper @@ -163,28 +180,79 @@ return retVal; } +HRESULT +WINAPI +DirectDrawEnumerateA( LPDDENUMCALLBACKA lpCallback, + LPVOID lpContext) +{ + HRESULT retValue; + DirectDrawEnumerateProcData epd; + + DX_WINDBG_trace(); + + epd.lpCallback = (LPVOID) lpCallback; + epd.lpContext = lpContext; + + if (!IsBadCodePtr((LPVOID)lpCallback)) + { + return DirectDrawEnumerateExA((LPDDENUMCALLBACKEXA)TranslateCallbackA, &epd, DDENUM_NONDISPLAYDEVICES); + } + else + { + retValue = DDERR_INVALIDPARAMS; + } + return retValue; +} + + /* * UNIMPLEMENT */ -HRESULT -WINAPI -DirectDrawEnumerateA( - LPDDENUMCALLBACKA lpCallback, - LPVOID lpContext) +HRESULT WINAPI DirectDrawEnumerateW(LPDDENUMCALLBACKW lpCallback, + LPVOID lpContext) { DX_STUB; } - /* * UNIMPLEMENT */ -HRESULT WINAPI DirectDrawEnumerateW(LPDDENUMCALLBACKW lpCallback, - LPVOID lpContext) -{ - DX_STUB; +HRESULT +WINAPI +DirectDrawEnumerateExA(LPDDENUMCALLBACKEXA lpCallback, + LPVOID lpContext, + DWORD dwFlags) +{ + HKEY hKey; + DWORD cbData = 0; + DWORD Value = 0; + LONG rc; + BOOL EnumerateAttachedSecondaries = FALSE; + DWORD privateDWFlags = 0; + + DX_WINDBG_trace(); + + rc = RegOpenKeyA(HKEY_LOCAL_MACHINE, REGSTR_PATH_DDHW, &hKey); + if (rc == ERROR_SUCCESS) + { + /* Enumerate Attached Secondaries */ + cbData = sizeof(DWORD); + rc = RegQueryValueExA(hKey, "EnumerateAttachedSecondaries", NULL, NULL, (LPBYTE)&Value, &cbData); + if (rc == ERROR_SUCCESS) + { + if (Value != 0) + { + EnumerateAttachedSecondaries = TRUE; + privateDWFlags = DDENUM_ATTACHEDSECONDARYDEVICES; + } + } + RegCloseKey(hKey); + } + + // not finish + return DDERR_UNSUPPORTED; } /* @@ -193,23 +261,11 @@ HRESULT WINAPI -DirectDrawEnumerateExA(LPDDENUMCALLBACKEXA lpCallback, - LPVOID lpContext, - DWORD dwFlags) -{ - DX_STUB; -} - -/* - * UNIMPLEMENT - */ - -HRESULT -WINAPI DirectDrawEnumerateExW(LPDDENUMCALLBACKEXW lpCallback, LPVOID lpContext, DWORD dwFlags) { + /* Note this function are not longer supported in ddraw in windows 2003 */ DX_STUB; }
17 years, 1 month
1
0
0
0
← Newer
1
...
21
22
23
24
25
26
27
...
89
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
Results per page:
10
25
50
100
200