ReactOS  0.4.14-dev-98-gb0d4763
url_main.c File Reference
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "winreg.h"
#include "winerror.h"
#include "shellapi.h"
#include "shlwapi.h"
#include "intshcut.h"
#include "winuser.h"
#include "commctrl.h"
#include "prsht.h"
#include "wine/debug.h"
Include dependency graph for url_main.c:

Go to the source code of this file.

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (url)
 
BOOL WINAPI DllMain (HINSTANCE inst, DWORD reason, LPVOID reserved)
 
DWORD WINAPI AddMIMEFileTypesPS (VOID *unknown1, LPPROPSHEETHEADERA lppsh)
 
BOOL WINAPI InetIsOffline (DWORD flags)
 
void WINAPI FileProtocolHandlerA (HWND hWnd, HINSTANCE hInst, LPCSTR pszUrl, int nShowCmd)
 
void WINAPI OpenURLA (HWND hwnd, HINSTANCE inst, LPCSTR cmdline, INT show)
 
HRESULT WINAPI TelnetProtocolHandlerA (HWND hWnd, LPSTR lpStr)
 

Function Documentation

◆ AddMIMEFileTypesPS()

DWORD WINAPI AddMIMEFileTypesPS ( VOID unknown1,
LPPROPSHEETHEADERA  lppsh 
)

Definition at line 63 of file url_main.c.

64 {
65  FIXME("(%p, %p): stub!\n", unknown1, lppsh);
66  return 0;
67 }
#define FIXME(fmt,...)
Definition: debug.h:110

◆ DllMain()

BOOL WINAPI DllMain ( HINSTANCE  inst,
DWORD  reason,
LPVOID  reserved 
)

Definition at line 37 of file url_main.c.

38 {
39  switch(reason)
40  {
41  case DLL_WINE_PREATTACH:
42  return FALSE; /* prefer native version */
43  case DLL_PROCESS_ATTACH:
45  break;
46  }
47  return TRUE;
48 }
#define TRUE
Definition: types.h:120
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
Definition: loader.c:85
#define DLL_PROCESS_ATTACH
Definition: compat.h:120
static WCHAR reason[MAX_STRING_RESOURCE_LEN]
Definition: object.c:1904

◆ FileProtocolHandlerA()

void WINAPI FileProtocolHandlerA ( HWND  hWnd,
HINSTANCE  hInst,
LPCSTR  pszUrl,
int  nShowCmd 
)

Definition at line 91 of file url_main.c.

92 {
93  CHAR pszPath[MAX_PATH];
95  HRESULT createpath = PathCreateFromUrlA(pszUrl,pszPath,&size,0);
96 
97  TRACE("(%p, %s, %d)\n",hWnd,debugstr_a(pszUrl),nShowCmd);
98 
99  ShellExecuteA(hWnd, NULL, createpath==S_OK ? pszPath : pszUrl, NULL, NULL, nShowCmd);
100 }
HINSTANCE WINAPI ShellExecuteA(HWND hWnd, LPCSTR lpVerb, LPCSTR lpFile, LPCSTR lpParameters, LPCSTR lpDirectory, INT iShowCmd)
Definition: shlexec.cpp:2113
char CHAR
Definition: xmlstorage.h:175
HWND hWnd
Definition: settings.c:17
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
GLsizeiptr size
Definition: glext.h:5919
#define debugstr_a
Definition: kernel32.h:31
LONG HRESULT
Definition: typedefs.h:77
#define MAX_PATH
Definition: compat.h:26
HRESULT WINAPI PathCreateFromUrlA(LPCSTR pszUrl, LPSTR pszPath, LPDWORD pcchPath, DWORD dwReserved)
Definition: path.c:3285
unsigned long DWORD
Definition: ntddk_ex.h:95
#define S_OK
Definition: intsafe.h:59

◆ InetIsOffline()

BOOL WINAPI InetIsOffline ( DWORD  flags)

Definition at line 73 of file url_main.c.

74 {
75  FIXME("(%08x): stub!\n", flags);
76 
77  return FALSE;
78 }
#define FIXME(fmt,...)
Definition: debug.h:110
GLbitfield flags
Definition: glext.h:7161

◆ OpenURLA()

void WINAPI OpenURLA ( HWND  hwnd,
HINSTANCE  inst,
LPCSTR  cmdline,
INT  show 
)

Definition at line 106 of file url_main.c.

107 {
108  FIXME("(%p, %p, %s, %d): stub!\n", hwnd, inst, debugstr_a(cmdline), show);
109 }
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
TCHAR * cmdline
Definition: stretchblt.cpp:32
#define FIXME(fmt,...)
Definition: debug.h:110
#define debugstr_a
Definition: kernel32.h:31

◆ TelnetProtocolHandlerA()

HRESULT WINAPI TelnetProtocolHandlerA ( HWND  hWnd,
LPSTR  lpStr 
)

Definition at line 116 of file url_main.c.

117 {
118  FIXME("(%p, %p): stub!\n",hWnd,lpStr);
119 
120  return E_NOTIMPL;
121 }
HWND hWnd
Definition: settings.c:17
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( url  )