Control Program Functions

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                  │                               │
├───────────────────────────────┼───────────────────────────────┤
│DosGetDateTimeDosSetDateTime                 │
├───────────────────────────────┼───────────────────────────────┤
│Debugging                      │                               │
├───────────────────────────────┼───────────────────────────────┤
│DosDebug                       │                               │
├───────────────────────────────┼───────────────────────────────┤
│Device Handling                │                               │
├───────────────────────────────┼───────────────────────────────┤
│DosCloseVDDDosOpenVDD                     │
├───────────────────────────────┼───────────────────────────────┤
│DosDevConfigDosRequestVDD                  │
├───────────────────────────────┼───────────────────────────────┤
│DosDevIOCtlDosTmrQueryFreq                │
├───────────────────────────────┼───────────────────────────────┤
│DosTmrQueryTime                │                               │
├───────────────────────────────┼───────────────────────────────┤
│Dynamic Link Modules           │                               │
├───────────────────────────────┼───────────────────────────────┤
│DosFreeModuleDosQueryModuleName             │
├───────────────────────────────┼───────────────────────────────┤
│DosLoadModuleDosQueryProcAddr               │
├───────────────────────────────┼───────────────────────────────┤
│DosQueryModuleHandleDosQueryProcType               │
├───────────────────────────────┼───────────────────────────────┤
│Error Processing               │                               │
├───────────────────────────────┼───────────────────────────────┤
│DosErrClassDosError                       │
├───────────────────────────────┼───────────────────────────────┤
│Exceptions                     │                               │
├───────────────────────────────┼───────────────────────────────┤
│DosAcknowledgeSignalExceptionDosSetExceptionHandler         │
├───────────────────────────────┼───────────────────────────────┤
│DosEnterMustCompleteDosSetSignalExceptionFocus     │
├───────────────────────────────┼───────────────────────────────┤
│DosExitMustCompleteDosUnsetExceptionHandler       │
├───────────────────────────────┼───────────────────────────────┤
│DosRaiseExceptionDosUnwindException             │
├───────────────────────────────┼───────────────────────────────┤
│DosSendSignalException         │                               │
├───────────────────────────────┼───────────────────────────────┤
│Extended Attributes            │                               │
├───────────────────────────────┼───────────────────────────────┤
│DosEnumAttributeDosProtectEnumAttribute        │
├───────────────────────────────┼───────────────────────────────┤
│File Management - File Locking │                               │
├───────────────────────────────┼───────────────────────────────┤
│DosCancelLockRequestDosProtectSetFHState           │
├───────────────────────────────┼───────────────────────────────┤
│DosProtectCloseDosProtectSetFileInfo          │
├───────────────────────────────┼───────────────────────────────┤
│DosProtectOpenDosProtectSetFileLocks         │
├───────────────────────────────┼───────────────────────────────┤
│DosProtectQueryFileInfoDosProtectSetFilePtr           │
├───────────────────────────────┼───────────────────────────────┤
│DosProtectReadDosProtectSetFileSize          │
├───────────────────────────────┼───────────────────────────────┤
│DosProtectQueryFHStateDosProtectWrite                │
├───────────────────────────────┼───────────────────────────────┤
│File Management                │                               │
├───────────────────────────────┼───────────────────────────────┤
│General                        │                               │
├───────────────────────────────┼───────────────────────────────┤
│DosCloseDosFindNext                    │
├───────────────────────────────┼───────────────────────────────┤
│DosCopyDosForceDelete                 │
├───────────────────────────────┼───────────────────────────────┤
│DosCreateDirDosMove                        │
├───────────────────────────────┼───────────────────────────────┤
│DosDeleteDirDosOpen                        │
├───────────────────────────────┼───────────────────────────────┤
│DosDeleteDosRead                        │
├───────────────────────────────┼───────────────────────────────┤
│DosDupHandleDosSearchPath                  │
├───────────────────────────────┼───────────────────────────────┤
│DosEditNameDosSetMaxFH                    │
├───────────────────────────────┼───────────────────────────────┤
│DosFindCloseDosSetVerify                   │
├───────────────────────────────┼───────────────────────────────┤
│DosFindFirstDosWrite                       │
├───────────────────────────────┼───────────────────────────────┤
│Queries                        │                               │
├───────────────────────────────┼───────────────────────────────┤
│DosQueryAppTypeDosQueryFileInfo               │
├───────────────────────────────┼───────────────────────────────┤
│DosQueryCurrentDirDosQueryPathInfo               │
├───────────────────────────────┼───────────────────────────────┤
│DosQueryCurrentDiskDosQueryHType                  │
├───────────────────────────────┼───────────────────────────────┤
│DosQueryFHStateDosQueryVerify                 │
├───────────────────────────────┼───────────────────────────────┤
│Settings                       │                               │
├───────────────────────────────┼───────────────────────────────┤
│DosResetBufferDosSetFileLocks                │
├───────────────────────────────┼───────────────────────────────┤
│DosSetCurrentDirDosSetFilePtr                  │
├───────────────────────────────┼───────────────────────────────┤
│DosSetDefaultDiskDosSetFileSize                 │
├───────────────────────────────┼───────────────────────────────┤
│DosSetFHStateDosSetPathInfo                 │
├───────────────────────────────┼───────────────────────────────┤
│DosSetFileInfoDosSetRelMaxFH                 │
├───────────────────────────────┼───────────────────────────────┤
│File Systems                   │                               │
├───────────────────────────────┼───────────────────────────────┤
│DosFSAttachDosQueryFSAttach               │
├───────────────────────────────┼───────────────────────────────┤
│DosFSCtlDosQueryFSInfo                 │
├───────────────────────────────┼───────────────────────────────┤
│DosPhysicalDiskDosSetFSInfo                   │
├───────────────────────────────┼───────────────────────────────┤
│General                        │                               │
├───────────────────────────────┼───────────────────────────────┤
│DosBeepDosShutdown                    │
├───────────────────────────────┼───────────────────────────────┤
│Memory Management              │                               │
├───────────────────────────────┼───────────────────────────────┤
│DosAllocMemDosGiveSharedMem               │
├───────────────────────────────┼───────────────────────────────┤
│DosAllocSharedMemDosQueryMem                    │
├───────────────────────────────┼───────────────────────────────┤
│DosAllocThreadLocalMemoryDosSetMem                      │
├───────────────────────────────┼───────────────────────────────┤
│DosFreeMemDosSubAllocMem                 │
├───────────────────────────────┼───────────────────────────────┤
│DosFreeThreadLocalMemoryDosSubFreeMem                  │
├───────────────────────────────┼───────────────────────────────┤
│DosGetNamedSharedMemDosSubSetMem                   │
├───────────────────────────────┼───────────────────────────────┤
│DosGetSharedMemDosSubUnsetMem                 │
├───────────────────────────────┼───────────────────────────────┤
│Message Management             │                               │
├───────────────────────────────┼───────────────────────────────┤
│DosGetMessageDosPutMessage                  │
├───────────────────────────────┼───────────────────────────────┤
│DosInsertMessageDosQueryMessageCP              │
├───────────────────────────────┼───────────────────────────────┤
│National Language Support      │                               │
├───────────────────────────────┼───────────────────────────────┤
│DosMapCaseDosQueryCtryInfo               │
├───────────────────────────────┼───────────────────────────────┤
│DosQueryCollateDosQueryDBCSEnv                │
├───────────────────────────────┼───────────────────────────────┤
│DosQueryCpDosSetProcessCp                │
├───────────────────────────────┼───────────────────────────────┤
│Pipes                          │                               │
├───────────────────────────────┼───────────────────────────────┤
│DosCallNPipeDosQueryNPipeSemState          │
├───────────────────────────────┼───────────────────────────────┤
│DosConnectNPipeDosQueryNPHState               │
├───────────────────────────────┼───────────────────────────────┤
│DosCreatePipeDosSetNPHState                 │
├───────────────────────────────┼───────────────────────────────┤
│DosCreateNPipeDosSetNPipeSem                 │
├───────────────────────────────┼───────────────────────────────┤
│DosDisConnectNPipeDosTransactNPipe               │
├───────────────────────────────┼───────────────────────────────┤
│DosPeekNPipeDosWaitNPipe                   │
├───────────────────────────────┼───────────────────────────────┤
│DosQueryNPipeInfo              │                               │
├───────────────────────────────┼───────────────────────────────┤
│Processes, Threads and Sessions│                               │
├───────────────────────────────┼───────────────────────────────┤
│DosCreateThreadDosSelectSession               │
├───────────────────────────────┼───────────────────────────────┤
│DosEnterCritSecDosSetPriority                 │
├───────────────────────────────┼───────────────────────────────┤
│DosExecPgmDosSetSession                  │
├───────────────────────────────┼───────────────────────────────┤
│DosExitCritSecDosSleep                       │
├───────────────────────────────┼───────────────────────────────┤
│DosExitDosStartSession                │
├───────────────────────────────┼───────────────────────────────┤
│DosExitListDosStopSession                 │
├───────────────────────────────┼───────────────────────────────┤
│DosGetInfoBlocksDosSuspendThread               │
├───────────────────────────────┼───────────────────────────────┤
│DosKillProcessDosWaitChild                   │
├───────────────────────────────┼───────────────────────────────┤
│DosKillThreadDosWaitThread                  │
├───────────────────────────────┼───────────────────────────────┤
│DosResumeThreadDosQueryThreadContext          │
├───────────────────────────────┼───────────────────────────────┤
│Query System Information       │                               │
├───────────────────────────────┼───────────────────────────────┤
│DosQuerySysInfoDosScanEnv                     │
├───────────────────────────────┼───────────────────────────────┤
│Queues                         │                               │
├───────────────────────────────┼───────────────────────────────┤
│DosCloseQueueDosPurgeQueue                  │
├───────────────────────────────┼───────────────────────────────┤
│DosCreateQueueDosQueryQueue                  │
├───────────────────────────────┼───────────────────────────────┤
│DosOpenQueueDosReadQueue                   │
├───────────────────────────────┼───────────────────────────────┤
│DosPeekQueueDosWriteQueue                  │
├───────────────────────────────┼───────────────────────────────┤
│Resource Objects               │                               │
├───────────────────────────────┼───────────────────────────────┤
│DosFreeResourceDosQueryResourceSize           │
├───────────────────────────────┼───────────────────────────────┤
│DosGetResource                 │                               │
├───────────────────────────────┼───────────────────────────────┤
│Semaphores                     │                               │
├───────────────────────────────┼───────────────────────────────┤
│Event Semaphores               │                               │
├───────────────────────────────┼───────────────────────────────┤
│DosCloseEventSemDosQueryEventSem               │
├───────────────────────────────┼───────────────────────────────┤
│DosCreateEventSemDosResetEventSem               │
├───────────────────────────────┼───────────────────────────────┤
│DosOpenEventSemDosWaitEventSem                │
├───────────────────────────────┼───────────────────────────────┤
│DosPostEventSem                │                               │
├───────────────────────────────┼───────────────────────────────┤
│Mutex Semaphores               │                               │
├───────────────────────────────┼───────────────────────────────┤
│DosCloseMutexSemDosQueryMutexSem               │
├───────────────────────────────┼───────────────────────────────┤
│DosCreateMutexSemDosReleaseMutexSem             │
├───────────────────────────────┼───────────────────────────────┤
│DosOpenMutexSemDosRequestMutexSem             │
├───────────────────────────────┼───────────────────────────────┤
│Muxwait Semaphores             │                               │
├───────────────────────────────┼───────────────────────────────┤
│DosAddMuxWaitSemDosOpenMuxWaitSem              │
├───────────────────────────────┼───────────────────────────────┤
│DosCloseMuxWaitSemDosQueryMuxWaitSem             │
├───────────────────────────────┼───────────────────────────────┤
│DosCreateMuxWaitSemDosWaitMuxWaitSem              │
├───────────────────────────────┼───────────────────────────────┤
│DosDeleteMuxWaitSem            │                               │
├───────────────────────────────┼───────────────────────────────┤
│Timers                         │                               │
├───────────────────────────────┼───────────────────────────────┤
│DosAsyncTimerDosStopTimer                   │
├───────────────────────────────┼───────────────────────────────┤
│DosStartTimer                  │                               │
└───────────────────────────────┴───────────────────────────────┘


[Back: LINK386]
[Next: DosAcknowledgeSignalException]