Difference between revisions of "Control Program Functions List"
From EDM2
m |
m |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
== Control Programming Interface == | == Control Programming Interface == | ||
− | Some general information is available at [[Control Program]] page. | + | Some general information is available at [[Control Program]] page. |
<div style="column-count:3;-moz-column-count:3;-webkit-column-count:3"> | <div style="column-count:3;-moz-column-count:3;-webkit-column-count:3"> | ||
Line 63: | Line 63: | ||
* [[DosQueryCurrentDir]] | * [[DosQueryCurrentDir]] | ||
* [[DosSetCurrentDir]] | * [[DosSetCurrentDir]] | ||
− | |||
==== Disk ==== | ==== Disk ==== | ||
* [[DosQueryCurrentDisk]] | * [[DosQueryCurrentDisk]] | ||
Line 73: | Line 72: | ||
* [[DosQueryExtLIBPATH]] | * [[DosQueryExtLIBPATH]] | ||
* [[DosSetExtLIBPATH]] | * [[DosSetExtLIBPATH]] | ||
− | |||
==== File Manipulation ==== | ==== File Manipulation ==== | ||
− | * [[DosCancelLockRequest]] | + | * [[DosCancelLockRequest]] |
* [[DosCancelLockRequestL]] | * [[DosCancelLockRequestL]] | ||
* [[DosClose]] | * [[DosClose]] | ||
Line 205: | Line 203: | ||
* [[DosQueryQueue]] | * [[DosQueryQueue]] | ||
* [[DosWriteQueue]] | * [[DosWriteQueue]] | ||
− | |||
==== Server ==== | ==== Server ==== | ||
* [[DosCreateQueue]] | * [[DosCreateQueue]] | ||
Line 228: | Line 225: | ||
* [[DosResetEventSem]] | * [[DosResetEventSem]] | ||
* [[DosWaitEventSem]] | * [[DosWaitEventSem]] | ||
− | |||
==== Mutex Semaphores ==== | ==== Mutex Semaphores ==== | ||
* [[DosCloseMutexSem]] | * [[DosCloseMutexSem]] | ||
Line 236: | Line 232: | ||
* [[DosReleaseMutexSem]] | * [[DosReleaseMutexSem]] | ||
* [[DosRequestMutexSem]] | * [[DosRequestMutexSem]] | ||
− | |||
==== MuxWait Semaphores ==== | ==== MuxWait Semaphores ==== | ||
* [[DosAddMuxWaitSem]] | * [[DosAddMuxWaitSem]] | ||
Line 257: | Line 252: | ||
* [[DosKillProcess]] | * [[DosKillProcess]] | ||
* [[DosWaitChild]] | * [[DosWaitChild]] | ||
− | |||
==== Threads ==== | ==== Threads ==== | ||
* [[DosCreateThread]] | * [[DosCreateThread]] | ||
Line 546: | Line 540: | ||
* [[DosQueryQueue (OS/2 1.x)|DosQueryQueue]] | * [[DosQueryQueue (OS/2 1.x)|DosQueryQueue]] | ||
* [[DosWriteQueue (OS/2 1.x)|DosWriteQueue]] | * [[DosWriteQueue (OS/2 1.x)|DosWriteQueue]] | ||
− | |||
;Server | ;Server | ||
* [[DosCreateQueue (OS/2 1.x)|DosCreateQueue]] | * [[DosCreateQueue (OS/2 1.x)|DosCreateQueue]] | ||
Line 552: | Line 545: | ||
* [[DosPurgeQueue (OS/2 1.x)|DosPurgeQueue]] | * [[DosPurgeQueue (OS/2 1.x)|DosPurgeQueue]] | ||
* [[DosReadQueue (OS/2 1.x)|DosReadQueue]] | * [[DosReadQueue (OS/2 1.x)|DosReadQueue]] | ||
− | |||
;Client | ;Client | ||
* [[DosOpenQueue (OS/2 1.x)|DosOpenQueue]] | * [[DosOpenQueue (OS/2 1.x)|DosOpenQueue]] | ||
Line 743: | Line 735: | ||
==== Video I/O functions ==== | ==== Video I/O functions ==== | ||
− | * [[VioRegister]] | + | * [[VioRegister]] |
* [[VioGlobalReg]] | * [[VioGlobalReg]] | ||
* [[VioDeRegister]] | * [[VioDeRegister]] | ||
Line 755: | Line 747: | ||
* [[VioRedrawSize]] [[image:Vraag.gif]] | * [[VioRedrawSize]] [[image:Vraag.gif]] | ||
* [[VioGetFont]] | * [[VioGetFont]] | ||
− | * [[VioSetFont]] | + | * [[VioSetFont]] |
* [[VioEndPopUp (OS/2 1.x)|VioEndPopUp]] | * [[VioEndPopUp (OS/2 1.x)|VioEndPopUp]] | ||
* [[VioGetAnsi (OS/2 1.x)|VioGetAnsi]] | * [[VioGetAnsi (OS/2 1.x)|VioGetAnsi]] | ||
* [[VioGetBuf (FAPI)|VioGetBuf]] | * [[VioGetBuf (FAPI)|VioGetBuf]] | ||
* [[VioGetConfig (FAPI)|VioGetConfig]] | * [[VioGetConfig (FAPI)|VioGetConfig]] | ||
− | * [[VioGetCp (FAPI)|VioGetCp]] | + | * [[VioGetCp (FAPI)|VioGetCp]] |
− | * [[VioGetCurPos (FAPI)|VioGetCurPos]] | + | * [[VioGetCurPos (FAPI)|VioGetCurPos]] |
− | * [[VioGetCurType (FAPI)|VioGetCurType]] | + | * [[VioGetCurType (FAPI)|VioGetCurType]] |
− | * [[VioGetMode (OS/2 1.x)|VioGetMode]] | + | * [[VioGetMode (OS/2 1.x)|VioGetMode]] |
− | * [[VioGetState (OS/2 1.x)|VioGetState]] | + | * [[VioGetState (OS/2 1.x)|VioGetState]] |
− | * [[VioModeUndo (OS/2 1.x)|VioModeUndo]] | + | * [[VioModeUndo (OS/2 1.x)|VioModeUndo]] |
− | * [[VioModeWait (OS/2 1.x)|VioModeWait]] | + | * [[VioModeWait (OS/2 1.x)|VioModeWait]] |
− | * [[VioPopUp (OS/2 1.x)|VioPopUp]] | + | * [[VioPopUp (OS/2 1.x)|VioPopUp]] |
* [[VioReadCellStr (FAPI)|VioReadCellStr]] | * [[VioReadCellStr (FAPI)|VioReadCellStr]] | ||
* [[VioReadCharStr (FAPI)|VioReadCharStr]] | * [[VioReadCharStr (FAPI)|VioReadCharStr]] | ||
− | * [[VioSavRedrawUndo (OS/2 1.x)|VioSavRedrawUndo]] | + | * [[VioSavRedrawUndo (OS/2 1.x)|VioSavRedrawUndo]] |
− | * [[VioSavRedrawWait (OS/2 1.x)|VioSavRedrawWait]] | + | * [[VioSavRedrawWait (OS/2 1.x)|VioSavRedrawWait]] |
− | * [[VioScrLock (FAPI)|VioScrLock]] | + | * [[VioScrLock (FAPI)|VioScrLock]] |
− | * [[VioScrollUp (FAPI)|VioScrollUp]] | + | * [[VioScrollUp (FAPI)|VioScrollUp]] |
− | * [[VioScrUnLock (FAPI)|VioScrUnLock]] | + | * [[VioScrUnLock (FAPI)|VioScrUnLock]] |
− | * [[VioSetAnsi (OS/2 1.x)|VioSetAnsi]] | + | * [[VioSetAnsi (OS/2 1.x)|VioSetAnsi]] |
− | * [[VioSetCp (OS/2 1.x)|VioSetCp]] | + | * [[VioSetCp (OS/2 1.x)|VioSetCp]] |
− | * [[VioSetCurPos (FAPI)|VioSetCurPos]] | + | * [[VioSetCurPos (FAPI)|VioSetCurPos]] |
* [[VioSetCurType (FAPI)|VioSetCurType]] | * [[VioSetCurType (FAPI)|VioSetCurType]] | ||
− | * [[VioSetMode (FAPI)|VioSetMode]] | + | * [[VioSetMode (FAPI)|VioSetMode]] |
− | * [[VioSetState (OS/2 1.x)|VioSetState]] | + | * [[VioSetState (OS/2 1.x)|VioSetState]] |
− | * [[VioShowBuf (FAPI)|VioShowBuf]] | + | * [[VioShowBuf (FAPI)|VioShowBuf]] |
− | * [[VioWrtCellStr (FAPI)|VioWrtCellStr]] | + | * [[VioWrtCellStr (FAPI)|VioWrtCellStr]] |
− | * [[VioWrtCharStr (FAPI)|VioWrtCharStr]] | + | * [[VioWrtCharStr (FAPI)|VioWrtCharStr]] |
− | * [[VioWrtCharStrAtt (FAPI)|VioWrtCharStrAtt]] | + | * [[VioWrtCharStrAtt (FAPI)|VioWrtCharStrAtt]] |
− | * [[VioWrtNAttr (FAPI)|VioWrtNAttr]] | + | * [[VioWrtNAttr (FAPI)|VioWrtNAttr]] |
− | * [[VioWrtNCell (FAPI)|VioWrtNCell]] | + | * [[VioWrtNCell (FAPI)|VioWrtNCell]] |
− | * [[VioWrtNChar (FAPI)|VioWrtNChar]] | + | * [[VioWrtNChar (FAPI)|VioWrtNChar]] |
* [[VioWrtTTY (FAPI)|VioWrtTTY]] | * [[VioWrtTTY (FAPI)|VioWrtTTY]] | ||
− | * [[VioQueryConsole | + | * [[VioQueryConsole]] |
===== Advanced VIO ===== | ===== Advanced VIO ===== |
Revision as of 19:49, 25 June 2020
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
Exception Management
- DosQueryModFromEIP
- DosRaiseException
- DosSetExceptionHandler
- DosUnsetExceptionHandler
- DosUnwindException
- Dos16QueryModFromCS
Must Complete Management
Signaling Exception Management
File Systems/File Management
Directory Searching
Directory
Disk
Environment/Path
LibPath
File Manipulation
- DosCancelLockRequest
- DosCancelLockRequestL
- DosClose
- DosProtectClose
- DosCopy
- DosDelete
- DosEditName
- DosForceDelete
- DosMove
- DosOpen
- DosOpenL
- DosProtectOpen
- DosProtectOpenL
- DosRead
- DosReplaceModule
- DosProtectRead
- DosSetFileInfo
- DosProtectSetFileInfo
- DosSetFileLocks
- DosSetFileLocksL
- DosProtectSetFileLocks
- DosProtectSetFileLocksL
- DosSetFilePtr
- DosSetFilePtrL
- DosProtectSetFilePtr
- DosProtectSetFilePtrL
- DosSetFileSize
- DosSetFileSizeL
- DosProtectSetFileSize
- DosProtectSetFileSizeL
- DosSetPathInfo
- DosSetVerify
- DosWrite
- DosProtectWrite
File Handle Manipulation
- DosDupHandle
- DosQueryFHState
- DosProtectQueryFHState
- DosQueryHType
- DosResetBuffer
- DosSetFHState
- DosProtectSetFHState
- DosSetMaxFH
- DosSetRelMaxFH
File Querying
- DosEnumAttribute
- DosProtectEnumAttribute
- DosQueryFileInfo
- DosQueryFileMode
- DosProtectQueryFileInfo
- DosQueryPathInfo
- DosQuerySysInfo
- DosQuerySysState
- DosQueryVerify
- DosPerfSysCall
- DosGetProcessorStatus
- DosSetProcessorStatus
- DosQueryABIOSSupport
File System Functions
Memory Management
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
- DosKillThread
- DosQueryThreadAffinity
- DosQueryThreadContext
- DosResumeThread
- DosSetThreadAffinity
- DosSleep
- DosSuspendThread
- DosVerifyPidTid
- 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
- 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
Icon Legend
- : It seems that these functions were not implemented on the OS/2 4.5 Toolkit.
- : These functions were documented on the Addendum of the OS/2 4.5 Toolkit.
- : More information is required on this function.
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
Dynamic Linking Library
Monitor functions
Dynamic Link Library
Error Management
- DosErrClass
- DosError
- DosPTrace
- DosLogRegister (OS/2 2.0 and 1.3)
- DosLogEntry (OS/2 2.0 and 1.3)
- DosLogRead (OS/2 2.0 and 1.3)
Exception Management
File Systems/File Management
Directory Searching
Directory
Disk
Environment/Path
File Manipulation
- DosChgFilePtr
- DosClose
- DosCopy
- DosDelete
- DosEditName
- DosFileLocks
- 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
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
- DosPMSemWait
- DosPMMuxSemWait
MuxWait Semaphores
Processes/Threading
Processes
- DosEnterCritSec
- DosExecPgm
- DosExitCritSec
- DosExitList
- DosKillProcess
- DosCWait
- DosGetPID
- DosGetPPID
- DosGetInfoSeg
Threads
Session Management
- Screen Group
- DosSMSwitch
- DosSMServeAppReq
- DosGetTimes
- DosSMSetTitle
- DosScrUnlock
- DosSMDoAppReq
- DosScrLock
- DosSavRedrawWait
- DosSavRedrawUndo
- DosSetMNLockTime
- DosModeUndo
- DosSMGetStatus
- DosModeWait
- DosSMTerminate
- DosSMGetAppReq
- DosSMRealPrtSc
- DosSMInitialize
- DosSMStart
- DosSMParentSwitch
- DosSMPause
- DosSMHDEInit
- DosSMPMPresent
- DosSMRegisterDD
- DosSMSysInit
- DosSMNotifyDD
- DosSMNotifyDD2
- DosSMOpenDD
- DosSMSetSessionType
- DosRegisterNotification
Quickhelp
Timer
Addressing
Spool
To SORT
- DosCallback
- DosCLIAccess
- DosCreateCSAlias
- DosFileIO
- DosFindClose
- DosFlagProcess
- DosGetEnv
- DosGetHugeShift
- DosGetMachineMode
- DosSetSigHandler
- DosSetVec
- DosSMRegisterDD
- DosWriteAsync
- DosSysCtl
- DosQueryRASInfo
- DosRawReadNPipe
- DosRawWriteNPipe
Keyboard functions
- KbdCharIn (FAPI)
- KbdFlushBuffer_(FAPI)
- KbdGetCp (FAPI)
- KbdSetCp (FAPI)
- KbdPeek (FAPI)
- KbdRegister
- KbdDeRegister
- KbdOpen
- KbdClose
- KbdGetFocus
- KbdFreeFocus
- KbdSynch
- KbdSetFgnd
- KbdGetHWId
- KbdSetHWID
- KbdSetCustXt
- KbdGetStatus
- KbdSetStatus
- KbdStringIn
- KbdXlate
- KbdInit
Mouse functions
- MouRegister
- MouDeRegister
- MouOpen
- MouClose
- MouInitReal
- MouSynch
- MouDrawPtr
- MouFlushQue
- MouGetDevStatus
- MouGetEventMask
- MouGetNumButtons
- MouGetNumMickeys
- MouGetNumQueEl
- MouGetPtrPos ** (review)
- MouGetPtrShape
- MouGetScaleFact
- MouReadEventQue
- MouRemovePtr
- MouSetDevStatus
- MouSetEventMask
- MouSetPtrPos
- MouSetPtrShape
- MouSetScaleFact
- MouShellInit
- MouGetHotKey
- MouSetHotKey
- MouFree
Video I/O functions
- VioRegister
- VioGlobalReg
- VioDeRegister
- VioGetPhysBuf
- VioScrollDn
- VioScrollLf
- VioScrollRt
- VioCheckCharType
- VioPrtSc
- VioPrtScToggle
- VioRedrawSize
- 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
- VioQueryConsole
Advanced VIO
Legend
- : More information is required on this function. Information was not available on CP1 or PRCP books.
References
- Control Program Programming Guide and Reference - IBM 1996
- API Addendum Volume 1 (PowerPC Edition) - IBM 1996, APIBAS.INF
- Legacy OS/2 Programming Reference - IBM, PRCP.INF