Jump to content

Control Program Functions: Difference between revisions

From EDM2
Line 37: Line 37:


=== Exception Management ===
=== Exception Management ===
*[[DosQueryModFromEIP]] [[Image:Conf.gif]]
* [[DosQueryModFromEIP]] [[Image:Conf.gif]]
*[[DosRaiseException]]
* [[DosRaiseException]]
* [[OS2 API:CPI:DosSetExceptionHandler|DosSetExceptionHandler]]
* [[DosSetExceptionHandler]]
* [[OS2 API:CPI:DosUnsetExceptionHandler|DosUnsetExceptionHandler]]
* [[DosUnsetExceptionHandler]]
*[[DosUnwindException]]
* [[DosUnwindException]]
* [[OS2 API:CPI:Dos16QueryModFromCS|Dos16QueryModFromCS]] [[Image:Conf.gif]]
* [[Dos16QueryModFromCS]] [[Image:Conf.gif]]


==== Must Complete Management ====
==== Must Complete Management ====
Line 49: Line 49:


==== Signaling Exception Management ====
==== Signaling Exception Management ====
* [[OS2 API:CPI:DosAcknowledgeSignalException|DosAcknowledgeSignalException]]
* [[DosAcknowledgeSignalException]]
* [[OS2 API:CPI:DosSendSignalException|DosSendSignalException]]
* [[DosSendSignalException]]
* [[OS2 API:CPI:DosSetSignalExceptionFocus|DosSetSignalExceptionFocus]]
* [[DosSetSignalExceptionFocus]]


=== File Systems/File Management ===
=== File Systems/File Management ===
==== Directory Searching ====
==== Directory Searching ====
* [[OS2 API:CPI:DosFindClose|DosFindClose]]
* [[DosFindClose]]
* [[OS2 API:CPI:DosFindFirst|DosFindFirst]]
* [[DosFindFirst]]
* [[OS2 API:CPI:DosFindNext|DosFindNext]]
* [[DosFindNext]]
==== Directory ====
==== Directory ====
* [[DosCreateDir]]
* [[DosCreateDir]]
Line 65: Line 65:


==== Disk ====
==== Disk ====
* [[OS2 API:CPI:DosQueryCurrentDisk|DosQueryCurrentDisk]]
* [[DosQueryCurrentDisk]]
* [[OS2 API:CPI:DosSetDefaultDisk|DosSetDefaultDisk]]
* [[DosSetDefaultDisk]]
==== Environment/Path ====
==== Environment/Path ====
* [[OS2 API:CPI:DosScanEnv|DosScanEnv]]
* [[DosScanEnv]]
* [[OS2 API:CPI:DosSearchPath|DosSearchPath]]
* [[DosSearchPath]]
===== LibPath =====
===== LibPath =====
* [[OS2 API:CPI:DosQueryExtLIBPATH|DosQueryExtLIBPATH]]
* [[DosQueryExtLIBPATH]]
* [[OS2 API:CPI:DosSetExtLIBPATH|DosSetExtLIBPATH]]
* [[DosSetExtLIBPATH]]


