Sample Code
Windows Driver Samples/ WPD multi-transport sample driver/ C++/ WpdBaseDriver.h/
#pragma once class WpdBaseDriver : public IUnknown { public: WpdBaseDriver(); virtual ~WpdBaseDriver(); HRESULT Initialize(); VOID Uninitialize(); HRESULT DispatchWpdMessage(_In_ IPortableDeviceValues* pParams, _In_ IPortableDeviceValues* pResults); private: HRESULT OnGetObjectIDsFromPersistentUniqueIDs(_In_ IPortableDeviceValues* pParams, _In_ IPortableDeviceValues* pResults); public: // IUnknown ULONG __stdcall AddRef(); _At_(this, __drv_freesMem(Mem)) ULONG __stdcall Release(); HRESULT __stdcall QueryInterface(REFIID riid, void** ppv); public: WpdObjectEnumerator m_ObjectEnum; WpdObjectProperties m_ObjectProperties; WpdObjectResources m_ObjectResources; WpdCapabilities m_Capabilities; CComPtr<IWDFIoQueue> m_pWpdQueue; CComPtr<IQueueCallbackDeviceIoControl> m_pQueueCallback; private: ULONG m_cRef; };
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