
#if (FRONTIERWEB==1)
typedef long (WINAPI * tywebappSetup) (HINSTANCE hInstance, HWND hwnd, HWND hwndStatus, char * initialURL);
typedef void (WINAPI * tywebappNoParam) ();
typedef void (WINAPI * tywebappNavigate) (char * nameto);
typedef long (WINAPI * tywebappVersion) ();
typedef short (WINAPI * tywebappIsOffline) (short * fl);
typedef short (WINAPI * tywebappSetOffline) (short fl);

typedef LRESULT (WINAPI * tywebappWndProc) (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);

typedef struct tywebappInfo {
	boolean flactive;
	HMODULE hwebappModule;
	tywebappSetup webappSetup;
	tywebappWndProc webappWndProc;
	tywebappNoParam webappBack;
	tywebappNoParam webappForward;
	tywebappNoParam webappHome;
	tywebappNoParam webappStop;
	tywebappNoParam webappRefresh;
	tywebappNavigate webappNavigate;
	tywebappVersion webappVersion;
	tywebappIsOffline webappIsOffline;
	tywebappSetOffline webappSetOffline;
	} tywebappInfo;

extern tywebappInfo gwebappInfo;


HANDLE webappStartup ();
boolean webappShutdown ();
long doweb (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);

#endif
long CALLBACK htmlControlWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);

void htmlcontrolback ();
void htmlcontrolforward ();
void htmlcontrolrefresh ();
void htmlcontrolhome ();
void htmlcontrolstop ();
void htmlcontrolnavigate (Handle htext);
boolean htmlcontrolversion (unsigned short * majorVersion, unsigned short * minorVersion);
boolean htmlcontrolpresent ();
boolean htmlcontrolactive ();
boolean htmlcontrolisoffline (boolean * fl);
boolean htmlcontrolsetoffline (boolean fl);
