www.pudn.com > rDUNclientBeta1.zip > main.h


//rDUN Client 
//Copyright (C) Robert Merrison 2002  
 
//This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License  
//as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. 
//This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied  
//warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. 
//You should have received a copy of the GNU General Public License along with this program; if not, write to the  
//Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 
 
#ifndef _MAIN_H_ 
#define _MAIN_H_ 
 
#include "debug.h" 
#include "timer.h" 
#include "server.h" 
#include "cfg.h" 
#include "resource.h" 
 
 
#define WM_NOTIFYMSG WM_USER+1 
#define TIMER_REDIAL 1 
 
HWND windowHandle; 
HWND statusWindowHandle; 
HWND confirmWindowHandle; 
HWND redialWindowHandle; 
HMENU	popupMenu; 
HINSTANCE appInstance; 
 
server_c server; 
cfg_ptr config; 
char serverAddress[16]; 
char debugFilename[32]; 
char password[128]; 
unsigned short serverPort; 
debug_engine	debugEngine; 
int		connectionState; 
bool	useAutoRedial; 
bool	notInitialState; 
bool	expectingDisconnect; 
int		autoRedialTime; 
int		autoRedialCountdown; 
 
int WINAPI	WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow ); 
bool createWindow( HINSTANCE hInstance, char* name, debug_engine* debugEngine ); 
LRESULT CALLBACK mainWindowProc( HWND windowHandle, UINT msg, WPARAM wParam, LPARAM lParam ); 
BOOL CALLBACK statusWindowProc( HWND windowHandle, UINT msg, WPARAM wParam, LPARAM lParam ); 
BOOL CALLBACK confirmWindowProc( HWND windowHandle, UINT msg, WPARAM wParam, LPARAM lParam ); 
BOOL CALLBACK redialWindowProc( HWND windowHandle, UINT msg, WPARAM wParam, LPARAM lParam ); 
bool createPopupMenu( int rConnectionState ); 
void showStatusWindow( int rConnectionState, bool forceShow ); 
void showConfirmWindow(); 
void showRedialWindow(); 
void createSysTrayIcon( int rConnectionState ); 
void removeSysTrayIcon(); 
 
 
#endif