This is part of Win16 API which allow to create versions of program from one source code to run under OS/2 and Win16. Under OS/2 program can be running under Win-OS/2 if program is Windows NE executable, and with help on Windows Libraries for OS/2, if it is OS/2 NE executable. Here is a WLO to OS/2 API mapping draft
| Ordinal | Name | Description | Status | Version |
|---|---|---|---|---|
| 1 | SetBkColor | Sets the current background color | ||
| 2 | SetBkMode | Sets the background mix mode | ||
| 3 | SetMapMode | Sets the mapping mode | ||
| 4 | SetROP2 | Sets the foreground mix mode | ||
| 6 | SetPolyFillMode | Sets the polygon filling mode | ||
| 7 | SetStretchBltMode | Sets the bitmap stretching mode | ||
| 8 | SetTextCharacterExtra | Sets intercharacter spacing | ||
| 9 | SetTextColor | Sets the text color | ||
| 10 | SetTextJustification | Sets text justification parameters | ||
| 11 | SetWindowOrg | Sets the window origin | ||
| 12 | SetWindowExt | Sets the window extents | ||
| 13 | SetViewportOrg | Sets the viewport origin | ||
| 14 | SetViewportExt | Sets the viewport extents | ||
| 15 | OffsetWindowOrg | Moves the window origin | ||
| 16 | ScaleWindowExt | Scales the window extents | ||
| 17 | OffsetViewportOrg | Moves the viewport origin | ||
| 18 | ScaleViewportExt | Scales the viewport extents | ||
| 19 | LineTo | Draws a line from current position to specified point | ||
| 20 | MoveTo | Moves the current position | ||
| 21 | ExcludeClipRect | Excludes a rectangle from the clipping region | ||
| 22 | IntersectClipRect | Intersects a rectangle with the clipping region | ||
| 23 | Arc | Draws an elliptical arc | ||
| 24 | Ellipse | Draws an ellipse | ||
| 25 | FloodFill | Fills an area with the current brush | ||
| 26 | Pie | Draws a pie-shaped wedge | ||
| 27 | Rectangle | Draws a rectangle | ||
| 28 | RoundRect | Draws a rectangle with rounded corners | ||
| 29 | PatBlt | Performs a pattern bit-block transfer | ||
| 30 | SaveDC | Saves the device context state | ||
| 31 | SetPixel | Sets a pixel to the specified color | ||
| 32 | OffsetClipRgn | Moves the clipping region | ||
| 33 | TextOut | Outputs a character string | ||
| 34 | BitBlt | Performs a bit-block transfer | ||
| 35 | StretchBlt | Performs a stretched bit-block transfer | ||
| 36 | Polygon | Draws a polygon | ||
| 37 | Polyline | Draws a series of line segments | ||
| 38 | Escape | Accesses device-specific functions | ||
| 39 | RestoreDC | Restores the device context state | ||
| 40 | FillRgn | Fills a region with a brush | ||
| 41 | FrameRgn | Draws a border around a region | ||
| 42 | InvertRgn | Inverts the colors in a region | ||
| 43 | PaintRgn | Paints a region with a brush | ||
| 44 | SelectClipRgn | Selects a region as the clipping region | ||
| 45 | SelectObject | Selects an object into the device context | ||
| 47 | CombineRgn | Combines two regions | ||
| 48 | CreateBitmap | Creates a bitmap | ||
| 49 | CreateBitmapIndirect | Creates a bitmap from a structure | ||
| 50 | CreateBrushIndirect | Creates a brush from a structure | ||
| 51 | CreateCompatibleBitmap | Creates a compatible bitmap | ||
| 52 | CreateCompatibleDC | Creates a memory device context | ||
| 54 | CreateDC | Creates a device context | ||
| 55 | CreateEllipticRgn | Creates an elliptical region | ||
| 56 | CreateEllipticRgnIndirect | Creates an elliptical region from a rectangle | ||
| 57 | CreateFont | Creates a logical font | ||
| 58 | CreateFontIndirect | Creates a font from a structure | ||
| 59 | CreateHatchBrush | Creates a hatched brush | ||
| 60 | CreatePatternBrush | Creates a pattern brush | ||
| 61 | CreatePen | Creates a logical pen | ||
| 62 | CreatePenIndirect | Creates a pen from a structure | ||
| 63 | CreatePolygonRgn | Creates a polygonal region | ||
| 64 | CreateRectRgn | Creates a rectangular region | ||
| 65 | CreateRectRgnIndirect | Creates a rectangular region from a rectangle | ||
| 66 | CreateSolidBrush | Creates a solid brush | ||
| 67 | DPtoLP | Converts device points to logical points | ||
| 68 | DeleteDC | Deletes a device context | ||
| 69 | DeleteObject | Deletes a GDI object | ||
| 70 | EnumFonts | Enumerates available fonts | ||
| 71 | EnumObjects | Enumerates GDI objects | ||
| 72 | EqualRgn | Checks if two regions are equal | ||
| 74 | GetBitmapBits | Retrieves bitmap bits | ||
| 75 | GetBkColor | Retrieves the background color | ||
| 76 | GetBkMode | Retrieves the background mix mode | ||
| 77 | GetClipBox | Retrieves the clipping bounding box | ||
| 78 | GetCurrentPosition | Retrieves the current position | ||
| 79 | GetDCOrg | Retrieves the device context origin | ||
| 80 | GetDeviceCaps | Retrieves device capabilities | ||
| 81 | GetMapMode | Retrieves the mapping mode | ||
| 82 | GetObject | Retrieves information about a GDI object | ||
| 83 | GetPixel | Retrieves the color of a pixel | ||
| 84 | GetPolyFillMode | Retrieves the polygon filling mode | ||
| 85 | GetROP2 | Retrieves the foreground mix mode | ||
| 86 | GetRelAbs | Converts relative coordinates to absolute | ||
| 87 | GetStockObject | Retrieves a stock GDI object | ||
| 88 | GetStretchBltMode | Retrieves the bitmap stretching mode | ||
| 89 | GetTextCharacterExtra | Retrieves intercharacter spacing | ||
| 90 | GetTextColor | Retrieves the text color | ||
| 91 | GetTextExtent | Computes text dimensions | ||
| 92 | GetTextFace | Retrieves the typeface name | ||
| 93 | GetTextMetrics | Retrieves font metrics | ||
| 94 | GetViewportExt | Retrieves the viewport extents | ||
| 95 | GetViewportOrg | Retrieves the viewport origin | ||
| 96 | GetWindowExt | Retrieves the window extents | ||
| 97 | GetWindowOrg | Retrieves the window origin | ||
| 99 | LPtoDP | Converts logical points to device points | ||
| 100 | LineDDA | Line drawing with callback function | ||
| 101 | OffsetRgn | Moves a region | ||
| 103 | PtVisible | Checks if a point is visible | ||
| 104 | RectVisible | Checks if a rectangle is visible | ||
| 106 | SetBitmapBits | Sets bitmap bits | ||
| 119 | AddFontResource | Adds a font resource | ||
| 123 | PlayMetaFile | Plays a metafile | ||
| 124 | GetMetaFile | Retrieves a metafile | ||
| 125 | CreateMetaFile | Creates a metafile | ||
| 126 | CloseMetaFile | Closes a metafile | ||
| 127 | DeleteMetaFile | Deletes a metafile | ||
| 128 | MulDiv | Performs multiplication and division | ||
| 132 | SetEnvironment | Sets printer environment | ||
| 133 | GetEnvironment | Retrieves printer environment | ||
| 134 | GetRgnBox | Retrieves region bounding box | ||
| 136 | RemoveFontResource | Removes a font resource | ||
| 148 | SetBrushOrg | Sets brush origin | ||
| 149 | GetBrushOrg | Retrieves brush origin | ||
| 150 | UnrealizeObject | Unrealizes a GDI object | ||
| 151 | CopyMetaFile | Copies a metafile | ||
| 153 | CreateIC | Creates an information context | ||
| 154 | GetNearestColor | Retrieves nearest available color | ||
| 155 | QueryAbort | Queries print job abort status | ||
| 156 | CreateDiscardableBitmap | Creates a discardable bitmap | ||
| 159 | GetMetaFileBits | Retrieves metafile bits | ||
| 160 | SetMetaFileBits | Sets metafile bits | ||
| 161 | PtInRegion | Checks if point is in region | ||
| 162 | GetBitmapDimension | Retrieves bitmap dimensions | ||
| 163 | SetBitmapDimension | Sets bitmap dimensions | ||
| 172 | SetRectRgn | Sets a rectangular region | ||
| 175 | EnumMetaFile | Enumerates metafile records | ||
| 176 | PlayMetaFileRecord | Plays a metafile record | ||
| 181 | RectInRegion | Checks if rectangle is in region | ||
| 193 | SetBoundsRect | Sets bounding rectangle | ||
| 194 | GetBoundsRect | Retrieves bounding rectangle | ||
| 196 | SetMetaFileBitsBetter | Sets metafile bits with improved method | ||
| 201 | DmBitBlt | Device mode bit-block transfer | ||
| 202 | DmColorInfo | Device mode color information | ||
| 208 | DmOutput | Device mode output | ||
| 209 | DmPixel | Device mode pixel operation | ||
| 210 | DmRealizeObject | Device mode object realization | ||
| 211 | DmStretchBlt | Device mode stretch block transfer | ||
| 212 | DmScanLR | Device mode scanline operation | ||
| 240 | OpenJob | Opens print job | ||
| 241 | WriteSpool | Writes to spooler | ||
| 243 | CloseJob | Closes print job | ||
| 244 | DeleteJob | Deletes print job | ||
| 246 | StartSpoolPage | Starts spooler page | ||
| 247 | EndSpoolPage | Ends spooler page | ||
| 254 | SpoolFile | Spools file | ||
| 300 | EngineEnumerateFont | Engine font enumeration | ||
| 301 | EngineDeleteFont | Engine font deletion | ||
| 302 | EngineRealizeFont | Engine font realization | ||
| 303 | EngineGetCharWidth | Engine character width retrieval | ||
| 304 | EngineSetFontContext | Engine font context setting | ||
| 305 | EngineGetGlyphBmp | Engine glyph bitmap retrieval | ||
| 307 | GetCharABCWidths | Retrieves character ABC widths | ||
| 308 | GetOutlineTextMetrics | Retrieves outline text metrics | ||
| 309 | GetGlyphOutline | Retrieves glyph outline | ||
| 310 | CreateScalableFontResource | Creates scalable font resource | ||
| 311 | GetFontData | Retrieves font data | ||
| 313 | GetRasterizerCaps | Retrieves rasterizer capabilities | ||
| 330 | EnumFontFamilies | Enumerates font families | ||
| 332 | GetKerningPairs | Retrieves kerning pairs | ||
| 345 | GetTextAlign | Retrieves text alignment | ||
| 346 | SetTextAlign | Sets text alignment | ||
| 348 | Chord | Draws chord | ||
| 349 | SetMapperFlags | Sets font mapper flags | ||
| 350 | GetCharWidth | Retrieves character widths | ||
| 351 | ExtTextOut | Extended text output | ||
| 353 | GetAspectRatioFilter | Retrieves aspect ratio filter | ||
| 360 | CreatePalette | Creates palette | ||
| 363 | GetPaletteEntries | Retrieves palette entries | ||
| 364 | SetPaletteEntries | Sets palette entries | ||
| 366 | UpdateColors | Updates colors | ||
| 367 | AnimatePalette | Animates palette | ||
| 368 | ResizePalette | Resizes palette | ||
| 370 | GetNearestPaletteIndex | Retrieves nearest palette index | ||
| 372 | ExtFloodFill | Extended flood fill | ||
| 373 | SetSystemPaletteUse | Sets system palette use | ||
| 374 | GetSystemPaletteUse | Retrieves system palette use | ||
| 375 | GetSystemPaletteEntries | Retrieves system palette entries | ||
| 376 | ResetDC | Resets device context | ||
| 377 | StartDoc | Starts print document | ||
| 378 | EndDoc | Ends print document | ||
| 379 | StartPage | Starts print page | ||
| 380 | EndPage | Ends print page | ||
| 381 | SetAbortProc | Sets abort procedure | ||
| 382 | AbortDoc | Aborts print document | ||
| 400 | FastWindowFrame | Fast window frame drawing | ||
| 410 | IsValidMetaFile | Checks metafile validity | ||
| 439 | StretchDIBits | Stretches DIB bits | ||
| 440 | SetDIBits | Sets DIB bits | ||
| 441 | GetDIBits | Retrieves DIB bits | ||
| 442 | CreateDIBitmap | Creates DIB bitmap | ||
| 443 | SetDIBitsToDevice | Sets DIB bits to device | ||
| 444 | CreateRoundRectRgn | Creates rounded rectangle region | ||
| 445 | CreateDIBPatternBrush | Creates DIB pattern brush | ||
| 450 | PolyPolygon | Draws multiple polygons | ||
| 451 | CreatePolyPolygonRgn | Creates multiple polygon region | ||
| 462 | IsGDIObject | Checks if object is GDI object | ||
| 465 | RectVisibleEHH | Extended rectangle visibility check | ||
| 468 | GetBitmapDimensionEx | Extended bitmap dimension retrieval | ||
| 469 | GetBrushOrgEx | Extended brush origin retrieval | ||
| 470 | GetCurrentPositionEx | Extended current position retrieval | ||
| 471 | GetTextExtentPoint | Text extent point retrieval | ||
| 472 | GetViewportExtEx | Extended viewport extents retrieval | ||
| 473 | GetViewportOrgEx | Extended viewport origin retrieval | ||
| 474 | GetWindowExtEx | Extended window extents retrieval | ||
| 475 | GetWindowOrgEx | Extended window origin retrieval | ||
| 476 | OffsetViewportOrgEx | Extended viewport origin offset | ||
| 477 | OffsetWindowOrgEx | Extended window origin offset | ||
| 478 | SetBitmapDimensionEx | Extended bitmap dimension setting | ||
| 479 | SetViewportExtEx | Extended viewport extents setting | ||
| 480 | SetViewportOrgEx | Extended viewport origin setting | ||
| 481 | SetWindowExtEx | Extended window extents setting | ||
| 482 | SetWindowOrgEx | Extended window origin setting | ||
| 483 | MoveToEx | Extended move to | ||
| 484 | ScaleViewportExtEx | Extended viewport scaling | ||
| 485 | ScaleWindowExtEx | Extended window scaling | ||
| 486 | GetAspectRatioFilterEx | Extended aspect ratio filter retrieval |