==== File Manipulation ====
==== File Manipulation ====
* [[OS2 API:CPI:DosCancelLockRequest|DosCancelLockRequest]]  
* [[DosCancelLockRequest]]  
* [[OS2 API:CPI:DosCancelLockRequestL|DosCancelLockRequestL]] [[Image:Conf.gif]]
* [[DosCancelLockRequestL]] [[Image:Conf.gif]]
* [[OS2 API:CPI:DosClose|DosClose]]
* [[DosClose]]
* [[OS2 API:CPI:DosProtectClose|DosProtectClose]]
* [[DosProtectClose]]
* [[OS2 API:CPI:DosCopy|DosCopy]]
* [[DosCopy]]
* [[OS2 API:CPI:DosDelete|DosDelete]]
* [[DosDelete]]
* [[OS2 API:CPI:DosEditName|DosEditName]]
* [[DosEditName]]
* [[OS2 API:CPI:DosForceDelete|DosForceDelete]]
* [[DosForceDelete]]
* [[OS2 API:CPI:DosMove|DosMove]]
* [[DosMove]]
* [[OS2 API:CPI:DosOpen|DosOpen]]
* [[DosOpen]]
* [[OS2 API:CPI:DosOpenL|DosOpenL]] [[Image:Conf.gif]]
* [[DosOpenL]] [[Image:Conf.gif]]
* [[OS2 API:CPI:DosProtectOpen|DosProtectOpen]]
* [[DosProtectOpen]]
* [[OS2 API:CPI:DosProtectOpenL|DosProtectOpenL]] [[Image:Conf.gif]]
* [[DosProtectOpenL]] [[Image:Conf.gif]]
* [[OS2 API:CPI:DosRead|DosRead]]
* [[DosRead]]
* [[OS2 API:CPI:DosReplaceModule|DosReplaceModule]] [[Image:Conf.gif]]
* [[DosReplaceModule]] [[Image:Conf.gif]]
* [[OS2 API:CPI:DosProtectRead|DosProtectRead]]
* [[DosProtectRead]]
* [[OS2 API:CPI:DosSetFileInfo|DosSetFileInfo]]
* [[DosSetFileInfo]]
* [[OS2 API:CPI:DosProtectSetFileInfo|DosProtectSetFileInfo]]
* [[DosProtectSetFileInfo]]
* [[OS2 API:CPI:DosSetFileLocks|DosSetFileLocks]]
* [[DosSetFileLocks]]
* [[OS2 API:CPI:DosSetFileLocksL|DosSetFileLocksL]] [[Image:Conf.gif]]
* [[DosSetFileLocksL]] [[Image:Conf.gif]]
* [[OS2 API:CPI:DosProtectSetFileLocks|DosProtectSetFileLocks]]
* [[DosProtectSetFileLocks]]
* [[OS2 API:CPI:DosProtectSetFileLocksL|DosProtectSetFileLocksL]] [[Image:Conf.gif]]
* [[DosProtectSetFileLocksL]] [[Image:Conf.gif]]
* [[OS2 API:CPI:DosSetFilePtr|DosSetFilePtr]]
* [[DosSetFilePtr]]
* [[OS2 API:CPI:DosSetFilePtrL|DosSetFilePtrL]] [[Image:Conf.gif]]
* [[DosSetFilePtrL]] [[Image:Conf.gif]]
* [[OS2 API:CPI:DosProtectSetFilePtr|DosProtectSetFilePtr]]
* [[DosProtectSetFilePtr]]
* [[OS2 API:CPI:DosProtectSetFilePtrL|DosProtectSetFilePtrL]] [[Image:Conf.gif]]
* [[DosProtectSetFilePtrL]] [[Image:Conf.gif]]
* [[OS2 API:CPI:DosSetFileSize|DosSetFileSize]]
* [[DosSetFileSize]]
* [[OS2 API:CPI:DosSetFileSizeL|DosSetFileSizeL]] [[Image:Conf.gif]]
* [[DosSetFileSizeL]] [[Image:Conf.gif]]
* [[OS2 API:CPI:DosProtectSetFileSize|DosProtectSetFileSize]]
* [[DosProtectSetFileSize]]
* [[OS2 API:CPI:DosProtectSetFileSizeL|DosProtectSetFileSizeL]] [[Image:Conf.gif]]
* [[DosProtectSetFileSizeL]] [[Image:Conf.gif]]
* [[OS2 API:CPI:DosSetPathInfo|DosSetPathInfo]]
* [[DosSetPathInfo]]
* [[OS2 API:CPI:DosSetVerify|DosSetVerify]]
* [[DosSetVerify]]
* [[OS2 API:CPI:DosWrite|DosWrite]]
* [[DosWrite]]
* [[OS2 API:CPI:DosProtectWrite|DosProtectWrite]]
* [[DosProtectWrite]]


==== File Handle Manipulation ====
==== File Handle Manipulation ====

Revision as of 23:22, 24 February 2017

Control Programming Interface

Some general information is available at Control Program page.

Date/Time

Device I/O

Dynamic Linking Library

Error Management

Exception Management

Must Complete Management

Signaling Exception Management

File Systems/File Management

Directory Searching

Directory

Disk

Environment/Path

LibPath

File Manipulation

File Handle Manipulation

File Querying

File System Functions

Memory Management

Heap Memory

Shared Memory

Thread local Memory

Message Management

National Language/Code Page

Pipes

Named Pipes

Queues

Server

Client

Resource Management

Semaphores

Event Semaphores

Mutex Semaphores

MuxWait Semaphores

Processes/Threading

Processes

Threads

Session Management

Timer

VDD

Keyboard functions

Mouse functions

Video I/O functions

Advanced VIO

Icon Legend

  • : It seems that these functions were not implemented on the OS/2 4.5 Toolkit.
  • : These functions were documented on the Addendum of the OS/2 4.5 Toolkit.
  • : More information is required on this function.

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

File Handle Manipulation

File Querying

File System Functions

Memory Management

Heap Memory

Message Management

National Language/Code Page

Pipes

Named Pipes

Queues

Server

Client

Resource Management

Semaphores

MuxWait Semaphores

Processes/Threading

Processes

Threads

Session Management

Timer

Addressing

Spool

To SORT

Keyboard functions

Mouse functions

Video I/O functions

Advanced VIO

Legend

  • : More information is required on this function. Information was not available on CP1 or PRCP books.

References

Title Author Year Document Ref. Links
Control Program Programming Guide and Reference IBM 1996 CP1.INF, CP2.INF, CP3.INF PDF, INF 1 INF 2 INF 3
API Addendum Volume 1 (PowerPC Edition) IBM APIBAS.INF
Legacy OS/2 Programming Reference IBM PRCP.INF