Control Program Functions (Summary)

Some general information is available at Control Program page.

File Functions

 * DosClose
 * DosCopy
 * DosDelete
 * DosEditName
 * DosMove
 * DosOpen
 * DosRead
 * DosSetFileInfo
 * DosSetFileLocks
 * DosSetFilePtr
 * DosSetFileSize
 * DosSetPathInfo
 * DosSetVerify
 * DosWrite

File Handle Functions

 * DosDupHandle
 * DosQueryFHState
 * DosQueryHType
 * DosSetFHState
 * DosSetMaxFH

File Query Functions

 * DosEnumAttribute
 * DosQueryFileInfo
 * DosQueryPathInfo
 * DosQuerySysInfo
 * DosQueryVerify

Directory Search (FileFind) Functions

 * DosFindClose
 * DosFindFirst
 * DosFindNext

Directory and Disk Functions

 * DosCreateDir
 * DosDeleteDir
 * DosQueryCurrentDir
 * DosQueryCurrentDisk
 * DosSetCurrentDir
 * DosSetDefaultDisk

Environment and Search Path Functions

 * DosScanEnv
 * DosSearchPath
 * DosQueryPathInfo
 * DosSetPathInfo

Extended LIBPATH Search Path Functions

 * DosQueryExtLIBPATH
 * DosSetExtLIBPATH

Memory Functions

 * DosAllocMem
 * DosFreeMem
 * DosQueryMem
 * DosSetMem

Memory Suballocation Functions

 * DosSubAllocMem
 * DosSubFreeMem
 * DosSubSetMem
 * DosSubUnsetMem

Shared Memory Functions

 * DosAllocSharedMem
 * DosGetNamedSharedMem
 * DosGetSharedMem
 * DosGiveSharedMem

Thread Local Memory Functions

 * DosAllocThreadLocalMemory
 * DosFreeThreadLocalMemory

Thread Control Functions

 * DosCreateThread
 * DosEnterCritSec
 * DosExit
 * DosExitCritSec
 * DosGetInfoBlocks
 * DosKillThread
 * DosResumeThread
 * DosSetPriority
 * DosSuspendThread
 * DosWaitThread

Process Control Functions

 * DosExecPgm
 * DosExitList
 * DosKillProcess
 * DosWaitChild

Session Control Functions

 * DosSelectSession
 * DosSetSession
 * DosStartSession
 * DosStopSession

Event Semaphore Functions

 * DosCloseEventSem
 * DosCreateEventSem
 * DosOpenEventSem
 * DosPostEventSem
 * DosQueryEventSem
 * DosResetEventSem
 * DosWaitEventSem

Mutex Semaphore Functions

 * DosCloseMutexSem
 * DosCreateMutexSem
 * DosOpenMutexSem
 * DosQueryMutexSem
 * DosReleaseMutexSem
 * DosRequestMutexSem

Muxwait Semaphore Functions

 * DosAddMuxWaitSem
 * DosCloseMuxWaitSem
 * DosCreateMuxWaitSem
 * DosDeleteMuxWaitSem
 * DosOpenMuxWaitSem
 * DosQueryMuxWaitSem
 * DosWaitMuxWaitSem

Named-Pipe Functions

 * DosCallNPipe
 * DosConnectNPipe
 * DosCreateNPipe
 * DosDisConnectNPipe
 * DosPeekNPipe
 * DosQueryNPHState
 * DosQueryNPipeInfo
 * DosQueryNPipeSemState
 * DosSetNPHState
 * DosSetNPipeSem
 * DosTransactNPipe
 * DosWaitNPipe

Unnamed-Pipe Functions

 * DosClose
 * DosCreatePipe
 * DosDupHandle, DosOpen, DosRead, DosWrite

Queue Functions

 * DosCloseQueue
 * DosCreateQueue
 * DosOpenQueue
 * DosPeekQueue
 * DosPurgeQueue
 * DosQueryQueue
 * DosReadQueue
 * DosWriteQueue

