Sample Code
Windows Driver Samples/ Microsoft slate system virtual audio device driver sample/ C++/ basetopo.h/
/*++ Copyright (c) Microsoft Corporation All Rights Reserved Module Name: basetopo.h Abstract: Declaration of topology miniport. --*/ #ifndef _SYSVAD_BASETOPO_H_ #define _SYSVAD_BASETOPO_H_ //============================================================================= // Classes //============================================================================= /////////////////////////////////////////////////////////////////////////////// // CMiniportTopologySYSVAD // class CMiniportTopologySYSVAD { protected: PADAPTERCOMMON m_AdapterCommon; // Adapter common object. PPCFILTER_DESCRIPTOR m_FilterDescriptor; // Filter descriptor. PPORTEVENTS m_PortEvents; // Event interface. USHORT m_DeviceMaxChannels; // Max device channels. public: CMiniportTopologySYSVAD( _In_ PCFILTER_DESCRIPTOR *FilterDesc, _In_ USHORT DeviceMaxChannels ); ~CMiniportTopologySYSVAD(); NTSTATUS GetDescription ( _Out_ PPCFILTER_DESCRIPTOR * Description ); NTSTATUS DataRangeIntersection ( _In_ ULONG PinId, _In_ PKSDATARANGE ClientDataRange, _In_ PKSDATARANGE MyDataRange, _In_ ULONG OutputBufferLength, _Out_writes_bytes_to_opt_(OutputBufferLength, *ResultantFormatLength) PVOID ResultantFormat OPTIONAL, _Out_ PULONG ResultantFormatLength ); NTSTATUS Init ( _In_ PUNKNOWN UnknownAdapter, _In_ PPORTTOPOLOGY Port_ ); // PropertyHandlers. NTSTATUS PropertyHandlerGeneric ( _In_ PPCPROPERTY_REQUEST PropertyRequest ); NTSTATUS PropertyHandlerMuxSource ( _In_ PPCPROPERTY_REQUEST PropertyRequest ); NTSTATUS PropertyHandlerDevSpecific ( _In_ PPCPROPERTY_REQUEST PropertyRequest ); VOID AddEventToEventList ( _In_ PKSEVENT_ENTRY EventEntry ); VOID GenerateEventList ( _In_opt_ GUID *Set, _In_ ULONG EventId, _In_ BOOL PinEvent, _In_ ULONG PinId, _In_ BOOL NodeEvent, _In_ ULONG NodeId ); }; #endif
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