home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
ddkx86v1.zip
/
DDKX86
/
H
/
PMAVIO.H
< prev
next >
Wrap
C/C++ Source or Header
|
1995-04-14
|
7KB
|
183 lines
/*DDK*************************************************************************/
/* */
/* COPYRIGHT Copyright (C) 1995 IBM Corporation */
/* */
/* The following IBM OS/2 WARP source code is provided to you solely for */
/* the purpose of assisting you in your development of OS/2 WARP device */
/* drivers. You may use this code in accordance with the IBM License */
/* Agreement provided in the IBM Device Driver Source Kit for OS/2. This */
/* Copyright statement may not be removed. */
/* */
/*****************************************************************************/
/****************************** Module Header ******************************\
*
* Module Name: PMAVIO.H
*
* OS/2 Presentation Manager AVIO constants, types and function declarations
*
*
* ===========================================================================
*
* Comments at the end of each typedef line give the name tags used in
* the assembler include version of this file.
*
* The assembler include version of this file excludes lines between XLATOFF
* and XLATON comments.
*
#ifndef __IBMC__
* The public version of this file (as shipped with the OS/2 Toolkit
* product) excludes all non 32-bit material marked in this file
* as well as any areas specifically marked with __IBMC__ conditional
* sections - including this paragraph. The H2IBMH rexx command file
* removes these sections.
#endif
\***************************************************************************/
/* XLATOFF */
#ifdef __IBMC__
#pragma checkout( suspend )
#ifndef __CHKHDR__
#pragma checkout( suspend )
#endif
#pragma checkout( resume )
#endif
/* XLATON */
#define AVIO_INCLUDED
#ifndef INCL_32 /* If neither INCL_32 or INCL_16 set already */
#ifndef INCL_16 /* find out from compiler if 32-bit or not. */
#ifdef M_I386
#define INCL_32 /* Compiling for 32-bit */
#else
#define INCL_16 /* Compiling for 16-bit */
#endif
#endif
#endif
/* XLATOFF */
#ifndef INCL_32
#ifndef APIENTRY16
#define APIENTRY16 APIENTRY
#endif
#endif
#define Vio16Associate VIO16ASSOCIATE
#define Vio16CreateLogFont VIO16CREATELOGFONT
#define Vio16CreatePS VIO16CREATEPS
#define Vio16DeleteSetId VIO16DELETESETID
#define Vio16DestroyPS VIO16DESTROYPS
#define Vio16GetDeviceCellSize VIO16GETDEVICECELLSIZE
#define Vio16GetOrg VIO16GETORG
#define Vio16QueryFonts VIO16QUERYFONTS
#define Vio16QuerySetIds VIO16QUERYSETIDS
#define Vio16SetDeviceCellSize VIO16SETDEVICECELLSIZE
#define Vio16SetOrg VIO16SETORG
#define Vio16ShowPS VIO16SHOWPS
#define Win16DefAVioWindowProc WIN16DEFAVIOWINDOWPROC
#define VioAssociate VIO16ASSOCIATE
#define VioCreateLogFont VIO16CREATELOGFONT
#define VioCreatePS VIO16CREATEPS
#define VioDeleteSetId VIO16DELETESETID
#define VioDestroyPS VIO16DESTROYPS
#define VioGetDeviceCellSize VIO16GETDEVICECELLSIZE
#define VioGetOrg VIO16GETORG
#define VioQueryFonts VIO16QUERYFONTS
#define VioQuerySetIds VIO16QUERYSETIDS
#define VioSetDeviceCellSize VIO16SETDEVICECELLSIZE
#define VioSetOrg VIO16SETORG
#define VioShowPS VIO16SHOWPS
#define WinDefAVioWindowProc WIN16DEFAVIOWINDOWPROC
/* XLATON */
typedef USHORT HVPS; /* hpvs */
typedef HVPS FAR *PHVPS; /* phpvs */
USHORT APIENTRY16 VioAssociate(HDC hdc,
HVPS hvps);
USHORT APIENTRY16 VioCreateLogFont(PFATTRS pfatattrs,
LONG llcid,
PSTR8 pName,
HVPS hvps);
USHORT APIENTRY16 VioCreatePS(PHVPS phvps,
SHORT sdepth,
SHORT swidth,
SHORT sFormat,
SHORT sAttrs,
HVPS hvpsReserved);
USHORT APIENTRY16 VioDeleteSetId(LONG llcid,
HVPS hvps);
USHORT APIENTRY16 VioDestroyPS(HVPS hvps);
USHORT APIENTRY16 VioGetDeviceCellSize(PSHORT psHeight,
PSHORT psWidth,
HVPS hvps);
USHORT APIENTRY16 VioGetOrg(PSHORT psRow,
PSHORT psColumn,
HVPS hvps);
USHORT APIENTRY16 VioQueryFonts(PLONG plRemfonts,
PFONTMETRICS afmMetrics,
LONG lMetricsLength,
PLONG plFonts,
PSZ pszFacename,
ULONG flOptions,
HVPS hvps);
USHORT APIENTRY16 VioQuerySetIds(PLONG allcids,
PSTR8 pNames,
PLONG alTypes,
LONG lcount,
HVPS hvps);
USHORT APIENTRY16 VioSetDeviceCellSize(SHORT sHeight,
SHORT sWidth,
HVPS hvps);
USHORT APIENTRY16 VioSetOrg(SHORT sRow,
SHORT sColumn,
HVPS hvps);
USHORT APIENTRY16 VioShowPS(SHORT sDepth,
SHORT sWidth,
SHORT soffCell,
HVPS hvps);
/************************ Public Function *******************************
* WinDefAVioWindowProc -- Default message processing for AVio PS's
************************************************************************/
#ifdef INCL_32
/* mp1 and mp2 are defined as ULONG because MPARAM is a pointer type and */
/* 32-bit compilers will thunk pointer types passed to 16-bit routines. */
/* This is not what is desired for WM_SIZE processing so we will declare */
/* the function with ULONGs, non-pointer types. */
MRESULT APIENTRY16 WinDefAVioWindowProc(HWND hwnd,
USHORT msg,
ULONG mp1,
ULONG mp2);
#else
MRESULT APIENTRY16 WinDefAVioWindowProc(HWND hwnd,
USHORT msg,
MPARAM mp1,
MPARAM mp2);
#endif
/* XLATOFF */
#ifdef __IBMC__
#pragma checkout( suspend )
#ifndef __CHKHDR__
#pragma checkout( resume )
#endif
#pragma checkout( resume )
#endif
/* XLATON */
/**************************** end of file **********************************/