ReactOS 0.4.17-dev-934-g091855f
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)
 
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 47 of file url_main.c.

48{
49 FIXME("(%p, %p): stub!\n", unknown1, lppsh);
50 return 0;
51}
#define FIXME(fmt,...)
Definition: precomp.h:53

◆ FileProtocolHandlerA()

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

Definition at line 75 of file url_main.c.

76{
77 CHAR pszPath[MAX_PATH];
79 HRESULT createpath = PathCreateFromUrlA(pszUrl,pszPath,&size,0);
80
81 TRACE("(%p, %s, %d)\n",hWnd,debugstr_a(pszUrl),nShowCmd);
82
83 ShellExecuteA(hWnd, NULL, createpath==S_OK ? pszPath : pszUrl, NULL, NULL, nShowCmd);
84}
HWND hWnd
Definition: settings.c:17
#define NULL
Definition: types.h:112
#define MAX_PATH
Definition: compat.h:34
HRESULT WINAPI PathCreateFromUrlA(const char *pszUrl, char *pszPath, DWORD *pcchPath, DWORD dwReserved)
Definition: path.c:3016
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
char CHAR
Definition: pedump.c:57
HINSTANCE WINAPI ShellExecuteA(HWND hWnd, LPCSTR lpVerb, LPCSTR lpFile, LPCSTR lpParameters, LPCSTR lpDirectory, INT iShowCmd)
Definition: shlexec.cpp:2616
#define TRACE(s)
Definition: solgame.cpp:4

◆ InetIsOffline()

BOOL WINAPI InetIsOffline ( DWORD  flags)

Definition at line 57 of file url_main.c.

58{
59 FIXME("(%08lx): stub!\n", flags);
60
61 return FALSE;
62}
#define FALSE
Definition: types.h:117
GLbitfield flags
Definition: glext.h:7161

◆ OpenURLA()

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

Definition at line 90 of file url_main.c.

91{
92#ifdef __REACTOS__
93 TRACE("(%p, %p, %s, %d)\n", hwnd, inst, debugstr_a(cmdline), show);
95#else
96 FIXME("(%p, %p, %s, %d): stub!\n", hwnd, inst, debugstr_a(cmdline), show);
97#endif
98}
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 105 of file url_main.c.

106{
107 FIXME("(%p, %p): stub!\n",hWnd,lpStr);
108
109 return E_NOTIMPL;
110}
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( url  )