Timer Functions

 * DosAsyncTimer
 * DosSleep
 * DosStartTimer
 * DosStopTimer

Error Management Functions

 * DosErrClass
 * DosError

Exception Handling Functions

 * DosRaiseException
 * DosSetExceptionHandler
 * DosUnsetExceptionHandler
 * DosUnwindException

Signal Exception Functions

 * DosAcknowledgeSignalException
 * DosSendSignalException
 * DosSetSignalExceptionFocus

Must-Complete Functions

 * DosEnterMustComplete
 * DosExitMustComplete

Device I/O Functions

 * DosBeep
 * DosDevConfig
 * DosDevIOCtl
 * DosPhysicalDisk

File System Functions Used to Perform I/O to Devices:
 * DosClose
 * DosOpen
 * DosRead
 * DosWrite

Message Management Functions

 * DosGetMessage
 * DosInsertMessage
 * DosPutMessage
 * DosQueryMessageCP

Code Page Functions

 * DosQueryCp
 * DosSetProcessCp

Country Dependent Functions

 * DosMapCase
 * DosQueryCollate
 * DosQueryCtryInfo
 * DosQueryDBCSEnv
 * DosQueryMessageCP

Debugging Functions

 * DosDebug

Dynamic Linking Functions

 * DosFreeModule
 * DosLoadModule
 * DosQueryModuleHandle
 * DosQueryModuleName
 * DosQueryProcAddr

Unsorted

 * DosAliasMem
 * DosQueryMemState
 * DosListIO
 * DosQueryAppType
 * DosQueryProcType
 * DosResetBuffer

Date/Time

 * DosGetDateTime
 * DosSetDateTime

Timer

 * DosTmrQueryFreq
 * DosTmrQueryTime

Error Management

 * DosSuppressPopUps
 * DosDumpProcess
 * DosForceSystemDump
 * Dos16SysTrace

Exception Management

 * DosQueryModFromEIP
 * Dos16QueryModFromCS

Large File System

 * DosCancelLockRequestL
 * DosListIOL
 * DosOpenL
 * DosProtectOpenL
 * DosProtectSetFileLocksL
 * DosProtectSetFilePtrL
 * DosProtectSetFileSizeL
 * DosSetFileLocksL
 * DosSetFilePtrL
 * DosSetFileSizeL

File Manipulation

 * DosCancelLockRequest
 * DosProtectClose
 * DosForceDelete
 * DosProtectOpen
 * DosReplaceModule [[Image:Conf.gif]]
 * DosProtectRead
 * DosProtectSetFileInfo
 * DosProtectSetFileLocks
 * DosProtectSetFilePtr
 * DosProtectSetFileSize
 * DosProtectWrite

File Handle Manipulation

 * DosProtectQueryFHState
 * DosResetBuffer
 * DosProtectSetFHState
 * DosSetRelMaxFH

File Querying

 * DosProtectEnumAttribute
 * DosQueryFileMode
 * DosProtectQueryFileInfo
 * DosQuerySysState
 * DosPerfSysCall
 * DosGetProcessorStatus
 * DosSetProcessorStatus
 * DosQueryABIOSSupport

File System Functions

 * DosFSAttach
 * DosFSCtl
 * DosQueryFSAttach
 * DosQueryFSInfo
 * DosResetBuffer
 * DosSetFSInfo
 * DosShutdown

Resource Management

 * DosFreeResource
 * DosGetResource
 * DosQueryResourceSize

Threads

 * DosCreateThread2
 * DosQueryThreadAffinity
 * DosQueryThreadContext
 * DosSetThreadAffinity
 * DosVerifyPidTid

VDD

 * DosCloseVDD
 * DosOpenVDD
 * DosRequestVDD

