Control Program Functions: Difference between revisions
Appearance
Line 123: | Line 123: | ||
* [[OS2 API:CPI:DosProtectEnumAttribute|DosProtectEnumAttribute]] | * [[OS2 API:CPI:DosProtectEnumAttribute|DosProtectEnumAttribute]] | ||
* [[OS2 API:CPI:DosQueryFileInfo|DosQueryFileInfo]] | * [[OS2 API:CPI:DosQueryFileInfo|DosQueryFileInfo]] | ||
* [[OS2 API:CPI:DosQueryFileMode|DosQueryFileMode]] | * [[OS2 API:CPI:DosQueryFileMode|DosQueryFileMode]] [[image:Att.gif]] [https://books.google.com.ec/books?id=u7WbsmbttwYC&pg=PT372&lpg=PT372&dq#v=onepage&q&f=false] | ||
* [[OS2 API:CPI:DosProtectQueryFileInfo|DosProtectQueryFileInfo]] | * [[OS2 API:CPI:DosProtectQueryFileInfo|DosProtectQueryFileInfo]] | ||
* [[OS2 API:CPI:DosQueryPathInfo|DosQueryPathInfo]] | * [[OS2 API:CPI:DosQueryPathInfo|DosQueryPathInfo]] | ||
Line 373: | Line 373: | ||
</div> | </div> | ||
===Legend=== | |||
* [[image:Att.gif]]: It seems that this functions was not implemented on the OS/2 4.5 Toolkit | * [[image:Att.gif]]: It seems that this functions was not implemented on the OS/2 4.5 Toolkit | ||
Revision as of 18:10, 29 August 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
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
- DosQueryFileMode
[1]
- 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
- 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
- VioAssociate
- VioCreateLogFont
- VioCreatePS
- VioDeleteSetId
- VioDestroyPS
- VioGetDeviceCellSize
- VioQueryFonts
- VioQuerySetIds
- VioSetDeviceCellSize
- VioShowPS
Legend
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
Exception Management
File Systems/File Management
Directory Searching
Directory
Disk
Enviroment/Path
File Manipulation
- DosChgFilePtr
- DosClose
- DosCopy
- DosDelete
- DosEditName
- DosFileLocks
- DosMove
- DosOpen
- DosOpen2
- DosRead
- DosSetFileInfo
- DosSetPathInfo
- DosSetVerify
- DosWrite
- DosNewSize
- DosSetFileMode
File Handle Manipulation
- DosDupHandle
- DosSetMaxFH
- DosBufReset
- DosQFHandState
- DosQHandType
- DosSetFHandState
- DosQFHState * From 1.x
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
- DosFindClose
- DosFlagProcess
- DosGetEnv
- DosGetHugeShift
- DosGetMachineMode
- 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
- DosR2StackRealloc
- DosReadAsync
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