Control Program Functions
From EDM2
Contents
- 1 Control Programming Interface
- 1.1 Date/Time
- 1.2 Device I/O
- 1.3 Dynamic Linking Library
- 1.4 Error Management
- 1.5 Exception Management
- 1.6 File Systems/File Management
- 1.7 Memory Management
- 1.8 Message Management
- 1.9 National Language/Code Page
- 1.10 Pipes
- 1.11 Queues
- 1.12 Resource Management
- 1.13 Semaphores
- 1.14 Processes/Threading
- 1.15 Session Management
- 1.16 Timer
- 1.17 VDD
- 2 Legacy Functions
- 2.1 Date / Time
- 2.2 Device I/O
- 2.3 Dynamic Link Library
- 2.4 Error Management
- 2.5 Exception Management
- 2.6 File Systems/File Management
- 2.7 Memory Management
- 2.8 Message Management
- 2.9 National Language/Code Page
- 2.10 Pipes
- 2.11 Queues
- 2.12 Resource Management
- 2.13 Semaphores
- 2.14 Processes/Threading
- 2.15 Session Management
- 2.16 Timer
- 2.17 Addressing
- 2.18 To SORT
- 3 External References
Control Programming Interface
Some general information is available at Control Program page.
Date/Time
Device I/O
- DosBeep
- DosDevConfig
- DosDevIOCtl
- DosListIO
- DosListIOL
- DosPhysicalDisk
- DosTmrQueryFreq
- DosTmrQueryTime
Dynamic Linking Library
- DosFreeModule
- DosLoadModule
- DosQueryAppType
- DosQueryModuleHandle
- DosQueryModuleName
- DosQueryProcAddr
- DosQueryProcType
Error Management
- DosErrClass
- DosError
- DosDebug
- DosSuppressPopUps
- DosDumpProcess * Addendum
- DosForceSystemDump * Addendum
- Dos16SysTrace * Addendum
Exception Management
- DosQueryModFromEIP * Addendum
- DosRaiseException
- DosSetExceptionHandler
- DosUnsetExceptionHandler
- DosUnwindException
- Dos16QueryModFromCS * Addendum
Must Complete Management
Signaling Exception Management
File Systems/File Management
Directory Searching
Directory
Disk
Environment/Path
LibPath
File Manipulation
- DosCancelLockRequest
- DosCancelLockRequestL * Addendum
- DosClose
- DosProtectClose
- DosCopy
- DosDelete
- DosEditName
- DosForceDelete
- DosMove
- DosOpen
- DosOpenL * Addendum
- DosProtectOpen
- DosProtectOpenL * Addendum
- DosRead
- DosReplaceModule * Addendum
- DosProtectRead
- DosSetFileInfo
- DosProtectSetFileInfo
- DosSetFileLocks
- DosSetFileLocksL * Addendum
- DosProtectSetFileLocks
- DosProtectSetFileLocksL * Addendum
- DosSetFilePtr
- DosSetFilePtrL * Addendum
- DosProtectSetFilePtr
- DosProtectSetFilePtrL * Addendum
- DosSetFileSize
- DosSetFileSizeL * Addendum
- DosProtectSetFileSize
- DosProtectSetFileSizeL * Addendum
- DosSetPathInfo
- DosSetVerify
- DosWrite
- DosProtectWrite
File Handle Manipulation
- DosDupHandle
- DosQueryFHState
- DosProtectQueryFHState
- DosQueryHType
- DosResetBuffer
- DosSetFHState
- DosProtectSetFHState
- DosSetMaxFH
- DosSetRelMaxFH
File Querying
- DosEnumAttribute
- DosProtectEnumAttribute
- DosQueryFileInfo
- DosProtectQueryFileInfo
- DosQueryPathInfo
- DosQuerySysInfo
- DosQuerySysState * Addendum
- DosQueryVerify
- DosPerfSysCall
- DosGetProcessorStatus * Addendum
- DosSetProcessorStatus * Addendum
- DosQueryABIOSSupport * Addendum
File System Functions
Memory Management
- DosAliasMem * Addendum
- DosAllocMem
- DosFreeMem
- DosQueryMem
- DosQueryMemState * Addendum
- DosSetMem
Heap Memory
Thread local Memory
Message Management
National Language/Code Page
Pipes
Named Pipes
- DosCallNPipe
- DosConnectNPipe
- DosCreateNPipe
- DosDisConnectNPipe
- DosPeekNPipe
- DosQueryNPHState
- DosQueryNPipeInfo
- DosQueryNPipeSemState
- DosResetBuffer
- DosSetNPHState
- DosSetNPipeSem
- DosTransactNPipe
- DosWaitNPipe
Queues
Server
Client
Resource Management
Semaphores
Event Semaphores
- DosCloseEventSem
- DosCreateEventSem
- DosOpenEventSem
- DosPostEventSem
- DosQueryEventSem
- DosResetEventSem
- DosWaitEventSem
Mutex Semaphores
- DosCloseMutexSem
- DosCreateMutexSem
- DosOpenMutexSem
- DosQueryMutexSem
- DosReleaseMutexSem
- DosRequestMutexSem
MuxWait Semaphores
- DosAddMuxWaitSem
- DosCloseMuxWaitSem
- DosCreateMuxWaitSem
- DosDeleteMuxWaitSem
- DosOpenMuxWaitSem
- DosQueryMuxWaitSem
- DosWaitMuxWaitSem
Processes/Threading
Processes
Threads
- DosCreateThread
- DosCreateThread2 * Addendum
- DosKillThread
- DosQueryThreadAffinity * Addendum
- DosQueryThreadContext
- DosResumeThread
- DosSetThreadAffinity * Addendum
- DosSleep
- DosSuspendThread
- DosVerifyPidTid * Addendum
- DosWaitThread
Session Management
Timer
VDD
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 * N/A - Check Legacy
- VioScrollDown * Not Implemented
- VioScrollLeft * Not Implemented
- VioScrollRight * Not Implemented
- 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
Legacy Functions
This are the legacy functions of the Control Program Interface API. This functions are supposed to be replaced by the newer ones, but some of these are still required for older programs to work or because some newer functions weren't implemented correctly.
Date / Time
Device I/O
Monitor functions
Dynamic Link Library
Error Management
Exception Management
- DosSendSignal
File Systems/File Management
Directory Searching
Directory
Disk
Enviroment/Path
File Manipulation
- DosChgFilePtr
- DosClose
- DosCopy
- DosDelete
- DosEditName
- DosMove
- DosOpen
- DosOpen2
- DosRead
- DosSetFileInfo
- DosSetPathInfo
- DosSetVerify
- DosWrite
- DosNewSize
- DosSetFileMode
File Handle Manipulation
File Querying
File System Functions
Memory Management
- DosSubAlloc
- DosAllocSeg
- DosAllocShrSeg
- DosAllocHuge
- DosFreeSeg
- DosGetSeg
- DosGiveSeg
- DosLockSeg
- DosMemAvail
- DosSizeSeg
- DosUnlockSeg
- DosReallocHuge
- DosReallocSeg
Heap Memory
Message Management
- DosGetMessage
- DosPutMessage
- DosInsMessage
- DosTrueGetMessage * Can not be found on CP1 or PRCP
- DosIQueryMessageCp * Can not be found on CP1 or PRCP
National Language/Code Page
Pipes
Named Pipes
- DosCallNmPipe
- DosConnectNmPipe
- DosDisConnectNmPipe
- DosMakeNmPipe
- DosMakePipe
- DosPeekNmPipe
- DosQNmPipeInfo
- DosQNmPipeSemState
- DosSetNmPipeSem
- DosTransactNmPipe
- DosWaitNmPipe
- DosQNmPHandState
- DosSetNmPHandState
Queues
Server
Client
Resource Management
Semaphores
- DosCloseSem
- DosCreateSem
- DosFSRamSemClear
- DosFSRamSemRequest
- DosOpenSem
- DosSemClear
- DosSemRequest
- DosSemSet
- DosSemSetWait
- DosSemWait
MuxWait Semaphores
Processes/Threading
Processes
- DosEnterCritSec
- DosExecPgm
- DosExitCritSec
- DosExitList
- DosKillProcess
- DosCwait
- DosGetPID
- DosGetPPID
- DosGetInfoSeg
Threads
Session Management
Timer
Addressing
- DosFlatToSel * Can not be found on CP1 or PRCP
- DosSelToFlat * Can not be found on CP1 or PRCP
To SORT
- DosCallback
- DosCLIAccess
- DosCreateCSAlias
- DosFileIO
- DosFileLocks
- DosFindClose
- DosFlagProcess
- DosGetEnv
- DosGetHugeShift
- DosGetMachineMode
- DosGetModHandle
- DosGetModName
- DosGetProcAddr
- DosGetPrty
- DosGetShrSeg
- DosGetVersion
- DosHoldSignal
- DosPFSActivate * Not found on OS2TK45
- DosPFSCloseUser * Not found on OS2TK45
- DosPFSInit * Not found on OS2TK45
- DosPFSQueryAct * Not found on OS2TK45
- DosPFSVerifyFont * Not found on OS2TK45
- DosPortAccess
- DosPtrace
- DosR2StackRealloc
- DosReadAsync
- DosSetSigHandler
- DosSetVec
- DosSMRegisterDD
- DosWriteAsync
Keyboard functions
- KbdCharIn
- KbdFlushBuffer
- KbdGetCp
- KbdSetCp
- KbdPeek
- KbdRegister
- KbdDeRegister
- KbdOpen
- KbdClose
- KbdGetFocus
- KbdFreeFocus
- KbdSynch
- KbdSetFgnd
- KbdGetHWId
- KbdSetHWID* Can not be found on CP1 or PRCP
- KbdSetCustXt
- KbdGetStatus
- KbdSetStatus
- 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
Video I/O functions
- VioRegister
- VioGlobalReg
- VioDeRegister
- VioGetPhysBuf
- VioScrollDn
- VioScrollLf
- VioScrollRt
- VioCheckCharType * Not found on CP1 or PRCP
- VioPrtSc
- VioPrtScToggle
- VioRedrawSize * Not found on CPI or PRCP
- VioGetFont
- VioSetFont
- VioEndPopUp
- VioGetAnsi
- VioGetBuf
- VioGetConfig
- VioGetCp
- VioGetCurPos
- VioGetCurType
- VioGetMode
- VioGetState
- VioModeUndo
- VioModeWait
- VioPopUp
- VioReadCellStr
- VioReadCharStr
- VioSavRedrawUndo
- VioSavRedrawWait
- VioScrLock
- VioScrollUp
- VioScrUnLock
- VioSetAnsi
- VioSetCp
- VioSetCurPos
- VioSetCurType
- VioSetMode
- VioSetState
- VioShowBuf
- VioWrtCellStr
- VioWrtCharStr
- VioWrtCharStrAtt
- VioWrtNAttr
- VioWrtNCell
- VioWrtNChar
- VioWrtTTY
Advanced VIO
- VioGetOrg * Can not be found on CP1 or PRCP
- VioSetOrg * Can not be found on CP1 or PRCP
- WinDefAVioWindowProc * Can not be found on CP1 or PRCP
External References
- CP1.INF - Control Program Programming Guide and Reference, Part 1 of 3 - IBM Tookit 4.5
- CP2.INF - Control Program Programming Guide and Reference, Part 2 of 3 - IBM Tookit 4.5
- CP3.INF - Control Program Programming Guide and Reference, Part 3 of 3 - IBM Tookit 4.5
- API Addendum Volume 1 (PowerPC Edition) - IBM Tookit 4.5
- Legacy OS/2 Programming Reference - IBM Tookit 4.5