Keyboard functions

 * KbdCharIn
 * KbdGetConsole
 * KbdPeek
 * KbdStringIn
 * KbdFlushBuffer
 * KbdSetStatus
 * KbdGetStatus
 * KbdSetCp
 * KbdGetCp
 * KbdGetLayout
 * KbdGetLayoutUni
 * KbdSetLayout
 * KbdSetLayoutUni
 * KbdGetHWID
 * KbdXlate

Mouse functions

 * MouFlushQue
 * MouGetPtrPos
 * MouSetPtrPos
 * MouSetPtrShape
 * MouGetPtrShape
 * MouGetDevStatus
 * MouGetNumButtons
 * MouGetNumMickeys
 * MouReadEventQue
 * MouGetNumQueEl
 * MouGetEventMask
 * MouSetEventMask
 * MouGetScaleFact
 * MouSetScaleFact
 * MouRemovePtr
 * MouDrawPtr
 * MouSetDevStatus
 * MouGetThreshold
 * MouSetThreshold

Video I/O functions

 * VioGetBuf
 * VioGetCurPos
 * VioSetCurPos
 * VioGetCurType
 * VioSetCurType
 * VioGetMode
 * VioSetMode
 * VioReadCellStr
 * VioReadCharStr
 * VioWrtCellStr
 * VioWrtCharStr
 * VioScrollUp
 * VioScrollDown
 * VioScrollLeft
 * VioScrollRight
 * VioWrtNAttr
 * VioWrtNCell
 * VioWrtNChar
 * VioWrtTTY
 * VioWrtCharStrAtt
 * VioShowBuf
 * VioSetAnsi
 * VioGetAnsi
 * VioSavRedrawWait
 * VioSavRedrawUndo
 * VioModeWait
 * VioModeUndo
 * VioScrLock
 * VioScrUnLock
 * VioPopUp
 * VioEndPopUp
 * VioGetConfig
 * VioGetCp
 * VioSetCp
 * VioGetOrigin
 * VioSetOrigin
 * VioGetState
 * VioSetState

Advanced VIO

 * VioAssociate
 * VioCreateLogFont
 * VioCreatePS
 * VioDeleteSetId
 * VioDestroyPS
 * VioGetDeviceCellSize
 * VioQueryFonts
 * VioQuerySetIds
 * VioSetDeviceCellSize
 * VioShowPS

Icon Legend

 * [[image:Att.gif]]: It seems that these functions were not implemented on the OS/2 4.5 Toolkit.
 * [[Image:Conf.gif]]: These functions were documented on the Addendum of the OS/2 4.5 Toolkit.
 * [[image:Vraag.gif]]: More information is required on this function.

OS/2 1.x / Legacy Functions
Function calls for OS/2 1.x that offer compatibility with DOS via Family API or Windows NT OS/2 subsystem.

Date/Time

 * DosGetDateTime
 * DosSetDateTime

Device I/O

 * DosBeep
 * DosDevConfig
 * DosDevIOCtl
 * DosDevIOCtl2
 * DosPhysicalDisk

Dynamic Linking Library

 * DosFreeModule
 * DosGetModHandle
 * DosGetModName
 * DosLoadModule
 * DosQAppType

Monitor functions

 * DosMonClose
 * DosMonOpen
 * DosMonRead
 * DosMonReg
 * DosMonWrite

Error Management
OS/2 2.0 and 1.3 only:
 * DosErrClass
 * DosError
 * DosPTrace
 * DosLogRegister
 * DosLogEntry
 * DosLogRead

Exception Management

 * DosHoldSignal
 * DosSendSignal
 * DosSetSigHandler

File Systems/File Management
Directory Searching:
 * DosFindClose
 * DosFindFirst
 * DosFindFirst2
 * DosFindNext

Directory Handling:
 * DosChDir
 * DosMkDir
 * DosMkDir2
 * DosRmDir
 * DosQCurDir

Disk

 * DosQCurDisk
 * DosSelectDisk

Environment/Path

 * DosScanEnv
 * DosSearchPath

File Manipulation

 * DosChgFilePtr
 * DosClose
 * DosCopy
 * DosDelete
 * DosEditName
 * DosFileLocks
 * DosMove
 * DosOpen
 * DosOpen2
 * DosRead
 * DosReadAsync
 * DosSetFileInfo
 * DosSetPathInfo
 * DosSetVerify
 * DosWrite
 * DosWriteAsync
 * DosNewSize
 * DosSetFileMode

File Handle Manipulation

 * DosSetMaxFH
 * DosBufReset
 * DosQFHandState
 * DosQHandType
 * DosSetFHandState

File Querying

 * DosEnumAttribute
 * DosQFileInfo
 * DosQFileMode
 * DosQPathInfo
 * DosQSysInfo
 * DosQVerify

File System Functions

 * DosFSAttach
 * DosFSCtl
 * DosSetFSInfo
 * DosShutdown
 * DosQFSAttach
 * DosQFSInfo

Memory Management

 * DosAllocSeg
 * DosAllocShrSeg
 * DosFreeSeg
 * DosGetSeg
 * DosGetShrSeg
 * DosGiveSeg
 * DosLockSeg
 * DosMemAvail
 * DosSizeSeg
 * DosUnlockSeg
 * DosReallocSeg


 * Huge block
 * DosAllocHuge
 * DosReallocHuge


 * Heap
 * DosSubAlloc
 * DosSubFree
 * DosSubSet

Message Management

 * DosGetMessage
 * DosPutMessage
 * DosInsMessage
 * DosTrueGetMessage
 * DosIQueryMessageCP
 * DosCloseMessageFile

National Language/Code Page

 * DosCaseMap
 * DosGetCollate
 * DosGetCp
 * DosGetCtryInfo
 * DosGetDBCSEv
 * DosSetCp
 * DosSetProcCp

Named Pipes

 * DosCallNmPipe -
 * DosConnectNmPipe - enables named pipe to be opened
 * DosDisConnectNmPipe
 * DosMakeNmPipe
 * DosMakePipe
 * DosPeekNmPipe
 * DosQNmPipeInfo
 * DosQNmPipeSemState
 * DosQNmPHandState
 * DosRawReadNPipe
 * DosRawWriteNPipe
 * DosSetNmPHandState
 * DosSetNmPipeSem
 * DosTransactNmPipe
 * DosWaitNmPipe

Resource Management

 * DosFreeResource
 * DosGetResource
 * DosGetResource2

Semaphores

 * DosCloseSem
 * DosCreateSem
 * DosFSRamSemClear
 * DosFSRamSemRequest
 * DosOpenSem
 * DosSemClear
 * DosSemRequest
 * DosSemSet
 * DosSemSetWait
 * DosSemWait
 * DosPMSemWait

MuxWait Semaphores

 * DosMuxSemWait
 * DosPMMuxSemWait

Processes/Threading

 * DosCallback
 * DosExit
 * DosGetPrty
 * DosSetPrty

Processes

 * DosCWait
 * DosEnterCritSec
 * DosExitCritSec
 * DosExitList
 * DosExecPgm
 * DosFlagProcess
 * DosGetInfoSeg
 * DosGetPID
 * DosGetPPID
 * DosKillProcess

Session Management

 * DosSelectSession
 * DosSetSession
 * DosStartSession
 * DosStopSession


 * Session Manager
 * DosSMDoAppReq
 * DosSMGetAppReq
 * DosSMGetStatus
 * DosSMHDEInit
 * DosSMInitialize
 * DosSMNotifyDD
 * DosSMNotifyDD2
 * DosSMOpenDD
 * DosSMParentSwitch
 * DosSMPause
 * DosSMPMPresent
 * DosSMRealPrtSc
 * DosSMRegisterDD
 * DosSMServeAppReq
 * DosSMSetSessionType
 * DosSMSetTitle
 * DosSMStart
 * DosSMSwitch
 * DosSMSysInit
 * DosSMTerminate


 * Screen Group
 * DosSMSGDoPopup
 * DosSMSGEndPopup


 * DosGetTimes
 * DosScrUnlock
 * DosScrLock
 * DosSavRedrawWait
 * DosSavRedrawUndo
 * DosSetMNLockTime
 * DosModeUndo
 * DosModeWait
 * DosRegisterNotification

