3c5df00cfba8c209a433f55e6fbea609b5697be6
2 * Copyright 2006 Alexandre Julliard
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #define WIN32_NO_STATUS
21 #define COM_NO_WINDOWS_H
27 //#include "winerror.h"
30 //#include "intshcut.h"
32 //#include "commctrl.h"
34 #include <wine/debug.h>
36 WINE_DEFAULT_DEBUG_CHANNEL(url
);
38 /***********************************************************************
41 BOOL WINAPI
DllMain( HINSTANCE inst
, DWORD reason
, LPVOID reserved
)
45 case DLL_WINE_PREATTACH
:
46 return FALSE
; /* prefer native version */
47 case DLL_PROCESS_ATTACH
:
48 DisableThreadLibraryCalls( inst
);
54 /***********************************************************************
55 * AddMIMEFileTypesPS (URL.@)
57 * Build and Manage a Filetype-Association Property Sheet
60 * unknown1 [I] Pointer to an Read-Only Area
61 * lppsh [I] PTR to the target PropertySheetHeader (ANSI)
67 DWORD WINAPI
AddMIMEFileTypesPS(VOID
* unknown1
, LPPROPSHEETHEADERA lppsh
)
69 FIXME("(%p, %p): stub!\n", unknown1
, lppsh
);
73 /***********************************************************************
74 * InetIsOffline (URL.@)
77 BOOL WINAPI
InetIsOffline(DWORD flags
)
79 FIXME("(%08x): stub!\n", flags
);
84 /***********************************************************************
85 * FileProtocolHandlerA (URL.@)
87 * Handles a URL given to it and executes it.
89 * HWND hWnd - Parent Window
90 * HINSTANCE hInst - ignored
91 * LPCSTR pszUrl - The URL that needs to be handled
92 * int nShowCmd - How to display the operation.
95 HRESULT WINAPI
FileProtocolHandlerA(HWND hWnd
, HINSTANCE hInst
, LPCSTR pszUrl
,
98 CHAR pszPath
[MAX_PATH
];
99 DWORD size
= MAX_PATH
;
100 HRESULT createpath
= PathCreateFromUrlA(pszUrl
,pszPath
,&size
,0);
102 TRACE("(%p, %s, %d)\n",hWnd
,debugstr_a(pszUrl
),nShowCmd
);
104 if(createpath
!= S_OK
)
107 ShellExecuteA(hWnd
,NULL
,pszPath
,NULL
,NULL
,nShowCmd
);
112 /***********************************************************************
116 void WINAPI
OpenURLA(HWND hwnd
, HINSTANCE inst
, LPCSTR cmdline
, INT show
)
118 FIXME("(%p, %p, %s, %d): stub!\n", hwnd
, inst
, debugstr_a(cmdline
), show
);
121 /***********************************************************************
122 * TelnetProtocolHandlerA (URL.@)
126 HRESULT WINAPI
TelnetProtocolHandlerA(HWND hWnd
, LPSTR lpStr
)
128 FIXME("(%p, %p): stub!\n",hWnd
,lpStr
);