Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

DISPLAY_DEVICE (Structures)
 
.
Summary

C# Definition:

using System.Runtime.InteropServices;

  [StructLayout(LayoutKind.Sequential, CharSet=CharSet.Ansi)]
  public struct DISPLAY_DEVICE
  {
      [MarshalAs(UnmanagedType.U4)]
      public int cb;

      [MarshalAs(UnmanagedType.ByValTStr, SizeConst=32)]
      public string DeviceName;

      [MarshalAs(UnmanagedType.ByValTStr, SizeConst=128)]
      public string DeviceString;

      [MarshalAs(UnmanagedType.U4)]
      public uint StateFlags;

      [MarshalAs(UnmanagedType.ByValTStr, SizeConst=128)]
      public string DeviceID;

      [MarshalAs(UnmanagedType.ByValTStr, SizeConst=128)]
      public string DeviceKey;
  }

VB Definition:

Imports System.Runtime.InteropServices

    Public Structure DISPLAY_DEVICE
    Dim cb As Integer
    <VBFixedString(32), MarshalAs(UnmanagedType.ByValTStr, SizeConst:=32)> Public DeviceName As String
    <VBFixedString(128), MarshalAs(UnmanagedType.ByValTStr, SizeConst:=128)> Public DeviceString As String
    Dim StateFlags As Integer
    <VBFixedString(128), MarshalAs(UnmanagedType.ByValTStr, SizeConst:=128)> Public DeviceID As String
    <VBFixedString(128), MarshalAs(UnmanagedType.ByValTStr, SizeConst:=128)> Public DeviceKey As String
    End Structure

None.

Notes:

None.

Documentation

Please edit this page!

Do you have...

  • helpful tips?
  • corrections to the existing content?
  • alternate definitions?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing any supporting types needed.

 
Access PInvoke.net directly from VS:
Terms of Use
Find References
Show Printable Version
Revisions