Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

95 lines
2.2 KiB

// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//
// Copyright 1997 - 2003 Microsoft Corporation. All Rights Reserved.
//
// FILE: OEMPS.H
//
//
// PURPOSE: Define common data types, and external function prototypes
// for debug.cpp.
//
// PLATFORMS:
//
// Windows 2000, Windows XP, Windows Server 2003
//
//
#ifndef _OEMPS_H
#define _OEMPS_H
#include "OEM.H"
#include "DEVMODE.H"
////////////////////////////////////////////////////////
// OEM Defines
////////////////////////////////////////////////////////
#define DLLTEXT(s) TEXT("OEMPS: ") TEXT(s)
#define ERRORTEXT(s) TEXT("ERROR ") DLLTEXT(s)
///////////////////////////////////////////////////////
// Warning: the following enum order must match the
// order in OEMHookFuncs[].
///////////////////////////////////////////////////////
typedef enum tag_Hooks {
UD_DrvRealizeBrush,
UD_DrvCopyBits,
UD_DrvBitBlt,
UD_DrvStretchBlt,
UD_DrvTextOut,
UD_DrvStrokePath,
UD_DrvFillPath,
UD_DrvStrokeAndFillPath,
UD_DrvStartPage,
UD_DrvSendPage,
UD_DrvEscape,
UD_DrvStartDoc,
UD_DrvEndDoc,
UD_DrvQueryFont,
UD_DrvQueryFontTree,
UD_DrvQueryFontData,
UD_DrvQueryAdvanceWidths,
UD_DrvFontManagement,
UD_DrvGetGlyphMode,
UD_DrvStretchBltROP,
UD_DrvPlgBlt,
UD_DrvTransparentBlt,
UD_DrvAlphaBlend,
UD_DrvGradientFill,
UD_DrvIcmCreateColorTransform,
UD_DrvIcmDeleteColorTransform,
UD_DrvQueryDeviceSupport,
MAX_DDI_HOOKS,
} ENUMHOOKS;
typedef struct _OEMPDEV {
//
// define whatever needed, such as working buffers, tracking information,
// etc.
//
// This test DLL hooks out every drawing DDI. So it needs to remember
// PS's hook function pointer so it call back.
//
PFN pfnPS[MAX_DDI_HOOKS];
//
// define whatever needed, such as working buffers, tracking information,
// etc.
//
DWORD dwReserved[1];
} OEMPDEV, *POEMPDEV;
#endif