Emulated API Information

Galacticomm provided a suite of APIs to both MajorBBS and Worldgroup through the Galacticomm Software Development Kit (SDK). Because Modules for The MajorBBS and Worldgroup were primitive forms of DLLs, similar to those found in modern Windows operating systems, they relied on functions that were hosted within the MajorBBS process. A core part of making a functional cross-platform emulator for both The MajorBBS and Worldgroup is emulating these functions which are called from the compiled modules.

On this page you will find detailed information on not only the libraries made available to Modules through the MajorBBS host process, but also details of the functions within those libraries and the current progress of their emulation within MBBSEmu.

Select A Library:

MAJORBBS
23%
GALGSBL
39%
PHAPI
66%
GALMSG
0%

Percent of API Coverage in MBBSEmu for GALGSBL:

39%

_BTUBSE

Ordinal: 1

Signature: int btubse(int chan,char bschar);

Description: Set backspace-echo character

Supported:

_BTUBSZ

Ordinal: 2

Signature: int btubsz(int chan,int isiz,int osiz);

Description: Respecify input and output buffer sizes

Supported:

_BTUCHE

Ordinal: 3

Signature: int err=btuche(int chan, int onoff);

Description: Enables calling of btuchi() when echo buffer becomes empty

Supported:
Added On: 1/14/2020

_BTUCHI

Ordinal: 4

Signature: int err=btuchi(int chan, char (*rouadr)());

Description: Sets Input Character Interceptor

Supported:
Added On: 1/14/2020

_BTUCLC

Ordinal: 5

Signature: int btuclc(int chan);

Description: Clear command output buffer

Supported:
Added On: 1/14/2020

_BTUCLI

Ordinal: 6

Signature: int btucli(int chan);

Description: Cleat data input buffer

Supported:
Added On: 1/14/2020

_BTUCLO

Ordinal: 7

Signature: int btuclo(int chan);

Description: Clear data output buffer

Supported:
Added On: 1/14/2020

_BTUCLS

Ordinal: 8

Signature: int btucls(int chan);

Description: Clear status input buffer

Supported:
Added On: 1/14/2020

_BTUCMD

Ordinal: 9

Signature: int btucmd(int chan,char *cmdstg);

Description: Command channel

Supported:
Added On: 4/8/2020

_BTUDEF

Ordinal: 10

Signature: int btudef(int schan,int sport,int n);

Description: Define Channels

Supported:

_BTECH

Ordinal: 11

Signature: int btuech(int chan, int mode);

Description: Set Echo on/off

Supported:
Added On: 8/28/2020

_BTUEND

Ordinal: 12

Signature: void btuend(void);

Description: Shut down the Software Breakthrough

Supported:

_BTUERP

Ordinal: 13

Signature: int btuerp(int chan,int onoff);

Description: Pass/Block input bytes with errors

Supported:

_BTUFFO

Ordinal: 14

Signature: int btuffo(int chan,int onoff);

Description: Enable receiver FIFO on 16550 UART

Supported:

_BTUHCR

Ordinal: 15

Signature: int btuhcr(int chan,char hardcr);

Description: Set the hard-CR character (for output wordwrap)

Supported:
Added On: 6/3/2020

_BTUHDR

Ordinal: 16

Signature: int btuhdr(int sapchn,int bufsiz,void *buffer);

Description: Capture information on X.25 or LAN channel

Supported:

_BTUHPK

Ordinal: 17

Signature: int btuhpk(int chan,int far (*hpkrou)(int chan,char c));

Description: Handle keystrokes during screen-pause mode

Supported:

_BTUHWH

Ordinal: 18

Signature: int btuhwh(int chan,int inpcut);

Description: Enable hardware handshaking using RTS/CTS

Supported:

_BTUIBW

Ordinal: 19

Signature: int btuibw(int chan);

Description: Input Bytes Waiting

Supported:
Added On: 1/14/2020

_BTUICT

Ordinal: 20

