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
11403326
Commit
11403326
authored
Apr 01, 2006
by
Matthew Kehrer
Committed by
Alexandre Julliard
Apr 03, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
url: Add a function and two stubs.
parent
0ad31f81
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
62 additions
and
6 deletions
+62
-6
Makefile.in
dlls/url/Makefile.in
+1
-1
url.spec
dlls/url/url.spec
+5
-5
url_main.c
dlls/url/url_main.c
+56
-0
No files found.
dlls/url/Makefile.in
View file @
11403326
...
...
@@ -4,7 +4,7 @@ SRCDIR = @srcdir@
VPATH
=
@srcdir@
MODULE
=
url.dll
IMPORTLIB
=
liburl.
$(IMPLIBEXT)
IMPORTS
=
kernel32
IMPORTS
=
shell32 shlwapi
kernel32
C_SRCS
=
url_main.c
...
...
dlls/url/url.spec
View file @
11403326
...
...
@@ -4,9 +4,9 @@
@ stub DllGetClassObject
@ stub DummyEntryPoint
@ stub DummyEntryPointA
@ st
ub FileProtocolHandler
@ st
ub FileProtocolHandlerA
@ st
ub InetIsOffline
@ st
dcall FileProtocolHandler(long str long) FileProtocolHandlerA
@ st
dcall FileProtocolHandlerA(long str long)
@ st
dcall InetIsOffline()
@ stub MIMEAssociationDialogA
@ stub MIMEAssociationDialogW
@ stub MailToProtocolHandler
...
...
@@ -15,8 +15,8 @@
@ stub NewsProtocolHandlerA
@ stub OpenURL
@ stub OpenURLA
@ st
ub TelnetProtocolHandler
@ st
ub TelnetProtocolHandlerA
@ st
dcall TelnetProtocolHandler(long str) TelnetProtocolHandlerA
@ st
dcall TelnetProtocolHandlerA(long str)
@ stub TranslateURLA
@ stub TranslateURLW
@ stub URLAssociationDialogA
...
...
dlls/url/url_main.c
View file @
11403326
...
...
@@ -19,6 +19,13 @@
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "winreg.h"
#include "winerror.h"
#include "shellapi.h"
#include "shlwapi.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
url
);
/***********************************************************************
* DllMain (URL.@)
...
...
@@ -35,3 +42,52 @@ BOOL WINAPI DllMain( HINSTANCE inst, DWORD reason, LPVOID reserved )
}
return
TRUE
;
}
/***********************************************************************
* InetIsOffline (URL.@)
*
*/
BOOL
WINAPI
InetIsOffline
(
void
)
{
FIXME
(
"stub!
\n
"
);
return
FALSE
;
}
/***********************************************************************
* FileProtocolHandlerA (URL.@)
*
* Handles a URL given to it and executes it.
*
* HWND hWnd - Parent Window
* LPCSTR pszUrl - The URL that needs to be handled
* int nShowCmd - How to display the operation.
*/
HRESULT
WINAPI
FileProtocolHandlerA
(
HWND
hWnd
,
LPCSTR
pszUrl
,
int
nShowCmd
)
{
LPSTR
pszPath
=
NULL
;
DWORD
size
=
MAX_PATH
;
HRESULT
createpath
=
PathCreateFromUrlA
(
pszUrl
,
pszPath
,
&
size
,
0
);
TRACE
(
"(%p, %p, %d)
\n
"
,
hWnd
,
pszUrl
,
nShowCmd
);
if
(
createpath
!=
S_OK
)
return
E_FAIL
;
ShellExecuteA
(
hWnd
,
NULL
,
pszPath
,
NULL
,
NULL
,
nShowCmd
);
return
S_OK
;
}
/***********************************************************************
* TelnetProtocolHandlerA (URL.@)
*
*/
HRESULT
WINAPI
TelnetProtocolHandlerA
(
HWND
hWnd
,
LPSTR
lpStr
)
{
FIXME
(
"(%p, %p): stub!
\n
"
,
hWnd
,
lpStr
);
return
E_NOTIMPL
;
}
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