Пример #1
0
 public static DisplayConfigDeviceInfoHeader Initialize(LUID adapterId, DisplayConfig.DeviceInfoType requestType, uint size)
 {
     return(new DisplayConfigDeviceInfoHeader()
     {
         AdapterId = adapterId,
         Type = requestType,
         Size = size
     });
 }
Пример #2
0
 public DisplayConfigAdapterName(LUID adapter, DisplayConfig.DeviceInfoType deviceInfoType) : this()
 {
     _header = DisplayConfigDeviceInfoHeader.Initialize(adapter, deviceInfoType, (uint)Marshal.SizeOf <DisplayConfigAdapterName>());
 }