Timer

 * DosTimerAsync
 * DosTimerStart
 * DosTimerStop

Addressing

 * DosFlatToSel
 * DosSelToFlat

Spool
Not found on OS2TK45
 * DosPFSActivate
 * DosPFSCloseUser
 * DosPFSInit
 * DosPFSQueryAct
 * DosPFSVerifyFont

I/O Privileges

 * DosCLIAccess
 * DosPortAccess

Segments

 * DosCreateCSAlias


 * DosFileIO


 * DosGetEnv
 * DosGetHugeShift
 * DosGetMachineMode


 * DosGetProcAddr


 * DosGetVersion


 * DosR2StackRealloc


 * DosSetVec
 * DosSysCtl
 * DosQueryRASInfo

QuickHelp

 * QhKeybdHandle
 * QhMouseHandle

Keyboard functions

 * KbdCharIn - character data record from keyboard
 * KbdClose - closes logical keyboard
 * KbdDeRegister - deregister keyboard subsystem
 * KbdFlushBuffer -
 * KbdFreeFocus
 * KbdGetCp
 * KbdGetFocus -
 * KbdGetHWId
 * KbdGetStatus -
 * KbdInit -
 * KbdOpen -
 * KbdPeek -
 * KbdRegister
 * KbdSetCp
 * KbdSetCustXt
 * KbdSetFgnd
 * KbdSetHWID
 * KbdSetStatus
 * KbdSynch -
 * KbdStringIn
 * KbdXlate

Mouse functions

 * MouRegister
 * MouDeRegister
 * MouOpen
 * MouClose
 * MouInitReal
 * MouSynch
 * MouDrawPtr
 * MouFlushQue
 * MouGetDevStatus
 * MouGetEventMask
 * MouGetNumButtons
 * MouGetNumMickeys
 * MouGetNumQueEl
 * MouGetPtrPos
 * MouGetPtrShape
 * MouGetScaleFact
 * MouReadEventQue
 * MouRemovePtr
 * MouSetDevStatus
 * MouSetEventMask
 * MouSetPtrPos
 * MouSetPtrShape
 * MouSetScaleFact
 * MouShellInit
 * MouGetHotKey
 * MouSetHotKey
 * MouFree

Video I/O functions

 * VioCheckCharType
 * VioDeRegister
 * VioEndPopUp
 * VioGetAnsi
 * VioGetBuf
 * VioGetConfig
 * VioGetCp
 * VioGetCurPos
 * VioGetCurType
 * VioGetFont
 * VioGetMode
 * VioGetPhysBuf
 * VioGetState
 * VioGlobalReg
 * VioModeUndo
 * VioModeWait
 * VioPopUp
 * VioPrtSc
 * VioPrtScToggle
 * VioQueryConsole
 * VioReadCellStr
 * VioReadCharStr
 * VioRedrawSize
 * VioRegister
 * VioSavRedrawUndo
 * VioSavRedrawWait
 * VioSetFont
 * VioScrLock
 * VioScrollDn
 * VioScrollLf
 * VioScrollRt
 * VioScrollUp
 * VioScrUnLock
 * VioSetAnsi
 * VioSetCp
 * VioSetCurPos
 * VioSetCurType
 * VioSetMode
 * VioSetState
 * VioShowBuf
 * VioWrtCellStr
 * VioWrtCharStr
 * VioWrtCharStrAtt
 * VioWrtNAttr
 * VioWrtNCell
 * VioWrtNChar
 * VioWrtTTY

Legend

 * [[image:Vraag.gif]]: More information is required on this function. Information was not available on CP1 or PRCP books.