Sample Code
Windows Driver Samples/ Async Notification Sample/ C++/ server/ library/ acallback.hpp/
// // Windows Server (Printing) Driver Development Kit Samples. // // // Copyright (c) 1990 - 2005 Microsoft Corporation. // All Rights Reserved. // // // This source code is intended only as a supplement to Microsoft // Development Tools and/or on-line documentation. See these other // materials for detailed information regarding Microsoft code samples. // // THIS CODE AND INFORMATION ARE 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. // #ifndef __ACALLBACK_HPP__ #define __ACALLBACK_HPP__ // // CPrintOEMAsyncNotifyCallback implements callback interface required // to receive notifications. // class CPrintOEMAsyncNotifyCallback : public IPrintAsyncNotifyCallback { public: // // Default Constructor // CPrintOEMAsyncNotifyCallback( ); // // IUnknown methods // STDMETHODIMP QueryInterface( _In_ REFIID riid, _COM_Outptr_ VOID **ppv ); STDMETHODIMP_(ULONG) AddRef( VOID ); STDMETHODIMP_(ULONG) Release( VOID ); // // IAsyncNotifications methods // STDMETHODIMP OnEventNotify( _In_ IPrintAsyncNotifyChannel *pIAsyncNotification, _In_ IPrintAsyncNotifyDataObject *pNotification ); STDMETHODIMP ChannelClosed( _In_ IPrintAsyncNotifyChannel *pIAsyncNotification, _In_ IPrintAsyncNotifyDataObject *pNotification ); private: HRESULT ReplyOnClientEventNotify( _In_ IPrintAsyncNotifyChannel* ); ~CPrintOEMAsyncNotifyCallback( ); LONG m_cRef; }; #endif //__ACALLBACK_HPP__
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