Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
91d6288e
Commit
91d6288e
authored
Sep 15, 2005
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 15, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added CoInternetGetSession implementation.
parent
0799e840
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
152 additions
and
33 deletions
+152
-33
Makefile.in
dlls/urlmon/Makefile.in
+1
-0
session.c
dlls/urlmon/session.c
+151
-0
umon.c
dlls/urlmon/umon.c
+0
-33
No files found.
dlls/urlmon/Makefile.in
View file @
91d6288e
...
@@ -15,6 +15,7 @@ C_SRCS = \
...
@@ -15,6 +15,7 @@ C_SRCS = \
internet.c
\
internet.c
\
regsvr.c
\
regsvr.c
\
sec_mgr.c
\
sec_mgr.c
\
session.c
\
umon.c
\
umon.c
\
umstream.c
\
umstream.c
\
urlmon_main.c
urlmon_main.c
...
...
dlls/urlmon/session.c
0 → 100644
View file @
91d6288e
/*
* Copyright 2005 Jacek Caban
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include <stdarg.h>
#define COBJMACROS
#include "windef.h"
#include "winbase.h"
#include "winuser.h"
#include "ole2.h"
#include "urlmon.h"
#include "urlmon_main.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
urlmon
);
static
HRESULT
WINAPI
InternetSession_QueryInterface
(
IInternetSession
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
TRACE
(
"(%s %p)
\n
"
,
debugstr_guid
(
riid
),
ppv
);
if
(
IsEqualGUID
(
&
IID_IUnknown
,
riid
)
||
IsEqualGUID
(
&
IID_IInternetSession
,
riid
))
{
*
ppv
=
iface
;
IInternetSession_AddRef
(
iface
);
return
S_OK
;
}
*
ppv
=
NULL
;
return
E_NOINTERFACE
;
}
static
ULONG
WINAPI
InternetSession_AddRef
(
IInternetSession
*
iface
)
{
TRACE
(
"()
\n
"
);
URLMON_LockModule
();
return
2
;
}
static
ULONG
WINAPI
InternetSession_Release
(
IInternetSession
*
iface
)
{
TRACE
(
"()
\n
"
);
URLMON_UnlockModule
();
return
1
;
}
static
HRESULT
WINAPI
InternetSession_RegisterNameSpace
(
IInternetSession
*
iface
,
IClassFactory
*
pCF
,
REFCLSID
rclsid
,
LPCWSTR
pwzProtocol
,
ULONG
cPatterns
,
const
LPCWSTR
*
ppwzPatterns
,
DWORD
dwReserved
)
{
FIXME
(
"(%p %s %s %ld %p %ld)
\n
"
,
pCF
,
debugstr_guid
(
rclsid
),
debugstr_w
(
pwzProtocol
),
cPatterns
,
ppwzPatterns
,
dwReserved
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
InternetSession_UnregisterNameSpace
(
IInternetSession
*
iface
,
IClassFactory
*
pCF
,
LPCWSTR
pszProtocol
)
{
FIXME
(
"(%p %s)
\n
"
,
pCF
,
debugstr_w
(
pszProtocol
));
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
InternetSession_RegisterMimeFilter
(
IInternetSession
*
iface
,
IClassFactory
*
pCF
,
REFCLSID
rclsid
,
LPCWSTR
pwzType
)
{
FIXME
(
"(%p %s %s)
\n
"
,
pCF
,
debugstr_guid
(
rclsid
),
debugstr_w
(
pwzType
));
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
InternetSession_UnregisterMimeFilter
(
IInternetSession
*
iface
,
IClassFactory
*
pCF
,
LPCWSTR
pwzType
)
{
FIXME
(
"(%p %s)
\n
"
,
pCF
,
debugstr_w
(
pwzType
));
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
InternetSession_CreateBinding
(
IInternetSession
*
iface
,
LPBC
pBC
,
LPCWSTR
szUrl
,
IUnknown
*
pUnkOuter
,
IUnknown
**
ppUnk
,
IInternetProtocol
**
ppOInetProt
,
DWORD
dwOption
)
{
FIXME
(
"(%p %s %p %p %p %08lx)
\n
"
,
pBC
,
debugstr_w
(
szUrl
),
pUnkOuter
,
ppUnk
,
ppOInetProt
,
dwOption
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
InternetSession_SetSessionOption
(
IInternetSession
*
iface
,
DWORD
dwOption
,
LPVOID
pBuffer
,
DWORD
dwBufferLength
,
DWORD
dwReserved
)
{
FIXME
(
"(%08lx %p %ld %ld)
\n
"
,
dwOption
,
pBuffer
,
dwBufferLength
,
dwReserved
);
return
E_NOTIMPL
;
}
static
const
IInternetSessionVtbl
InternetSessionVtbl
=
{
InternetSession_QueryInterface
,
InternetSession_AddRef
,
InternetSession_Release
,
InternetSession_RegisterNameSpace
,
InternetSession_UnregisterNameSpace
,
InternetSession_RegisterMimeFilter
,
InternetSession_UnregisterMimeFilter
,
InternetSession_CreateBinding
,
InternetSession_SetSessionOption
};
static
IInternetSession
InternetSession
=
{
&
InternetSessionVtbl
};
/***********************************************************************
* CoInternetGetSession (URLMON.@)
*
* Create a new internet session and return an IInternetSession interface
* representing it.
*
* PARAMS
* dwSessionMode [I] Mode for the internet session
* ppIInternetSession [O] Destination for creates IInternetSession object
* dwReserved [I] Reserved, must be 0.
*
* RETURNS
* Success: S_OK. ppIInternetSession contains the IInternetSession interface.
* Failure: E_INVALIDARG, if any argument is invalid, or
* E_OUTOFMEMORY if memory allocation fails.
*/
HRESULT
WINAPI
CoInternetGetSession
(
DWORD
dwSessionMode
,
IInternetSession
**
ppIInternetSession
,
DWORD
dwReserved
)
{
TRACE
(
"(%ld %p %ld)
\n
"
,
dwSessionMode
,
ppIInternetSession
,
dwReserved
);
if
(
dwSessionMode
)
ERR
(
"dwSessionMode=%ld
\n
"
,
dwSessionMode
);
if
(
dwReserved
)
ERR
(
"dwReserved=%ld
\n
"
,
dwReserved
);
*
ppIInternetSession
=
&
InternetSession
;
return
S_OK
;
}
dlls/urlmon/umon.c
View file @
91d6288e
...
@@ -1278,39 +1278,6 @@ HRESULT WINAPI CreateURLMoniker(IMoniker *pmkContext, LPCWSTR szURL, IMoniker **
...
@@ -1278,39 +1278,6 @@ HRESULT WINAPI CreateURLMoniker(IMoniker *pmkContext, LPCWSTR szURL, IMoniker **
return
hres
;
return
hres
;
}
}
/***********************************************************************
* CoInternetGetSession (URLMON.@)
*
* Create a new internet session and return an IInternetSession interface
* representing it.
*
* PARAMS
* dwSessionMode [I] Mode for the internet session
* ppIInternetSession [O] Destination for creates IInternetSession object
* dwReserved [I] Reserved, must be 0.
*
* RETURNS
* Success: S_OK. ppIInternetSession contains the IInternetSession interface.
* Failure: E_INVALIDARG, if any argument is invalid, or
* E_OUTOFMEMORY if memory allocation fails.
*/
HRESULT
WINAPI
CoInternetGetSession
(
DWORD
dwSessionMode
,
IInternetSession
**
ppIInternetSession
,
DWORD
dwReserved
)
{
FIXME
(
"(%ld, %p, %ld): stub
\n
"
,
dwSessionMode
,
ppIInternetSession
,
dwReserved
);
if
(
dwSessionMode
)
{
ERR
(
"dwSessionMode: %ld, must be zero
\n
"
,
dwSessionMode
);
}
if
(
dwReserved
)
{
ERR
(
"dwReserved: %ld, must be zero
\n
"
,
dwReserved
);
}
*
ppIInternetSession
=
NULL
;
return
E_OUTOFMEMORY
;
}
/***********************************************************************
/***********************************************************************
* CoInternetQueryInfo (URLMON.@)
* CoInternetQueryInfo (URLMON.@)
*
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment