The DISPLAY_DEVICE structure receives information about the display device specified by the iDevNum parameter of the EnumDisplayDevices function.
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Ansi)]
public class DISPLAY_DEVICE {
public int cb=0;
[MarshalAs(UnmanagedType.ByValTStr,SizeConst=32)]
public string DeviceName=new String(' ',32);
[MarshalAs( UnmanagedType.ByValTStr, SizeConst=128)]
public string DeviceString=new String(' ',128);
public int StateFlags=0;
[MarshalAs( UnmanagedType.ByValTStr, SizeConst=128)]
public string DeviceID=new String(' ',128);
[MarshalAs( UnmanagedType.ByValTStr, SizeConst=128)]
public string DeviceKey=new String(' ',128);
}
Structure DISPLAY
Public TODO
End Structure
None.
None.