1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123 |
- #ifndef _INC_OPENDOOR
- #define _INC_OPENDOOR
- #define OD_VERSION 0x624
- #define DIRSEP '\\'
- #define DIRSEP_STR "\\"
- #if defined(WIN32) || defined(__WIN32__) || defined(_WIN32)
- #define ODPLAT_WIN32
- #undef ODPLAT_DOS
- #ifdef OD_WIN32_STATIC
- #pragma message("Compiling for Win32 static version of OpenDoors")
- #else
- #pragma message("Compiling for Win32 DLL version of OpenDoors")
- #define OD_DLL
- #endif
- #else
- #if defined(__unix__) || defined(__NetBSD__) || defined(__APPLE__)
- #define ODPLAT_NIX
- #undef ODPLAT_DOS
- #undef DIRSEP
- #define DIRSEP '/'
- #undef DIRSEP_STR
- #define DIRSEP_STR "/"
- #else
- #define ODPLAT_DOS
- #undef ODPLAT_WIN32
- #pragma message("Compiling for DOS version of OpenDoors")
- #endif
- #endif
- #ifdef ODPLAT_WIN32
- #include "windows.h"
- #endif
- #ifdef OD_DLL
- #if defined(_MSC_VER) || defined(__BORLANDC__)
- #define OD_EXPORT __declspec(dllexport)
- #else
- #define OD_EXPORT _export
- #endif
- #define OD_IMPORT DECLSPEC_IMPORT
- #else
- #define OD_EXPORT
- #define OD_IMPORT
- #endif
- #ifdef __cplusplus
- #define OD_NAMING_CONVENTION extern "C"
- #else
- #define OD_NAMING_CONVENTION
- #endif
- #ifdef ODPLAT_WIN32
- #define ODCALL WINAPI
- #define ODVCALL WINAPIV
- #define OD_GLOBAL_CONV WINAPI
- #else
- #define ODCALL
- #define ODVCALL
- #define OD_GLOBAL_CONV
- #endif
- #ifdef BUILDING_OPENDOORS
- #define ODAPIDEF OD_NAMING_CONVENTION OD_EXPORT
- #else
- #define ODAPIDEF OD_NAMING_CONVENTION OD_IMPORT
- #endif
- #define OD_API_VAR_DEFN OD_NAMING_CONVENTION OD_EXPORT
- #ifdef BUILDING_OPENDOORS
- #define OD_API_VAR_DECL extern OD_EXPORT
- #else
- #define OD_API_VAR_DECL extern OD_IMPORT
- #endif
- #ifdef ODPLAT_DOS
- #define ODFAR far
- #else
- #define ODFAR
- #endif
- #ifndef ODPLAT_WIN32
- #ifndef BYTE
- typedef unsigned char BYTE;
- #endif
- #ifndef WORD
- typedef unsigned short WORD;
- #endif
- #ifndef DWORD
- typedef unsigned long DWORD;
- #endif
- #ifndef CHAR
- typedef char CHAR;
- #endif
- #define DWORD_DEFINED
- #define WORD_DEFINED
- #endif
- typedef signed char INT8;
- typedef signed short int INT16;
- #ifndef ODPLAT_WIN32
- typedef signed long int INT32;
- #endif
- #ifndef ODPLAT_WIN32
- typedef int INT;
- typedef unsigned int UINT;
- #ifndef BOOL
- typedef char BOOL;
- #endif
- #endif
- #ifndef FALSE
- #define FALSE 0
- #endif
- #ifndef TRUE
- #define TRUE 1
- #endif
- typedef DWORD tODMilliSec;
- #ifdef ODPLAT_WIN32
- #define OD_NO_TIMEOUT INFINITE
- #else
- #define OD_NO_TIMEOUT 0xffffffffL
- #endif
- typedef enum
- {
- FORMAT_PARAGRAPH_BREAKS
- ,FORMAT_LINE_BREAKS
- ,FORMAT_FTSC_MESSAGE
- ,FORMAT_NO_WORDWRAP
- } tODEditTextFormat;
- typedef enum
- {
- EDIT_MENU_DO_NOTHING
- ,EDIT_MENU_EXIT_EDITOR
- } tODEditMenuResult;
- #define EFLAG_NORMAL 0x00000000
- typedef struct
- {
- INT nAreaLeft;
- INT nAreaTop;
- INT nAreaRight;
- INT nAreaBottom;
- tODEditTextFormat TextFormat;
- tODEditMenuResult (*pfMenuCallback)(void *pUnused);
- void * (*pfBufferRealloc)(void *pOriginalBuffer, UINT unNewSize);
- DWORD dwEditFlags;
- char *pszFinalBuffer;
- UINT unFinalBufferSize;
- } tODEditOptions;
- #define OD_MULTIEDIT_ERROR 0
- #define OD_MULTIEDIT_SUCCESS 1
- typedef enum
- {
- EVENT_CHARACTER
- ,EVENT_EXTENDED_KEY
- } tODInputEventType;
- #define OD_KEY_F1 0x3b
- #define OD_KEY_F2 0x3c
- #define OD_KEY_F3 0x3d
- #define OD_KEY_F4 0x3e
- #define OD_KEY_F5 0x3f
- #define OD_KEY_F6 0x40
- #define OD_KEY_F7 0x41
- #define OD_KEY_F8 0x42
- #define OD_KEY_F9 0x43
- #define OD_KEY_F10 0x44
- #define OD_KEY_UP 0x48
- #define OD_KEY_DOWN 0x50
- #define OD_KEY_LEFT 0x4b
- #define OD_KEY_RIGHT 0x4d
- #define OD_KEY_INSERT 0x52
- #define OD_KEY_DELETE 0x53
- #define OD_KEY_HOME 0x47
- #define OD_KEY_END 0x4f
- #define OD_KEY_PGUP 0x49
- #define OD_KEY_PGDN 0x51
- #define OD_KEY_F11 0x85
- #define OD_KEY_F12 0x86
- #define OD_KEY_SHIFTTAB 0x0f
- typedef struct
- {
- tODInputEventType EventType;
- BOOL bFromRemote;
- char chKeyPress;
- } tODInputEvent;
- #define MAYBE 2
- #define P_WAIT 0
- #define P_NOWAIT 1
- #define CURRENT 0
- #define IRET 1
- #define EDIT_FLAG_NORMAL 0x0000
- #define EDIT_FLAG_NO_REDRAW 0x0001
- #define EDIT_FLAG_FIELD_MODE 0x0002
- #define EDIT_FLAG_EDIT_STRING 0x0004
- #define EDIT_FLAG_STRICT_INPUT 0x0008
- #define EDIT_FLAG_PASSWORD_MODE 0x0010
- #define EDIT_FLAG_ALLOW_CANCEL 0x0020
- #define EDIT_FLAG_FILL_STRING 0x0040
- #define EDIT_FLAG_AUTO_ENTER 0x0080
- #define EDIT_FLAG_AUTO_DELETE 0x0100
- #define EDIT_FLAG_KEEP_BLANK 0x0200
- #define EDIT_FLAG_PERMALITERAL 0x0400
- #define EDIT_FLAG_LEAVE_BLANK 0x0800
- #define EDIT_FLAG_SHOW_SIZE 0x1000
- #define EDIT_RETURN_ERROR 0
- #define EDIT_RETURN_CANCEL 1
- #define EDIT_RETURN_ACCEPT 2
- #define EDIT_RETURN_PREVIOUS 3
- #define EDIT_RETURN_NEXT 4
- #define MENU_NORMAL 0x0000
- #define MENU_ALLOW_CANCEL 0x0001
- #define MENU_PULLDOWN 0x0002
- #define MENU_KEEP 0x0004
- #define MENU_DESTROY 0x0008
- #define DETECT_NORMAL 0x0000
- #define SCROLL_NORMAL 0x0000
- #define SCROLL_NO_CLEAR 0x0001
- #define STATUS_NORMAL 0
- #define STATUS_NONE 8
- #define STATUS_ALTERNATE_1 1
- #define STATUS_ALTERNATE_2 2
- #define STATUS_ALTERNATE_3 3
- #define STATUS_ALTERNATE_4 4
- #define STATUS_ALTERNATE_5 5
- #define STATUS_ALTERNATE_6 6
- #define STATUS_ALTERNATE_7 7
- #define D_BLACK 0
- #define D_BLUE 1
- #define D_GREEN 2
- #define D_CYAN 3
- #define D_RED 4
- #define D_MAGENTA 5
- #define D_BROWN 6
- #define D_GREY 7
- #define L_BLACK 8
- #define L_BLUE 9
- #define L_GREEN 10
- #define L_CYAN 11
- #define L_RED 12
- #define L_MAGENTA 13
- #define L_YELLOW 14
- #define L_WHITE 15
- #define B_BLACK L_BLACK
- #define B_BLUE L_BLUE
- #define B_GREEN L_GREEN
- #define B_CYAN L_CYAN
- #define B_RED L_RED
- #define B_MAGENTA L_MAGENTA
- #define B_BROWN L_YELLOW
- #define B_GREY L_WHITE
- #define DORINFO1 0
- #define EXITINFO 1
- #define RA1EXITINFO 2
- #define CHAINTXT 3
- #define SFDOORSDAT 4
- #define CALLINFO 5
- #define DOORSYS_GAP 6
- #define DOORSYS_DRWY 7
- #define QBBS275EXITINFO 8
- #define CUSTOM 9
- #define DOORSYS_WILDCAT 10
- #define RA2EXITINFO 11
- #define TRIBBSSYS 12
- #define DOOR32SYS 13
- #define NO_DOOR_FILE 100
- #define ERR_NONE 0
- #define ERR_MEMORY 1
- #define ERR_NOGRAPHICS 2
- #define ERR_PARAMETER 3
- #define ERR_FILEOPEN 4
- #define ERR_LIMIT 5
- #define ERR_FILEREAD 6
- #define ERR_NOREMOTE 7
- #define ERR_GENERALFAILURE 8
- #define ERR_NOTHINGWAITING 9
- #define ERR_NOMATCH 10
- #define ERR_UNSUPPORTED 11
- #define ERRORLEVEL_ENABLE 0
- #define ERRORLEVEL_CRITICAL 1
- #define ERRORLEVEL_NOCARRIER 2
- #define ERRORLEVEL_HANGUP 3
- #define ERRORLEVEL_TIMEOUT 4
- #define ERRORLEVEL_INACTIVITY 5
- #define ERRORLEVEL_DROPTOBBS 6
- #define ERRORLEVEL_NORMAL 7
- #define POPUP_ERROR -1
- #define POPUP_ESCAPE 0
- #define POPUP_LEFT -2
- #define POPUP_RIGHT -3
- #define GETIN_NORMAL 0x0000
- #define GETIN_RAW 0x0001
- #define GETIN_RAWCTRL 0x0002
- #define BOX_UPPERLEFT 0
- #define BOX_TOP 1
- #define BOX_UPPERRIGHT 2
- #define BOX_LEFT 3
- #define BOX_LOWERLEFT 4
- #define BOX_LOWERRIGHT 5
- #define BOX_BOTTOM 6
- #define BOX_RIGHT 7
- #define PAGE_DISABLE 0
- #define PAGE_ENABLE 1
- #define PAGE_USE_HOURS 2
- #define COM_FOSSIL 1
- #define COM_INTERNAL 2
- #define COM_WIN32 3
- #define COM_DOOR32 4
- #define COM_SOCKET 5
- #define COM_STDIO 6
- #define COM_DEFAULT_FLOW 0
- #define COM_RTSCTS_FLOW 1
- #define COM_NO_FLOW 2
- ODAPIDEF void ODCALL ODConfigInit(void);
- ODAPIDEF void ODCALL ODLogEnable(void);
- ODAPIDEF void ODCALL ODMPSEnable(void);
- typedef void(ODFAR OD_COMPONENT)(void);
- #define INCLUDE_CONFIG_FILE (OD_COMPONENT *)ODConfigInit
- #define NO_CONFIG_FILE NULL
- #define INCLUDE_LOGFILE (OD_COMPONENT *)ODLogEnable
- #define NO_LOGFILE NULL
- #define INCLUDE_MPS (OD_COMPONENT *)ODMPSEnable
- #define NO_MPS NULL
- ODAPIDEF void ODCALL pdef_opendoors(BYTE btOperation);
- ODAPIDEF void ODCALL pdef_pcboard(BYTE btOperation);
- ODAPIDEF void ODCALL pdef_ra(BYTE btOperation);
- ODAPIDEF void ODCALL pdef_wildcat(BYTE btOperation);
- typedef void(ODFAR OD_PERSONALITY_PROC)(BYTE);
- #define PER_OPENDOORS (void *)pdef_opendoors
- #define PER_PCBOARD (void *)pdef_pcboard
- #define PER_RA (void *)pdef_ra
- #define PER_WILDCAT (void *)pdef_wildcat
- #define DIS_INFOFILE 0x0001
- #define DIS_CARRIERDETECT 0x0002
- #define DIS_TIMEOUT 0x0004
- #define DIS_LOCAL_OVERRIDE 0x0008
- #define DIS_BPS_SETTING 0x0010
- #define DIS_LOCAL_INPUT 0x0020
- #define DIS_SYSOP_KEYS 0x0040
- #define DIS_DTR_DISABLE 0x0080
- #define DIS_NAME_PROMPT 0x0100
- #define ES_DELETED 0
- #define ES_ENABLED 1
- #define ES_DISABLED 2
- #define PEROP_DISPLAY1 0
- #define PEROP_DISPLAY2 1
- #define PEROP_DISPLAY3 2
- #define PEROP_DISPLAY4 3
- #define PEROP_DISPLAY5 4
- #define PEROP_DISPLAY6 5
- #define PEROP_DISPLAY7 6
- #define PEROP_DISPLAY8 7
- #define PEROP_UPDATE1 10
- #define PEROP_UPDATE2 11
- #define PEROP_UPDATE3 12
- #define PEROP_UPDATE4 13
- #define PEROP_UPDATE5 14
- #define PEROP_UPDATE6 15
- #define PEROP_UPDATE7 16
- #define PEROP_UPDATE8 17
- #define PEROP_INITIALIZE 20
- #define PEROP_CUSTOMKEY 21
- #define PEROP_DEINITIALIZE 22
- #ifdef __TURBOC__
- #if(__TURBOC__ >= 0x295)
- #pragma option -a-
- #endif
- #endif
- #if defined(_MSC_VER) || defined(WIN32)
- #pragma pack(1)
- #endif
- typedef struct
- {
-
- char info_path[60];
-
- DWORD baud;
- DWORD od_connect_speed;
- INT16 od_com_address;
- BYTE od_com_irq;
- BYTE od_com_method;
- BYTE od_com_flow_control;
- WORD od_com_rx_buf;
- WORD od_com_tx_buf;
- BYTE od_com_fifo_trigger;
- BOOL od_com_no_fifo;
- BOOL od_no_fossil;
- BOOL od_use_socket;
- INT16 port;
- DWORD od_open_handle;
-
- char system_name[40];
- char sysop_name[40];
- INT32 system_calls;
- char system_last_caller[36];
- char timelog_start_date[9];
- INT16 timelog_busyperhour[24];
- INT16 timelog_busyperday[7];
- char user_name[36];
- char user_location[26];
- char user_password[16];
- char user_dataphone[16];
- char user_homephone[16];
- char user_lasttime[6];
- char user_lastdate[9];
- BYTE user_attribute;
- BYTE user_flags[4];
- DWORD user_net_credit;
- DWORD user_pending;
- WORD user_messages;
- DWORD user_lastread;
- WORD user_security;
- DWORD user_numcalls;
- DWORD user_uploads;
- DWORD user_downloads;
- DWORD user_upk;
- DWORD user_downk;
- DWORD user_todayk;
- WORD user_time_used;
- WORD user_screen_length;
- BYTE user_last_pwdchange;
- BYTE user_attrib2;
- WORD user_group;
- BYTE event_status;
- char event_starttime[6];
- BYTE event_errorlevel;
- BYTE event_days;
- BYTE event_force;
- char event_last_run[9];
- BYTE user_netmailentered;
- BYTE user_echomailentered;
- char user_logintime[6];
- char user_logindate[9];
- INT16 user_timelimit;
- INT32 user_loginsec;
- INT32 user_credit;
- WORD user_num;
- INT16 user_readthru;
- INT16 user_numpages;
- INT16 user_downlimit;
- char user_timeofcreation[6];
- char user_logonpassword[16];
- BYTE user_wantchat;
- BYTE user_ansi;
- INT16 user_deducted_time;
- char user_menustack[50][9];
- BYTE user_menustackpointer;
- char user_handle[36];
- char user_comment[81];
- char user_firstcall[9];
- BYTE user_combinedrecord[200];
- char user_birthday[9];
- char user_subdate[9];
- BYTE user_screenwidth;
- BYTE user_language;
- BYTE user_date_format;
- char user_forward_to[36];
- BYTE user_error_free;
- BYTE sysop_next;
- BYTE user_emsi_session;
- char user_emsi_crtdef[41];
- char user_emsi_protocols[41];
- char user_emsi_capabilities[41];
- char user_emsi_requests[41];
- char user_emsi_software[41];
- BYTE user_hold_attr1;
- BYTE user_hold_attr2;
- BYTE user_hold_len;
- char user_reasonforchat[78];
- char user_callsign[12];
- WORD user_msg_area;
- WORD user_file_area;
- char user_protocol;
- WORD user_file_group;
- BYTE user_last_birthday_check;
- char user_sex;
- DWORD user_xi_record;
- WORD user_msg_group;
- BYTE user_avatar;
- char user_org[51];
- char user_address[3][51];
- INT32 user_pwd_crc;
- INT32 user_logon_pwd_crc;
- char user_last_cost_menu[9];
- WORD user_menu_cost;
- BYTE user_rip;
- BYTE user_rip_ver;
- BYTE user_attrib3;
- BOOL user_expert;
- char system_last_handle[36];
-
- BYTE od_info_type;
- BYTE od_extended_info;
- WORD od_node;
- BYTE od_ra_info;
-
- BOOL od_always_clear;
- BOOL od_force_local;
- BOOL od_chat_active;
- BOOL od_current_statusline;
- INT16 od_error;
- BYTE od_last_input;
- BOOL od_logfile_disable;
- char od_logfile_name[80];
- WORD od_maxtime;
- INT16 od_maxtime_deduction;
- BOOL od_okaytopage;
- INT16 od_pagestartmin;
- INT16 od_pageendmin;
- BOOL od_page_pausing;
- INT16 od_page_statusline;
- BOOL od_user_keyboard_on;
- BOOL od_update_status_now;
- INT16 od_cur_attrib;
-
- char od_box_chars[8];
- char od_cfg_text[48][33];
- char od_cfg_lines[25][33];
- OD_COMPONENT *od_config_file;
- const char * od_config_filename;
- void (*od_config_function)(char *keyword, char *options);
- char od_color_char;
- char od_color_delimiter;
- char od_color_names[12][33];
- BOOL od_clear_on_exit;
- void (*od_cmd_line_handler)(char *pszKeyword, char *pszOptions);
- void (*od_cmd_line_help_func)(void);
- void (*od_default_personality)(BYTE operation);
- BOOL od_default_rip_win;
- WORD od_disable;
- char od_disable_dtr[40];
- BOOL od_disable_inactivity;
- BOOL od_emu_simulate_modem;
- BYTE od_errorlevel[8];
- BOOL od_full_color;
- BOOL od_full_put;
- WORD od_in_buf_size;
- INT16 od_inactivity;
- INT16 od_inactive_warning;
- BOOL od_internal_debug;
- tODMilliSec od_max_key_latency;
- char od_list_pause;
- char od_list_stop;
- OD_COMPONENT *od_logfile;
- char *od_logfile_messages[14];
- OD_COMPONENT *od_mps;
- BOOL od_nocopyright;
- BOOL od_noexit;
- BOOL od_no_ra_codes;
- BYTE od_page_len;
- char od_prog_copyright[40];
- char od_prog_name[40];
- char od_prog_version[40];
- DWORD od_reg_key;
- char od_reg_name[36];
- BOOL od_silent_mode;
- BOOL od_status_on;
- BOOL od_spawn_freeze_time;
- BOOL od_swapping_disable;
- BOOL od_swapping_noems;
- char od_swapping_path[80];
-
- void (*od_no_file_func)(void);
- void (*od_before_exit)(void);
- void (*od_cbefore_chat)(void);
- void (*od_cafter_chat)(void);
- void (*od_cbefore_shell)(void);
- void (*od_cafter_shell)(void);
- void (*od_config_callback)(void);
- void (*od_help_callback)(void);
- void (*od_ker_exec)(void);
- void (*od_local_input)(INT16 key);
- void (*od_time_msg_func)(char *string);
-
- WORD key_chat;
- WORD key_dosshell;
- WORD key_drop2bbs;
- WORD key_hangup;
- WORD key_keyboardoff;
- WORD key_lesstime;
- WORD key_lockout;
- WORD key_moretime;
- WORD key_status[9];
- WORD key_sysopnext;
-
- BYTE od_num_keys;
- INT16 od_hot_key[16];
- INT16 od_last_hot;
- void (*od_hot_function[16])(void);
-
- char * od_after_chat;
- char * od_after_shell;
- char * od_before_chat;
- char * od_before_shell;
- char * od_chat_reason;
- char * od_continue;
- char od_continue_yes;
- char od_continue_no;
- char od_continue_nonstop;
- char * od_day[7];
- char * od_hanging_up;
- char * od_exiting;
- char * od_help_text;
- char * od_help_text2;
- char * od_inactivity_timeout;
- char * od_inactivity_warning;
- char * od_month[12];
- char * od_no_keyboard;
- char * od_no_sysop;
- char * od_no_response;
- char * od_no_time;
- char * od_offline;
- char * od_paging;
- char * od_press_key;
- char * od_sending_rip;
- char * od_status_line[3];
- char * od_sysop_next;
- char * od_time_left;
- char * od_time_warning;
- char * od_want_chat;
- char * od_cmd_line_help;
-
- BYTE od_chat_color1;
- BYTE od_chat_color2;
- BYTE od_list_comment_col;
- BYTE od_list_name_col;
- BYTE od_list_offline_col;
- BYTE od_list_size_col;
- BYTE od_list_title_col;
- BYTE od_local_win_col;
- BYTE od_continue_col;
- BYTE od_menu_title_col;
- BYTE od_menu_border_col;
- BYTE od_menu_text_col;
- BYTE od_menu_key_col;
- BYTE od_menu_highlight_col;
- BYTE od_menu_highkey_col;
-
- #ifdef ODPLAT_WIN32
- HICON od_app_icon;
- int od_cmd_show;
- #endif
- } tODControl;
- #if defined(_MSC_VER) || defined(WIN32)
- #pragma pack()
- #endif
- #ifdef __cplusplus
- extern "C" {
- #endif
- OD_API_VAR_DECL tODControl
- #ifndef _WIN32
- OD_GLOBAL_CONV
- #endif
- od_control;
- #ifdef __cplusplus
- }
- #endif
- ODAPIDEF BOOL ODCALL od_add_personality(const char *pszName, BYTE btOutputTop,
- BYTE btOutputBottom,
- OD_PERSONALITY_PROC *pfPerFunc);
- ODAPIDEF void ODCALL od_autodetect(INT nFlags);
- ODAPIDEF BOOL ODCALL od_carrier(void);
- ODAPIDEF void ODCALL od_chat(void);
- ODAPIDEF void ODCALL od_clear_keybuffer(void);
- ODAPIDEF void ODCALL od_clr_line(void);
- ODAPIDEF void ODCALL od_clr_scr(void);
- ODAPIDEF BYTE ODCALL od_color_config(char *pszColorDesc);
- ODAPIDEF tODControl * ODCALL od_control_get(void);
- ODAPIDEF void ODCALL od_disp(const char *pachBuffer, INT nSize, BOOL bLocalEcho);
- ODAPIDEF void ODCALL od_disp_emu(const char *pszToDisplay, BOOL bRemoteEcho);
- ODAPIDEF void ODCALL od_disp_str(const char *pszToDisplay);
- ODAPIDEF BOOL ODCALL od_draw_box(BYTE btLeft, BYTE btTop, BYTE btRight,
- BYTE btBottom);
- ODAPIDEF WORD ODCALL od_edit_str(char *pszInput, char *pszFormat, INT nRow,
- INT nColumn, BYTE btNormalColour,
- BYTE btHighlightColour, char chBlank,
- WORD nFlags);
- ODAPIDEF void ODCALL od_exit(INT nErrorLevel, BOOL bTermCall);
- ODAPIDEF char ODCALL od_get_answer(const char *pszOptions);
- ODAPIDEF void ODCALL od_get_cursor(INT *pnRow, INT *pnColumn);
- ODAPIDEF BOOL ODCALL od_get_input(tODInputEvent *pInputEvent,
- tODMilliSec TimeToWait, WORD wFlags);
- ODAPIDEF BOOL ODCALL od_key_pending(void);
- ODAPIDEF char ODCALL od_get_key(BOOL bWait);
- ODAPIDEF BOOL ODCALL od_gettext(INT nLeft, INT nTop, INT nRight,
- INT nBottom, void *pBlock);
- ODAPIDEF char ODCALL od_hotkey_menu(char *pszFileName, char *pszHotKeys,
- BOOL bWait);
- ODAPIDEF void ODCALL od_init(void);
- ODAPIDEF void ODCALL od_input_str(char *pszInput, INT nMaxLength,
- unsigned char chMin, unsigned char chMax);
- ODAPIDEF void ODCALL od_kernel(void);
- ODAPIDEF BOOL ODCALL od_list_files(char *pszFileSpec);
- ODAPIDEF BOOL ODCALL od_log_write(char *pszMessage);
- ODAPIDEF INT ODCALL od_multiline_edit(char *pszBufferToEdit,
- UINT unBufferSize, tODEditOptions *pEditOptions);
- ODAPIDEF void ODCALL od_page(void);
- #ifdef ODPLAT_WIN32
- ODAPIDEF void ODCALL od_parse_cmd_line(LPSTR pszCmdLine);
- #else
- ODAPIDEF void ODCALL od_parse_cmd_line(INT nArgCount,
- char *papszArguments[]);
- #endif
- ODAPIDEF INT ODCALL od_popup_menu(char *pszTitle, char *pszText,
- INT nLeft, INT nTop, INT nLevel, WORD uFlags);
- ODAPIDEF void ODVCALL od_printf(const char *pszFormat, ...);
- ODAPIDEF void ODCALL od_putch(char chToDisplay);
- ODAPIDEF BOOL ODCALL od_puttext(INT nLeft, INT nTop, INT nRight,
- INT nBottom, void *pBlock);
- ODAPIDEF void ODCALL od_repeat(char chValue, BYTE btTimes);
- ODAPIDEF BOOL ODCALL od_restore_screen(void *pBuffer);
- ODAPIDEF BOOL ODCALL od_save_screen(void *pBuffer);
- ODAPIDEF BOOL ODCALL od_scroll(INT nLeft, INT nTop, INT nRight,
- INT nBottom, INT nDistance, WORD nFlags);
- ODAPIDEF BOOL ODCALL od_send_file(const char *pszFileName);
- ODAPIDEF BOOL ODCALL od_send_file_section(char *pszFileName, char *pszSectionName);
- ODAPIDEF void ODCALL od_set_attrib(INT nColour);
- ODAPIDEF void ODCALL od_set_color(INT nForeground, INT nBackground);
- ODAPIDEF void ODCALL od_set_cursor(INT nRow, INT nColumn);
- ODAPIDEF void ODCALL od_set_dtr(BOOL bHigh);
- ODAPIDEF BOOL ODCALL od_set_personality(const char *pszName);
- ODAPIDEF void ODCALL od_set_statusline(INT nSetting);
- ODAPIDEF void ODCALL od_sleep(tODMilliSec Milliseconds);
- ODAPIDEF BOOL ODCALL od_spawn(const char *pszCommandLine);
- ODAPIDEF INT16 ODCALL od_spawnvpe(INT16 nModeFlag, char *pszPath,
- char *papszArg[], char *papszEnv[]);
- ODAPIDEF void * ODCALL od_window_create(INT nLeft, INT nTop, INT nRight,
- INT nBottom, char *pszTitle, BYTE btBorderCol,
- BYTE btTitleCol, BYTE btInsideCol, INT nReserved);
- ODAPIDEF BOOL ODCALL od_window_remove(void *pWinInfo);
- #define od_chat_colour1 od_chat_color1
- #define od_chat_colour2 od_chat_color2
- #define od_colour_char od_color_char
- #define od_colour_delimiter od_color_delimiter
- #define od_colour_names od_color_names
- #define od_full_colour od_full_color
- #define od_colour_config od_color_config
- #define od_set_colour od_set_color
- #define key_help key_status[6]
- #define key_nohelp key_status[0]
- #define user_credit user_net_credit
- #define caller_netmailentered user_netmailentered
- #define caller_echomailentered user_echomailentered
- #define caller_logintime user_logintime
- #define caller_logindate user_logindate
- #define caller_timelimit user_timelimit
- #define caller_loginsec user_loginsec
- #define caller_credit user_credit
- #define caller_userrecord user_num
- #define caller_readthru user_readthru
- #define caller_numpages user_numpages
- #define caller_downlimit user_downlimit
- #define caller_timeofcreation user_timeofcreation
- #define caller_logonpassword user_logonpassword
- #define caller_wantchat user_wantchat
- #define caller_ansi user_ansi
- #define ra_deducted_time user_deducted_time
- #define ra_menustack user_menustack
- #define ra_menustackpointer user_menustackpointer
- #define ra_userhandle user_handle
- #define ra_comment user_comment
- #define ra_firstcall user_firstcall
- #define ra_combinedrecord user_combinedrecord
- #define ra_birthday user_birthday
- #define ra_subdate user_subdate
- #define ra_screenwidth user_screenwidth
- #define ra_msg_area user_msg_area
- #define ra_file_area user_file_area
- #define ra_language user_language
- #define ra_date_format user_date_format
- #define ra_forward_to user_forward_to
- #define ra_error_free user_error_free
- #define ra_sysop_next sysop_next
- #define ra_emsi_session user_emsi_session
- #define ra_emsi_crtdef user_emsi_crtdef
- #define ra_emsi_protocols user_emsi_protocols
- #define ra_emsi_capabilities user_emsi_capabilities
- #define ra_emsi_requests user_emsi_requests
- #define ra_emsi_software user_emsi_software
- #define ra_hold_attr1 user_hold_attr1
- #define ra_hold_attr2 user_hold_attr2
- #define ra_hold_len user_hold_len
- #define caller_usernum user_num
- #define caller_callsign user_callsign
- #define caller_sex user_sex
- #define od_avatar user_avatar
- #define B_YELLOW L_YELLOW
- #define B_WHITE L_WHITE
- #define od_rbbs_node od_node
- #define STATUS_USER1 STATUS_ALTERNATE_1
- #define STATUS_USER2 STATUS_ALTERNATE_2
- #define STATUS_USER3 STATUS_ALTERNATE_3
- #define STATUS_USER4 STATUS_ALTERNATE_4
- #define STATUS_SYSTEM STATUS_ALTERNATE_5
- #define STATUS_HELP STATUS_ALTERNATE_7
- #define od_registered_to od_control.od_reg_name
- #define od_registration_key od_control.od_reg_key
- #define od_program_name od_control.od_prog_name
- #define od_log_messages od_control.od_logfile_messages
- #define od_config_text od_control.od_cfg_text
- #define od_config_lines od_control.od_cfg_lines
- #define od_config_colours od_control.od_colour_names
- #define od_config_colors od_control.od_colour_names
- #define config_file od_config_file
- #define config_filename od_config_filename
- #define config_function od_config_function
- #define default_personality od_default_personality
- #define logfile od_logfile
- #define mps od_mps
- #define od_kernal od_kernel
- #define od_init_with_config(filename,function)\
- od_control.config_file=INCLUDE_CONFIG_FILE;\
- od_control.config_filename=filename;\
- od_control.config_function=function;\
- od_init()
- ODAPIDEF BOOL ODCALL od_log_open(void);
- ODAPIDEF void ODCALL od_emulate(register char in_char);
- #endif
|