Control Program Functions: Difference between revisions
Appearance
Line 389: | Line 389: | ||
==== Video I/O functions ==== | ==== Video I/O functions ==== | ||
* [[OS2 API:CPI:VioRegister|VioRegister]] * Legacy | * [[OS2 API:CPI:LEGACY:VioRegister|VioRegister]] * Legacy | ||
* [[OS2 API:CPI:VioGlobalReg|VioGlobalReg]] * Legacy | * [[OS2 API:CPI:LEGACY:VioGlobalReg|VioGlobalReg]] * Legacy | ||
* [[OS2 API:CPI:VioDeRegister|VioDeRegister]] * Legacy | * [[OS2 API:CPI:LEGACY:VioDeRegister|VioDeRegister]] * Legacy | ||
* [[OS2 API:CPI:VioGetPhysBuf|VioGetPhysBuf]] * Legacy | * [[OS2 API:CPI:LEGACY:VioGetPhysBuf|VioGetPhysBuf]] * Legacy | ||
* [[OS2 API:CPI:VioScrollDn|VioScrollDn]] * Legacy | * [[OS2 API:CPI:LEGACY:VioScrollDn|VioScrollDn]] * Legacy | ||
* [[OS2 API:CPI:VioScrollLf|VioScrollLf]] * Legacy | * [[OS2 API:CPI:LEGACY:VioScrollLf|VioScrollLf]] * Legacy | ||
* [[OS2 API:CPI:VioScrollRt|VioScrollRt]] * Legacy | * [[OS2 API:CPI:LEGACY:VioScrollRt|VioScrollRt]] * Legacy | ||
* [[OS2 API:CPI:VioCheckCharType|VioCheckCharType]] * Not found on CP1 or PRCP | * [[OS2 API:CPI:LEGACY:VioCheckCharType|VioCheckCharType]] * Not found on CP1 or PRCP | ||
* [[OS2 API:CPI:VioPrtSc|VioPrtSc]] * Legacy | * [[OS2 API:CPI:LEGACY:VioPrtSc|VioPrtSc]] * Legacy | ||
* [[OS2 API:CPI:VioPrtScToggle|VioPrtScToggle]] * Legacy | * [[OS2 API:CPI:LEGACY:VioPrtScToggle|VioPrtScToggle]] * Legacy | ||
* [[OS2 API:CPI:VioRedrawSize|VioRedrawSize]] * Not found on CPI or PRCP | * [[OS2 API:CPI:LEGACY:VioRedrawSize|VioRedrawSize]] * Not found on CPI or PRCP | ||
* [[OS2 API:CPI:VioGetFont|VioGetFont]] * Legacy | * [[OS2 API:CPI:LEGACY:VioGetFont|VioGetFont]] * Legacy | ||
* [[OS2 API:CPI:VioSetFont|VioSetFont]] * Legacy | * [[OS2 API:CPI:LEGACY:VioSetFont|VioSetFont]] * Legacy | ||
===== Advanced VIO ===== | ===== Advanced VIO ===== | ||
* [[OS2 API:CPI:VioGetOrg|VioGetOrg]] * Can not be found on CP1 or PRCP | * [[OS2 API:CPI:LEGACY:VioGetOrg|VioGetOrg]] * Can not be found on CP1 or PRCP | ||
* [[OS2 API:CPI:VioSetOrg|VioSetOrg]] * Can not be found on CP1 or PRCP | * [[OS2 API:CPI:LEGACY:VioSetOrg|VioSetOrg]] * Can not be found on CP1 or PRCP | ||
* [[OS2 API:CPI:WinDefAVioWindowProc|WinDefAVioWindowProc]] * Can not be found on CP1 or PRCP | * [[OS2 API:CPI:LEGACY:WinDefAVioWindowProc|WinDefAVioWindowProc]] * Can not be found on CP1 or PRCP | ||
==== Keyboard functions ==== | ==== Keyboard functions ==== | ||
Line 414: | Line 414: | ||
* KbdSetCp | * KbdSetCp | ||
* KbdPeek | * KbdPeek | ||
* [[OS2 API:CPI:KbdRegister|KbdRegister]] * Legacy | * [[OS2 API:CPI:LEGACY:KbdRegister|KbdRegister]] * Legacy | ||
* [[OS2 API:CPI:KbdDeRegister|KbdDeRegister]] * Legacy | * [[OS2 API:CPI:LEGACY:KbdDeRegister|KbdDeRegister]] * Legacy | ||
* [[OS2 API:CPI:KbdOpen|KbdOpen]] * Legacy | * [[OS2 API:CPI:LEGACY:KbdOpen|KbdOpen]] * Legacy | ||
* [[OS2 API:CPI:KbdClose|KbdClose]] * Legacy | * [[OS2 API:CPI:LEGACY:KbdClose|KbdClose]] * Legacy | ||
* [[OS2 API:CPI:KbdGetFocus|KbdGetFocus]] * Legacy | * [[OS2 API:CPI:LEGACY:KbdGetFocus|KbdGetFocus]] * Legacy | ||
* [[OS2 API:CPI:KbdFreeFocus|KbdFreeFocus]] * Legacy | * [[OS2 API:CPI:LEGACY:KbdFreeFocus|KbdFreeFocus]] * Legacy | ||
* [[OS2 API:CPI:KbdSynch|KbdSynch]] * Legacy | * [[OS2 API:CPI:LEGACY:KbdSynch|KbdSynch]] * Legacy | ||
* [[OS2 API:CPI:KbdSetFgnd|KbdSetFgnd]] * Legacy | * [[OS2 API:CPI:LEGACY:KbdSetFgnd|KbdSetFgnd]] * Legacy | ||
* KbdGetHWId | * KbdGetHWId | ||
* [[OS2 API:CPI:KbdSetHWID|KbdSetHWID]]* Can not be found on CP1 or PRCP | * [[OS2 API:CPI:LEGACY:KbdSetHWID|KbdSetHWID]]* Can not be found on CP1 or PRCP | ||
* [[OS2 API:CPI:KbdSetCustXt|KbdSetCustXt]] * Legacy | * [[OS2 API:CPI:LEGACY:KbdSetCustXt|KbdSetCustXt]] * Legacy | ||
* KbdGetStatus | * KbdGetStatus | ||
* KbdSetStatus | * KbdSetStatus | ||
Line 431: | Line 431: | ||
==== Mouse functions ==== | ==== Mouse functions ==== | ||
* [[OS2 API:CPI:MouRegister|MouRegister]] * Legacy | * [[OS2 API:CPI:LEGACY:MouRegister|MouRegister]] * Legacy | ||
* [[OS2 API:CPI:MouDeRegister|MouDeRegister]] * Legacy | * [[OS2 API:CPI:LEGACY:MouDeRegister|MouDeRegister]] * Legacy | ||
* [[OS2 API:CPI:MouOpen|MouOpen]] * Legacy | * [[OS2 API:CPI:LEGACY:MouOpen|MouOpen]] * Legacy | ||
* [[OS2 API:CPI:MouClose|MouClose]] * Legacy | * [[OS2 API:CPI:LEGACY:MouClose|MouClose]] * Legacy | ||
* [[OS2 API:CPI:MouInitReal|MouInitReal]] * Legacy | * [[OS2 API:CPI:LEGACY:MouInitReal|MouInitReal]] * Legacy | ||
* [[OS2 API:CPI:MouSynch|MouSynch]] * Legacy | * [[OS2 API:CPI:LEGACY:MouSynch|MouSynch]] * Legacy | ||
==== Monitor functions ==== | ==== Monitor functions ==== | ||
* [[OS2 API:CPI:DosMonClose|DosMonClose]] * Legacy | * [[OS2 API:CPI:LEGACY:DosMonClose|DosMonClose]] * Legacy | ||
* [[OS2 API:CPI:DosMonOpen|DosMonOpen]] * Legacy | * [[OS2 API:CPI:LEGACY:DosMonOpen|DosMonOpen]] * Legacy | ||
* [[OS2 API:CPI:DosMonRead|DosMonRead]] * Legacy | * [[OS2 API:CPI:LEGACY:DosMonRead|DosMonRead]] * Legacy | ||
* [[OS2 API:CPI:DosMonReg|DosMonReg]] * Legacy | * [[OS2 API:CPI:LEGACY:DosMonReg|DosMonReg]] * Legacy | ||
* [[OS2 API:CPI:DosMonWrite|DosMonWrite]] * Legacy | * [[OS2 API:CPI:LEGACY:DosMonWrite|DosMonWrite]] * Legacy | ||
=== Dynamic Link Library === | === Dynamic Link Library === | ||
Line 500: | Line 500: | ||
* DosGetMessage | * DosGetMessage | ||
* DosPutMessage | * DosPutMessage | ||
* [[OS2 API:CPI:DosTrueGetMessage|DosTrueGetMessage]] * Can not be found on CP1 or PRCP | * [[OS2 API:CPI:LEGACY:DosTrueGetMessage|DosTrueGetMessage]] * Can not be found on CP1 or PRCP | ||
* [[OS2 API:CPI:DosIQueryMessageCp|DosIQueryMessageCp]] * Can not be found on CP1 or PRCP | * [[OS2 API:CPI:LEGACY:DosIQueryMessageCp|DosIQueryMessageCp]] * Can not be found on CP1 or PRCP | ||
=== Queues=== | === Queues=== | ||
Line 549: | Line 549: | ||
=== Addressing === | === Addressing === | ||
* [[OS2 API:CPI:DosFlatToSel|DosFlatToSel]] * Can not be found on CP1 or PRCP | * [[OS2 API:CPI:LEGACY:DosFlatToSel|DosFlatToSel]] * Can not be found on CP1 or PRCP | ||
* [[OS2 API:CPI:DosSelToFlat|DosSelToFlat]] * Can not be found on CP1 or PRCP | * [[OS2 API:CPI:LEGACY:DosSelToFlat|DosSelToFlat]] * Can not be found on CP1 or PRCP | ||
===To SORT=== | ===To SORT=== |
Revision as of 22:50, 24 June 2016
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
Video I/O functions
- VioGetBuf
- VioGetCurPos
- VioSetCurPos
- VioGetCurType
- VioSetCurType
- VioGetMode
- VioSetMode
- VioReadCellStr
- VioReadCharStr
- VioWrtCellStr
- VioWrtCharStr
- VioScrollUp
- 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
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
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
Legacy Functions
Date / Time
- DosSetDateTime
Device I/O
- DosBeep
- DosDevConfig
- DosDevIOCtl
- DosDevIOCtl2
- DosPhysicalDisk
Video I/O functions
- VioRegister * Legacy
- VioGlobalReg * Legacy
- VioDeRegister * Legacy
- VioGetPhysBuf * Legacy
- VioScrollDn * Legacy
- VioScrollLf * Legacy
- VioScrollRt * Legacy
- VioCheckCharType * Not found on CP1 or PRCP
- VioPrtSc * Legacy
- VioPrtScToggle * Legacy
- VioRedrawSize * Not found on CPI or PRCP
- VioGetFont * Legacy
- VioSetFont * Legacy
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
Keyboard functions
- KbdCharIn
- KbdFlushBuffer
- KbdGetCp
- KbdSetCp
- KbdPeek
- KbdRegister * Legacy
- KbdDeRegister * Legacy
- KbdOpen * Legacy
- KbdClose * Legacy
- KbdGetFocus * Legacy
- KbdFreeFocus * Legacy
- KbdSynch * Legacy
- KbdSetFgnd * Legacy
- KbdGetHWId
- KbdSetHWID* Can not be found on CP1 or PRCP
- KbdSetCustXt * Legacy
- KbdGetStatus
- KbdSetStatus
- KbdStringIn
- KbdXlate
Mouse functions
- MouRegister * Legacy
- MouDeRegister * Legacy
- MouOpen * Legacy
- MouClose * Legacy
- MouInitReal * Legacy
- MouSynch * Legacy
Monitor functions
- DosMonClose * Legacy
- DosMonOpen * Legacy
- DosMonRead * Legacy
- DosMonReg * Legacy
- DosMonWrite * Legacy
Dynamic Link Library
- DosFreeModule
- DosLoadModule
Error Management
- DosErrClass
- DosError
File Systems/File Management
Directory Searching
- DosFindFirst
- DosFindFirst2
- DosFindNext
Enviroment/Path
- DosScanEnv
- DosSearchPath
File Manipulation
- DosClose
- DosCopy
- DosDelete
- DosEditName
- DosMove
- DosOpen
- DosOpen2
- DosRead
- DosSetFileInfo
- DosSetPathInfo
- DosSetVerify
- DosWrite
File Handle Manipulation
- DosDupHandle
- DosSetMaxFH
File Querying
- DosEnumAttribute
File System Functions
- DosFSAttach
- DosFSCtl
- DosSetFSInfo
- DosShutdown
Memory Management
- DosSubAlloc
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
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
Threads
- DosCreateThread
- DosResumeThread
- DosSleep
- DosSuspendThread
Session Management
- DosSelectSession
- DosSetSession
- DosStartSession
- DosStopSession
Addressing
- DosFlatToSel * Can not be found on CP1 or PRCP
- DosSelToFlat * Can not be found on CP1 or PRCP
To SORT
- DosAllocHuge
- DosAllocSeg
- DosAllocShrSeg
- DosBufReset
- DosCallback
- DosCallNmPipe
- DosCaseMap
- DosChDir
- DosChgFilePtr
- DosCLIAccess
- DosCloseSem
- DosConnectNmPipe
- DosCreateCSAlias
- DosCreateSem
- DosCwait
- DosDisConnectNmPipe
- DosFileIO
- DosFileLocks
- DosFindClose
- DosFlagProcess
- DosFreeSeg
- DosFSRamSemClear
- DosFSRamSemRequest
- DosGetCollate
- DosGetCp
- DosGetCtryInfo
- DosGetDBCSEv
- 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
- DosTimerAsync
- DosTimerStart
- DosTimerStop
- DosTransactNmPipe
- DosUnlockSeg
- DosWaitNmPipe
- DosWriteAsync
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