Sample Code
Windows Driver Samples/ OEM Printer Customization Plug-in Samples/ C++/ watermarkuni/ wmarkuni/ wmarkuni.h/
// 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: WMARKUNI.H // // // PURPOSE: Define common data types, and external function prototypes // for debug.cpp. // #pragma once #include "OEM.H" #include "DEVMODE.H" //////////////////////////////////////////////////////// // OEM Defines //////////////////////////////////////////////////////// #define DLLTEXT(s) "WMARKUNI: " s /////////////////////////////////////////////////////// // Warning: the following enum order must match the // order in OEMHookFuncs[]. /////////////////////////////////////////////////////// typedef enum tag_Hooks { UD_DrvRealizeBrush, UD_DrvDitherColor, UD_DrvCopyBits, UD_DrvBitBlt, UD_DrvStretchBlt, UD_DrvTextOut, UD_DrvStrokePath, UD_DrvFillPath, UD_DrvStrokeAndFillPath, UD_DrvPaint, UD_DrvLineTo, UD_DrvStartPage, UD_DrvSendPage, UD_DrvEscape, UD_DrvStartDoc, UD_DrvEndDoc, UD_DrvNextBand, UD_DrvStartBanding, UD_DrvQueryFont, UD_DrvQueryFontTree, UD_DrvQueryFontData, UD_DrvQueryAdvanceWidths, UD_DrvFontManagement, UD_DrvGetGlyphMode, UD_DrvStretchBltROP, UD_DrvPlgBlt, UD_DrvTransparentBlt, UD_DrvAlphaBlend, UD_DrvGradientFill, 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 // Unidrv's hook function pointer so it call back. // PFN pfnUnidrv[MAX_DDI_HOOKS]; // // define whatever needed, such as working buffers, tracking information, // etc. // DWORD dwReserved[1]; } OEMPDEV, *POEMPDEV;
Our Services
-
What our customers say about us?
Read our customer testimonials to find out why our clients keep returning for their projects.
View Testimonials