CPGuide - Control Program Functions: Difference between revisions
Appearance
Created page with "{{IBM-Reprint}} {{CPGuide}} This chapter contains an alphabetic list of the Control Program functions available in the OS/2 operating system. These functions can be used in f..." |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{IBM-Reprint}} | {{IBM-Reprint}} | ||
{{CPGuide}} | {{CPGuide}} | ||
This chapter contains an alphabetic list of the Control Program functions available in the OS/2 operating system. These functions can be used in full-screen, windowed (VIO), and Presentation Manager sessions to perform basic operating-system functions, such as file input and output, memory allocation, thread control and communication, process control and communication, pipe and queue manipulation, and exception and error handling. | |||
The following table lists the available functions. | |||
{|class="wikitable" | |||
The following table lists the available functions. | !colspan=2|Date and Time | ||
|- | |||
|DosGetDateTime||DosSetDateTime | |||
|- | |||
!colspan=2|Debugging | |||
|- | |||
|DosDebug | |||
|- | |||
!colspan=2|Device Handling | |||
|- | |||
|DosCloseVDD||DosOpenVDD | |||
|- | |||
|DosDevConfig||DosRequestVDD | |||
|- | |||
|DosDevIOCtl||DosTmrQueryFreq | |||
|- | |||
|DosTmrQueryTime | |||
|- | |||
!colspan=2|Dynamic Link Modules | |||
|- | |||
|DosFreeModule||DosQueryModuleName | |||
|- | |||
|DosLoadModule||DosQueryProcAddr | |||
|- | |||
|DosQueryModuleHandle||DosQueryProcType | |||
|- | |||
!colspan=2|Error Processing | |||
|- | |||
|DosErrClass||DosError | |||
|- | |||
!colspan=2|Exceptions | |||
|- | |||
|DosAcknowledgeSignalException||DosSetExceptionHandler | |||
|- | |||
|DosEnterMustComplete||DosSetSignalExceptionFocus | |||
|- | |||
|DosExitMustComplete||DosUnsetExceptionHandler | |||
|- | |||
|DosRaiseException||DosUnwindException | |||
|- | |||
|DosSendSignalException | |||
|- | |||
!colspan=2|Extended Attributes | |||
|- | |||
|DosEnumAttribute||DosProtectEnumAttribute | |||
|- | |||
!colspan=2|File Management - File Locking | |||
|- | |||
|DosCancelLockRequest||DosProtectSetFHState | |||
|- | |||
|DosProtectClose||DosProtectSetFileInfo | |||
|- | |||
|DosProtectOpen||DosProtectSetFileLocks | |||
|- | |||
|DosProtectQueryFileInfo||DosProtectSetFilePtr | |||
|- | |||
|DosProtectRead||DosProtectSetFileSize | |||
|- | |||
|DosProtectQueryFHState||DosProtectWrite | |||
|- | |||
!colspan=2|File Management | |||
|- | |||
!colspan=2|General | |||
|- | |||
|DosClose||DosFindNext | |||
|- | |||
|DosCopy||DosForceDelete | |||
|- | |||
|DosCreateDir||DosMove | |||
|- | |||
|DosDeleteDir||DosOpen | |||
|- | |||
|DosDelete||DosRead | |||
|- | |||
|DosDupHandle||DosSearchPath | |||
|- | |||
|DosEditName||DosSetMaxFH | |||
|- | |||
|DosFindClose||DosSetVerify | |||
|- | |||
|DosFindFirst||DosWrite | |||
|- | |||
!colspan=2|Queries | |||
|- | |||
|DosQueryAppType||DosQueryFileInfo | |||
|- | |||
|DosQueryCurrentDir||DosQueryPathInfo | |||
|- | |||
|DosQueryCurrentDisk||DosQueryHType | |||
|- | |||
|DosQueryFHState||DosQueryVerify | |||
|- | |||
!colspan=2|Settings | |||
|- | |||
|DosResetBuffer||DosSetFileLocks | |||
|- | |||
|DosSetCurrentDir||DosSetFilePtr | |||
|- | |||
|DosSetDefaultDisk||DosSetFileSize | |||
|- | |||
|DosSetFHState||DosSetPathInfo | |||
|- | |||
|DosSetFileInfo||DosSetRelMaxFH | |||
|- | |||
!colspan=2|File Systems | |||
|- | |||
|DosFSAttach||DosQueryFSAttach | |||
|- | |||
|DosFSCtl||DosQueryFSInfo | |||
|- | |||
|DosPhysicalDisk||DosSetFSInfo | |||
|- | |||
!colspan=2|General | |||
|- | |||
|DosBeep||DosShutdown | |||
|- | |||
!colspan=2|Memory Management | |||
|- | |||
|DosAllocMem||DosGiveSharedMem | |||
|- | |||
|DosAllocSharedMem||DosQueryMem | |||
|- | |||
|DosAllocThreadLocalMemory||DosSetMem | |||
|- | |||
|DosFreeMem||DosSubAllocMem | |||
|- | |||
|DosFreeThreadLocalMemory||DosSubFreeMem | |||
|- | |||
|DosGetNamedSharedMem||DosSubSetMem | |||
|- | |||
|DosGetSharedMem||DosSubUnsetMem | |||
|- | |||
!colspan=2|Message Management | |||
|- | |||
|DosGetMessage||DosPutMessage | |||
|- | |||
|DosInsertMessage||DosQueryMessageCP | |||
|- | |||
!colspan=2|National Language Support | |||
|- | |||
|DosMapCase||DosQueryCtryInfo | |||
|- | |||
|DosQueryCollate||DosQueryDBCSEnv | |||
|- | |||
|DosQueryCp||DosSetProcessCp | |||
|- | |||
!colspan=2|Pipes | |||
|- | |||
|DosCallNPipe||DosQueryNPipeSemState | |||
|- | |||
|DosConnectNPipe||DosQueryNPHState | |||
|- | |||
|DosCreatePipe||DosSetNPHState | |||
|- | |||
|DosCreateNPipe||DosSetNPipeSem | |||
|- | |||
|DosDisConnectNPipe||DosTransactNPipe | |||
|- | |||
|DosPeekNPipe||DosWaitNPipe | |||
|- | |||
|DosQueryNPipeInfo | |||
|- | |||
!colspan=2|Processes, Threads and Sessions | |||
|- | |||
|DosCreateThread||DosSelectSession | |||
|- | |||
|DosEnterCritSec||DosSetPriority | |||
|- | |||
|DosExecPgm||DosSetSession | |||
|- | |||
|DosExitCritSec||DosSleep | |||
|- | |||
|DosExit||DosStartSession | |||
|- | |||
|DosExitList||DosStopSession | |||
|- | |||
|DosGetInfoBlocks||DosSuspendThread | |||
|- | |||
|DosKillProcess||DosWaitChild | |||
|- | |||
|DosKillThread||DosWaitThread | |||
|- | |||
|DosResumeThread||DosQueryThreadContext | |||
|- | |||
!colspan=2|Query System Information | |||
|- | |||
|DosQuerySysInfo||DosScanEnv | |||
|- | |||
!colspan=2|Queues | |||
|- | |||
|DosCloseQueue||DosPurgeQueue | |||
|- | |||
|DosCreateQueue||DosQueryQueue | |||
|- | |||
|DosOpenQueue||DosReadQueue | |||
|- | |||
|DosPeekQueue||DosWriteQueue | |||
|- | |||
!colspan=2|Resource Objects | |||
|- | |||
|DosFreeResource||DosQueryResourceSize | |||
|- | |||
|DosGetResource | |||
|- | |||
!colspan=2|Semaphores | |||
|- | |||
!colspan=2|Event Semaphores | |||
|- | |||
|DosCloseEventSem||DosQueryEventSem | |||
|- | |||
|DosCreateEventSem||DosResetEventSem | |||
|- | |||
|DosOpenEventSem||DosWaitEventSem | |||
|- | |||
|DosPostEventSem | |||
|- | |||
!colspan=2|Mutex Semaphores | |||
|- | |||
|DosCloseMutexSem||DosQueryMutexSem | |||
|- | |||
|DosCreateMutexSem||DosReleaseMutexSem | |||
|- | |||
|DosOpenMutexSem||DosRequestMutexSem | |||
|- | |||
!colspan=2|Muxwait Semaphores | |||
|- | |||
|DosAddMuxWaitSem||DosOpenMuxWaitSem | |||
|- | |||
|DosCloseMuxWaitSem||DosQueryMuxWaitSem | |||
|- | |||
|DosCreateMuxWaitSem||DosWaitMuxWaitSem | |||
|- | |||
|DosDeleteMuxWaitSem | |||
|- | |||
!colspan=2|Timers | |||
|- | |||
|DosAsyncTimer||DosStopTimer | |||
|- | |||
|DosStartTimer | |||
|} | |||
Revision as of 16:51, 29 February 2020
Reprint Courtesy of International Business Machines Corporation, © International Business Machines Corporation
This chapter contains an alphabetic list of the Control Program functions available in the OS/2 operating system. These functions can be used in full-screen, windowed (VIO), and Presentation Manager sessions to perform basic operating-system functions, such as file input and output, memory allocation, thread control and communication, process control and communication, pipe and queue manipulation, and exception and error handling.
The following table lists the available functions.
Date and Time | |
---|---|
DosGetDateTime | DosSetDateTime |
Debugging | |
DosDebug | |
Device Handling | |
DosCloseVDD | DosOpenVDD |
DosDevConfig | DosRequestVDD |
DosDevIOCtl | DosTmrQueryFreq |
DosTmrQueryTime | |
Dynamic Link Modules | |
DosFreeModule | DosQueryModuleName |
DosLoadModule | DosQueryProcAddr |
DosQueryModuleHandle | DosQueryProcType |
Error Processing | |
DosErrClass | DosError |
Exceptions | |
DosAcknowledgeSignalException | DosSetExceptionHandler |
DosEnterMustComplete | DosSetSignalExceptionFocus |
DosExitMustComplete | DosUnsetExceptionHandler |
DosRaiseException | DosUnwindException |
DosSendSignalException | |
Extended Attributes | |
DosEnumAttribute | DosProtectEnumAttribute |
File Management - File Locking | |
DosCancelLockRequest | DosProtectSetFHState |
DosProtectClose | DosProtectSetFileInfo |
DosProtectOpen | DosProtectSetFileLocks |
DosProtectQueryFileInfo | DosProtectSetFilePtr |
DosProtectRead | DosProtectSetFileSize |
DosProtectQueryFHState | DosProtectWrite |
File Management | |
General | |
DosClose | DosFindNext |
DosCopy | DosForceDelete |
DosCreateDir | DosMove |
DosDeleteDir | DosOpen |
DosDelete | DosRead |
DosDupHandle | DosSearchPath |
DosEditName | DosSetMaxFH |
DosFindClose | DosSetVerify |
DosFindFirst | DosWrite |
Queries | |
DosQueryAppType | DosQueryFileInfo |
DosQueryCurrentDir | DosQueryPathInfo |
DosQueryCurrentDisk | DosQueryHType |
DosQueryFHState | DosQueryVerify |
Settings | |
DosResetBuffer | DosSetFileLocks |
DosSetCurrentDir | DosSetFilePtr |
DosSetDefaultDisk | DosSetFileSize |
DosSetFHState | DosSetPathInfo |
DosSetFileInfo | DosSetRelMaxFH |
File Systems | |
DosFSAttach | DosQueryFSAttach |
DosFSCtl | DosQueryFSInfo |
DosPhysicalDisk | DosSetFSInfo |
General | |
DosBeep | DosShutdown |
Memory Management | |
DosAllocMem | DosGiveSharedMem |
DosAllocSharedMem | DosQueryMem |
DosAllocThreadLocalMemory | DosSetMem |
DosFreeMem | DosSubAllocMem |
DosFreeThreadLocalMemory | DosSubFreeMem |
DosGetNamedSharedMem | DosSubSetMem |
DosGetSharedMem | DosSubUnsetMem |
Message Management | |
DosGetMessage | DosPutMessage |
DosInsertMessage | DosQueryMessageCP |
National Language Support | |
DosMapCase | DosQueryCtryInfo |
DosQueryCollate | DosQueryDBCSEnv |
DosQueryCp | DosSetProcessCp |
Pipes | |
DosCallNPipe | DosQueryNPipeSemState |
DosConnectNPipe | DosQueryNPHState |
DosCreatePipe | DosSetNPHState |
DosCreateNPipe | DosSetNPipeSem |
DosDisConnectNPipe | DosTransactNPipe |
DosPeekNPipe | DosWaitNPipe |
DosQueryNPipeInfo | |
Processes, Threads and Sessions | |
DosCreateThread | DosSelectSession |
DosEnterCritSec | DosSetPriority |
DosExecPgm | DosSetSession |
DosExitCritSec | DosSleep |
DosExit | DosStartSession |
DosExitList | DosStopSession |
DosGetInfoBlocks | DosSuspendThread |
DosKillProcess | DosWaitChild |
DosKillThread | DosWaitThread |
DosResumeThread | DosQueryThreadContext |
Query System Information | |
DosQuerySysInfo | DosScanEnv |
Queues | |
DosCloseQueue | DosPurgeQueue |
DosCreateQueue | DosQueryQueue |
DosOpenQueue | DosReadQueue |
DosPeekQueue | DosWriteQueue |
Resource Objects | |
DosFreeResource | DosQueryResourceSize |
DosGetResource | |
Semaphores | |
Event Semaphores | |
DosCloseEventSem | DosQueryEventSem |
DosCreateEventSem | DosResetEventSem |
DosOpenEventSem | DosWaitEventSem |
DosPostEventSem | |
Mutex Semaphores | |
DosCloseMutexSem | DosQueryMutexSem |
DosCreateMutexSem | DosReleaseMutexSem |
DosOpenMutexSem | DosRequestMutexSem |
Muxwait Semaphores | |
DosAddMuxWaitSem | DosOpenMuxWaitSem |
DosCloseMuxWaitSem | DosQueryMuxWaitSem |
DosCreateMuxWaitSem | DosWaitMuxWaitSem |
DosDeleteMuxWaitSem | |
Timers | |
DosAsyncTimer | DosStopTimer |
DosStartTimer |