Signature: int btuict(int chan,char *rdbptr);

Description: Input from a channel - by byte count prearranged with btutrg()

Supported:

_BTUINJ

Ordinal: 21

Signature: int btuinj(int chan,int status);

Description: Inject a status code into a channel

Supported:
Added On: 1/14/2020

_BTUINP

Ordinal: 22

Signature: void chiinp(int chan,char c);

Description: Input from a channel (ASCIIZ string)

Supported:
Added On: 9/10/2020

_BTUIRP

Ordinal: 23

Signature:

Description: Define alternate GSBL timing source using COM1/2/3/4

Supported:

_BTUITZ

Ordinal: 24

Signature: int btuitz(void *region);

Description: Initialize the Software Breakthrough

Supported:

_BTULFD

Ordinal: 25

Signature: int btulfd(int chan,char lfchar);

Description: Set linefeed character (what follows every carriage return)

Supported:

_BTULOK

Ordinal: 26

Signature: int btulok(int chan,int onoff);

Description: Set input lockout on/off

Supported:
Added On: 7/19/2020

_BTULSZ

Ordinal: 27

Signature: long btulsz(int nchan,int isiz,int osiz);

Description: Size of dynamic memory needed (long version, used when more than 64K bytes are needed)

Supported:

_BTUMDS

Ordinal: 28

Signature: int btumds(void);

Description: Get next displayed character from the monitored channel (as specified by btumon())

Supported:

_BTUMDS2

Ordinal: 29

Signature: int btumds2(void);

