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
April 2006
----- 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
14 participants
324 discussions
Start a n
N
ew thread
[fireball] 21618: SVN Maintenance (eol-style: native)
by fireball@svn.reactos.org
Author: fireball Date: Sun Apr 16 23:15:04 2006 New Revision: 21618 URL:
http://svn.reactos.ru/svn/reactos?rev=21618&view=rev
Log: SVN Maintenance (eol-style: native) Modified: trunk/reactos/dll/win32/crypt32/crypt32_De.rc (contents, props changed) trunk/reactos/dll/win32/crypt32/crypt32_En.rc (contents, props changed) trunk/reactos/dll/win32/crypt32/crypt32_Ko.rc (contents, props changed) trunk/reactos/dll/win32/crypt32/crypt32_No.rc (contents, props changed) trunk/reactos/dll/win32/crypt32/cryptres.h (contents, props changed) trunk/reactos/dll/win32/crypt32/proplist.c (contents, props changed) trunk/reactos/dll/win32/crypt32/serialize.c (contents, props changed) trunk/reactos/dll/win32/crypt32/store.c (contents, props changed) trunk/reactos/dll/win32/crypt32/str.c (contents, props changed) [This mail would be too long, it was shortened to contain the URLs only.] Modified: trunk/reactos/dll/win32/crypt32/crypt32_De.rc URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/dll/win32/crypt32/crypt32_D…
Modified: trunk/reactos/dll/win32/crypt32/crypt32_En.rc URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/dll/win32/crypt32/crypt32_E…
Modified: trunk/reactos/dll/win32/crypt32/crypt32_Ko.rc URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/dll/win32/crypt32/crypt32_K…
Modified: trunk/reactos/dll/win32/crypt32/crypt32_No.rc URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/dll/win32/crypt32/crypt32_N…
Modified: trunk/reactos/dll/win32/crypt32/cryptres.h URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/dll/win32/crypt32/cryptres.…
Modified: trunk/reactos/dll/win32/crypt32/proplist.c URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/dll/win32/crypt32/proplist.…
Modified: trunk/reactos/dll/win32/crypt32/serialize.c URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/dll/win32/crypt32/serialize…
Modified: trunk/reactos/dll/win32/crypt32/store.c URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/dll/win32/crypt32/store.c?r…
Modified: trunk/reactos/dll/win32/crypt32/str.c URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/dll/win32/crypt32/str.c?rev…
18 years, 8 months
1
0
0
0
[fireball] 21616: - Update wincrypt.h to correspond to Wine-0.9.10
by fireball@svn.reactos.org
Author: fireball Date: Sun Apr 16 22:44:08 2006 New Revision: 21616 URL:
http://svn.reactos.ru/svn/reactos?rev=21616&view=rev
Log: - Update wincrypt.h to correspond to Wine-0.9.10 Modified: trunk/reactos/include/wincrypt.h [This mail would be too long, it was shortened to contain the URLs only.] Modified: trunk/reactos/include/wincrypt.h URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/include/wincrypt.h?rev=2161…
18 years, 8 months
1
0
0
0
[fireball] 21615: Sync to Wine-0_9_9: Juan Lang <juan_lang@yahoo.com> - wintrust: Add some stubs.
by fireball@svn.reactos.org
Author: fireball Date: Sun Apr 16 22:24:52 2006 New Revision: 21615 URL:
http://svn.reactos.ru/svn/reactos?rev=21615&view=rev
Log: Sync to Wine-0_9_9: Juan Lang <juan_lang(a)yahoo.com> - wintrust: Add some stubs. Modified: trunk/reactos/dll/win32/wintrust/wintrust.spec trunk/reactos/dll/win32/wintrust/wintrust_main.c trunk/reactos/include/wintrust.h trunk/reactos/media/doc/README.WINE Modified: trunk/reactos/dll/win32/wintrust/wintrust.spec URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/dll/win32/wintrust/wintrust…
============================================================================== --- trunk/reactos/dll/win32/wintrust/wintrust.spec (original) +++ trunk/reactos/dll/win32/wintrust/wintrust.spec Sun Apr 16 22:24:52 2006 @@ -82,10 +82,10 @@ @ stub WTHelperGetKnownUsages @ stub WTHelperGetProvCertFromChain @ stub WTHelperGetProvPrivateDataFromChain -@ stub WTHelperGetProvSignerFromChain +@ stdcall WTHelperGetProvSignerFromChain(ptr long long long) @ stub WTHelperIsInRootStore @ stub WTHelperOpenKnownStores -@ stub WTHelperProvDataFromStateData +@ stdcall WTHelperProvDataFromStateData(ptr) @ stub WVTAsn1CatMemberInfoDecode @ stub WVTAsn1CatMemberInfoEncode @ stub WVTAsn1CatNameValueDecode @@ -109,7 +109,7 @@ @ stub WVTAsn1SpcStatementTypeDecode @ stub WVTAsn1SpcStatementTypeEncode @ stdcall WinVerifyTrust(long ptr ptr) -@ stub WinVerifyTrustEx +@ stdcall WinVerifyTrustEx(long ptr ptr) @ stdcall WintrustAddActionID(ptr long ptr) @ stub WintrustAddDefaultForUsage @ stub WintrustCertificateTrust Modified: trunk/reactos/dll/win32/wintrust/wintrust_main.c URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/dll/win32/wintrust/wintrust…
============================================================================== --- trunk/reactos/dll/win32/wintrust/wintrust_main.c (original) +++ trunk/reactos/dll/win32/wintrust/wintrust_main.c Sun Apr 16 22:24:52 2006 @@ -94,6 +94,37 @@ } /*********************************************************************** + * WinVerifyTrustEx (WINTRUST.@) + */ +HRESULT WINAPI WinVerifyTrustEx( HWND hwnd, GUID *ActionID, + WINTRUST_DATA* ActionData ) +{ + FIXME("%p %s %p\n", hwnd, debugstr_guid(ActionID), ActionData); + return S_OK; +} + +/*********************************************************************** + * WTHelperGetProvSignerFromChain (WINTRUST.@) + */ +CRYPT_PROVIDER_SGNR * WINAPI WTHelperGetProvSignerFromChain( + CRYPT_PROVIDER_DATA *pProvData, DWORD idxSigner, BOOL fCounterSigner, + DWORD idxCounterSigner) +{ + FIXME("%p %ld %d %ld\n", pProvData, idxSigner, fCounterSigner, + idxCounterSigner); + return NULL; +} + +/*********************************************************************** + * WTHelperProvDataFromStateData (WINTRUST.@) + */ +CRYPT_PROVIDER_DATA * WINAPI WTHelperProvDataFromStateData(HANDLE hStateData) +{ + FIXME("%p\n", hStateData); + return NULL; +} + +/*********************************************************************** * WintrustAddActionID (WINTRUST.@) */ BOOL WINAPI WintrustAddActionID( GUID* pgActionID, DWORD fdwFlags, Modified: trunk/reactos/include/wintrust.h URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/include/wintrust.h?rev=2161…
============================================================================== --- trunk/reactos/include/wintrust.h (original) +++ trunk/reactos/include/wintrust.h Sun Apr 16 22:24:52 2006 @@ -121,6 +121,166 @@ CRYPT_TRUST_REG_ENTRY sCleanupProvider; } CRYPT_REGISTER_ACTIONID, *PCRYPT_REGISTER_ACTIONID; +typedef struct _CRYPT_PROVUI_DATA { + DWORD cbStruct; + DWORD dwFinalError; + WCHAR *pYesButtonText; + WCHAR *pNoButtonText; + WCHAR *pMoreInfoButtonText; + WCHAR *pAdvancedLinkText; + WCHAR *pCopyActionText; + WCHAR *pCopyActionTextNoTS; + WCHAR *pCopyActionTextNotSigned; +} CRYPT_PROVUI_DATA, *PCRYPT_PROVUI_DATA; + +typedef struct _CRYPT_PROVIDER_CERT { + DWORD cbStruct; + PCCERT_CONTEXT pCert; + BOOL fCommercial; + BOOL fTrustedRoot; + BOOL fSelfSigned; + BOOL fTestCert; + DWORD dwRevokedReason; + DWORD dwConfidence; + DWORD dwError; + CTL_CONTEXT *pTrustListContext; + BOOL fTrustListSignerCert; + PCCTL_CONTEXT pCtlContext; + DWORD dwCtlError; + BOOL fIsCyclic; + PCERT_CHAIN_ELEMENT pChainElement; +} CRYPT_PROVIDER_CERT, *PCRYPT_PROVIDER_CERT; + +typedef struct _CRYPT_PROVIDER_SGNR { + DWORD cbStruct; + FILETIME sftVerifyAsOf; + DWORD csCertChain; + CRYPT_PROVIDER_CERT *pasCertChain; + DWORD dwSignerType; + CMSG_SIGNER_INFO *psSigner; + DWORD dwError; + DWORD csCounterSigners; + struct _CRYPT_PROVIDER_SGNR *pasCounterSigners; + PCCERT_CHAIN_CONTEXT pChainContext; +} CRYPT_PROVIDER_SGNR, *PCRYPT_PROVIDER_SGNR; + +typedef struct _CRYPT_PROVIDER_PRIVDATA { + DWORD cbStruct; + GUID gProviderID; + DWORD cbProvData; + void *pvProvData; +} CRYPT_PROVIDER_PRIVDATA, *PCRYPT_PROVIDER_PRIVDATA; + +struct _CRYPT_PROVIDER_DATA; + +typedef void * (*PFN_CPD_MEM_ALLOC)(DWORD cbSize); +typedef void (*PFN_CPD_MEM_FREE)(void *pvMem2Free); +typedef BOOL (*PFN_CPD_ADD_STORE)(struct _CRYPT_PROVIDER_DATA *pProvData, + HCERTSTORE hStore2Add); +typedef BOOL (*PFN_CPD_ADD_SGNR)(struct _CRYPT_PROVIDER_DATA *pProvData, + BOOL fCounterSigner, DWORD idxSigner, struct _CRYPT_PROVIDER_SGNR *pSgnr2Add); +typedef BOOL (*PFN_CPD_ADD_CERT)(struct _CRYPT_PROVIDER_DATA *pProvData, + DWORD idxSigner, BOOL fCounterSigner, DWORD idxCounterSigner, + PCCERT_CONTEXT pCert2Add); +typedef BOOL (*PFN_CPD_ADD_PRIVDATA)(struct _CRYPT_PROVIDER_DATA *pProvData, + struct _CRYPT_PROVIDER_PRIVDATA *pPrivData2Add); +typedef HRESULT (*PFN_PROVIDER_INIT_CALL)( + struct _CRYPT_PROVIDER_DATA *pProvData); +typedef HRESULT (*PFN_PROVIDER_OBJTRUST_CALL)( + struct _CRYPT_PROVIDER_DATA *pProvData); +typedef HRESULT (*PFN_PROVIDER_SIGTRUST_CALL)( + struct _CRYPT_PROVIDER_DATA *pProvData); +typedef HRESULT (*PFN_PROVIDER_CERTTTRUST_CALL)( + struct _CRYPT_PROVIDER_DATA *pProvData); +typedef HRESULT (*PFN_PROVIDER_FINALPOLICY_CALL)( + struct _CRYPT_PROVIDER_DATA *pProvData); +typedef HRESULT (*PFN_PROVIDER_TESTFINALPOLICY_CALL)( + struct _CRYPT_PROVIDER_DATA *pProvData); +typedef HRESULT (*PFN_PROVIDER_CLEANUP_CALL)( + struct _CRYPT_PROVIDER_DATA *pProvData); +typedef BOOL (*PFN_PROVIDER_CERTCHKPOLICY_CALL)( + struct _CRYPT_PROVIDER_DATA *pProvData, DWORD idxSigner, + BOOL fCounterSignerChain, DWORD idxCounterSigner); + +typedef struct _CRYPT_PROVIDER_FUNCTIONS { + DWORD cbStruct; + PFN_CPD_MEM_ALLOC pfnAlloc; + PFN_CPD_MEM_FREE pfnFree; + PFN_CPD_ADD_STORE pfnAddStore2Chain; + PFN_CPD_ADD_SGNR pfnAddSgnr2Chain; + PFN_CPD_ADD_CERT pfnAddCert2Chain; + PFN_CPD_ADD_PRIVDATA pfnAddPrivData2Chain; + PFN_PROVIDER_INIT_CALL pfnInitialize; + PFN_PROVIDER_OBJTRUST_CALL pfnObjectTrust; + PFN_PROVIDER_SIGTRUST_CALL pfnSignatureTrust; + PFN_PROVIDER_CERTTTRUST_CALL pfnCertificateTrust; + PFN_PROVIDER_FINALPOLICY_CALL pfnFinalPolicy; + PFN_PROVIDER_CERTCHKPOLICY_CALL pfnCertCheckPolicy; + PFN_PROVIDER_TESTFINALPOLICY_CALL pfnTestFinalPolicy; + struct _CRYPT_PROVUI_FUNCS *psUIpfns; + PFN_PROVIDER_CLEANUP_CALL pfnCleanupPolicy; +} CRYPT_PROVIDER_FUNCTIONS, *PCRYPT_PROVIDER_FUNCTIONS; + +struct SIP_DISPATCH_INFO_; +struct SIP_SUBJECTINFO_; +struct SIP_INDIRECT_DATA_; + +typedef struct _PROVDATA_SIP { + DWORD cbStruct; + GUID gSubject; + struct SIP_DISPATCH_INFO_ *pSip; + struct SIP_DISPATCH_INFO_ *pCATSip; + struct SIP_SUBJECTINFO_ *psSipSubjectInfo; + struct SIP_SUBJECTINFO_ *psSipCATSubjectInfo; + struct SIP_INDIRECT_DATA_ *psIndirectData; +} PROVDATA_SIP, *PPROVDATA_SIP; + +typedef struct _CRYPT_PROVIDER_DATA { + DWORD cbStruct; + WINTRUST_DATA *pWintrustData; + BOOL fOpenedFile; + HWND hWndParent; + GUID *pgActionID; + HCRYPTPROV hProv; + DWORD dwError; + DWORD dwRegSecuritySettings; + DWORD dwRegPolicySettings; + CRYPT_PROVIDER_FUNCTIONS *psPfns; + DWORD cdwTrustStepErrors; + DWORD *padwTrustStepErrors; + DWORD chStores; + HCERTSTORE *pahStores; + DWORD dwEncoding; + HCRYPTMSG hMsg; + DWORD csSigners; + CRYPT_PROVIDER_SGNR *pasSigners; + DWORD dwSubjectChoice; + union { + struct _PROVDATA_SIP *pPDSip; + } DUMMYUNIONNAME; + char *pszUsageOID; + BOOL fRecallWithState; + FILETIME sftSystemTime; + char *pszCTLSignerUsageOID; + DWORD dwProvFlags; + DWORD dwFinalError; + PCERT_USAGE_MATCH pRequestUsage; + DWORD dwTrustPubSettings; + DWORD dwUIStateFlags; +} CRYPT_PROVIDER_DATA, *PCRYPT_PROVIDER_DATA; + +typedef BOOL (*PFN_PROVUI_CALL)(HWND hWndSecurityDialog, + struct _CRYPT_PROVIDER_DATA *pProvData); + +typedef struct _CRYPT_PROVUI_FUNCS { + DWORD cbStruct; + CRYPT_PROVUI_DATA psUIData; + PFN_PROVUI_CALL pfnOnMoreInfoClick; + PFN_PROVUI_CALL pfnOnMoreInfoClickDefault; + PFN_PROVUI_CALL pfnOnAdvancedClick; + PFN_PROVUI_CALL pfnOnAdvancedClickDefault; +} CRYPT_PROVUI_FUNCS, *PCRYPT_PROVUI_FUNCS; + #include <poppack.h> @@ -131,6 +291,12 @@ BOOL WINAPI WintrustAddActionID(GUID*,DWORD,CRYPT_REGISTER_ACTIONID*); void WINAPI WintrustGetRegPolicyFlags(DWORD*); LONG WINAPI WinVerifyTrust(HWND,GUID*,WINTRUST_DATA*); +HRESULT WINAPI WinVerifyTrustEx(HWND,GUID*,WINTRUST_DATA*); + +CRYPT_PROVIDER_SGNR * WINAPI WTHelperGetProvSignerFromChain( + CRYPT_PROVIDER_DATA *pProvData, DWORD idxSigner, BOOL fCounterSigner, + DWORD idxCounterSigner); +CRYPT_PROVIDER_DATA * WINAPI WTHelperProvDataFromStateData(HANDLE hStateData); #ifdef __cplusplus } Modified: trunk/reactos/media/doc/README.WINE URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/media/doc/README.WINE?rev=2…
============================================================================== --- trunk/reactos/media/doc/README.WINE (original) +++ trunk/reactos/media/doc/README.WINE Sun Apr 16 22:24:52 2006 @@ -75,7 +75,7 @@ reactos/dll/win32/uxtheme # Synced to Wine-0_9_5 reactos/dll/win32/version # Out of sync reactos/dll/win32/wininet # Synced to Wine-0_9_5 -reactos/dll/win32/wintrust # Synced to Wine-0_9_5 +reactos/dll/win32/wintrust # Synced to Wine-0_9_10 reactos/dll/win32/winmm # Forked at Wine-20050628 reactos/dll/win32/winmm/midimap # Forked at Wine-20050628 reactos/dll/win32/winmm/wavemap # Forked at Wine-20050628
18 years, 8 months
1
0
0
0
[fireball] 21614: Sync to Wine-0_9_10: Francois Gouget <fgouget@free.fr> - Fix compatibility with native advpack dlls. Sync to Wine-0_9_7: Dmitry Timoshkov <dmitry@codeweavers.com> - Make more arrays const. Sync to Wine-0_9_6: Jacek Caban <jacek@codeweavers.com> - urlmon: Pass FORMATETC to OnDataAvailable. - urlmon: Added implementation of protocol stream. - urlmon: Added implementation of QueryService and stub implementation of IHttpNegotiate2 interface. - urlmon: Query service provider for IIn
by fireball@svn.reactos.org
Author: fireball Date: Sun Apr 16 21:34:25 2006 New Revision: 21614 URL:
http://svn.reactos.ru/svn/reactos?rev=21614&view=rev
Log: Sync to Wine-0_9_10: Francois Gouget <fgouget(a)free.fr> - Fix compatibility with native advpack dlls. Sync to Wine-0_9_7: Dmitry Timoshkov <dmitry(a)codeweavers.com> - Make more arrays const. Sync to Wine-0_9_6: Jacek Caban <jacek(a)codeweavers.com> - urlmon: Pass FORMATETC to OnDataAvailable. - urlmon: Added implementation of protocol stream. - urlmon: Added implementation of QueryService and stub implementation of IHttpNegotiate2 interface. - urlmon: Query service provider for IInternetProtocol. - urlmon: Added GetBindInfoString implementation. - urlmon: Reimplement CoInternetCombineUrl to use pluggable protocol. - urlmon: Use CoInternetCombineUrl in URLMonikerImpl_Construct. - urlmon: Fix ref counting. Rolf Kalbermatter <rolf.kalbermatter(a)citeng.com> - urlmon: Fix a LARGE_INTEGER truncation. Modified: trunk/reactos/dll/win32/urlmon/binding.c trunk/reactos/dll/win32/urlmon/internet.c trunk/reactos/dll/win32/urlmon/regsvr.c trunk/reactos/dll/win32/urlmon/umon.c trunk/reactos/dll/win32/urlmon/umstream.c trunk/reactos/dll/win32/urlmon/urlmon_main.c trunk/reactos/include/advpub.h trunk/reactos/media/doc/README.WINE Modified: trunk/reactos/dll/win32/urlmon/binding.c URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/dll/win32/urlmon/binding.c?…
============================================================================== --- trunk/reactos/dll/win32/urlmon/binding.c (original) +++ trunk/reactos/dll/win32/urlmon/binding.c Sun Apr 16 21:34:25 2006 @@ -34,6 +34,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(urlmon); +typedef struct ProtocolStream ProtocolStream; + typedef struct { const IBindingVtbl *lpBindingVtbl; const IInternetProtocolSinkVtbl *lpInternetProtocolSinkVtbl; @@ -44,7 +46,8 @@ IBindStatusCallback *callback; IInternetProtocol *protocol; - IStream *stream; + IServiceProvider *service_provider; + ProtocolStream *stream; BINDINFO bindinfo; DWORD bindf; @@ -52,13 +55,311 @@ LPWSTR url; } Binding; +struct ProtocolStream { + const IStreamVtbl *lpStreamVtbl; + + LONG ref; + + IInternetProtocol *protocol; + + BYTE buf[1024*8]; + DWORD buf_size; +}; + #define BINDING(x) ((IBinding*) &(x)->lpBindingVtbl) #define PROTSINK(x) ((IInternetProtocolSink*) &(x)->lpInternetProtocolSinkVtbl) #define BINDINF(x) ((IInternetBindInfo*) &(x)->lpInternetBindInfoVtbl) #define SERVPROV(x) ((IServiceProvider*) &(x)->lpServiceProviderVtbl) +#define STREAM(x) ((IStream*) &(x)->lpStreamVtbl) + +static HRESULT WINAPI HttpNegotiate_QueryInterface(IHttpNegotiate2 *iface, + REFIID riid, void **ppv) +{ + *ppv = NULL; + + if(IsEqualGUID(&IID_IUnknown, riid)) { + TRACE("(IID_IUnknown %p)\n", ppv); + *ppv = iface; + }else if(IsEqualGUID(&IID_IHttpNegotiate, riid)) { + TRACE("(IID_IHttpNegotiate %p)\n", ppv); + *ppv = iface; + }else if(IsEqualGUID(&IID_IHttpNegotiate2, riid)) { + TRACE("(IID_IHttpNegotiate2 %p)\n", ppv); + *ppv = iface; + } + + if(*ppv) { + IHttpNegotiate2_AddRef(iface); + return S_OK; + } + + WARN("Unsupported interface %s\n", debugstr_guid(riid)); + return E_NOINTERFACE; +} + +static ULONG WINAPI HttpNegotiate_AddRef(IHttpNegotiate2 *iface) +{ + URLMON_LockModule(); + return 2; +} + +static ULONG WINAPI HttpNegotiate_Release(IHttpNegotiate2 *iface) +{ + URLMON_UnlockModule(); + return 1; +} + +static HRESULT WINAPI HttpNegotiate_BeginningTransaction(IHttpNegotiate2 *iface, + LPCWSTR szURL, LPCWSTR szHeaders, DWORD dwReserved, LPWSTR *pszAdditionalHeaders) +{ + FIXME("(%s %s %ld %p)\n", debugstr_w(szURL), debugstr_w(szHeaders), dwReserved, + pszAdditionalHeaders); + return E_NOTIMPL; +} + +static HRESULT WINAPI HttpNegotiate_OnResponse(IHttpNegotiate2 *iface, DWORD dwResponseCode, + LPCWSTR szResponseHeaders, LPCWSTR szRequestHeaders, + LPWSTR *pszAdditionalRequestHeaders) +{ + FIXME("(%ld %s %s %p)\n", dwResponseCode, debugstr_w(szResponseHeaders), + debugstr_w(szRequestHeaders), pszAdditionalRequestHeaders); + return E_NOTIMPL; +} + +static HRESULT WINAPI HttpNegotiate_GetRootSecurityId(IHttpNegotiate2 *iface, + BYTE *pbSecurityId, DWORD *pcbSecurityId, DWORD_PTR dwReserved) +{ + FIXME("(%p %p %ld)\n", pbSecurityId, pcbSecurityId, dwReserved); + return E_NOTIMPL; +} + +static const IHttpNegotiate2Vtbl HttpNegotiate2Vtbl = { + HttpNegotiate_QueryInterface, + HttpNegotiate_AddRef, + HttpNegotiate_Release, + HttpNegotiate_BeginningTransaction, + HttpNegotiate_OnResponse, + HttpNegotiate_GetRootSecurityId +}; + +static IHttpNegotiate2 HttpNegotiate = { &HttpNegotiate2Vtbl }; + +#define STREAM_THIS(iface) DEFINE_THIS(ProtocolStream, Stream, iface) + +static HRESULT WINAPI ProtocolStream_QueryInterface(IStream *iface, + REFIID riid, void **ppv) +{ + ProtocolStream *This = STREAM_THIS(iface); + + *ppv = NULL; + + if(IsEqualGUID(&IID_IUnknown, riid)) { + TRACE("(%p)->(IID_IUnknown %p)\n", This, ppv); + *ppv = STREAM(This); + }else if(IsEqualGUID(&IID_ISequentialStream, riid)) { + TRACE("(%p)->(IID_ISequentialStream %p)\n", This, ppv); + *ppv = STREAM(This); + }else if(IsEqualGUID(&IID_IStream, riid)) { + TRACE("(%p)->(IID_IStream %p)\n", This, ppv); + *ppv = STREAM(This); + } + + if(*ppv) { + IStream_AddRef(STREAM(This)); + return S_OK; + } + + WARN("(%p)->(%s %p)\n", This, debugstr_guid(riid), ppv); + return E_NOINTERFACE; +} + +static ULONG WINAPI ProtocolStream_AddRef(IStream *iface) +{ + ProtocolStream *This = STREAM_THIS(iface); + LONG ref = InterlockedIncrement(&This->ref); + + TRACE("(%p) ref=%ld\n", This, ref); + + return ref; +} + +static ULONG WINAPI ProtocolStream_Release(IStream *iface) +{ + ProtocolStream *This = STREAM_THIS(iface); + LONG ref = InterlockedDecrement(&This->ref); + + TRACE("(%p) ref=%ld\n", This, ref); + + if(!ref) { + IInternetProtocol_Release(This->protocol); + HeapFree(GetProcessHeap(), 0, This); + + URLMON_UnlockModule(); + } + + return ref; +} + +static HRESULT WINAPI ProtocolStream_Read(IStream *iface, void *pv, + ULONG cb, ULONG *pcbRead) +{ + ProtocolStream *This = STREAM_THIS(iface); + DWORD read = 0, pread = 0; + + TRACE("(%p)->(%p %ld %p)\n", This, pv, cb, pcbRead); + + if(This->buf_size) { + read = cb; + + if(read > This->buf_size) + read = This->buf_size; + + memcpy(pv, This->buf, read); + + if(read < This->buf_size) + memmove(This->buf, This->buf+read, This->buf_size-read); + This->buf_size -= read; + } + + if(read == cb) { + *pcbRead = read; + return S_OK; + } + + IInternetProtocol_Read(This->protocol, (PBYTE)pv+read, cb-read, &pread); + *pcbRead = read + pread; + + return read || pread ? S_OK : S_FALSE; +} + +static HRESULT WINAPI ProtocolStream_Write(IStream *iface, const void *pv, + ULONG cb, ULONG *pcbWritten) +{ + ProtocolStream *This = STREAM_THIS(iface); + + TRACE("(%p)->(%p %ld %p)\n", This, pv, cb, pcbWritten); + + return STG_E_ACCESSDENIED; +} + +static HRESULT WINAPI ProtocolStream_Seek(IStream *iface, LARGE_INTEGER dlibMove, + DWORD dwOrigin, ULARGE_INTEGER *plibNewPosition) +{ + ProtocolStream *This = STREAM_THIS(iface); + FIXME("(%p)->(%ld %08lx %p)\n", This, dlibMove.u.LowPart, dwOrigin, plibNewPosition); + return E_NOTIMPL; +} + +static HRESULT WINAPI ProtocolStream_SetSize(IStream *iface, ULARGE_INTEGER libNewSize) +{ + ProtocolStream *This = STREAM_THIS(iface); + FIXME("(%p)->(%ld)\n", This, libNewSize.u.LowPart); + return E_NOTIMPL; +} + +static HRESULT WINAPI ProtocolStream_CopyTo(IStream *iface, IStream *pstm, + ULARGE_INTEGER cb, ULARGE_INTEGER *pcbRead, ULARGE_INTEGER *pcbWritten) +{ + ProtocolStream *This = STREAM_THIS(iface); + FIXME("(%p)->(%p %ld %p %p)\n", This, pstm, cb.u.LowPart, pcbRead, pcbWritten); + return E_NOTIMPL; +} + +static HRESULT WINAPI ProtocolStream_Commit(IStream *iface, DWORD grfCommitFlags) +{ + ProtocolStream *This = STREAM_THIS(iface); + + TRACE("(%p)->(%08lx)\n", This, grfCommitFlags); + + return E_NOTIMPL; +} + +static HRESULT WINAPI ProtocolStream_Revert(IStream *iface) +{ + ProtocolStream *This = STREAM_THIS(iface); + + TRACE("(%p)\n", This); + + return E_NOTIMPL; +} + +static HRESULT WINAPI ProtocolStream_LockRegion(IStream *iface, ULARGE_INTEGER libOffset, + ULARGE_INTEGER cb, DWORD dwLockType) +{ + ProtocolStream *This = STREAM_THIS(iface); + FIXME("(%p)->(%ld %ld %ld)\n", This, libOffset.u.LowPart, cb.u.LowPart, dwLockType); + return E_NOTIMPL; +} + +static HRESULT WINAPI ProtocolStream_UnlockRegion(IStream *iface, + ULARGE_INTEGER libOffset, ULARGE_INTEGER cb, DWORD dwLockType) +{ + ProtocolStream *This = STREAM_THIS(iface); + FIXME("(%p)->(%ld %ld %ld)\n", This, libOffset.u.LowPart, cb.u.LowPart, dwLockType); + return E_NOTIMPL; +} + +static HRESULT WINAPI ProtocolStream_Stat(IStream *iface, STATSTG *pstatstg, + DWORD dwStatFlag) +{ + ProtocolStream *This = STREAM_THIS(iface); + FIXME("(%p)->(%p %08lx)\n", This, pstatstg, dwStatFlag); + return E_NOTIMPL; +} + +static HRESULT WINAPI ProtocolStream_Clone(IStream *iface, IStream **ppstm) +{ + ProtocolStream *This = STREAM_THIS(iface); + FIXME("(%p)->(%p)\n", This, ppstm); + return E_NOTIMPL; +} + +#undef STREAM_THIS + +static const IStreamVtbl ProtocolStreamVtbl = { + ProtocolStream_QueryInterface, + ProtocolStream_AddRef, + ProtocolStream_Release, + ProtocolStream_Read, + ProtocolStream_Write, + ProtocolStream_Seek, + ProtocolStream_SetSize, + ProtocolStream_CopyTo, + ProtocolStream_Commit, + ProtocolStream_Revert, + ProtocolStream_LockRegion, + ProtocolStream_UnlockRegion, + ProtocolStream_Stat, + ProtocolStream_Clone +}; #define BINDING_THIS(iface) DEFINE_THIS(Binding, Binding, iface) + +static ProtocolStream *create_stream(IInternetProtocol *protocol) +{ + ProtocolStream *ret = HeapAlloc(GetProcessHeap(), 0, sizeof(ProtocolStream)); + + ret->lpStreamVtbl = &ProtocolStreamVtbl; + ret->ref = 1; + ret->buf_size = 0; + + IInternetProtocol_AddRef(protocol); + ret->protocol = protocol; + + URLMON_LockModule(); + + return ret; +} + +static void fill_stream_buffer(ProtocolStream *This) +{ + DWORD read = 0; + + IInternetProtocol_Read(This->protocol, This->buf+This->buf_size, + sizeof(This->buf)-This->buf_size, &read); + This->buf_size += read; +} static HRESULT WINAPI Binding_QueryInterface(IBinding *iface, REFIID riid, void **ppv) { @@ -83,8 +384,10 @@ *ppv = SERVPROV(This); } - if(*ppv) + if(*ppv) { + IBinding_AddRef(BINDING(This)); return S_OK; + } WARN("Unsupported interface %s\n", debugstr_guid(riid)); return E_NOINTERFACE; @@ -112,14 +415,18 @@ IBindStatusCallback_Release(This->callback); if(This->protocol) IInternetProtocol_Release(This->protocol); + if(This->service_provider) + IServiceProvider_Release(This->service_provider); if(This->stream) - IStream_Release(This->stream); + IStream_Release(STREAM(This->stream)); ReleaseBindInfo(&This->bindinfo); HeapFree(GetProcessHeap(), 0, This->mime); HeapFree(GetProcessHeap(), 0, This->url); HeapFree(GetProcessHeap(), 0, This); + + URLMON_UnlockModule(); } return ref; @@ -247,9 +554,8 @@ DWORD grfBSCF, ULONG ulProgress, ULONG ulProgressMax) { Binding *This = PROTSINK_THIS(iface); - DWORD read = 0, cread; STGMEDIUM stgmed; - BYTE buf[1024]; + FORMATETC formatetc; TRACE("(%p)->(%ld %lu %lu)\n", This, grfBSCF, ulProgress, ulProgressMax); @@ -267,18 +573,20 @@ if(grfBSCF & BSCF_FIRSTDATANOTIFICATION) IInternetProtocol_LockRequest(This->protocol, 0); - do { - cread = 0; - IInternetProtocol_Read(This->protocol, buf, sizeof(buf), &cread); - IStream_Write(This->stream, buf, read, NULL); - read += cread; - }while(cread); + + fill_stream_buffer(This->stream); stgmed.tymed = TYMED_ISTREAM; - stgmed.u.pstm = This->stream; - - IBindStatusCallback_OnDataAvailable(This->callback, grfBSCF, read, - NULL /* FIXME */, &stgmed); + stgmed.u.pstm = STREAM(This->stream); + + formatetc.cfFormat = 0; /* FIXME */ + formatetc.ptd = NULL; + formatetc.dwAspect = 1; + formatetc.lindex = -1; + formatetc.tymed = TYMED_ISTREAM; + + IBindStatusCallback_OnDataAvailable(This->callback, grfBSCF, This->stream->buf_size, + &formatetc, &stgmed); if(grfBSCF & BSCF_LASTDATANOTIFICATION) IBindStatusCallback_OnStopBinding(This->callback, S_OK, NULL); @@ -351,7 +659,39 @@ ULONG ulStringType, LPOLESTR *ppwzStr, ULONG cEl, ULONG *pcElFetched) { Binding *This = BINDINF_THIS(iface); - FIXME("(%p)->(%ld %p %ld %p)\n", This, ulStringType, ppwzStr, cEl, pcElFetched); + + TRACE("(%p)->(%ld %p %ld %p)\n", This, ulStringType, ppwzStr, cEl, pcElFetched); + + switch(ulStringType) { + case BINDSTRING_ACCEPT_MIMES: { + static const WCHAR wszMimes[] = {'*','/','*',0}; + + if(!ppwzStr || !pcElFetched) + return E_INVALIDARG; + + ppwzStr[0] = CoTaskMemAlloc(sizeof(wszMimes)); + memcpy(ppwzStr[0], wszMimes, sizeof(wszMimes)); + *pcElFetched = 1; + return S_OK; + } + case BINDSTRING_USER_AGENT: { + IInternetBindInfo *bindinfo = NULL; + HRESULT hres; + + hres = IBindStatusCallback_QueryInterface(This->callback, &IID_IInternetBindInfo, + (void**)&bindinfo); + if(FAILED(hres)) + return hres; + + hres = IInternetBindInfo_GetBindString(bindinfo, ulStringType, ppwzStr, + cEl, pcElFetched); + IInternetBindInfo_Release(bindinfo); + + return hres; + } + } + + FIXME("not supported string type %ld\n", ulStringType); return E_NOTIMPL; } @@ -390,7 +730,22 @@ REFGUID guidService, REFIID riid, void **ppv) { Binding *This = SERVPROV_THIS(iface); - FIXME("(%p)->(%s %s %p)\n", This, debugstr_guid(guidService), debugstr_guid(riid), ppv); + HRESULT hres; + + TRACE("(%p)->(%s %s %p)\n", This, debugstr_guid(guidService), debugstr_guid(riid), ppv); + + if(This->service_provider) { + hres = IServiceProvider_QueryService(This->service_provider, guidService, + riid, ppv); + if(SUCCEEDED(hres)) + return hres; + } + + if(IsEqualGUID(&IID_IHttpNegotiate, guidService) + || IsEqualGUID(&IID_IHttpNegotiate2, guidService)) + return IHttpNegotiate2_QueryInterface(&HttpNegotiate, riid, ppv); + + WARN("unknown service %s\n", debugstr_guid(guidService)); return E_NOTIMPL; } @@ -427,6 +782,13 @@ if(SUCCEEDED(hres)) return S_OK; + if(This->service_provider) { + hres = IServiceProvider_QueryService(This->service_provider, &IID_IInternetProtocol, + &IID_IInternetProtocol, (void**)&This->protocol); + if(SUCCEEDED(hres)) + return S_OK; + } + hres = get_protocol_iface(url, &unk); if(FAILED(hres)) return hres; @@ -455,6 +817,8 @@ return E_NOTIMPL; } + URLMON_LockModule(); + ret = HeapAlloc(GetProcessHeap(), 0, sizeof(Binding)); ret->lpBindingVtbl = &BindingVtbl; @@ -466,6 +830,7 @@ ret->callback = NULL; ret->protocol = NULL; + ret->service_provider = NULL; ret->stream = NULL; ret->mime = NULL; ret->url = NULL; @@ -481,6 +846,9 @@ return hres; } + IBindStatusCallback_QueryInterface(ret->callback, &IID_IServiceProvider, + (void**)&ret->service_provider); + hres = get_protocol(ret, url); if(FAILED(hres)) { WARN("Could not get protocol handler\n"); @@ -505,7 +873,7 @@ ret->url = HeapAlloc(GetProcessHeap(), 0, len*sizeof(WCHAR)); memcpy(ret->url, url, len*sizeof(WCHAR)); - CreateStreamOnHGlobal(NULL, TRUE, &ret->stream); + ret->stream = create_stream(ret->protocol); *binding = ret; return S_OK; @@ -541,7 +909,7 @@ IBindStatusCallback_OnStopBinding(binding->callback, S_OK, NULL); } - IStream_AddRef(binding->stream); + IStream_AddRef(STREAM(binding->stream)); *ppv = binding->stream; IBinding_Release(BINDING(binding)); Modified: trunk/reactos/dll/win32/urlmon/internet.c URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/dll/win32/urlmon/internet.c…
============================================================================== --- trunk/reactos/dll/win32/urlmon/internet.c (original) +++ trunk/reactos/dll/win32/urlmon/internet.c Sun Apr 16 21:34:25 2006 @@ -166,7 +166,9 @@ return E_FAIL; } - +/************************************************************************** + * CoInternetParseUrl (URLMON.@) + */ HRESULT WINAPI CoInternetParseUrl(LPCWSTR pwzUrl, PARSEACTION ParseAction, DWORD dwFlags, LPWSTR pszResult, DWORD cchResult, DWORD *pcchResult, DWORD dwReserved) { @@ -190,3 +192,36 @@ return E_NOTIMPL; } + +/************************************************************************** + * CoInternetCombineUrl (URLMON.@) + */ +HRESULT WINAPI CoInternetCombineUrl(LPCWSTR pwzBaseUrl, LPCWSTR pwzRelativeUrl, + DWORD dwCombineFlags, LPWSTR pwzResult, DWORD cchResult, DWORD *pcchResult, + DWORD dwReserved) +{ + IInternetProtocolInfo *protocol_info; + DWORD size = cchResult; + HRESULT hres; + + TRACE("(%s,%s,0x%08lx,%p,%ld,%p,%ld)\n", debugstr_w(pwzBaseUrl), + debugstr_w(pwzRelativeUrl), dwCombineFlags, pwzResult, cchResult, pcchResult, + dwReserved); + + protocol_info = get_protocol_info(pwzBaseUrl); + + if(protocol_info) { + hres = IInternetProtocolInfo_CombineUrl(protocol_info, pwzBaseUrl, pwzRelativeUrl, + dwCombineFlags, pwzResult, cchResult, pcchResult, dwReserved); + if(SUCCEEDED(hres)) + return hres; + } + + + hres = UrlCombineW(pwzBaseUrl, pwzRelativeUrl, pwzResult, &size, dwCombineFlags); + + if(pcchResult) + *pcchResult = size; + + return hres; +} Modified: trunk/reactos/dll/win32/urlmon/regsvr.c URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/dll/win32/urlmon/regsvr.c?r…
============================================================================== --- trunk/reactos/dll/win32/urlmon/regsvr.c (original) +++ trunk/reactos/dll/win32/urlmon/regsvr.c Sun Apr 16 21:34:25 2006 @@ -580,9 +580,9 @@ { HRESULT hres; HMODULE hAdvpack; - typeof(RegInstall) *pRegInstall; - STRTABLE strtable; - STRENTRY pse[7]; + typeof(RegInstallA) *pRegInstall; + STRTABLEA strtable; + STRENTRYA pse[7]; static CLSID const *clsids[34]; int i = 0; @@ -608,7 +608,7 @@ strtable.pse = pse; hAdvpack = LoadLibraryW(wszAdvpack); - pRegInstall = (typeof(RegInstall)*)GetProcAddress(hAdvpack, "RegInstall"); + pRegInstall = (typeof(RegInstallA)*)GetProcAddress(hAdvpack, "RegInstall"); hres = pRegInstall(URLMON_hInstance, doregister ? "RegisterDll" : "UnregisterDll", &strtable); Modified: trunk/reactos/dll/win32/urlmon/umon.c URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/dll/win32/urlmon/umon.c?rev…
============================================================================== --- trunk/reactos/dll/win32/urlmon/umon.c (original) +++ trunk/reactos/dll/win32/urlmon/umon.c Sun Apr 16 21:34:25 2006 @@ -259,7 +259,7 @@ 0, NULL); if (!pwchError) { - static WCHAR achFormat[] = { '%', '0', '8', 'x', 0 }; + static const WCHAR achFormat[] = { '%', '0', '8', 'x', 0 }; pwchError =(WCHAR *) LocalAlloc(LMEM_FIXED, sizeof(WCHAR) * 9); wsprintfW(pwchError, achFormat, hr); @@ -1065,29 +1065,19 @@ DWORD sizeStr = INTERNET_MAX_URL_LENGTH; TRACE("(%p,%s,%s)\n",This,debugstr_w(lpszLeftURLName),debugstr_w(lpszURLName)); - memset(This, 0, sizeof(*This)); - - /* Initialize the virtual function table. */ + This->lpvtbl = &VT_URLMonikerImpl; This->ref = 0; + sizeStr = lstrlenW(lpszURLName)+1; + if(lpszLeftURLName) + sizeStr += strlenW(lpszLeftURLName)+32; + + This->URLName = HeapAlloc(GetProcessHeap(), 0, sizeStr*sizeof(WCHAR)); + if(lpszLeftURLName) { - hres = UrlCombineW(lpszLeftURLName, lpszURLName, NULL, &sizeStr, 0); - if(FAILED(hres)) { - return hres; - } - sizeStr++; - } - else - sizeStr = lstrlenW(lpszURLName)+1; - - This->URLName=HeapAlloc(GetProcessHeap(),0,sizeof(WCHAR)*(sizeStr)); - - if (This->URLName==NULL) - return E_OUTOFMEMORY; - - if(lpszLeftURLName) { - hres = UrlCombineW(lpszLeftURLName, lpszURLName, This->URLName, &sizeStr, 0); + hres = CoInternetCombineUrl(lpszLeftURLName, lpszURLName, 0, This->URLName, sizeStr, + &sizeStr, 0); if(FAILED(hres)) { HeapFree(GetProcessHeap(), 0, This->URLName); return hres; Modified: trunk/reactos/dll/win32/urlmon/umstream.c URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/dll/win32/urlmon/umstream.c…
============================================================================== --- trunk/reactos/dll/win32/urlmon/umstream.c (original) +++ trunk/reactos/dll/win32/urlmon/umstream.c Sun Apr 16 21:34:25 2006 @@ -252,26 +252,21 @@ return E_NOTIMPL; } -static HRESULT WINAPI IStream_fnSeek ( IStream * iface, +static HRESULT WINAPI IStream_fnSeek (IStream * iface, LARGE_INTEGER dlibMove, DWORD dwOrigin, ULARGE_INTEGER* plibNewPosition) { - DWORD pos, newposlo; - LONG newposhi; - - IUMCacheStream *This = (IUMCacheStream *)iface; - - TRACE("(%p)\n",This); - - pos = dlibMove.QuadPart; /* FIXME: truncates */ - newposhi = 0; - newposlo = SetFilePointer( This->handle, pos, &newposhi, dwOrigin ); - if( newposlo == INVALID_SET_FILE_POINTER && GetLastError()) + LARGE_INTEGER newpos; + IUMCacheStream *This = (IUMCacheStream *)iface; + + TRACE("(%p)\n",This); + + if (!SetFilePointerEx( This->handle, dlibMove, &newpos, dwOrigin )) return E_FAIL; if (plibNewPosition) - plibNewPosition->QuadPart = newposlo | ( (LONGLONG)newposhi<<32); + plibNewPosition->QuadPart = newpos.QuadPart; return S_OK; } @@ -279,11 +274,13 @@ static HRESULT WINAPI IStream_fnSetSize (IStream * iface, ULARGE_INTEGER libNewSize) { - IUMCacheStream *This = (IUMCacheStream *)iface; - - TRACE("(%p)\n",This); - - if( ! SetFilePointer( This->handle, libNewSize.QuadPart, NULL, FILE_BEGIN ) ) + LARGE_INTEGER newpos; + IUMCacheStream *This = (IUMCacheStream *)iface; + + TRACE("(%p)\n",This); + + newpos.QuadPart = libNewSize.QuadPart; + if( ! SetFilePointerEx( This->handle, newpos, NULL, FILE_BEGIN ) ) return E_FAIL; if( ! SetEndOfFile( This->handle ) ) Modified: trunk/reactos/dll/win32/urlmon/urlmon_main.c URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/dll/win32/urlmon/urlmon_mai…
============================================================================== --- trunk/reactos/dll/win32/urlmon/urlmon_main.c (original) +++ trunk/reactos/dll/win32/urlmon/urlmon_main.c Sun Apr 16 21:34:25 2006 @@ -293,19 +293,6 @@ return S_OK; } -HRESULT WINAPI CoInternetCombineUrl(LPCWSTR pwzBaseUrl, LPCWSTR pwzRelativeUrl, DWORD dwCombineFlags, - LPWSTR pwzResult, DWORD cchResult, DWORD *pcchResult, DWORD dwReserved) -{ - HRESULT hres; - DWORD size = cchResult; - - TRACE("(%s,%s,0x%08lx,%p,%ld,%p,%ld)\n", debugstr_w(pwzBaseUrl), debugstr_w(pwzRelativeUrl), dwCombineFlags, - pwzResult, cchResult, pcchResult, dwReserved); - hres = UrlCombineW(pwzBaseUrl, pwzRelativeUrl, pwzResult, &size, dwCombineFlags); - if(pcchResult) *pcchResult = size; - return hres; -} - HRESULT WINAPI CoInternetCompareUrl(LPCWSTR pwzUrl1, LPCWSTR pwzUrl2, DWORD dwCompareFlags) { TRACE("(%s,%s,%08lx)\n", debugstr_w(pwzUrl1), debugstr_w(pwzUrl2), dwCompareFlags); Modified: trunk/reactos/include/advpub.h URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/include/advpub.h?rev=21614&…
============================================================================== --- trunk/reactos/include/advpub.h (original) +++ trunk/reactos/include/advpub.h Sun Apr 16 21:34:25 2006 @@ -18,33 +18,109 @@ #ifndef __WINE_ADVPUB_H #define __WINE_ADVPUB_H +#include <setupapi.h> +/* FIXME: #include <cfgmgr32.h> */ + #ifdef __cplusplus extern "C" { #endif -typedef struct _CabInfo { - PSTR pszCab; - PSTR pszInf; - PSTR pszSection; - char szSrcPath[MAX_PATH]; - DWORD dwFlags; -} CABINFO, *PCABINFO; - -typedef struct _StrEntry { +typedef struct _CabInfoA +{ + LPSTR pszCab; + LPSTR pszInf; + LPSTR pszSection; + CHAR szSrcPath[MAX_PATH]; + DWORD dwFlags; +} CABINFOA, *PCABINFOA; + +typedef struct _CabInfoW +{ + LPWSTR pszCab; + LPWSTR pszInf; + LPWSTR pszSection; + WCHAR szSrcPath[MAX_PATH]; + DWORD dwFlags; +} CABINFOW, *PCABINFOW; + +DECL_WINELIB_TYPE_AW(CABINFO) +DECL_WINELIB_TYPE_AW(PCABINFO) + +typedef struct _PERUSERSECTIONA +{ + CHAR szGUID[39 /*MAX_GUID_STRING_LEN*/ + 20]; + CHAR szDispName[128]; + CHAR szLocale[10]; + CHAR szStub[MAX_PATH * 4]; + CHAR szVersion[32]; + CHAR szCompID[128]; + DWORD dwIsInstalled; + BOOL bRollback; +} PERUSERSECTIONA, *PPERUSERSECTIONA; + +typedef struct _PERUSERSECTIONW +{ + WCHAR szGUID[39 /*MAX_GUID_STRING_LEN*/ + 20]; + WCHAR szDispName[128]; + WCHAR szLocale[10]; + WCHAR szStub[MAX_PATH * 4]; + WCHAR szVersion[32]; + WCHAR szCompID[128]; + DWORD dwIsInstalled; + BOOL bRollback; +} PERUSERSECTIONW, *PPERUSERSECTIONW; + +DECL_WINELIB_TYPE_AW(PERUSERSECTION) +DECL_WINELIB_TYPE_AW(PPERUSERSECTION) + +typedef struct _StrEntryA +{ LPSTR pszName; LPSTR pszValue; -} STRENTRY, *LPSTRENTRY; - -typedef const STRENTRY CSTRENTRY; -typedef CSTRENTRY *LPCSTRENTRY; - -typedef struct _StrTable { +} STRENTRYA, *LPSTRENTRYA; + +typedef struct _StrEntryW +{ + LPWSTR pszName; + LPWSTR pszValue; +} STRENTRYW, *LPSTRENTRYW; + +DECL_WINELIB_TYPE_AW(STRENTRY) +DECL_WINELIB_TYPE_AW(LPSTRENTRY) + +typedef struct _StrTableA +{ DWORD cEntries; - LPSTRENTRY pse; -} STRTABLE, *LPSTRTABLE; - -typedef const STRTABLE CSTRTABLE; -typedef CSTRTABLE *LPCSTRTABLE; + STRENTRYA* pse; +} STRTABLEA, *LPSTRTABLEA; +typedef const STRTABLEA CSTRTABLEA, *LPCSTRTABLEA; + +typedef struct _StrTableW +{ + DWORD cEntries; + STRENTRYW* pse; +} STRTABLEW, *LPSTRTABLEW; +typedef const STRTABLEW CSTRTABLEW, *LPCSTRTABLEW; + +DECL_WINELIB_TYPE_AW(STRTABLE) +DECL_WINELIB_TYPE_AW(CSTRTABLE) +DECL_WINELIB_TYPE_AW(LPSTRTABLE) +DECL_WINELIB_TYPE_AW(LPCSTRTABLE) + +/* Flags for AddDelBackupEntry */ +#define AADBE_ADD_ENTRY 0x01 +#define AADBE_DEL_ENTRY 0x02 + +/* Flags for AdvInstallFile */ +#define AIF_WARNIFSKIP 0x00000001 +#define AIF_NOSKIP 0x00000002 +#define AIF_NOVERSIONCHECK 0x00000004 +#define AIF_FORCE_FILE_IN_USE 0x00000008 +#define AIF_NOOVERWRITE 0x00000010 +#define AIF_NO_VERSION_DIALOG 0x00000020 +#define AIF_REPLACEONLY 0x00000400 +#define AIF_NOLANGUAGECHECK 0x10000000 +#define AIF_QUIET 0x20000000 /* Flags for RunSetupCommand */ #define RSC_FLAG_INF 0x00000001 @@ -59,16 +135,139 @@ #define ADN_DEL_IF_EMPTY 0x00000001 #define ADN_DONT_DEL_SUBDIRS 0x00000002 #define ADN_DONT_DEL_DIR 0x00000004 - -HRESULT WINAPI RunSetupCommand(HWND hWnd, +#define ADN_DEL_UNC_PATHS 0x00000008 + +/* Flags for RegRestoreAll, RegSaveRestore, RegSaveRestoreOnINF */ +#define IE4_RESTORE 0x00000001 +#define IE4_BACKNEW 0x00000002 +#define IE4_NODELETENEW 0x00000004 +#define IE4_NOMESSAGES 0x00000008 +#define IE4_NOPROGRESS 0x00000010 +#define IE4_NOENUMKEY 0x00000020 +#define IE4_NO_CRC_MAPPING 0x00000040 +#define IE4_REGSECTION 0x00000080 +#define IE4_FRDOALL 0x00000100 +#define IE4_UPDREFCNT 0x00000200 +#define IE4_USEREFCNT 0x00000400 +#define IE4_EXTRAINCREFCNT 0x00000800 + +/* Flags for file save and restore functions */ +#define AFSR_RESTORE IE4_RESTORE +#define AFSR_BACKNEW IE4_BACKNEW +#define AFSR_NODELETENEW IE4_NODELETENEW +#define AFSR_NOMESSAGES IE4_NOMESSAGES +#define AFSR_NOPROGRESS IE4_NOPROGRESS +#define AFSR_UPDREFCNT IE4_UPDREFCNT +#define AFSR_USEREFCNT IE4_USEREFCNT +#define AFSR_EXTRAINCREFCNT IE4_EXTRAINCREFCNT + +HRESULT WINAPI AddDelBackupEntryA(LPCSTR lpcszFileList, LPCSTR lpcszBackupDir, + LPCSTR lpcszBaseName, DWORD dwFlags); +HRESULT WINAPI AddDelBackupEntryW(LPCWSTR lpcszFileList, LPCWSTR lpcszBackupDir, + LPCWSTR lpcszBaseName, DWORD dwFlags); +#define AddDelBackupEntry WINELIB_NAME_AW(AddDelBackupEntry) +HRESULT WINAPI AdvInstallFileA(HWND hwnd, LPCSTR lpszSourceDir, + LPCSTR lpszSourceFile, LPCSTR lpszDestDir, LPCSTR lpszDestFile, + DWORD dwFlags, DWORD dwReserved); +HRESULT WINAPI AdvInstallFileW(HWND hwnd, LPCWSTR lpszSourceDir, + LPCWSTR lpszSourceFile, LPCWSTR lpszDestDir, LPCWSTR lpszDestFile, + DWORD dwFlags, DWORD dwReserved); +#define AdvInstallFile WINELIB_NAME_AW(AdvInstallFile) +HRESULT WINAPI CloseINFEngine(HINF hInf); +HRESULT WINAPI DelNodeA(LPCSTR pszFileOrDirName, DWORD dwFlags); +HRESULT WINAPI DelNodeW(LPCWSTR pszFileOrDirName, DWORD dwFlags); +#define DelNode WINELIB_NAME_AW(DelNode) +HRESULT WINAPI DelNodeRunDLL32A(HWND,HINSTANCE,LPSTR,INT); +HRESULT WINAPI DelNodeRunDLL32W(HWND,HINSTANCE,LPWSTR,INT); +#define DelNodeRunDLL32 WINELIB_NAME_AW(DelNodeRunDLL32) +HRESULT WINAPI ExecuteCabA( HWND hwnd, CABINFOA* pCab, LPVOID pReserved ); +HRESULT WINAPI ExecuteCabW( HWND hwnd, CABINFOW* pCab, LPVOID pReserved ); +#define ExecuteCab WINELIB_NAME_AW(ExecuteCab) +HRESULT WINAPI ExtractFilesA(LPCSTR,LPCSTR,DWORD,LPCSTR,LPVOID,DWORD); +HRESULT WINAPI ExtractFilesW(LPCWSTR,LPCWSTR,DWORD,LPCWSTR,LPVOID,DWORD); +#define ExtractFiles WINELIB_NAME_AW(ExtractFiles) +HRESULT WINAPI FileSaveMarkNotExistA(LPSTR pszFileList, LPSTR pszDir, LPSTR pszBaseName); +HRESULT WINAPI FileSaveMarkNotExistW(LPWSTR pszFileList, LPWSTR pszDir, LPWSTR pszBaseName); +#define FileSaveMarkNotExist WINELIB_NAME_AW(FileSaveMarkNotExist) +HRESULT WINAPI FileSaveRestoreA(HWND hDlg, LPSTR pszFileList, LPSTR pszDir, + LPSTR pszBaseName, DWORD dwFlags); +HRESULT WINAPI FileSaveRestoreW(HWND hDlg, LPWSTR pszFileList, LPWSTR pszDir, + LPWSTR pszBaseName, DWORD dwFlags); +#define FileSaveRestore WINELIB_NAME_AW(FileSaveRestore) +HRESULT WINAPI FileSaveRestoreOnINFA(HWND hWnd, LPCSTR pszTitle, LPCSTR pszINF, + LPCSTR pszSection, LPCSTR pszBackupDir, LPCSTR pszBaseBackupFile, DWORD dwFlags); +HRESULT WINAPI FileSaveRestoreOnINFW(HWND hWnd, LPCWSTR pszTitle, LPCWSTR pszINF, + LPCWSTR pszSection, LPCWSTR pszBackupDir, LPCWSTR pszBaseBackupFile, DWORD dwFlags); +#define FileSaveRestoreOnINF WINELIB_NAME_AW(FileSaveRestoreOnINF) +HRESULT WINAPI GetVersionFromFileA(LPCSTR lpszFilename, LPDWORD pdwMSVer, LPDWORD pdwLSVer, BOOL bVersion); +HRESULT WINAPI GetVersionFromFileW(LPCWSTR lpszFilename, LPDWORD pdwMSVer, LPDWORD pdwLSVer, BOOL bVersion); +#define GetVersionFromFile WINELIB_NAME_AW(GetVersionFromFile) +HRESULT WINAPI GetVersionFromFileExA(LPCSTR lpszFilename, LPDWORD pdwMSVer, LPDWORD pdwLSVer, BOOL bVersion); +HRESULT WINAPI GetVersionFromFileExW(LPCWSTR lpszFilename, LPDWORD pdwMSVer, LPDWORD pdwLSVer, BOOL bVersion); +#define GetVersionFromFileEx WINELIB_NAME_AW(GetVersionFromFileEx) +BOOL WINAPI IsNTAdmin(DWORD,LPDWORD); +INT WINAPI LaunchINFSectionA(HWND,HINSTANCE,LPSTR,INT); +INT WINAPI LaunchINFSectionW(HWND,HINSTANCE,LPWSTR,INT); +#define LaunchINFSection WINELIB_NAME_AW(LaunchINFSection) +HRESULT WINAPI LaunchINFSectionExA(HWND,HINSTANCE,LPSTR,INT); +HRESULT WINAPI LaunchINFSectionExW(HWND,HINSTANCE,LPWSTR,INT); +#define LaunchINFSectionEx WINELIB_NAME_AW(LaunchINFSectionEx) +DWORD WINAPI NeedRebootInit(VOID); +BOOL WINAPI NeedReboot(DWORD dwRebootCheck); +HRESULT WINAPI OpenINFEngineA(LPCSTR pszInfFilename, LPCSTR pszInstallSection, + DWORD dwFlags, HINF *phInf, PVOID pvReserved); +HRESULT WINAPI OpenINFEngineW(LPCWSTR pszInfFilename, LPCWSTR pszInstallSection, + DWORD dwFlags, HINF *phInf, PVOID pvReserved); +#define OpenINFEngine WINELIB_NAME_AW(OpenINFEngine) +HRESULT WINAPI RebootCheckOnInstallA(HWND hWnd, LPCSTR pszINF, LPSTR pszSec, DWORD dwReserved); +HRESULT WINAPI RebootCheckOnInstallW(HWND hWnd, LPCWSTR pszINF, LPWSTR pszSec, DWORD dwReserved); +#define RebootCheckOnInstall WINELIB_NAME_AW(RebootCheckOnInstall) +HRESULT WINAPI RegInstallA(HMODULE hm, LPCSTR pszSection, const STRTABLEA* pstTable); +HRESULT WINAPI RegInstallW(HMODULE hm, LPCWSTR pszSection, const STRTABLEW* pstTable); +#define RegInstall WINELIB_NAME_AW(RegInstall) +HRESULT WINAPI RegRestoreAllA(HWND hWnd, LPSTR pszTitleString, HKEY hkBackupKey); +HRESULT WINAPI RegRestoreAllW(HWND hWnd, LPWSTR pszTitleString, HKEY hkBackupKey); +#define RegRestoreAll WINELIB_NAME_AW(RegRestoreAll) +HRESULT WINAPI RegSaveRestoreA(HWND hWnd, LPCSTR pszTitleString, HKEY hkBackupKey, + LPCSTR pcszRootKey, LPCSTR pcszSubKey, LPCSTR pcszValueName, DWORD dwFlags); +HRESULT WINAPI RegSaveRestoreW(HWND hWnd, LPCWSTR pszTitleString, HKEY hkBackupKey, + LPCWSTR pcszRootKey, LPCWSTR pcszSubKey, LPCWSTR pcszValueName, DWORD dwFlags); +#define RegSaveRestore WINELIB_NAME_AW(RegSaveRestore) +HRESULT WINAPI RegSaveRestoreOnINFA(HWND hWnd, LPCSTR pszTitle, LPCSTR pszINF, + LPCSTR pszSection, HKEY hHKLMBackKey, HKEY hHKCUBackKey, DWORD dwFlags); +HRESULT WINAPI RegSaveRestoreOnINFW(HWND hWnd, LPCWSTR pszTitle, LPCWSTR pszINF, + LPCWSTR pszSection, HKEY hHKLMBackKey, HKEY hHKCUBackKey, DWORD dwFlags); +#define RegSaveRestoreOnINF WINELIB_NAME_AW(RegSaveRestoreOnINF) +HRESULT WINAPI RunSetupCommandA(HWND hWnd, LPCSTR szCmdName, LPCSTR szInfSection, LPCSTR szDir, LPCSTR lpszTitle, HANDLE *phEXE, DWORD dwFlags, LPVOID pvReserved); -HRESULT WINAPI DelNode(LPCSTR pszFileOrDirName, DWORD dwFlags); -DWORD WINAPI NeedRebootInit(VOID); -BOOL WINAPI NeedReboot(DWORD dwRebootCheck); -HRESULT WINAPI RegInstall(HMODULE hm, LPCSTR pszSection, LPCSTRTABLE pstTable); -HRESULT WINAPI GetVersionFromFile(LPSTR lpszFilename, LPDWORD pdwMSVer, LPDWORD pdwLSVer, BOOL bVersion); -HRESULT WINAPI GetVersionFromFileEx(LPSTR lpszFilename, LPDWORD pdwMSVer, LPDWORD pdwLSVer, BOOL bVersion); +HRESULT WINAPI RunSetupCommandW(HWND hWnd, + LPCWSTR szCmdName, LPCWSTR szInfSection, LPCWSTR szDir, LPCWSTR lpszTitle, + HANDLE *phEXE, DWORD dwFlags, LPVOID pvReserved); +#define RunSetupCommand WINELIB_NAME_AW(RunSetupCommand) +HRESULT WINAPI SetPerUserSecValuesA(PPERUSERSECTIONA pPerUser); +HRESULT WINAPI SetPerUserSecValuesW(PPERUSERSECTIONW pPerUser); +#define SetPerUserSecValues WINELIB_NAME_AW(SetPerUserSecValues) +HRESULT WINAPI TranslateInfStringA(LPCSTR pszInfFilename, LPCSTR pszInstallSection, + LPCSTR pszTranslateSection, LPCSTR pszTranslateKey, LPSTR pszBuffer, + DWORD dwBufferSize, PDWORD pdwRequiredSize, PVOID pvReserved); +HRESULT WINAPI TranslateInfStringW(LPCWSTR pszInfFilename, LPCWSTR pszInstallSection, + LPCWSTR pszTranslateSection, LPCWSTR pszTranslateKey, LPWSTR pszBuffer, + DWORD dwBufferSize, PDWORD pdwRequiredSize, PVOID pvReserved); +#define TranslateInfString WINELIB_NAME_AW(TranslateInfString) +HRESULT WINAPI TranslateInfStringExA(HINF hInf, LPCSTR pszInfFilename, + LPCSTR pszTranslateSection, LPCSTR pszTranslateKey, LPSTR pszBuffer, + DWORD dwBufferSize, PDWORD pdwRequiredSize, PVOID pvReserved); +HRESULT WINAPI TranslateInfStringExW(HINF hInf, LPCWSTR pszInfFilename, + LPCWSTR pszTranslateSection, LPCWSTR pszTranslateKey, LPWSTR pszBuffer, + DWORD dwBufferSize, PDWORD pdwRequiredSize, PVOID pvReserved); +#define TranslateInfStringEx WINELIB_NAME_AW(TranslateInfStringEx) +HRESULT WINAPI UserInstStubWrapperA(HWND hWnd, HINSTANCE hInstance, LPSTR pszParms, INT nShow); +HRESULT WINAPI UserInstStubWrapperW(HWND hWnd, HINSTANCE hInstance, LPWSTR pszParms, INT nShow); +#define UserInstStubWrapper WINELIB_NAME_AW(UserInstStubWrapper) +HRESULT WINAPI UserUnInstStubWrapperA(HWND hWnd, HINSTANCE hInstance, LPSTR pszParms, INT nShow); +HRESULT WINAPI UserUnInstStubWrapperW(HWND hWnd, HINSTANCE hInstance, LPWSTR pszParms, INT nShow); +#define UserUnInstStubWrapper WINELIB_NAME_AW(UserUnInstStubWrapper) #ifdef __cplusplus } Modified: trunk/reactos/media/doc/README.WINE URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/media/doc/README.WINE?rev=2…
============================================================================== --- trunk/reactos/media/doc/README.WINE (original) +++ trunk/reactos/media/doc/README.WINE Sun Apr 16 21:34:25 2006 @@ -51,11 +51,11 @@ reactos/dll/win32/msvcrt20 # Out of sync reactos/dll/win32/mpr # Synced to Wine-0_9_5 reactos/dll/win32/msacm # Out of sync -reactos/dll/win32/msimg32 # Synced to Wine-0_9_5 +reactos/dll/win32/msimg32 # Synced to Wine-0_9_12 reactos/dll/win32/msi # Synced to Wine-0_9_5 reactos/dll/win32/msvideo # Out of sync reactos/dll/win32/netapi32 # Synced to Wine-0_9_5 -reactos/dll/win32/objsel # Synced to Wine-0_9_5 +reactos/dll/win32/objsel # Synced to Wine-0_9_12 reactos/dll/win32/odbc32 # Out of sync. Depends on port of Linux ODBC. reactos/dll/win32/ole32 # Synced to Wine-0_9_5 reactos/dll/win32/oleacc # Synced to Wine-0_9_5 @@ -71,7 +71,7 @@ reactos/dll/win32/shfolder # Synced to Wine-0_9_5 reactos/dll/win32/shlwapi # Synced to Wine-0_9_5 reactos/dll/win32/twain # Out of sync -reactos/dll/win32/urlmon # Synced to Wine-0_9_5 +reactos/dll/win32/urlmon # Synced to Wine-0_9_10 reactos/dll/win32/uxtheme # Synced to Wine-0_9_5 reactos/dll/win32/version # Out of sync reactos/dll/win32/wininet # Synced to Wine-0_9_5
18 years, 8 months
1
0
0
0
[fireball] 21613: Sync to Wine-0_9_8: Mike McCormack <mike@codeweavers.com> - imm32: Remove FIXME messages from some implemented functions.
by fireball@svn.reactos.org
Author: fireball Date: Sun Apr 16 21:04:45 2006 New Revision: 21613 URL:
http://svn.reactos.ru/svn/reactos?rev=21613&view=rev
Log: Sync to Wine-0_9_8: Mike McCormack <mike(a)codeweavers.com> - imm32: Remove FIXME messages from some implemented functions. Modified: trunk/reactos/dll/win32/imm32/imm.c trunk/reactos/media/doc/README.WINE Modified: trunk/reactos/dll/win32/imm32/imm.c URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/dll/win32/imm32/imm.c?rev=2…
============================================================================== --- trunk/reactos/dll/win32/imm32/imm.c (original) +++ trunk/reactos/dll/win32/imm32/imm.c Sun Apr 16 21:04:45 2006 @@ -260,6 +260,7 @@ BOOL WINAPI ImmAssociateContextEx(HWND hWnd, HIMC hIMC, DWORD dwFlags) { FIXME("(%p, %p, %ld): stub\n", hWnd, hIMC, dwFlags); + SetLastError(ERROR_CALL_NOT_IMPLEMENTED); return FALSE; } @@ -577,12 +578,10 @@ HIMC hIMC, DWORD dwIndex, LPVOID lpBuf, DWORD dwBufLen) { - LONG rc = 0; - InputContextData *data = (InputContextData*)hIMC; - - TRACE("(%p, 0x%lx, %p, %ld)\n", - hIMC, dwIndex, lpBuf, dwBufLen - ); + LONG rc = 0; + InputContextData *data = (InputContextData*)hIMC; + + TRACE("(%p, 0x%lx, %p, %ld)\n", hIMC, dwIndex, lpBuf, dwBufLen); if (!data) return FALSE; @@ -671,7 +670,7 @@ */ HIMC WINAPI ImmGetContext(HWND hWnd) { - FIXME("(%p): stub\n", hWnd); + TRACE("%p\n", hWnd); if (!root_context) return NULL; @@ -935,7 +934,6 @@ { OSVERSIONINFOA version; FIXME("(%p): stub\n", hWnd); - SetLastError(ERROR_CALL_NOT_IMPLEMENTED); GetVersionExA( &version ); switch(version.dwPlatformId) { @@ -1047,7 +1045,8 @@ HIMC hIMC, DWORD dwAction, DWORD dwIndex, DWORD dwValue) { BOOL rc = FALSE; - FIXME("(%p, %ld, %ld, %ld): stub\n", + + TRACE("(%p, %ld, %ld, %ld)\n", hIMC, dwAction, dwIndex, dwValue); if (!root_context) @@ -1377,7 +1376,7 @@ ShowWindow(hwndDefault,SW_HIDE); } - FIXME("STUB\n"); + /* FIXME: this is a partial stub */ if (reshow) ShowWindow(hwndDefault,SW_SHOWNOACTIVATE); @@ -1405,7 +1404,8 @@ BOOL WINAPI ImmSetOpenStatus(HIMC hIMC, BOOL fOpen) { InputContextData *data = (InputContextData*)hIMC; - FIXME("Semi-Stub\n"); + + TRACE("%p %d\n", hIMC, fOpen); if (hIMC == (HIMC)FROM_IME) { Modified: trunk/reactos/media/doc/README.WINE URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/media/doc/README.WINE?rev=2…
============================================================================== --- trunk/reactos/media/doc/README.WINE (original) +++ trunk/reactos/media/doc/README.WINE Sun Apr 16 21:04:45 2006 @@ -44,7 +44,7 @@ reactos/dll/win32/crypt32 # Synced to Wine-0_9_5 reactos/dll/win32/dbghelp # reactos/dll/win32/icmp # Synced to Wine-0_9_5 -reactos/dll/win32/imm32 # Synced to Wine-0_9_5 +reactos/dll/win32/imm32 # Synced to Wine-0_9_10 reactos/dll/win32/iphlpapi # Out of sync reactos/dll/win32/imagehlp # Patches for BindImage need review and submission to winehq. reactos/dll/win32/mapi32 # Synced to Wine-0_9_5
18 years, 8 months
1
0
0
0
[greatlrd] 21612: audlt lock
by greatlrd@svn.reactos.org
Author: greatlrd Date: Sun Apr 16 20:16:09 2006 New Revision: 21612 URL:
http://svn.reactos.ru/svn/reactos?rev=21612&view=rev
Log: audlt lock Modified: trunk/reactos/ntoskrnl/ex/fmutex.c Modified: trunk/reactos/ntoskrnl/ex/fmutex.c URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/ntoskrnl/ex/fmutex.c?rev=21…
============================================================================== --- trunk/reactos/ntoskrnl/ex/fmutex.c (original) +++ trunk/reactos/ntoskrnl/ex/fmutex.c Sun Apr 16 20:16:09 2006 @@ -68,8 +68,8 @@ */ ASSERT((KeGetCurrentIrql() == APC_LEVEL) || - (Thread == NULL) || - (Thread->CombinedApcDisable != 0)); + (KeGetCurrentThread() == NULL) || + (KeGetCurrentThread()->CombinedApcDisable != 0)); ASSERT(FastMutex->Owner == KeGetCurrentThread()); /* Erase the owner */
18 years, 8 months
1
0
0
0
[greatlrd] 21611: kjk_hyperion : "Breaking auditing lock for a temporary fix: allow ExEnterCriticalRegionAndAcquireFastMutexUnsafe and ExReleaseFastMutexUnsafeAndLeaveCriticalRegion to be called from any thread; fixes UserEnterShared, UserEnterExclusive and UserLeave in win32k"
by greatlrd@svn.reactos.org
Author: greatlrd Date: Sun Apr 16 20:04:28 2006 New Revision: 21611 URL:
http://svn.reactos.ru/svn/reactos?rev=21611&view=rev
Log: kjk_hyperion : "Breaking auditing lock for a temporary fix: allow ExEnterCriticalRegionAndAcquireFastMutexUnsafe and ExReleaseFastMutexUnsafeAndLeaveCriticalRegion to be called from any thread; fixes UserEnterShared, UserEnterExclusive and UserLeave in win32k" Modified: trunk/reactos/ntoskrnl/ex/fmutex.c Modified: trunk/reactos/ntoskrnl/ex/fmutex.c URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/ntoskrnl/ex/fmutex.c?rev=21…
============================================================================== --- trunk/reactos/ntoskrnl/ex/fmutex.c (original) +++ trunk/reactos/ntoskrnl/ex/fmutex.c Sun Apr 16 20:04:28 2006 @@ -28,6 +28,122 @@ /* Enter the Critical Region */ KeEnterCriticalRegion(); + /* + ASSERT((KeGetCurrentIrql() == APC_LEVEL) || + (Thread == NULL) || + (Thread->CombinedApcDisable != 0) || + (Thread->Teb == NULL) || + (Thread->Teb >= (PTEB)MM_SYSTEM_RANGE_START)); + */ + ASSERT((KeGetCurrentIrql() == APC_LEVEL) || + (Thread == NULL) || + (Thread->CombinedApcDisable != 0)); + + ASSERT((Thread == NULL) || (FastMutex->Owner != Thread)); + + /* Decrease the count */ + if (InterlockedDecrement(&FastMutex->Count)) + { + /* Someone is still holding it, use slow path */ + KiAcquireFastMutex(FastMutex); + } + + /* Set the owner */ + FastMutex->Owner = Thread; +} + +/* + * @implemented + */ +VOID +FASTCALL +ExReleaseFastMutexUnsafeAndLeaveCriticalRegion(PFAST_MUTEX FastMutex) +{ + /* + ASSERT((KeGetCurrentIrql() == APC_LEVEL) || + (KeGetCurrentThread() == NULL) || + (KeGetCurrentThread()->CombinedApcDisable != 0) || + (KeGetCurrentThread()->Teb == NULL) || + (KeGetCurrentThread()->Teb >= (PTEB)MM_SYSTEM_RANGE_START)); + + */ + ASSERT((KeGetCurrentIrql() == APC_LEVEL) || + (Thread == NULL) || + (Thread->CombinedApcDisable != 0)); + ASSERT(FastMutex->Owner == KeGetCurrentThread()); + + /* Erase the owner */ + FastMutex->Owner = NULL; + + /* Increase the count */ + if (InterlockedIncrement(&FastMutex->Count) <= 0) + { + /* Someone was waiting for it, signal the waiter */ + KeSetEventBoostPriority(&FastMutex->Gate, IO_NO_INCREMENT); + } + + /* Leave the critical region */ + KeLeaveCriticalRegion(); +} + +/* + * @implemented + */ +VOID +FASTCALL +ExAcquireFastMutex(PFAST_MUTEX FastMutex) +{ + KIRQL OldIrql; + ASSERT_IRQL_LESS_OR_EQUAL(APC_LEVEL); + + /* Raise IRQL to APC */ + OldIrql = KfRaiseIrql(APC_LEVEL); + + /* Decrease the count */ + if (InterlockedDecrement(&FastMutex->Count)) + { + /* Someone is still holding it, use slow path */ + KiAcquireFastMutex(FastMutex); + } + + /* Set the owner and IRQL */ + FastMutex->Owner = KeGetCurrentThread(); + FastMutex->OldIrql = OldIrql; +} + +/* + * @implemented + */ +VOID +FASTCALL +ExReleaseFastMutex (PFAST_MUTEX FastMutex) +{ + KIRQL OldIrql; + ASSERT_IRQL(APC_LEVEL); + + /* Erase the owner */ + FastMutex->Owner = NULL; + OldIrql = FastMutex->OldIrql; + + /* Increase the count */ + if (InterlockedIncrement(&FastMutex->Count) <= 0) + { + /* Someone was waiting for it, signal the waiter */ + KeSetEventBoostPriority(&FastMutex->Gate, IO_NO_INCREMENT); + } + + /* Lower IRQL back */ + KfLowerIrql(OldIrql); +} + +/* + * @implemented + */ +VOID +FASTCALL +ExAcquireFastMutexUnsafe(PFAST_MUTEX FastMutex) +{ + PKTHREAD Thread = KeGetCurrentThread(); ASSERT((KeGetCurrentIrql() == APC_LEVEL) || (Thread == NULL) || (Thread->CombinedApcDisable != 0) || @@ -51,7 +167,7 @@ */ VOID FASTCALL -ExReleaseFastMutexUnsafeAndLeaveCriticalRegion(PFAST_MUTEX FastMutex) +ExReleaseFastMutexUnsafe(PFAST_MUTEX FastMutex) { ASSERT((KeGetCurrentIrql() == APC_LEVEL) || (KeGetCurrentThread() == NULL) || @@ -69,110 +185,6 @@ /* Someone was waiting for it, signal the waiter */ KeSetEventBoostPriority(&FastMutex->Gate, IO_NO_INCREMENT); } - - /* Leave the critical region */ - KeLeaveCriticalRegion(); -} - -/* - * @implemented - */ -VOID -FASTCALL -ExAcquireFastMutex(PFAST_MUTEX FastMutex) -{ - KIRQL OldIrql; - ASSERT_IRQL_LESS_OR_EQUAL(APC_LEVEL); - - /* Raise IRQL to APC */ - OldIrql = KfRaiseIrql(APC_LEVEL); - - /* Decrease the count */ - if (InterlockedDecrement(&FastMutex->Count)) - { - /* Someone is still holding it, use slow path */ - KiAcquireFastMutex(FastMutex); - } - - /* Set the owner and IRQL */ - FastMutex->Owner = KeGetCurrentThread(); - FastMutex->OldIrql = OldIrql; -} - -/* - * @implemented - */ -VOID -FASTCALL -ExReleaseFastMutex (PFAST_MUTEX FastMutex) -{ - KIRQL OldIrql; - ASSERT_IRQL(APC_LEVEL); - - /* Erase the owner */ - FastMutex->Owner = NULL; - OldIrql = FastMutex->OldIrql; - - /* Increase the count */ - if (InterlockedIncrement(&FastMutex->Count) <= 0) - { - /* Someone was waiting for it, signal the waiter */ - KeSetEventBoostPriority(&FastMutex->Gate, IO_NO_INCREMENT); - } - - /* Lower IRQL back */ - KfLowerIrql(OldIrql); -} - -/* - * @implemented - */ -VOID -FASTCALL -ExAcquireFastMutexUnsafe(PFAST_MUTEX FastMutex) -{ - PKTHREAD Thread = KeGetCurrentThread(); - ASSERT((KeGetCurrentIrql() == APC_LEVEL) || - (Thread == NULL) || - (Thread->CombinedApcDisable != 0) || - (Thread->Teb == NULL) || - (Thread->Teb >= (PTEB)MM_SYSTEM_RANGE_START)); - ASSERT((Thread == NULL) || (FastMutex->Owner != Thread)); - - /* Decrease the count */ - if (InterlockedDecrement(&FastMutex->Count)) - { - /* Someone is still holding it, use slow path */ - KiAcquireFastMutex(FastMutex); - } - - /* Set the owner */ - FastMutex->Owner = Thread; -} - -/* - * @implemented - */ -VOID -FASTCALL -ExReleaseFastMutexUnsafe(PFAST_MUTEX FastMutex) -{ - ASSERT((KeGetCurrentIrql() == APC_LEVEL) || - (KeGetCurrentThread() == NULL) || - (KeGetCurrentThread()->CombinedApcDisable != 0) || - (KeGetCurrentThread()->Teb == NULL) || - (KeGetCurrentThread()->Teb >= (PTEB)MM_SYSTEM_RANGE_START)); - ASSERT(FastMutex->Owner == KeGetCurrentThread()); - - /* Erase the owner */ - FastMutex->Owner = NULL; - - /* Increase the count */ - if (InterlockedIncrement(&FastMutex->Count) <= 0) - { - /* Someone was waiting for it, signal the waiter */ - KeSetEventBoostPriority(&FastMutex->Gate, IO_NO_INCREMENT); - } } /*
18 years, 8 months
1
0
0
0
[fireball] 21610: Sync to Wine-0_9_9: Gerold J. Wucherpfennig <gjwucherpfennig@gmx.net> - cabinet: Set proper error information on failures. Sync to Wine-0_9_6: James Hawkins <truiken@gmail.com> - cabinet: Implement Extract on top of FDI. - cabinet: Clean up the documentation for Extract. - cabinet: Fix the second parameter name of Extract. - cabinet: Add documentation for FDITruncateCabinet. - cabinet: Store the cab file handle before extracting files so we can close the cab file even if no fil
by fireball@svn.reactos.org
Author: fireball Date: Sun Apr 16 19:49:02 2006 New Revision: 21610 URL:
http://svn.reactos.ru/svn/reactos?rev=21610&view=rev
Log: Sync to Wine-0_9_9: Gerold J. Wucherpfennig <gjwucherpfennig(a)gmx.net> - cabinet: Set proper error information on failures. Sync to Wine-0_9_6: James Hawkins <truiken(a)gmail.com> - cabinet: Implement Extract on top of FDI. - cabinet: Clean up the documentation for Extract. - cabinet: Fix the second parameter name of Extract. - cabinet: Add documentation for FDITruncateCabinet. - cabinet: Store the cab file handle before extracting files so we can close the cab file even if no files are extracted. - cabinet: Move the remaining cabextract.c functions to fdi.c. - cabinet: Add initial tests for Extract. - cabinet: Add the two flags used by Extract to cabinet.h. - cabinet: Define the flags member of the EXTRACTdest structure. Removed: trunk/reactos/dll/win32/cabinet/cabextract.c Modified: trunk/reactos/dll/win32/cabinet/cabinet.h trunk/reactos/dll/win32/cabinet/cabinet.rbuild trunk/reactos/dll/win32/cabinet/cabinet_main.c trunk/reactos/dll/win32/cabinet/fci.c trunk/reactos/dll/win32/cabinet/fdi.c trunk/reactos/media/doc/README.WINE [This mail would be too long, it was shortened to contain the URLs only.] Removed: trunk/reactos/dll/win32/cabinet/cabextract.c URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/dll/win32/cabinet/cabextrac…
Modified: trunk/reactos/dll/win32/cabinet/cabinet.h URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/dll/win32/cabinet/cabinet.h…
Modified: trunk/reactos/dll/win32/cabinet/cabinet.rbuild URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/dll/win32/cabinet/cabinet.r…
Modified: trunk/reactos/dll/win32/cabinet/cabinet_main.c URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/dll/win32/cabinet/cabinet_m…
Modified: trunk/reactos/dll/win32/cabinet/fci.c URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/dll/win32/cabinet/fci.c?rev…
Modified: trunk/reactos/dll/win32/cabinet/fdi.c URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/dll/win32/cabinet/fdi.c?rev…
Modified: trunk/reactos/media/doc/README.WINE URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/media/doc/README.WINE?rev=2…
18 years, 8 months
1
0
0
0
[greatlrd] 21609: Implement screensaver setting and preiw of screen setting working in windows not tested in reactos
by greatlrd@svn.reactos.org
Author: greatlrd Date: Sun Apr 16 17:56:57 2006 New Revision: 21609 URL:
http://svn.reactos.ru/svn/reactos?rev=21609&view=rev
Log: Implement screensaver setting and preiw of screen setting working in windows not tested in reactos Modified: trunk/reactos/dll/cpl/desk/screensaver.c Modified: trunk/reactos/dll/cpl/desk/screensaver.c URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/dll/cpl/desk/screensaver.c?…
============================================================================== --- trunk/reactos/dll/cpl/desk/screensaver.c (original) +++ trunk/reactos/dll/cpl/desk/screensaver.c Sun Apr 16 17:56:57 2006 @@ -68,7 +68,28 @@ case IDC_SCREENS_TESTSC: // Screensaver Preview { if(command == BN_CLICKED) - MessageBox(NULL, TEXT("That button doesn't do anything yet"), TEXT("Whoops"), MB_OK); + { + /* + /p:<hwnd> Run in preview + /s Run normal + /c:<hwnd> Run configuration, hwnd is handle of calling window + /a Run change password + */ + + WCHAR szCmdline[2048]; + STARTUPINFO si; + PROCESS_INFORMATION pi; + swprintf(szCmdline, L"%s /p",g_ScreenSaverItems[ImageListSelection].szFilename); + + ZeroMemory( &si, sizeof(si) ); + si.cb = sizeof(si); + ZeroMemory( &pi, sizeof(pi) ); + if(CreateProcess( NULL, szCmdline, NULL, NULL, FALSE, 0, NULL,NULL,&si, &pi )) + { + CloseHandle( pi.hProcess ); + CloseHandle( pi.hThread ); + } + } } break; case IDC_SCREENS_DELETE: // Delete Screensaver @@ -82,7 +103,29 @@ case IDC_SCREENS_SETTINGS: // Screensaver Settings { if(command == BN_CLICKED) - MessageBox(NULL, TEXT("That button doesn't do anything yet"), TEXT("Whoops"), MB_OK); + { + /* + /p:<hwnd> Run in preview + /s Run normal + /c:<hwnd> Run configuration, hwnd is handle of calling window + /a Run change password + + */ + + WCHAR szCmdline[2048]; + STARTUPINFO si; + PROCESS_INFORMATION pi; + swprintf(szCmdline, L"%s /c",g_ScreenSaverItems[ImageListSelection].szFilename); + + ZeroMemory( &si, sizeof(si) ); + si.cb = sizeof(si); + ZeroMemory( &pi, sizeof(pi) ); + if(CreateProcess( NULL, szCmdline, NULL, NULL, FALSE, 0, NULL,NULL,&si, &pi )) + { + CloseHandle( pi.hProcess ); + CloseHandle( pi.hThread ); + } + } } break; case IDC_SCREENS_USEPASSCHK: // Screensaver Is Secure {
18 years, 8 months
1
0
0
0
[fireball] 21608: [AUDIT] dll/win32/advapi32/sec - Very small functions are clean - Functions doing basic initialization stuff are clean (their name suggests the actions the function performs) - Functions publically documented in google - Stubs / unimplemented functions - Wine's code is clean too
by fireball@svn.reactos.org
Author: fireball Date: Sun Apr 16 16:49:19 2006 New Revision: 21608 URL:
http://svn.reactos.ru/svn/reactos?rev=21608&view=rev
Log: [AUDIT] dll/win32/advapi32/sec - Very small functions are clean - Functions doing basic initialization stuff are clean (their name suggests the actions the function performs) - Functions publically documented in google - Stubs / unimplemented functions - Wine's code is clean too Modified: trunk/reactos/dll/win32/advapi32/sec/ac.c (props changed) trunk/reactos/dll/win32/advapi32/sec/audit.c (props changed) trunk/reactos/dll/win32/advapi32/sec/lsa.c (props changed) trunk/reactos/dll/win32/advapi32/sec/sec.c (props changed) trunk/reactos/dll/win32/advapi32/sec/sid.c (props changed) trunk/reactos/dll/win32/advapi32/sec/trustee.c (props changed) Propchange: trunk/reactos/dll/win32/advapi32/sec/ac.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/dll/win32/advapi32/sec/audit.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/dll/win32/advapi32/sec/lsa.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/dll/win32/advapi32/sec/sec.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/dll/win32/advapi32/sec/sid.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/dll/win32/advapi32/sec/trustee.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -*
18 years, 8 months
1
0
0
0
← Newer
1
...
12
13
14
15
16
17
18
...
33
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
Results per page:
10
25
50
100
200