Sample Code
Windows Driver Samples/ OEM Printer Customization Plug-in Samples/ C++/ gdl/ src/ gdlsmpl.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 - 2006 Microsoft Corporation. All Rights Reserved. // // FILE: gdlsmpl.h // // PURPOSE: COM implementation of a UI module that uses GDL. CAbstractOemUI2 // is defined in intrface.h, and contains a default implementation of // all optional interface methods. // //-------------------------------------------------------------------------- #pragma once /////////////////////////////////////// // Globals /////////////////////////////////////// extern HINSTANCE ghInstance; // Module's Instance handle from DLLEntry of process. class COemUI2: public CAbstractOemUI2 { public: COemUI2() : m_pCoreHelper(NULL) {} // // Method for publishing Driver interface. // STDMETHOD(PublishDriverInterface)(THIS_ IUnknown *pIUnknown); // // Get OEM dll related information // STDMETHOD(GetInfo) (THIS_ DWORD dwMode, _Out_writes_bytes_(cbSize) PVOID pBuffer, DWORD cbSize, PDWORD pcbNeeded); // // OEMDevMode // STDMETHOD(DevMode) (THIS_ DWORD dwMode, POEMDMPARAM pOemDMParam); // // OEMDocumentPropertySheets // STDMETHOD(DocumentPropertySheets) (THIS_ PPROPSHEETUI_INFO pPSUIInfo, LPARAM lParam ); virtual ~COemUI2(); protected: HRESULT DbgShowGPDVersion(); HRESULT LoadGDLSnapshot( _Out_ IXMLDOMDocument2 **ppDOMSnapshot ); IPrintCoreHelperUni* m_pCoreHelper; // Pointer to the helper interface introduced in Windows Vista. };
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