Sample Code
Windows Driver Samples/ Toaster Sample Driver/ C++/ umdf/ func/ Driver.h/
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | /*++ Copyright (c) Microsoft Corporation, All Rights Reserved Module Name: Driver.h Abstract: This file contains the class definition for the driver object. Environment: Windows User-Mode Driver Framework (WUDF) --*/ #pragma once #include "resource.h" #include "WUDFToaster.h" class ATL_NO_VTABLE CDriver : public CComObjectRootEx<CComMultiThreadModel>, public CComCoClass<CDriver, &CLSID_WUDFToaster>, public IDriverEntry { public : CDriver() { } DECLARE_REGISTRY_RESOURCEID(IDR_TOASTERDRIVER) DECLARE_NOT_AGGREGATABLE(CDriver) // // The driver object suppports the IDriverEntry interface. // BEGIN_COM_MAP(CDriver) COM_INTERFACE_ENTRY(IDriverEntry) END_COM_MAP() public : // // IDriverEntry // STDMETHOD (OnDeviceAdd)( _In_ IWDFDriver *pDriver, _In_ IWDFDeviceInitialize *pDeviceInit ); STDMETHOD (OnInitialize)( _In_ IWDFDriver* pDriver ); STDMETHOD_ ( void , OnDeinitialize)( _In_ IWDFDriver* pDriver ); }; OBJECT_ENTRY_AUTO(__uuidof(WUDFToaster), CDriver) |
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