Jump to content

PDRREF:Exported Driver Function Reference

From EDM2
Revision as of 23:47, 19 November 2019 by Martini (talk | contribs)
Presentation Device Driver Reference for OS/2
  1. Introduction to OS/2 Presentation Drivers
  2. Design Considerations for All Drivers
  3. Graphics Engine/Presentation Driver Design Changes
  4. Design Considerations for Display Drivers
  5. Design Considerations for Hardcopy Drivers
  6. Display Drivers
  7. Distributed Console Access Facility (DCAF) Architecture
  8. Graphics Engine Hardcopy Drivers
  9. Queue Drivers
  10. Port Drivers
  11. Presentation Manager Function Categories
  12. Exported Driver Function Reference
  13. Mandatory and Simulated Graphics Engine Function Reference
  14. Device Support Function Reference
  15. DBIDI Command Structures and Command Flow

Appendixes

A - OS/2 Version Compatibility Considerations
B - Syntax Conventions
C - Format of the Journal File
D - Bit-Map Simulation for 16-Bit Hardcopy Drivers
E - Data Types
F - Notices

Miscellaneous

G - Glossary

Reprint Courtesy of International Business Machines Corporation, © International Business Machines Corporation

This chapter describes the entry points that are exported by the dynamic link library of a presentation driver:

 EXPORTS
    OS2_PM_DRV_RING_LEVELS      /* All drivers - Optional  */
    OS2_PM_DRV_ENABLE_LEVELS    /* All drivers - Optional  */
    OS2_PM_DRV_ENABLE           /* All drivers - Mandatory */

The functions in this chapter are listed in the following index table. A detailed description of each function follows the table.

┌────────────────────────────────────────┬────────────────────┐
│Function                                │Type                │
├────────────────────────────────────────┼────────────────────┤
│DrvInstall                              │GRE hardcopy        │
├────────────────────────────────────────┼────────────────────┤
│DrvRemove                               │GRE hardcopy        │
├────────────────────────────────────────┼────────────────────┤
│OS2_PM_DRV_DEVICENAMES                  │GRE hardcopy        │
├────────────────────────────────────────┼────────────────────┤
│OS2_PM_DRV_DEVMODE                      │GRE hardcopy        │
├────────────────────────────────────────┼────────────────────┤
│FillLogicalDeviceBlock                  │exported entry point│
├────────────────────────────────────────┼────────────────────┤
│FillPhysicalDeviceBlock                 │exported entry point│
├────────────────────────────────────────┼────────────────────┤
│DisablePhysicalDeviceBlock              │exported entry point│
├────────────────────────────────────────┼────────────────────┤
│EnableDeviceContext                     │exported entry point│
├────────────────────────────────────────┼────────────────────┤
│DisableDeviceContext                    │exported entry point│
├────────────────────────────────────────┼────────────────────┤
│SaveDCState                             │exported entry point│
├────────────────────────────────────────┼────────────────────┤
│RestoreDCState                          │exported entry point│
├────────────────────────────────────────┼────────────────────┤
│ResetDCState                            │exported entry point│
├────────────────────────────────────────┼────────────────────┤
│CompleteOpenDC                          │exported entry point│
├────────────────────────────────────────┼────────────────────┤
│BeginCloseDC                            │exported entry point│
├────────────────────────────────────────┼────────────────────┤
│InstallPMEngineDisplayHooks             │exported entry point│
├────────────────────────────────────────┼────────────────────┤
│QueryDeviceSurface                      │exported entry point│
├────────────────────────────────────────┼────────────────────┤
│OS2_PM_DRV_QUERYSCREENRESOLUTIONS       │display driver      │
└────────────────────────────────────────┴────────────────────┘