ReactOS 0.4.16-dev-927-g467dec4
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 65 of file url_main.c.

66{
67 FIXME("(%p, %p): stub!\n", unknown1, lppsh);
68 return 0;
69}
#define FIXME(fmt,...)
Definition: precomp.h:53

◆ 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#ifndef __REACTOS__
42 case DLL_WINE_PREATTACH:
43 return FALSE; /* prefer native version */
44#endif
47 break;
48 }
49 return TRUE;
50}
#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 93 of file url_main.c.

94{
95 CHAR pszPath[MAX_PATH];
97 HRESULT createpath = PathCreateFromUrlA(pszUrl,pszPath,&size,0);
98
99 TRACE("(%p, %s, %d)\n",hWnd,debugstr_a(pszUrl),nShowCmd);
100
101 ShellExecuteA(hWnd, NULL, createpath==S_OK ? pszPath : pszUrl, NULL, NULL, nShowCmd);
102}
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:3312
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:2343
#define TRACE(s)
Definition: solgame.cpp:4
char CHAR
Definition: xmlstorage.h:175

◆ InetIsOffline()

BOOL WINAPI InetIsOffline ( DWORD  flags)

Definition at line 75 of file url_main.c.

76{
77 FIXME("(%08x): stub!\n", flags);
78
79 return FALSE;
80}
GLbitfield flags
Definition: glext.h:7161

◆ OpenURLA()

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

Definition at line 108 of file url_main.c.

109{
110#ifdef __REACTOS__
111 TRACE("(%p, %p, %s, %d)\n", hwnd, inst, debugstr_a(cmdline), show);
113#else
114 FIXME("(%p, %p, %s, %d): stub!\n", hwnd, inst, debugstr_a(cmdline), show);
115#endif
116}
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 123 of file url_main.c.

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

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( url  )