Is there a way to intercept the result of a WMI query?

121 views Asked by At

I have this code that make a call to WMI using a query to fecth the display information:

var success = true;

List<Display> displays = new List<Display>();

// Query WmiMonitorBasicDisplayParams to retrieve display parameters
using (var searcher = new ManagementObjectSearcher(@"Root\WMI", "SELECT * FROM 
WmiMonitorBasicDisplayParams"))

using (var results = searcher.Get())

Withouth changing the original code, is there a way to externally intercept the result of this WMI query, change it, and then return it to the code?

0

There are 0 answers