ReactOS 0.4.15-dev-8100-g1887773
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:114

◆ 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 */
45 break;
46 }
47 return TRUE;
48}
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
static WCHAR reason[MAX_STRING_RESOURCE_LEN]
Definition: object.c:1904
#define DLL_PROCESS_ATTACH
Definition: compat.h:131
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
Definition: loader.c:85

◆ 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}
HWND hWnd
Definition: settings.c:17
#define NULL
Definition: types.h:112
#define MAX_PATH
Definition: compat.h:34
HRESULT WINAPI PathCreateFromUrlA(LPCSTR pszUrl, LPSTR pszPath, LPDWORD pcchPath, DWORD dwReserved)
Definition: path.c:3306
unsigned long DWORD
Definition: ntddk_ex.h:95
GLsizeiptr size
Definition: glext.h:5919
#define S_OK
Definition: intsafe.h:52
#define debugstr_a
Definition: kernel32.h:31
HINSTANCE WINAPI ShellExecuteA(HWND hWnd, LPCSTR lpVerb, LPCSTR lpFile, LPCSTR lpParameters, LPCSTR lpDirectory, INT iShowCmd)
Definition: shlexec.cpp:2321
#define TRACE(s)
Definition: solgame.cpp:4
char CHAR
Definition: xmlstorage.h:175

◆ 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}
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#ifdef __REACTOS__
109 TRACE("(%p, %p, %s, %d)\n", hwnd, inst, debugstr_a(cmdline), show);
111#else
112 FIXME("(%p, %p, %s, %d): stub!\n", hwnd, inst, debugstr_a(cmdline), show);
113#endif
114}
TCHAR * cmdline
Definition: stretchblt.cpp:32
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023

◆ TelnetProtocolHandlerA()

HRESULT WINAPI TelnetProtocolHandlerA ( HWND  hWnd,
LPSTR  lpStr 
)

Definition at line 121 of file url_main.c.

122{
123 FIXME("(%p, %p): stub!\n",hWnd,lpStr);
124
125 return E_NOTIMPL;
126}
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( url  )