Description: Get next displayed character from the monitored channel (as specified by btumon2()

Supported:
Added On: 3/11/2020

_BTUMIL

Ordinal: 30

Signature: int err=btumil(int chan, int maxinl);

Description: Sets maximum input line length, sets word wrap on/off

Supported:
Added On: 1/14/2020

_BTUMKS

Ordinal: 31

Signature: void btumks(char kyschr);

Description: Simulate a keystroke on the monitored channel (as specified by btumon())

Supported:

_BTMKS2

Ordinal: 32

Signature: void btumks2(char kyschr);

Description: Simulate a keystroke on the monitored channel (as specified by btomon2())

Supported:
Added On: 3/11/2020

_BTUMON

Ordinal: 33

Signature: int btumon(int chan);

Description: Start/Stop monitoring a channel

Supported:

_BTUMON2

Ordinal: 34

Signature: int btumon2(int chan);

Description: Start/Stop monitoring a channel

Supported:
Added On: 3/11/2020

_BTUMXS

Ordinal: 35

Signature: int btumxs(unsigned bdrate);

Description: Set maximum data speed

Supported:

_BTUOBA

Ordinal: 36

Signature: int btuoba(int chan);

Description: Output Bytes Available

Supported:
Added On: 1/14/2020

_BTUOES

Ordinal: 37

Signature: int btuoes(int chan,int onoff);

Description: Enable/Disable Output-Empty status codes

Supported:
Added On: 1/14/2020

_BTUOLK

Ordinal: 38

Signature: int btuolk(int chan, int onoff);

Description: Set output pausing on/off

Supported:

_BTUPBC

Ordinal: 39

Signature: int err=btupbc(int chan, char pausch);

Description: Set screen-pause character

Supported:
Added On: 1/14/2020

_BTUPMT

Ordinal: 40

Signature: int btupmt(int chan, char pmchar);

Description: Set prompt character

Supported:
Added On: 8/28/2020

_BTURST

Ordinal: 41

Signature: int bturst(int chan);

Description: Reset a channel

Supported:
Added On: 3/11/2020

_BTURTI

Ordinal: 42

Signature: int bturti(int n,void (*rtirou)(void));

Description: Define routine to be called in real-time

Supported:

_BTUSCN

Ordinal: 43

Signature: int btuscn(void);

Description: Scan for channels in need of service (those with nonzero status)

Supported:

_BTUSCR

Ordinal: 44

Signature: int btuscr(int chan,char softcr);

Description: Set the soft-CR character (for output wordwrap)

Supported:
Added On: 6/3/2020

_BTUSDF

Ordinal: 45

Signature: int btusdf(int schan,int nchan,int chtype,...);

Description: Super-define channel groups

Supported:

_BTUSET

Ordinal: 46

Signature: long btuset(int chan,int stid,long newval);

Description: Set and report channel statistics

Supported:

_BTUSIZ

Ordinal: 47

Signature: unsigned btusiz(int nchan,int isiz,int osiz);

Description: Size of dynamic memory needed (only if < 64K)

Supported:

_BTUSTS

Ordinal: 48

Signature: int btusts(int chan);

Description: Status of a channel

Supported:
Added On: 3/11/2020

_BTUTRG

Ordinal: 49

Signature: int btutrg(int chan,int nbyt);

Description: Set the input byte trigger quantity (used in conjunction with btuict())

Supported:
Added On: 1/14/2020

_BTUTRM

Ordinal: 50

Signature: int btutrm(int chan,char crchar);

Description: Set input line terminator character

Supported:

_BTUTRS

Ordinal: 51

Signature: int btutrs(int chan,int onoff);

Description: Generate status 6 when output aborted by user?

Supported:

_BTUTRU

Ordinal: 52

Signature: int btutru(int chan,char trunch);

Description: Sets output-abort character

Supported:
Added On: 1/14/2020

_BTUTSW

Ordinal: 53

Signature: int btutsw(int chan,int width);

Description: Sets terminal screen width and select output word wrap

Supported:
Added On: 1/25/2020

_BTUTSW

Ordinal: 53

Signature: int err=btutsw(int chan, int width);

Description: Sets terminal screen width and select output word wrap

Supported:
Added On: 1/25/2020

_BTUUDF

Ordinal: 54

Signature: int btuudf(int schan,int n);

Description: Un-Define channels

Supported:

_BTUX29

Ordinal: 55

Signature: int btux29(int chan,int nbyt,char *data);

Supported:

_BTUXCT

Ordinal: 56

Signature: int btuxct(int chan,int nbyt,char *datstg);

Supported:
Added On: 4/8/2020

_BTUXLT

Ordinal: 57

Signature: void btuxlt(char oldchr,char newchr);

Description: Set input translation table

Supported:

_BTUXMN

Ordinal: 58

Signature: int btuxmn(int chan,char *datstg);

Description: Transmit ASCII string that btuclo() will not be able to clear

Supported:
Added On: 8/28/2020

_BTUXMT

Ordinal: 59

Signature: int btuxmt(int chan,char *datstg);

Description: Transmit to channel (ASCIIZ string)

Supported:
Added On: 1/14/2020

_BTUXNF

Ordinal: 60

Signature: int btuxnf(int chan,int xon,int xoff,...);

Description: Set XON/XOFF characters, select page mode

Supported:
Added On: 1/14/2020

_CHIINJ

Ordinal: 61

Signature: void chiinj(int chan,int status);

Description: Status Inject Utility

Supported:
Added On: 5/12/2020

_CHIINP

Ordinal: 62

Signature: void chiinp(int chan,char c);

Description: Character Input Utility

Supported:

_CHIOUS

Ordinal: 63

Signature: void chious(int chan,char *stg);

Description: String Output (via Echo Buffer)

Supported:
Added On: 1/14/2020

_CHIOUT

Ordinal: 64

Signature: void chiout(int chan,char c);

Description: Character Output (via Echo Buffer)

Supported:
Added On: 5/12/2020

_TICKER

Ordinal: 65

Signature: volatile unsigned ticker;

Description: Increments once per second

Supported:
Added On: 3/11/2020

_BTRHRT

Ordinal: 66

Signature: unsigned long btuhrt;

Description: 32-bit integer increments at approximately 65536hz

Supported:

_BTULAN

Ordinal: 67

Signature: int btulan;;

Description: LAN Capability Status Flags

Supported:

_BTUSRS

Ordinal: 68

Signature: int btusrs;

Description: The number of users licensed for this copy of GSBL

Supported:

_BTUX25

Ordinal: 69

Signature: int btux25;

Description: Whether or not GSBL supports X.25

Supported:

_BTUBRT

Ordinal: 70

Signature: int btubrt(int chan,unsigned bdrate);

Description: Set channels baud rate

Supported:

_SUSLCK

Ordinal: 71

Signature:

Supported:

_BTURNO

Ordinal: 72

Signature: char bturno[];

Description: 8 digit + NULL GSBL Registration Number

Supported:
Added On: 1/14/2020

_BTUDTR

Ordinal: 73

Signature: int btudtr;

Description: Set 1 to disable DTR-dropping during reset

Supported:

_X25UDT

Ordinal: 74

Signature: int x25udt;

Description: Set to 1 to capture User Data Field

Supported:

_X25HEAP

Ordinal: 75

Signature:

Supported:

_X25IGN

Ordinal: 76

Signature: int x25ign;

Description: Count of received packets ignored by GSBL

Supported:

_LANREV

Ordinal: 77

Signature: char lanrev[2];

Description: SPX revision number

Supported:

_LANSOP

Ordinal: 78

Signature: int lansop;

Description: Socket actually opened by btusdf() call

Supported:

_LANSCA

Ordinal: 79

Signature: int lansca;

Description: SPX connections available

Supported:

_PLORTI

Ordinal: 80

Signature:

Supported:

_BTUVER

Ordinal: 81

Signature: char btuver[];

Description: Software revision for the GSBL

Supported:

_ICTACT

Ordinal: 82

Signature: int ictact;

Description: After btuict() or btuica(): # of bytes available

Supported:

_BTUEBA

Ordinal: 83

Signature: int btueba(int chan);

Description: Echo buffer space available, in bytes

Supported:
Added On: 1/14/2020

_BTUHIT

Ordinal: 84

Signature: int btuhit(int comint);

Description: Hook into a COM port interrupt and use it to invoke channel servicing

Supported:

_BTUITM

Ordinal: 85

Signature: int btuitm(void *region);

Description: Initialize the Software Breakthrough for use in a multi-tasking environment

Supported:

_BTUCPC

Ordinal: 86

Signature: int btucpc(int chan,char clrpch);

Description: Set the clear pause-counter character (puts off screen pauses when in output stream)

Supported:

_BTUICA

Ordinal: 87

Signature: int btuica(int chan,char *rdbptr,int max);

Description: Input from a channel - reading in whatever bytes are available, up to a limit

Supported:
Added On: 1/14/2020

_BTUPFL

Ordinal: 88

Signature: int btupfl(void (*pflrou)(int type,unsigned off,unsigned sel));

Supported:

_PPFLREAL

Ordinal: 89

Signature: extern long far *ppflreal;

Supported:

_PFLGSLB

Ordinal: 90

Signature: extern long pflgsbl;

Description: Possible type of PFGSBL in Module Definition

Supported:

_PFLRNG3

Ordinal: 91

Signature: extern long pflrng3;

Supported:

_PFLPLAP

Ordinal: 92

Signature: extern long pflplap;

Supported:

_PFN

Ordinal: 93

Signature: extern char pfn;

Supported:

_BTUUSP

Ordinal: 94

Signature: int btuusp(int chan,int onoff);

Description: Special UART polling method

Supported:

_BTUREP

Ordinal: 95

Signature: long bturep(int chan,int stid);

Description: Report Channel Statistics

Supported:

_PFLMYS3

Ordinal: 96

Signature: extern long pflmys3;

Supported:

_BTUCDI

Ordinal: 97

Signature: struct datstm far *btucdi(int chan,struct datstm far *outsnk);

Supported:

_BTUOPL

Ordinal: 98

Signature: int btuopl(int chan);

Supported:

_BTUPCC

Ordinal: 99

Signature: int btupcc(int chan,int mode);

Supported: