en:ibm:prcp:cpi

This is an old revision of the document!


Control Program Function Calls

This section reflects the Dos API interface of OS/2 only.

The Dos function calls can be used in full-screen and Presentation Manager sessions to perform basic operating-system operations, such as file input/output, memory allocation, and thread and process creation/control/communication.

Notes:

  1. Calls marked xPM are not supported by Presentation Manager, and must not be used by Presentation Manager applications. An error code is returned if any of these calls are issued.
  2. Calls marked xWPM are not windowable and are not supported by Presentation Manager. They can be used in OS/2 mode.
  3. Calls marked FAPI are present in the Family API.
# FUNCTION CALL ICON
1 DosAllocHuge FAPI
2 DosAllocSeg FAPI
3 DosAllocShrSeg
4 DosBeep FAPI
5 DosBufReset FAPI
5 DosCallback
5 DosCallNmPipe
6 DosCaseMap FAPI
7 DosChDir FAPI
8 DosChgFilePtr FAPI
5 DosCLIAccess
9 DosClose FAPI
9 DosCloseQueue
9 DosCloseSem
9 DosConnectNmPipe
9 DosCopy
10 DosCreateCSAlias FAPI
9 DosCreateQueue
9 DosCreateSem
9 DosCreateThread
9 DosCwait
11 DosDelete FAPI
12 DosDevConfig FAPI
13 DosDevIOCtl FAPI
13 DosDevIOCtl2
13 DosDisConnectNmPipe
14 DosDupHandle FAPI
14 DosEditName
14 DosEnterCritSec
15 DosEnumAttribute FAPI
16 DosErrClass FAPI
17 DosError FAPI
18 DosExecPgm FAPI
19 DosExit FAPI
19 DosExitCritSec
19 DosExitList
19 DosFileIO
20 DosFileLocks FAPI
21 DosFindClose FAPI
22 DosFindFirst FAPI
23 DosFindFirst2 FAPI
24 DosFindNext FAPI
24 DosFlagProcess
24 DosFreeModule
24 DosFreeResource
25 DosFreeSeg FAPI
24 DosFSAttach
24 DosFSCtl
24 DosFSRamSemClear
24 DosFSRamSemRequest
26 DosGetCollate FAPI
27 DosGetCp FAPI
28 DosGetCtryInfo FAPI
29 DosGetDateTime FAPI
30 DosGetDBCSEv FAPI
31 DosGetEnv FAPI
32 DosGetHugeShift FAPI
24 DosGetInfoSeg
33 DosGetMachineMode FAPI
24 DosGetMessage
24 DosGetModHandle
24 DosGetModName
34 DosGetPID FAPI
34 DosGetPPID
34 DosGetProcAddr
34 DosGetPrty
34 DosGetResource
34 DosGetResource2
34 DosGetSeg
34 DosGetShrSeg
35 DosGetVersion FAPI
35 DosGiveSeg
36 DosHoldSignal FAPI
37 DosInsMessage FAPI
37 DosKillProcess
37 DosLoadModule
37 DosLockSeg
37 DosMakeNmPipe
37 DosMakePipe
37 DosMemAvail
38 DosMkDir FAPI
39 DosMkDir2 FAPI
40 DosMonClose xPM
41 DosMonOpen xPM
42 DosMonRead xPM
43 DosMonReg xPM
44 DosMonWrite xPM
45 DosMove FAPI
45 DosMuxSemWait
46 DosNewSize FAPI
47 DosOpen FAPI
48 DosOpen2 FAPI
48 DosOpenQueue
48 DosOpenSem
48 DosPeekNmPipe
48 DosPeekQueue
48 DosPFSActivate
48 DosPFSCloseUser
48 DosPFSInit
48 DosPFSQueryAct
48 DosPFSVerifyFont
48 DosPhysicalDisk
49 DosPortAccess FAPI
48 DosPtrace
48 DosPurgeQueue
50 DosPutMessage FAPI
48 DosQAppType
51 DosQCurDir FAPI
52 DosQCurDisk FAPI
53 DosQFHandState FAPI
54 DosQFileInfo FAPI
55 DosQFileMode FAPI
55 DosQFSAttach
56 DosQFSInfo FAPI
57 DosQHandType FAPI
57 DosQNmPHandState
57 DosQNmPipeinfo
57 DosQNmPipeSemState
58 DosQPathInfo FAPI
58 DosQSysInfo
58 DosQueryQueue
59 DosQVerify FAPI
58 DosR2StackRealloc
60 DosRead FAPI
60 DosReadAsync
60 DosReadQueue
61 DosReallocHuge FAPI
62 DosReallocSeg FAPI
60 DosResumeThread
63 DosRmDir FAPI
63 DosScanEnv
63 DosSearchPath
64 DosSelectDisk FAPI
63 DosSelectSession
63 DosSemClear
63 DosSemRequest
63 DosSemSet
63 DosSemSetWait
63 DosSendSignal
65 DosSetCp FAPI
66 DosSetDateTime FAPI
67 DosSetFHandState FAPI
68 DosSetFileInfo FAPI
69 DosSetFileMode FAPI
70 DosSetFSInfo FAPI
63 DosSetMaxFH
63 DosSetNmPHandState
63 DosSetNmPipeSem
71 DosSetPathInfo FAPI
63 DosSetProcCp
63 DosSetPrty
63 DosSetSession
72 DosSetSigHandler FAPI
73 DosSetVec FAPI
74 DosSetVerify FAPI
75 DosSizeSeg FAPI
63 DosShutdown
76 DosSleep FAPI
63 DosSMRegisterDD
63 DosStartSession
63 DosStopSession
77 DosSubAlloc FAPI
78 DosSubFree FAPI
79 DosSubSet FAPI
79 DosSuspendThread
79 DosTimerAsync
79 DosTimerStart
79 DosTimerStop
79 DosTransactNmPipe
79 DosUnlockSeg
79 DosWaitNmPipe
80 DosWrite FAPI
80 DosWriteAsync
80 DosWriteQueue