Sample Code
Windows Driver Samples/ Native Wi-Fi Miniport Sample Driver/ C++/ hvl/ hvl_context.h/
#pragma once typedef struct _HVL HVL, *PHVL; typedef struct _VNIC VNIC, *PVNIC; /* Context switches happen between HVL_CONTEXTS. Each such context contains at least one VNIC. */ typedef struct _HVL_CONTEXT { BOOLEAN fCtxInUse; // linkage for a list of contexts LIST_ENTRY Link; // number of VNICs present in this context ULONG ulNumVNics; // the list of VNICs present in this context LIST_ENTRY VNicList; VNIC_SIGNATURE CtxSig; }HVL_CONTEXT, *PHVL_CONTEXT; typedef VOID (* PVNIC_FUNCTION) (PVNIC pVNic, ULONG ulFlags); VOID HvlAssignVNicToContext( _In_ PHVL pHvl, _In_ PVNIC pVNic, _Out_ PHVL_CONTEXT *ppCtx ); VOID HvlinitContext( _In_ PHVL_CONTEXT pCtx, _In_ BOOLEAN fInUse ); VOID HvlRemoveVNicFromCtx( _In_ PHVL pHvl, _In_ PVNIC pVNic ); VOID HvlPerformCtxMerge( PHVL pHvl, BOOLEAN *pfMerged ); VOID HvlPerformCtxSplit( PHVL pHvl, PVNIC pVNic ); _IRQL_requires_(DISPATCH_LEVEL) VOID HvlNotifyAllVNicsInContext( PHVL pHvl, PHVL_CONTEXT pCtx, PVNIC_FUNCTION pVnicFn, ULONG ulFlags ); PHVL_CONTEXT HvlFindNextCtx(PHVL pHvl); VOID HvlUpdateActiveCtx(PHVL pHvl, PHVL_CONTEXT pCurrCtx, PHVL_CONTEXT pNextCtx);
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