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 File Systems/File Management
- 2.6 Memory Management
- 2.7 Message Management
- 2.8 National Language/Code Page
- 2.9 Queues
- 2.10 Resource Management
- 2.11 Semaphores
- 2.12 Processes/Threading
- 2.13 Session Management
- 2.14 Timer
- 2.15 Addressing
- 2.16 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
File Systems/File Management
Directory Searching
- DosFindFirst
- DosFindFirst2
- DosFindNext
Directory
- DosChDir
Enviroment/Path
- DosScanEnv
- DosSearchPath
File Manipulation
- DosChgFilePtr
- DosClose
- DosCopy
- DosDelete
- DosEditName
- DosMove
- DosOpen
- DosOpen2
- DosRead
- DosSetFileInfo
- DosSetPathInfo
- DosSetVerify
- DosWrite
File Handle Manipulation
- DosDupHandle
- DosSetMaxFH
- DosBufReset
File Querying
- DosEnumAttribute
File System Functions
- DosFSAttach
- DosFSCtl
- DosSetFSInfo
- DosShutdown
Memory Management
- DosSubAlloc
- DosAllocSeg
- DosAllocShrSeg
Heap Memory
- DosSubFree
Message Management
- DosGetMessage
- DosPutMessage
- DosTrueGetMessage * Can not be found on CP1 or PRCP
- DosIQueryMessageCp * Can not be found on CP1 or PRCP
National Language/Code Page
- DosCaseMap
- DosGetCollate
- DosGetCp
- DosGetCtryInfo
- DosGetDBCSEv
Queues
- DosCloseQueue
- DosQueryQueue
- DosWriteQueue
Server
- DosCreateQueue
- DosPeekQueue
- DosPurgeQueue
- DosReadQueue
Client
- DosOpenQueue
Resource Management
- DosFreeResource
- DosGetResource
- DosGetResource2
Semaphores
MuxWait Semaphores
Processes/Threading
- DosExit
Processes
- DosEnterCritSec
- DosExecPgm
- DosExitCritSec
- DosExitList
- DosKillProcess
- DosCwait
Threads
- DosCreateThread
- DosResumeThread
- DosSleep
- DosSuspendThread
Session Management
- DosSelectSession
- DosSetSession
- DosStartSession
- DosStopSession
Timer
- DosTimerAsync
- DosTimerStart
- DosTimerStop
Addressing
- DosFlatToSel * Can not be found on CP1 or PRCP
- DosSelToFlat * Can not be found on CP1 or PRCP
To SORT
- DosAllocHuge
- DosCallback
- DosCallNmPipe
- DosCLIAccess
- DosCloseSem
- DosConnectNmPipe
- DosCreateCSAlias
- DosCreateSem
- DosDisConnectNmPipe
- DosFileIO
- DosFileLocks
- DosFindClose
- DosFlagProcess
- DosFreeSeg
- DosFSRamSemClear
- DosFSRamSemRequest
- DosGetEnv
- DosGetHugeShift
- DosGetInfoSeg
- DosGetMachineMode
- DosGetModHandle
- DosGetModName
- DosGetPID
- DosGetPPID
- DosGetProcAddr
- DosGetPrty
- DosGetSeg
- DosGetShrSeg
- DosGetVersion
- DosGiveSeg
- DosHoldSignal
- DosInsMessage
- DosLockSeg
- DosMakeNmPipe
- DosMakePipe
- DosMemAvail
- DosMkDir
- DosMkDir2
- DosMuxSemWait
- DosNewSize
- DosOpenSem
- DosPeekNmPipe
- DosPFSActivate
- DosPFSCloseUser
- DosPFSInit
- DosPFSQueryAct
- DosPFSVerifyFont
- DosPortAccess
- DosPtrace
- DosQAppType
- DosQCurDir
- DosQCurDisk
- DosQFHandState
- DosQFileInfo
- DosQFileMode
- DosQFSAttach
- DosQFSInfo
- DosQHandType
- DosQNmPHandState
- DosQNmPipeInfo
- DosQNmPipeSemState
- DosQPathInfo
- DosQSysInfo
- DosQVerify
- DosR2StackRealloc
- DosReadAsync
- DosReallocHuge
- DosReallocSeg
- DosRmDir
- DosSelectDisk
- DosSemClear
- DosSemRequest
- DosSemSet
- DosSemSetWait
- DosSemWait
- DosSendSignal
- DosSetCp
- DosSetFHandState
- DosSetFileMode
- DosSetNmPHandState
- DosSetNmPipeSem
- DosSetProcCp
- DosSetPrty
- DosSetSigHandler
- DosSetVec
- DosSizeSeg
- DosSMRegisterDD
- DosSubFree
- DosSubSet
- DosTransactNmPipe
- DosUnlockSeg
- DosWaitNmPipe
- 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