C# WMI设备ID版本win API设备ID

C# WMI设备ID版本win API设备ID,c#,windows,winapi,wmi,C#,Windows,Winapi,Wmi,我想知道如何将设备ID从WMI(例如,从WIN32_PnPEntity where service='monitor')转换为win API设备ID(例如调用EnumDisplayDevices) WMI提供设备id,如“DISPLAY\DELA008\5&2F6B978F&0&UID16777488”,而EnumDisplayDevices提供设备id,如“MONITOR\DELA008{4d36e96e-e325-11ce-bfc1-08002be10318}\0001”。如何使用WMI中的

我想知道如何将设备ID从WMI(例如,从WIN32_PnPEntity where service='monitor')转换为win API设备ID(例如调用EnumDisplayDevices)

WMI提供设备id,如“DISPLAY\DELA008\5&2F6B978F&0&UID16777488”,而EnumDisplayDevices提供设备id,如“MONITOR\DELA008{4d36e96e-e325-11ce-bfc1-08002be10318}\0001”。如何使用WMI中的deviceID调用win API函数