ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

url_main.c
Go to the documentation of this file.
00001 /*
00002  * Copyright 2006 Alexandre Julliard
00003  *
00004  * This library is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU Lesser General Public
00006  * License as published by the Free Software Foundation; either
00007  * version 2.1 of the License, or (at your option) any later version.
00008  *
00009  * This library is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  * Lesser General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU Lesser General Public
00015  * License along with this library; if not, write to the Free Software
00016  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
00017  */
00018 
00019 #include <stdarg.h>
00020 #include "windef.h"
00021 #include "winbase.h"
00022 #include "winreg.h"
00023 #include "winerror.h"
00024 #include "shellapi.h"
00025 #include "shlwapi.h"
00026 #include "intshcut.h"
00027 #include "winuser.h"
00028 #include "commctrl.h"
00029 #include "prsht.h"
00030 #include "wine/debug.h"
00031 
00032 WINE_DEFAULT_DEBUG_CHANNEL(url);
00033 
00034 /***********************************************************************
00035  *      DllMain  (URL.@)
00036  */
00037 BOOL WINAPI DllMain( HINSTANCE inst, DWORD reason, LPVOID reserved )
00038 {
00039     switch(reason)
00040     {
00041     case DLL_WINE_PREATTACH:
00042         return FALSE;  /* prefer native version */
00043     case DLL_PROCESS_ATTACH:
00044         DisableThreadLibraryCalls( inst );
00045         break;
00046     }
00047     return TRUE;
00048 }
00049 
00050 /***********************************************************************
00051  * AddMIMEFileTypesPS (URL.@)
00052  *
00053  * Build and Manage a Filetype-Association Property Sheet
00054  *
00055  * PARAMS
00056  *  unknown1 [I] Pointer to an Read-Only Area
00057  *  lppsh    [I] PTR to the target PropertySheetHeader (ANSI)
00058  *
00059  * RETURNS
00060  *  Success: 0
00061  *
00062  */
00063 DWORD WINAPI AddMIMEFileTypesPS(VOID * unknown1, LPPROPSHEETHEADERA lppsh)
00064 {
00065     FIXME("(%p, %p): stub!\n", unknown1, lppsh);
00066     return 0;
00067 }
00068 
00069 /***********************************************************************
00070  * InetIsOffline    (URL.@)
00071  *
00072  */
00073 BOOL WINAPI InetIsOffline(DWORD flags)
00074 {
00075     FIXME("(%08x): stub!\n", flags);
00076 
00077     return FALSE;
00078 }
00079 
00080 /***********************************************************************
00081  * FileProtocolHandlerA    (URL.@)
00082  *
00083  * Handles a URL given to it and executes it.
00084  *
00085  * HWND hWnd - Parent Window
00086  * HINSTANCE hInst - ignored
00087  * LPCSTR pszUrl - The URL that needs to be handled
00088  * int nShowCmd - How to display the operation.
00089  */
00090 
00091 HRESULT WINAPI FileProtocolHandlerA(HWND hWnd, HINSTANCE hInst, LPCSTR pszUrl,
00092         int nShowCmd)
00093 {
00094     CHAR pszPath[MAX_PATH];
00095     DWORD size = MAX_PATH;
00096     HRESULT createpath = PathCreateFromUrlA(pszUrl,pszPath,&size,0);
00097 
00098     TRACE("(%p, %s, %d)\n",hWnd,debugstr_a(pszUrl),nShowCmd);
00099 
00100     if(createpath != S_OK)
00101         return E_FAIL;
00102 
00103     ShellExecuteA(hWnd,NULL,pszPath,NULL,NULL,nShowCmd);
00104 
00105     return S_OK;
00106 }
00107 
00108 /***********************************************************************
00109  * OpenURLA    (URL.@)
00110  *
00111  */
00112 void WINAPI OpenURLA(HWND hwnd, HINSTANCE inst, LPCSTR cmdline, INT show)
00113 {
00114     FIXME("(%p, %p, %s, %d): stub!\n", hwnd, inst, debugstr_a(cmdline), show);
00115 }
00116 
00117 /***********************************************************************
00118  * TelnetProtocolHandlerA    (URL.@)
00119  *
00120  */
00121 
00122 HRESULT WINAPI TelnetProtocolHandlerA(HWND hWnd, LPSTR lpStr)
00123 {
00124     FIXME("(%p, %p): stub!\n",hWnd,lpStr);
00125 
00126     return E_NOTIMPL;
00127 }

Generated on Sun May 27 2012 04:26:36 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.