mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-15 08:00:11 +00:00
url: Add a function and two stubs.
This commit is contained in:
parent
0ad31f819d
commit
1140332674
|
@ -4,7 +4,7 @@ SRCDIR = @srcdir@
|
||||||
VPATH = @srcdir@
|
VPATH = @srcdir@
|
||||||
MODULE = url.dll
|
MODULE = url.dll
|
||||||
IMPORTLIB = liburl.$(IMPLIBEXT)
|
IMPORTLIB = liburl.$(IMPLIBEXT)
|
||||||
IMPORTS = kernel32
|
IMPORTS = shell32 shlwapi kernel32
|
||||||
|
|
||||||
C_SRCS = url_main.c
|
C_SRCS = url_main.c
|
||||||
|
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
@ stub DllGetClassObject
|
@ stub DllGetClassObject
|
||||||
@ stub DummyEntryPoint
|
@ stub DummyEntryPoint
|
||||||
@ stub DummyEntryPointA
|
@ stub DummyEntryPointA
|
||||||
@ stub FileProtocolHandler
|
@ stdcall FileProtocolHandler(long str long) FileProtocolHandlerA
|
||||||
@ stub FileProtocolHandlerA
|
@ stdcall FileProtocolHandlerA(long str long)
|
||||||
@ stub InetIsOffline
|
@ stdcall InetIsOffline()
|
||||||
@ stub MIMEAssociationDialogA
|
@ stub MIMEAssociationDialogA
|
||||||
@ stub MIMEAssociationDialogW
|
@ stub MIMEAssociationDialogW
|
||||||
@ stub MailToProtocolHandler
|
@ stub MailToProtocolHandler
|
||||||
|
@ -15,8 +15,8 @@
|
||||||
@ stub NewsProtocolHandlerA
|
@ stub NewsProtocolHandlerA
|
||||||
@ stub OpenURL
|
@ stub OpenURL
|
||||||
@ stub OpenURLA
|
@ stub OpenURLA
|
||||||
@ stub TelnetProtocolHandler
|
@ stdcall TelnetProtocolHandler(long str) TelnetProtocolHandlerA
|
||||||
@ stub TelnetProtocolHandlerA
|
@ stdcall TelnetProtocolHandlerA(long str)
|
||||||
@ stub TranslateURLA
|
@ stub TranslateURLA
|
||||||
@ stub TranslateURLW
|
@ stub TranslateURLW
|
||||||
@ stub URLAssociationDialogA
|
@ stub URLAssociationDialogA
|
||||||
|
|
|
@ -19,6 +19,13 @@
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include "windef.h"
|
#include "windef.h"
|
||||||
#include "winbase.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.@)
|
* DllMain (URL.@)
|
||||||
|
@ -35,3 +42,52 @@ BOOL WINAPI DllMain( HINSTANCE inst, DWORD reason, LPVOID reserved )
|
||||||
}
|
}
|
||||||
return TRUE;
|
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;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue