Difference between revisions of "Control Program Functions List"
From EDM2
m |
m |
||
Line 32: | Line 32: | ||
* [[DosDebug]] | * [[DosDebug]] | ||
* [[DosSuppressPopUps]] | * [[DosSuppressPopUps]] | ||
− | * [[DosDumpProcess | + | * [[DosDumpProcess]] |
− | * [[DosForceSystemDump | + | * [[DosForceSystemDump]] |
− | * [[Dos16SysTrace | + | * [[Dos16SysTrace]] |
=== Exception Management === | === Exception Management === | ||
− | * [[DosQueryModFromEIP | + | * [[DosQueryModFromEIP]] |
* [[DosRaiseException]] | * [[DosRaiseException]] | ||
* [[DosSetExceptionHandler]] | * [[DosSetExceptionHandler]] | ||
* [[DosUnsetExceptionHandler]] | * [[DosUnsetExceptionHandler]] | ||
* [[DosUnwindException]] | * [[DosUnwindException]] | ||
− | * [[Dos16QueryModFromCS | + | * [[Dos16QueryModFromCS]] |
==== Must Complete Management ==== | ==== Must Complete Management ==== | ||
Line 76: | Line 76: | ||
==== File Manipulation ==== | ==== File Manipulation ==== | ||
* [[DosCancelLockRequest]] | * [[DosCancelLockRequest]] | ||
− | * [[DosCancelLockRequestL | + | * [[DosCancelLockRequestL]] |
* [[DosClose]] | * [[DosClose]] | ||
* [[DosProtectClose]] | * [[DosProtectClose]] | ||
Line 85: | Line 85: | ||
* [[DosMove]] | * [[DosMove]] | ||
* [[DosOpen]] | * [[DosOpen]] | ||
− | * [[DosOpenL | + | * [[DosOpenL]] |
* [[DosProtectOpen]] | * [[DosProtectOpen]] | ||
− | * [[DosProtectOpenL | + | * [[DosProtectOpenL]] |
* [[DosRead]] | * [[DosRead]] | ||
− | * [[DosReplaceModule | + | * [[DosReplaceModule]] |
* [[DosProtectRead]] | * [[DosProtectRead]] | ||
* [[DosSetFileInfo]] | * [[DosSetFileInfo]] | ||
* [[DosProtectSetFileInfo]] | * [[DosProtectSetFileInfo]] | ||
* [[DosSetFileLocks]] | * [[DosSetFileLocks]] | ||
− | * [[DosSetFileLocksL | + | * [[DosSetFileLocksL]] |
* [[DosProtectSetFileLocks]] | * [[DosProtectSetFileLocks]] | ||
− | * [[DosProtectSetFileLocksL | + | * [[DosProtectSetFileLocksL]] |
* [[DosSetFilePtr]] | * [[DosSetFilePtr]] | ||
− | * [[DosSetFilePtrL | + | * [[DosSetFilePtrL]] |
* [[DosProtectSetFilePtr]] | * [[DosProtectSetFilePtr]] | ||
− | * [[DosProtectSetFilePtrL | + | * [[DosProtectSetFilePtrL]] |
* [[DosSetFileSize]] | * [[DosSetFileSize]] | ||
− | * [[DosSetFileSizeL | + | * [[DosSetFileSizeL]] |
* [[DosProtectSetFileSize]] | * [[DosProtectSetFileSize]] | ||
− | * [[DosProtectSetFileSizeL | + | * [[DosProtectSetFileSizeL]] |
* [[DosSetPathInfo]] | * [[DosSetPathInfo]] | ||
* [[DosSetVerify]] | * [[DosSetVerify]] | ||
Line 125: | Line 125: | ||
* [[DosProtectEnumAttribute]] | * [[DosProtectEnumAttribute]] | ||
* [[DosQueryFileInfo]] | * [[DosQueryFileInfo]] | ||
− | * [[DosQueryFileMode] | + | * [[DosQueryFileMode]] |
* [[DosProtectQueryFileInfo]] | * [[DosProtectQueryFileInfo]] | ||
* [[DosQueryPathInfo]] | * [[DosQueryPathInfo]] | ||
* [[DosQuerySysInfo]] | * [[DosQuerySysInfo]] | ||
− | * [[DosQuerySysState | + | * [[DosQuerySysState]] |
* [[DosQueryVerify]] | * [[DosQueryVerify]] | ||
* [[DosPerfSysCall]] | * [[DosPerfSysCall]] | ||
− | * [[DosGetProcessorStatus | + | * [[DosGetProcessorStatus]] |
− | * [[DosSetProcessorStatus | + | * [[DosSetProcessorStatus]] |
− | * [[DosQueryABIOSSupport | + | * [[DosQueryABIOSSupport]] |
==== File System Functions ==== | ==== File System Functions ==== | ||
Line 146: | Line 146: | ||
=== Memory Management === | === Memory Management === | ||
− | * [[DosAliasMem | + | * [[DosAliasMem]] |
* [[DosAllocMem]] | * [[DosAllocMem]] | ||
* [[DosFreeMem]] | * [[DosFreeMem]] | ||
* [[DosQueryMem]] | * [[DosQueryMem]] | ||
− | * [[DosQueryMemState | + | * [[DosQueryMemState]] |
* [[DosSetMem]] | * [[DosSetMem]] | ||
Line 260: | Line 260: | ||
==== Threads ==== | ==== Threads ==== | ||
* [[DosCreateThread]] | * [[DosCreateThread]] | ||
− | * [[DosCreateThread2 | + | * [[DosCreateThread2]] |
* [[DosKillThread]] | * [[DosKillThread]] | ||
− | * [[DosQueryThreadAffinity | + | * [[DosQueryThreadAffinity]] |
* [[DosQueryThreadContext]] | * [[DosQueryThreadContext]] | ||
* [[DosResumeThread]] | * [[DosResumeThread]] | ||
− | * [[DosSetThreadAffinity | + | * [[DosSetThreadAffinity]] |
* [[DosSleep]] | * [[DosSleep]] | ||
* [[DosSuspendThread]] | * [[DosSuspendThread]] | ||
− | * [[DosVerifyPidTid | + | * [[DosVerifyPidTid]] |
* [[DosWaitThread]] | * [[DosWaitThread]] | ||
Line 396: | Line 396: | ||
* [[DosDevConfig (Legacy)]] | * [[DosDevConfig (Legacy)]] | ||
* [[DosDevIOCtl (FAPI)|DosDevIOCtl]] | * [[DosDevIOCtl (FAPI)|DosDevIOCtl]] | ||
− | * [[ | + | * [[DosDevIOCtl2]] |
* [[DosPhysicalDisk (FAPI)|DosPhysicalDisk]] | * [[DosPhysicalDisk (FAPI)|DosPhysicalDisk]] | ||
=== Dynamic Linking Library === | === Dynamic Linking Library === | ||
− | * [[ | + | * [[DosGetModHandle]] |
− | * [[ | + | * [[DosGetModName]] |
==== Monitor functions ==== | ==== Monitor functions ==== | ||
Line 413: | Line 413: | ||
* [[DosFreeModule (OS/2 1.x)|DosFreeModule]] | * [[DosFreeModule (OS/2 1.x)|DosFreeModule]] | ||
* [[DosLoadModule (OS/2 1.x)|DosLoadModule]] | * [[DosLoadModule (OS/2 1.x)|DosLoadModule]] | ||
− | * [[ | + | * [[DosQAppType]] |
=== Error Management === | === Error Management === | ||
Line 419: | Line 419: | ||
* [[DosError (FAPI)|DosError]] | * [[DosError (FAPI)|DosError]] | ||
* [[DosPTrace]] | * [[DosPTrace]] | ||
− | * [[ | + | * [[DosLogRegister]] (OS/2 2.0 and 1.3) |
− | * [[DosLogEntry]] | + | * [[DosLogEntry]] (OS/2 2.0 and 1.3) |
− | * [[DosLogRead]] | + | * [[DosLogRead]] (OS/2 2.0 and 1.3) |
===Exception Management=== | ===Exception Management=== | ||
Line 427: | Line 427: | ||
=== File Systems/File Management === | === File Systems/File Management === | ||
− | |||
==== Directory Searching ==== | ==== Directory Searching ==== | ||
* [[DosFindFirst (FAPI)|DosFindFirst]] | * [[DosFindFirst (FAPI)|DosFindFirst]] | ||
− | * [[ | + | * [[DosFindFirst2]] |
* [[DosFindNext (FAPI)|DosFindNext]] | * [[DosFindNext (FAPI)|DosFindNext]] | ||
Line 454: | Line 453: | ||
* [[DosDelete (FAPI)|DosDelete]] | * [[DosDelete (FAPI)|DosDelete]] | ||
* [[DosEditName (FAPI)|DosEditName]] | * [[DosEditName (FAPI)|DosEditName]] | ||
− | * [[ | + | * [[DosFileLocks]] |
* [[DosMove (FAPI)|DosMove]] | * [[DosMove (FAPI)|DosMove]] | ||
* [[DosOpen (FAPI)|DosOpen]] | * [[DosOpen (FAPI)|DosOpen]] | ||
− | * [[ | + | * [[DosOpen2]] |
* [[DosRead (FAPI)|DosRead]] | * [[DosRead (FAPI)|DosRead]] | ||
* [[DosSetFileInfo (FAPI)|DosSetFileInfo]] | * [[DosSetFileInfo (FAPI)|DosSetFileInfo]] | ||
Line 463: | Line 462: | ||
* [[DosSetVerify (FAPI)|DosSetVerify]] | * [[DosSetVerify (FAPI)|DosSetVerify]] | ||
* [[DosWrite (FAPI)|DosWrite]] | * [[DosWrite (FAPI)|DosWrite]] | ||
− | * [[ | + | * [[DosNewSize]] |
− | * [[ | + | * [[DosSetFileMode]] |
==== File Handle Manipulation ==== | ==== File Handle Manipulation ==== | ||
Line 473: | Line 472: | ||
* [[DosQHandType]] | * [[DosQHandType]] | ||
* [[DosSetFHandState]] | * [[DosSetFHandState]] | ||
− | * [[DosQFHState]] | + | * [[DosQFHState]] |
==== File Querying ==== | ==== File Querying ==== | ||
Line 560: | Line 559: | ||
* [[DosFreeResource (OS/2 1.x)|DosFreeResource]] | * [[DosFreeResource (OS/2 1.x)|DosFreeResource]] | ||
* [[DosGetResource (OS/2 1.x)|DosGetResource]] | * [[DosGetResource (OS/2 1.x)|DosGetResource]] | ||
− | * [[ | + | * [[DosGetResource2]] |
=== Semaphores === | === Semaphores === | ||
Line 573: | Line 572: | ||
* [[DosSemSetWait]] | * [[DosSemSetWait]] | ||
* [[DosSemWait]] | * [[DosSemWait]] | ||
− | * [[DosPMSemWait | + | * [[DosPMSemWait]] |
− | * [[DosPMMuxSemWait | + | * [[DosPMMuxSemWait]] |
==== MuxWait Semaphores ==== | ==== MuxWait Semaphores ==== | ||
Line 650: | Line 649: | ||
=== Addressing === | === Addressing === | ||
− | * [[DosFlatToSel | + | * [[DosFlatToSel]] |
− | * [[DosSelToFlat]] [[ | + | * [[DosSelToFlat]] |
+ | * [[DosGetShrSeg]] | ||
=== Spool === | === Spool === | ||
− | * [[DosPFSActivate]] | + | * [[DosPFSActivate]] |
− | * [[DosPFSCloseUser]] | + | * [[DosPFSCloseUser]] |
− | * [[DosPFSInit]] | + | * [[DosPFSInit]] |
− | * [[DosPFSQueryAct]] | + | * [[DosPFSQueryAct]] |
− | * [[DosPFSVerifyFont]] | + | * [[DosPFSVerifyFont]] |
===To SORT=== | ===To SORT=== | ||
Line 674: | Line 674: | ||
* [[DosGetProcAddr]] | * [[DosGetProcAddr]] | ||
* [[DosGetPrty]] | * [[DosGetPrty]] | ||
− | |||
* [[DosGetVersion]] | * [[DosGetVersion]] | ||
* [[DosHoldSignal]] | * [[DosHoldSignal]] |
Revision as of 10:49, 19 January 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