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
9fb647ef
Commit
9fb647ef
authored
May 24, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
May 25, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Added [Un]RegisterNamespace implementation.
parent
5f3d7f0d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
62 additions
and
5 deletions
+62
-5
session.c
dlls/urlmon/session.c
+62
-5
No files found.
dlls/urlmon/session.c
View file @
9fb647ef
...
@@ -29,9 +29,19 @@
...
@@ -29,9 +29,19 @@
#include "urlmon_main.h"
#include "urlmon_main.h"
#include "wine/debug.h"
#include "wine/debug.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
urlmon
);
WINE_DEFAULT_DEBUG_CHANNEL
(
urlmon
);
typedef
struct
name_space
{
LPWSTR
protocol
;
IClassFactory
*
cf
;
struct
name_space
*
next
;
}
name_space
;
static
name_space
*
name_space_list
=
NULL
;
HRESULT
get_protocol_iface
(
LPCWSTR
url
,
IUnknown
**
ret
)
HRESULT
get_protocol_iface
(
LPCWSTR
url
,
IUnknown
**
ret
)
{
{
WCHAR
schema
[
64
],
str_clsid
[
64
];
WCHAR
schema
[
64
],
str_clsid
[
64
];
...
@@ -111,16 +121,63 @@ static HRESULT WINAPI InternetSession_RegisterNameSpace(IInternetSession *iface,
...
@@ -111,16 +121,63 @@ static HRESULT WINAPI InternetSession_RegisterNameSpace(IInternetSession *iface,
IClassFactory
*
pCF
,
REFCLSID
rclsid
,
LPCWSTR
pwzProtocol
,
ULONG
cPatterns
,
IClassFactory
*
pCF
,
REFCLSID
rclsid
,
LPCWSTR
pwzProtocol
,
ULONG
cPatterns
,
const
LPCWSTR
*
ppwzPatterns
,
DWORD
dwReserved
)
const
LPCWSTR
*
ppwzPatterns
,
DWORD
dwReserved
)
{
{
FIXME
(
"(%p %s %s %ld %p %ld)
\n
"
,
pCF
,
debugstr_guid
(
rclsid
),
debugstr_w
(
pwzProtocol
),
name_space
*
new_name_space
;
cPatterns
,
ppwzPatterns
,
dwReserved
);
int
size
;
return
E_NOTIMPL
;
TRACE
(
"(%p %s %s %ld %p %ld)
\n
"
,
pCF
,
debugstr_guid
(
rclsid
),
debugstr_w
(
pwzProtocol
),
cPatterns
,
ppwzPatterns
,
dwReserved
);
if
(
cPatterns
||
ppwzPatterns
)
FIXME
(
"patterns not supported
\n
"
);
if
(
dwReserved
)
WARN
(
"dwReserved = %ld
\n
"
,
dwReserved
);
if
(
!
pCF
||
!
pwzProtocol
)
return
E_INVALIDARG
;
new_name_space
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
name_space
));
size
=
(
strlenW
(
pwzProtocol
)
+
1
)
*
sizeof
(
WCHAR
);
new_name_space
->
protocol
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
memcpy
(
new_name_space
->
protocol
,
pwzProtocol
,
size
);
IClassFactory_AddRef
(
pCF
);
new_name_space
->
cf
=
pCF
;
new_name_space
->
next
=
name_space_list
;
name_space_list
=
new_name_space
;
return
S_OK
;
}
}
static
HRESULT
WINAPI
InternetSession_UnregisterNameSpace
(
IInternetSession
*
iface
,
static
HRESULT
WINAPI
InternetSession_UnregisterNameSpace
(
IInternetSession
*
iface
,
IClassFactory
*
pCF
,
LPCWSTR
pszProtocol
)
IClassFactory
*
pCF
,
LPCWSTR
pszProtocol
)
{
{
FIXME
(
"(%p %s)
\n
"
,
pCF
,
debugstr_w
(
pszProtocol
));
name_space
*
iter
,
*
last
=
NULL
;
return
E_NOTIMPL
;
TRACE
(
"(%p %s)
\n
"
,
pCF
,
debugstr_w
(
pszProtocol
));
if
(
!
pCF
||
!
pszProtocol
)
return
E_INVALIDARG
;
for
(
iter
=
name_space_list
;
iter
;
iter
=
iter
->
next
)
{
if
(
iter
->
cf
==
pCF
&&
!
strcmpW
(
iter
->
protocol
,
pszProtocol
))
break
;
last
=
iter
;
}
if
(
!
iter
)
return
S_OK
;
if
(
last
)
last
->
next
=
iter
->
next
;
else
name_space_list
=
iter
->
next
;
IClassFactory_Release
(
iter
->
cf
);
HeapFree
(
GetProcessHeap
(),
0
,
iter
->
protocol
);
HeapFree
(
GetProcessHeap
(),
0
,
iter
);
return
S_OK
;
}
}
static
HRESULT
WINAPI
InternetSession_RegisterMimeFilter
(
IInternetSession
*
iface
,
static
HRESULT
WINAPI
InternetSession_RegisterMimeFilter
(
IInternetSession
*
iface
,
...
...
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