Family API

Family API (FAPI) is a subset of function calls for development of OS/2 protected mode and real mode programs.

OS/2 1.0 introduced 91 function calls that could be used in FAPI programs.

Dos

 * BadDynLink
 * DosBeep
 * DosChDir
 * DosChgFilePtr
 * DosClose
 * DosCreateCSAlias
 * DosDelete
 * DosDevConfig
 * DosDupHandle
 * DosFreeSeg
 * DosGetDateTime
 * DosGetEnv
 * DosGetHugeShift
 * DosGetMachineMode
 * DosGetMessage
 * DosGetVersion
 * DosInsMessage
 * DosMkDir
 * DosMove
 * DosNewSize
 * DosPutMessage
 * DosQCurDir
 * DosQCurDisk
 * DosQFileMode
 * DosQFSInfo
 * DosQVerify
 * DosRmDir
 * DosSelectDisk
 * DosSetDateTime
 * DosSetFileInfo
 * DosSetFileMode
 * DosSetVerify
 * DosSleep
 * DosSubAlloc
 * DosSubFree
 * DosSubSet
 * DosWrite

Restricted
 * DosAllocHuge
 * DosAllocSeg
 * DosCaseMap
 * DosCWait
 * DosDevIOCtl
 * DosError
 * DosExecPgm
 * DosExit
 * DosFileLocks
 * DosFindClose
 * DosFindFirst
 * DosFindNext
 * DosGetCtryInfo
 * DosGetDBCSEv
 * DosGetSpecChar
 * DosHoldSignal
 * DosOpen (FAPI)
 * DosQFileInfo
 * DosRead (FAPI)
 * DosReallocHuge
 * DosReallocSeg
 * DosSetCtryCode
 * DosSetFHState
 * DosSetSigHandler

Kbd
Restricted
 * KbdCharIn
 * KbdFlushBuffer
 * KbdGetStatus
 * KbdInit
 * KbdRegister
 * KbdSetStatus
 * KbdStringIn
 * KbdPeek

Vio
Restricted
 * VioGetBuf
 * VioGetCurPos
 * VioGetCurType
 * VioGetPhysBuf
 * VioReadCellStr
 * VioReadCharStr
 * VioScrollDn
 * VioScrollLf
 * VioScrollRt
 * VioScrUnLock
 * VioSetCurPos
 * VioSetCurType
 * VioSetMode
 * VioShowBuf
 * VioWrtCellStr
 * VioWrtCharStr
 * VioWrtCharStrAtt
 * VioWrtNAttr
 * VioWrtNCell
 * VioWrtNChar
 * VioWrtTTY
 * VioScrLock

Limitations

 * Real Mode:max. 640K memory
 * no virtual address space
 * no multitasking
 * no undocumented OS services
 * If the filename of an executable produced by BIND is changed, then it will not run under DOS 2.1.


 * Protected Mode
 * 16 MB memory
 * 1GB virtual address space

Article

 * Roger Orr: Hints for writing simple programs for both OS/2 and DOS

Links

 * The 16-bit Family API toolkit - C/C++