Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
691b0a3d
Commit
691b0a3d
authored
Apr 22, 2007
by
Hans Leidekker
Committed by
Alexandre Julliard
Apr 23, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Add an implementation for CreateURLMonikerEx based on existing code for CreateURLMoniker.
parent
364e65a8
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
3 deletions
+29
-3
umon.c
dlls/urlmon/umon.c
+26
-3
urlmon.spec
dlls/urlmon/urlmon.spec
+1
-0
urlmon.idl
include/urlmon.idl
+2
-0
No files found.
dlls/urlmon/umon.c
View file @
691b0a3d
...
...
@@ -1149,7 +1149,7 @@ HRESULT WINAPI CreateAsyncBindCtxEx(IBindCtx *ibind, DWORD options,
/***********************************************************************
* CreateURLMoniker (URLMON.@)
* CreateURLMoniker
Ex
(URLMON.@)
*
* Create a url moniker.
*
...
...
@@ -1157,19 +1157,22 @@ HRESULT WINAPI CreateAsyncBindCtxEx(IBindCtx *ibind, DWORD options,
* pmkContext [I] Context
* szURL [I] Url to create the moniker for
* ppmk [O] Destination for created moniker.
* dwFlags [I] Flags.
*
* RETURNS
* Success: S_OK. ppmk contains the created IMoniker object.
* Failure: MK_E_SYNTAX if szURL is not a valid url, or
* E_OUTOFMEMORY if memory allocation fails.
*/
HRESULT
WINAPI
CreateURLMoniker
(
IMoniker
*
pmkContext
,
LPCWSTR
szURL
,
IMoniker
**
ppmk
)
HRESULT
WINAPI
CreateURLMoniker
Ex
(
IMoniker
*
pmkContext
,
LPCWSTR
szURL
,
IMoniker
**
ppmk
,
DWORD
dwFlags
)
{
URLMonikerImpl
*
obj
;
HRESULT
hres
;
LPOLESTR
lefturl
=
NULL
;
TRACE
(
"(%p, %s, %p)
\n
"
,
pmkContext
,
debugstr_w
(
szURL
),
ppmk
);
TRACE
(
"(%p, %s, %p, %08x)
\n
"
,
pmkContext
,
debugstr_w
(
szURL
),
ppmk
,
dwFlags
);
if
(
dwFlags
&
URL_MK_UNIFORM
)
FIXME
(
"ignoring flag URL_MK_UNIFORM
\n
"
);
if
(
!
(
obj
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
obj
))))
return
E_OUTOFMEMORY
;
...
...
@@ -1194,6 +1197,26 @@ HRESULT WINAPI CreateURLMoniker(IMoniker *pmkContext, LPCWSTR szURL, IMoniker **
return
hres
;
}
/**********************************************************************
* CreateURLMoniker (URLMON.@)
*
* Create a url moniker.
*
* PARAMS
* pmkContext [I] Context
* szURL [I] Url to create the moniker for
* ppmk [O] Destination for created moniker.
*
* RETURNS
* Success: S_OK. ppmk contains the created IMoniker object.
* Failure: MK_E_SYNTAX if szURL is not a valid url, or
* E_OUTOFMEMORY if memory allocation fails.
*/
HRESULT
WINAPI
CreateURLMoniker
(
IMoniker
*
pmkContext
,
LPCWSTR
szURL
,
IMoniker
**
ppmk
)
{
return
CreateURLMonikerEx
(
pmkContext
,
szURL
,
ppmk
,
URL_MK_LEGACY
);
}
/***********************************************************************
* CoInternetQueryInfo (URLMON.@)
*
...
...
dlls/urlmon/urlmon.spec
View file @
691b0a3d
...
...
@@ -26,6 +26,7 @@
@ stdcall CreateAsyncBindCtxEx(ptr long ptr ptr ptr long)
@ stdcall CreateFormatEnumerator(long ptr ptr)
@ stdcall CreateURLMoniker(ptr wstr ptr)
@ stdcall CreateURLMonikerEx(ptr wstr ptr long)
@ stdcall -private DllCanUnloadNow()
@ stdcall -private DllGetClassObject(ptr ptr ptr)
@ stdcall -private DllInstall(long wstr)
...
...
include/urlmon.idl
View file @
691b0a3d
...
...
@@ -1284,3 +1284,5 @@ cpp_quote("#define OInetCompareUrl CoInternetCompareUrl")
cpp_quote
(
"#define OInetGetSession CoInternetGetSession"
)
cpp_quote
(
"#define MKSYS_URLMONIKER 6"
)
cpp_quote
(
"#define URL_MK_LEGACY 0"
)
cpp_quote
(
"#define URL_MK_UNIFORM 1"
)
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