// WMIConsumer.mof : mof source for NdisManager
//
// This file will be processed by MOFCOMP utility to
// register the provider with the WMI repository
//
//  TODO: Consider combining this mof with the mof that defines the class that this 
//  provider provides

#pragma autorecover#pragma namespace ("\\\\.\\root\\cimv2")


class IntelUsbcNdisEventConsumer : __EventConsumer 
{ 
  [key] string Name; 

}; 


Instance of __Win32Provider as $INTCPROV 
{ 
  HostingModel = "LocalSystemHost";
  Name = "IntelUsbcNdisEventConsumer"; 
  ImpersonationLevel = 0;
  InitializationReentrancy = 0;
  Clsid = "{D82D8148-6870-404F-A92D-DDD1938A1A3E}"; 
  PerLocaleInitialization = FALSE;
  PerUserInitialization = TRUE;
  Pure = TRUE; 


}; 


Instance of __EventConsumerProviderRegistration 
{ 
  Provider = $INTCPROV; 
  ConsumerClassNames = {"IntelUsbcNdisEventConsumer"}; 


}; 


instance of IntelUsbcNdisEventConsumer as $INTCCONS 
{ 
    //CreatorSID = {1,1,0,0,0,0,0,5,18,0,0,0};
    Name = "Intel Usbc Ndis Events Consumer"; 
}; 


instance of __EventFilter as $INTCFILT 
{ 
	//CreatorSID = {1,1,0,0,0,0,0,5,18,0,0,0};
    Name = "Intel Usbc Ndis Adapter Events Filter";
    QueryLanguage = "WQL"; 
    //Query = "select * from __InstanceCreationEvent WITHIN 3 where TargetInstance ISA 'Win32_Process' and TargetInstance.Name = 'calc.exe'"; 
    Query = "select * from __InstanceModificationEvent WITHIN 7 where TargetInstance ISA 'Win32_NetworkAdapter' and TargetInstance.ProductName = 'Intel(R) 82xxx USB Client Ethernet Device' and TargetInstance.NetConnectionStatus = 2"; 
    //Query = "select * from __InstanceModificationEvent WITHIN 7 where TargetInstance ISA 'Win32_NetworkAdapter' "; 
    //Query = "select * from __InstanceCreationEvent WITHIN 5 where TargetInstance ISA 'Win32_PnPEntity' and TargetInstance.Service = 'USB_RNDIS' "; 
    //Query = "select * from Win32_DeviceChangeEvent"; 
}; 


instance of __FilterToConsumerBinding 
{ 
    //CreatorSID = {1,1,0,0,0,0,0,5,18,0,0,0};
    Consumer = $INTCCONS; 
    DeliverSynchronously = FALSE; 
    Filter = $INTCFILT; 


}; 
