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

Search Results for "DISPLAY" in [All]

netapi32

.
Summary
The NetQueryDisplayInformation function returns user account, computer, or group account information. Call this function to quickly enumerate account information for display in user interfaces.
.

       extern static uint NetQueryDisplayInformation([MarshalAs(UnmanagedType.LPWStr)]

.

    Declare Function NetQueryDisplayInformation Lib "Netapi32.dll"

.

    Declare Function NetQueryDisplayInformation Lib "Netapi32.dll" _

.

lret = NetQueryDisplayInformation(strDomain, 3, lindex, 100, MAX_PREFERRED_LENGTH, out lread , out x);

.

        NET_DISPLAY_USER usr = new NET_DISPLAY_USER();

.

        int StructSize = Marshal.SizeOf(typeof(NET_DISPLAY_USER));

.

        lret = NetQueryDisplayInformation(DomainController, 1, lindex, reqRecs, MAX_PREFERRED_LENGTH, out lread, out UsrBuf);

.

                usr = (NET_DISPLAY_USER)Marshal.PtrToStructure(item, typeof(NET_DISPLAY_USER));

.

    public struct NET_DISPLAY_USER

.

    public    struct NET_DISPLAY_GROUP

.

    public struct NET_DISPLAY_MACHINE

.

    [DllImport("Netapi32.dll")]    static extern int NetQueryDisplayInformation([MarshalAs(UnmanagedType.LPWStr)] string serverName,

.

    NET_DISPLAY_GROUP grp = new NET_DISPLAY_GROUP ();

.

    NET_DISPLAY_USER usr = new NET_DISPLAY_USER();

.

        lret = NetQueryDisplayInformation(strDomain, 3, lindex, 1, 1024, out lread , out x);

.

                grp = (NET_DISPLAY_GROUP)Marshal.PtrToStructure (x, typeof(NET_DISPLAY_GROUP));

.

        lret = NetQueryDisplayInformation(strDomain, 1, lindex, 1, 1024, out lread , out x);

.

                usr = (NET_DISPLAY_USER)Marshal.PtrToStructure(x, typeof(NET_DISPLAY_USER));

.

    NET_DISPLAY_MACHINE mac = new NET_DISPLAY_MACHINE ();

.

        lret = NetQueryDisplayInformation(strDomain, 2, lindex, 1, 1024, out lread , out x);

.

                mac = (NET_DISPLAY_MACHINE) Marshal.PtrToStructure(x,typeof(NET_DISPLAY_MACHINE));

.
Documentation
[NetQueryDisplayInformation] on MSDN

kernel32

.
Summary
Displays a driver-supplied configuration dialog box.
.

    // http://pinvoke.net/default.aspx/kernel32/GetConsoleDisplayMode.html

.

    static extern bool GetConsoleDisplayMode(

.

    // http://pinvoke.net/default.aspx/kernel32/SetConsoleDisplayMode.html

.

    static extern bool SetConsoleDisplayMode(

.

     VideoQueryDisplayBrightness = (EFileDevice.Video << 16) | (0x0126 << 2) | EMethod.Buffered | (0 << 14),

.

     VideoSetDisplayBrightness = (EFileDevice.Video << 16) | (0x0127 << 2) | EMethod.Buffered | (0 << 14)

.

        DoGetLocaleInfo("", LCTYPE.LOCALE_SENGLISHDISPLAYNAME);

.

        DoGetLocaleInfo(null, LCTYPE.LOCALE_SENGLISHDISPLAYNAME);

.

        DoGetLocaleInfo("en-US", LCTYPE.LOCALE_SENGLISHDISPLAYNAME);

.

        DoGetLocaleInfo("tlh-piqad", LCTYPE.LOCALE_SENGLISHDISPLAYNAME);

.

        DoGetLocaleInfo("fj-FJ", LCTYPE.LOCALE_SENGLISHDISPLAYNAME);

.

        DoGetLocaleInfo("fj", LCTYPE.LOCALE_SENGLISHDISPLAYNAME);

.

        DoGetLocaleInfo("haw-US", LCTYPE.LOCALE_SENGLISHDISPLAYNAME);

.

        DoGetLocaleInfo("hasdfasdf", LCTYPE.LOCALE_SENGLISHDISPLAYNAME);

.

    LOCALE_SLOCALIZEDDISPLAYNAME  =0x00000002,   // localized name of locale, eg "German (Germany)" in UI language

.

    LOCALE_SENGLISHDISPLAYNAME    =0x00000072,   // Display name (language + country usually) in English, eg "German (Germany)"

.

    LOCALE_SNATIVEDISPLAYNAME     =0x00000073,   // Display name in native locale language, eg "Deutsch (Deutschland)

.

    LOCALE_SLOCALIZEDLANGUAGENAME =0x0000006f,   // Language Display Name for a language, eg "German" in UI language

.

    DoGetLocaleInfo("", LCTYPE.LOCALE_SENGLISHDISPLAYNAME);

.

    DoGetLocaleInfo(null, LCTYPE.LOCALE_SENGLISHDISPLAYNAME);

.

    DoGetLocaleInfo("en-US", LCTYPE.LOCALE_SENGLISHDISPLAYNAME);

.

    DoGetLocaleInfo("tlh-piqad", LCTYPE.LOCALE_SENGLISHDISPLAYNAME);

.

    DoGetLocaleInfo("fj-FJ", LCTYPE.LOCALE_SENGLISHDISPLAYNAME);

.

    DoGetLocaleInfo("fj", LCTYPE.LOCALE_SENGLISHDISPLAYNAME);

.

    DoGetLocaleInfo("haw-US", LCTYPE.LOCALE_SENGLISHDISPLAYNAME);

.

    DoGetLocaleInfo("hasdfasdf", LCTYPE.LOCALE_SENGLISHDISPLAYNAME);

.

    LOCALE_SLOCALIZEDDISPLAYNAME  =0x00000002,   // localized name of locale, eg "German (Germany)" in UI language

.

    LOCALE_SENGLISHDISPLAYNAME    =0x00000072,   // Display name (language + country usually) in English, eg "German (Germany)"

.

    LOCALE_SNATIVEDISPLAYNAME     =0x00000073,   // Display name in native locale language, eg "Deutsch (Deutschland)

.

    LOCALE_SLOCALIZEDLANGUAGENAME =0x0000006f,   // Language Display Name for a language, eg "German" in UI language

.

    /* Retrieves the display mode of the current console. */

.

    internal static extern BOOL GetConsoleDisplayMode(

.

Declare Function GetConsoleDisplayMode Lib "kernel32.dll" (TODO) As TODO

.
Documentation
[GetConsoleDisplayMode] on MSDN
.

    LOCALE_SLOCALIZEDDISPLAYNAME  =0x00000002,   // localized name of locale, eg "German (Germany)" in UI language

.

    LOCALE_SENGLISHDISPLAYNAME    =0x00000072,   // Display name (language + country usually) in English, eg "German (Germany)"

.

    LOCALE_SNATIVEDISPLAYNAME     =0x00000073,   // Display name in native locale language, eg "Deutsch (Deutschland)

.

    LOCALE_SLOCALIZEDLANGUAGENAME =0x0000006f,   // Language Display Name for a language, eg "German" in UI language

.

    result = LocaleFunctions.GetLocaleInfoEx("en-US", LCTYPE.LOCALE_SENGLISHDISPLAYNAME, data, 500);

.

    LOCALE_SLOCALIZEDDISPLAYNAME  =0x00000002,   // localized name of locale, eg "German (Germany)" in UI language

.

    LOCALE_SENGLISHDISPLAYNAME    =0x00000072,   // Display name (language + country usually) in English, eg "German (Germany)"

.

    LOCALE_SNATIVEDISPLAYNAME     =0x00000073,   // Display name in native locale language, eg "Deutsch (Deutschland)

.

    LOCALE_SLOCALIZEDLANGUAGENAME =0x0000006f,   // Language Display Name for a language, eg "German" in UI language

.

    result = LocaleFunctions.GetLocaleInfoEx("en-US", LCTYPE.LOCALE_SENGLISHDISPLAYNAME, data, 500);

.

The short name can be used without problem to open files so the only time you would need to use GetLongPathName is if you want to display the path or want to display the file name.

.

static void DisplayUserPref()

.

static void DisplayUserPref()

.

private void DisplayMemory()

.

private void DisplayMemory()

.

Sends a string to the debugger for display.

.

Get DebugView here (http://www.sysinternals.com/Utilities/DebugView.html) to display the output of OutputDebugString.

.

    static extern bool SetConsoleDisplayMode(

.

Declare Function SetConsoleDisplayMode Lib "kernel32.dll" (TODO) As TODO

.
Documentation
[SetConsoleDisplayMode] on MSDN
.

        // It's best to use SetColor for the purpose of choosing the 16 colors you want the console to be able to display, then use

.

You can create this FileAttributes type to go in your class and be used with the alternative signature if you wish (or you can use the System.IO.FileAttributes as displayed in the below example):

.

Note that on XP although in the background the time changes, the time displayed often does not change. I am yet to discover why and how to fix this

.
Summary
SetThreadExecutionState is used to stop the machine timing out and entering standby/switching the display device off.
.

     ES_DISPLAY_REQUIRED = 0x00000002,

.

Also note that this setting is per thread/application not global, so if you go to ES_CONTINUOUS and another app/thread is still setting ES_DISPLAY the   display will be kept on.

.

        SetThreadExecutionState(EXECUTION_STATE.ES_DISPLAY_REQUIRED | EXECUTION_STATE.ES_CONTINUOUS);

.

You can download Mdbg at http://www.microsoft.com/downloads/details.aspx?familyid=38449a42-6b7a-4e28-80ce-c55645ab1310&displaylang=en and get the wrappers there.

Constants

.
DRIVER_PACKAGE_SILENT suppresses the display of user interface items. If a user interaction is required to complete an installation, the installation will fail.
.

    public static readonly Guid GUID_DEVCLASS_DISPLAY = new Guid("{0x4d36e968, 0xe325, 0x11ce, {0xbf, 0xc1, 0x08, 0x00, 0x2b, 0xe1, 0x03, 0x18}}");

.

    public static Guid GUID_DEVINTERFACE_DISPLAY_ADAPTER = new Guid("5B45201D-F2F2-4F3B-85BB-30FF1F953599");

.

    public static Guid GUID_DISPLAY_DEVICE_ARRIVAL = new Guid("1CA05180-A699-450A-9A0C-DE4FBE3DDD89");

25: LR_
.

    /// This flag is useful for loading a bitmap without mapping it to the colors of the display device.

.

    ''' This flag is useful for loading a bitmap without mapping it to the colors of the display device.

26: MAPI
.

  /// A logon dialog box should be displayed to prompt the user for logon information.

.

  /// A dialog box should be displayed to prompt the user for recipients and other sending options.

.

  /// was displayed.

.

  /// was displayed.

.

    public static PropertyKey PKEY_DeviceClass_NoDisplayClass = new PropertyKey(0x259abffc, 0x50a7, 0x47ce, 0xaf, 0x8, 0x68, 0xc9, 0xa7, 0xd7, 0x33, 0x66, 8);  // DEVPROP_TYPE_BOOLEAN

.

    public static PropertyKey PKEY_ItemFolderNameDisplay = new PropertyKey( 0xB725F130, 0x47EF, 0x101A, 0xA5, 0xF1, 0x02, 0x60, 0x8C, 0x9E, 0xEB, 0xAC, 2);

.

    public static PropertyKey PKEY_ItemFolderPathDisplay = new PropertyKey( 0xE3E0584C, 0xB788, 0x4A5A, 0xBB, 0x20, 0x7F, 0x5A, 0x44, 0xC9, 0xAC, 0xDD, 6);

.

    public static PropertyKey PKEY_ItemFolderPathDisplayNarrow = new PropertyKey( 0xDABD30ED, 0x0043, 0x4789, 0xA7, 0xF8, 0xD0, 0x13, 0xA4, 0x73, 0x66, 0x22, 100);

.

    public static PropertyKey PKEY_ItemNameDisplay = new PropertyKey( 0xB725F130, 0x47EF, 0x101A, 0xA5, 0xF1, 0x02, 0x60, 0x8C, 0x9E, 0xEB, 0xAC, 10);

.

    public static PropertyKey PKEY_ItemPathDisplay = new PropertyKey( 0xE3E0584C, 0xB788, 0x4A5A, 0xBB, 0x20, 0x7F, 0x5A, 0x44, 0xC9, 0xAC, 0xDD, 7);

.

    public static PropertyKey PKEY_ItemPathDisplayNarrow = new PropertyKey( 0x28636AA6, 0x953D, 0x11D2, 0xB5, 0xD6, 0x00, 0xC0, 0x4F, 0xD9, 0x18, 0xD0, 8);

.

    public static PropertyKey PKEY_DeviceDisplay_Address = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000033);  // VT_LPWSTR or VT_LPWSTR | VT_VECTOR

.

    public static PropertyKey PKEY_DeviceDisplay_DiscoveryMethod = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000034);  // VT_LPWSTR | VT_VECTOR

.

    public static PropertyKey PKEY_DeviceDisplay_IsEncrypted = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000035);  // VT_BOOL

.

    public static PropertyKey PKEY_DeviceDisplay_IsAuthenticated = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000036);  // VT_BOOL

.

    public static PropertyKey PKEY_DeviceDisplay_IsConnected = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000037);  // VT_BOOL

.

    public static PropertyKey PKEY_DeviceDisplay_IsPaired = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000038);  // VT_BOOL

.

    public static PropertyKey PKEY_DeviceDisplay_Icon = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000039);  // VT_LPWSTR

.

    public static PropertyKey PKEY_DeviceDisplay_Version = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000041);  // VT_LPWSTR

.

    public static PropertyKey PKEY_DeviceDisplay_Last_Seen = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000042);  // VT_FIELTIME

.

    public static PropertyKey PKEY_DeviceDisplay_Last_Connected = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000043);  // VT_FILETIME

.

    public static PropertyKey PKEY_DeviceDisplay_IsShowInDisconnectedState = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000044);  // VT_BOOL

.

    public static PropertyKey PKEY_DeviceDisplay_IsLocalMachine = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000046);  // VT_BOOL

.

    public static PropertyKey PKEY_DeviceDisplay_MetadataPath = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000047);  // VT_LPWSTR

.

    public static PropertyKey PKEY_DeviceDisplay_IsMetadataSearchInProgress = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000048);  // VT_BOOL

.

    public static PropertyKey PKEY_DeviceDisplay_MetadataChecksum = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000049);  // VT_UI1 | VT_VECTOR

.

    public static PropertyKey PKEY_DeviceDisplay_IsNotInterestingForDisplay = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x0000004A);  // VT_BOOL

.

    public static PropertyKey PKEY_DeviceDisplay_LaunchDeviceStageOnDeviceConnect = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x0000004C);  // VT_BOOL

.

    public static PropertyKey PKEY_DeviceDisplay_LaunchDeviceStageFromExplorer = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x0000004D);  // VT_BOOL

.

    public static PropertyKey PKEY_DeviceDisplay_BaselineExperienceId = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x0000004E);  // VT_CLSID

.

    public static PropertyKey PKEY_DeviceDisplay_IsDeviceUniquelyIdentifiable = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x0000004F);  // VT_BOOL

.

    public static PropertyKey PKEY_DeviceDisplay_AssociationArray = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000050);  // VT_LPWSTR  | VT_VECTOR

.

    public static PropertyKey PKEY_DeviceDisplay_DeviceDescription1 = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000051);  // VT_LPWSTR

.

    public static PropertyKey PKEY_DeviceDisplay_DeviceDescription2 = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000052);  // VT_LPWSTR

.

    public static PropertyKey PKEY_DeviceDisplay_IsNotWorkingProperly = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000053);  // VT_BOOL

.

    public static PropertyKey PKEY_DeviceDisplay_IsSharedDevice = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000054);  // VT_BOOL

.

    public static PropertyKey PKEY_DeviceDisplay_IsNetworkDevice = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000055);  // VT_BOOL

.

    public static PropertyKey PKEY_DeviceDisplay_IsDefaultDevice = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000056);  // VT_BOOL

.

    public static PropertyKey PKEY_DeviceDisplay_MetadataCabinet = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000057);  // VT_LPWSTR

.

    public static PropertyKey PKEY_DeviceDisplay_RequiresPairingElevation = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000058);  // VT_BOOL

.

    public static PropertyKey PKEY_DeviceDisplay_ExperienceId = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000059);  // VT_CLSID

.

    public static PropertyKey PKEY_DeviceDisplay_Category = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x0000005A);  // VT_LPWSTR | VT_VECTOR

.

    public static PropertyKey PKEY_DeviceDisplay_Category_Desc_Singular = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x0000005B);  // VT_LPWSTR | VT_VECTOR

.

    public static PropertyKey PKEY_DeviceDisplay_Category_Desc_Plural = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x0000005C);  // VT_LPWSTR | VT_VECTOR

.

    public static PropertyKey PKEY_DeviceDisplay_Category_Icon = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x0000005D);  // VT_LPWSTR

.

    public static PropertyKey PKEY_DeviceDisplay_CategoryGroup_Desc = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x0000005E);  // VT_LPWSTR | VT_VECTOR

.

    public static PropertyKey PKEY_DeviceDisplay_CategoryGroup_Icon = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x0000005F);  // VT_LPWSTR

.

    public static PropertyKey PKEY_DeviceDisplay_PrimaryCategory = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000061);  // VT_LPWSTR

.

    public static PropertyKey PKEY_DeviceDisplay_UnpairUninstall = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000062);  // VT_BOOL

.

    public static PropertyKey PKEY_DeviceDisplay_RequiresUninstallElevation = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000063);  // VT_BOOL

.

    public static PropertyKey PKEY_DeviceDisplay_DeviceFunctionSubRank = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000064);  // VT_UI4

.

    public static PropertyKey PKEY_DeviceDisplay_AlwaysShowDeviceAsConnected = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000065);  // VT_BOOL

.

    public static PropertyKey PKEY_DeviceDisplay_FriendlyName = new PropertyKey(0x656A3BB3, 0xECC0, 0x43FD, 0x84, 0x77, 0x4A, 0xE0, 0x40, 0x4A, 0x96, 0xCD, 0x00003000);  // VT_LPWSTR

.

    public static PropertyKey PKEY_DeviceDisplay_Manufacturer = new PropertyKey(0x656A3BB3, 0xECC0, 0x43FD, 0x84, 0x77, 0x4A, 0xE0, 0x40, 0x4A, 0x96, 0xCD, 0x00002000);  // VT_LPWSTR

.

    public static PropertyKey PKEY_DeviceDisplay_ModelName = new PropertyKey(0x656A3BB3, 0xECC0, 0x43FD, 0x84, 0x77, 0x4A, 0xE0, 0x40, 0x4A, 0x96, 0xCD, 0x00002002);  // VT_LPWSTR (localizable)

.

    public static PropertyKey PKEY_DeviceDisplay_ModelNumber = new PropertyKey(0x656A3BB3, 0xECC0, 0x43FD, 0x84, 0x77, 0x4A, 0xE0, 0x40, 0x4A, 0x96, 0xCD, 0x00002003);  // VT_LPWSTR

.

    public static PropertyKey PKEY_DeviceDisplay_InstallInProgress = new PropertyKey(0x83da6326, 0x97a6, 0x4088, 0x94, 0x53, 0xa1, 0x92, 0x3f, 0x57, 0x3b, 0x29, 9);     // DEVPROP_TYPE_BOOLEAN

.

    public static PropertyKey PKEY_WNET_DisplayType = new PropertyKey(0xdebda43a, 0x37b3, 0x4383, 0x91, 0xE7, 0x44, 0x98, 0xda, 0x29, 0x95, 0xab, 0x00000003); // VT_UINT

.

    public static PropertyKey PKEY_Hardware_DisplayAttribute = new PropertyKey(0x5EAF3EF2, 0xE0CA, 0x4598, 0xBF, 0x06, 0x71, 0xED, 0x1D, 0x9D, 0xD9, 0x53, 5);

.

    public static PropertyKey WPD_OBJECT_HINT_LOCATION_DISPLAY_NAME = new PropertyKey(0xEF6B490D, 0x5CD8, 0x437A, 0xAF, 0xFC, 0xDA, 0x8B, 0x60, 0xEE, 0x4A, 0x3C, 25);

.

    public static PropertyKey WPD_CONTACT_DISPLAY_NAME = new PropertyKey(0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B, 2);

.

    public static PropertyKey PKEY_DisplayName        = new PropertyKey("{B725F130-47EF-101A-A5F1-02608C9EEBAC}",10);

.

const UInt32 RESOURCEDISPLAYTYPE_GENERIC = 0x00000000;

.

const UInt32 RESOURCEDISPLAYTYPE_DOMAIN = 0x00000001;

.

const UInt32 RESOURCEDISPLAYTYPE_SERVER = 0x00000002;

.

const UInt32 RESOURCEDISPLAYTYPE_SHARE = 0x00000003;

.

const UInt32 RESOURCEDISPLAYTYPE_FILE = 0x00000004;

.

const UInt32 RESOURCEDISPLAYTYPE_GROUP = 0x00000005;

.

const UInt32 RESOURCEDISPLAYTYPE_TREE = 0x0000000A;

.

    public const int SHGFI_DISPLAYNAME       = 0x000000200;     // get display name

.

    public const int SHGFI_DISPLAYNAME       = 0x000000200;     // get display name

.

        /// The name is already in use as either a service name or a service display name.

.

        /// The remote control of the console was terminated because the display mode was changed. Changing the display mode in a remote control session is not supported.

.

        /// Schema update failed: duplicate LDAP display name.

.

        public const int ERROR_DS_DUP_LDAP_DISPLAY_NAME = 8382;

.

        /// The LDAP display name of the class or attribute contains non-ASCII characters.

.

        public const int ERROR_DS_INVALID_LDAP_DISPLAY_NAME = 8479;

.

        /// Message is too long; some of it had to be truncated before displaying

.

        /// Message is too long; some of it had to be truncated before displaying

32: WM
.
WM_ASKCBFORMATNAME 0x30C The WM_ASKCBFORMATNAME message is sent to the clipboard owner by a clipboard viewer window to request the name of a CF_OWNERDISPLAY clipboard format.
.
WM_CANCELMODE 0x1F The WM_CANCELMODE message is sent to cancel certain modes, such as mouse capture. For example, the system sends this message to the active window when a dialog box or message box is displayed. Certain functions also send this message explicitly to the specified window regardless of whether it is the active window. For example, the EnableWindow function sends this message when disabling the specified window.
.
WM_CTLCOLORDLG 0x136 The WM_CTLCOLORDLG message is sent to a dialog box before the system draws the dialog box. By responding to this message, the dialog box can set its text and background colors using the specified display device context handle.
.
WM_CTLCOLORLISTBOX 0x134 Sent to the parent window of a list box before the system draws the list box. By responding to this message, the parent window can set the text and background colors of the list box by using the specified display device context handle.
.
WM_CTLCOLORMSGBOX 0x132 The WM_CTLCOLORMSGBOX message is sent to the owner window of a message box before Windows draws the message box. By responding to this message, the owner window can set the text and background colors of the message box by using the given display device context handle.
.
WM_CTLCOLORSCROLLBAR 0x137 The WM_CTLCOLORSCROLLBAR message is sent to the parent window of a scroll bar control when the control is about to be drawn. By responding to this message, the parent window can use the display context handle to set the background color of the scroll bar control.
.
WM_DISPLAYCHANGE 0x7E The WM_DISPLAYCHANGE message is sent to all windows when the display resolution has changed.
.
WM_DRAWCLIPBOARD 0x308 The WM_DRAWCLIPBOARD message is sent to the first window in the clipboard viewer chain when the content of the clipboard changes. This enables a clipboard viewer window to display the new content of the clipboard.
.
WM_GETICON 0x7F The WM_GETICON message is sent to a window to retrieve a handle to the large or small icon associated with a window. The system displays the large icon in the ALT+TAB dialog, and the small icon in the window caption.
.
WM_HSCROLLCLIPBOARD 0x30E The WM_HSCROLLCLIPBOARD message is sent to the clipboard owner by a clipboard viewer window. This occurs when the clipboard contains data in the CF_OWNERDISPLAY format and an event occurs in the clipboard viewer's horizontal scroll bar. The owner should scroll the clipboard image and update the scroll bar values.
.
WM_INITDIALOG 0x110 The WM_INITDIALOG message is sent to the dialog box procedure immediately before a dialog box is displayed. Dialog box procedures typically use this message to initialize controls and carry out any other initialization tasks that affect the appearance of the dialog box.
.
WM_INITMENU 0x116 The WM_INITMENU message is sent when a menu is about to become active. It occurs when the user clicks an item on the menu bar or presses a menu key. This allows the application to modify the menu before it is displayed.
.
WM_INITMENUPOPUP 0x117 The WM_INITMENUPOPUP message is sent when a drop-down menu or submenu is about to become active. This allows an application to modify the menu before it is displayed, without changing the entire menu.
.
WM_PAINTCLIPBOARD 0x309 The WM_PAINTCLIPBOARD message is sent to the clipboard owner by a clipboard viewer window when the clipboard contains data in the CF_OWNERDISPLAY format and the clipboard viewer's client area needs repainting.
.
WM_QUERYDRAGICON 0x37 The WM_QUERYDRAGICON message is sent to a minimized (iconic) window. The window is about to be dragged by the user but does not have an icon defined for its class. An application can return a handle to an icon or cursor. The system displays this cursor or icon while the user drags the icon.
.
WM_SETICON 0x80 An application sends the WM_SETICON message to associate a new large or small icon with a window. The system displays the large icon in the ALT+TAB dialog box, and the small icon in the window caption.
.
WM_SIZECLIPBOARD 0x30B The WM_SIZECLIPBOARD message is sent to the clipboard owner by a clipboard viewer window when the clipboard contains data in the CF_OWNERDISPLAY format and the clipboard viewer's client area has changed size.
.
WM_VSCROLLCLIPBOARD 0x30A The WM_VSCROLLCLIPBOARD message is sent to the clipboard owner by a clipboard viewer window when the clipboard contains data in the CF_OWNERDISPLAY format and an event occurs in the clipboard viewer's vertical scroll bar. The owner should scroll the clipboard image and update the scroll bar values.
.

private const UInt32 WM_DISPLAYCHANGE      = 0x007E;

.

   WM_DISPLAYCHANGE = &H7E

.

WM_DISPLAYCHANGE      equ 07Eh

imm32

.
Summary
This function displays the configuration dialog box for the IME.

secur32

.

     /// A "friendly" display name (for example, Jeff Smith).

.

     /// The display name is not necessarily the defining relative distinguished name (RDN).

.

     NameDisplay = 3,

.

     NameDisplay = 3,

.

    NameDisplay = 3

.

      //do something with the extracted data, ie, add to a display control....

.

          NameDisplay = 3,

wininet

.

An application that needs to display multiline text information sent by an FTP server can use InternetGetLastResponseInfo to retrieve the text.

hid

.

        DisplayException( MODULE_NAME, ex );

comctl32

.
Summary
Displays the drag image at the specified position within the window.
.

/// Displays the drag image at the specified position within the window.

.

/// <param name="x">X-coordinate at which to display the drag image.

.

/// <param name="y">Y-coordinate at which to display the drag image.

.

''' Displays the drag image at the specified position within the window.

.

''' <param name="x">X-coordinate at which to display the drag image.

.

''' <param name="y">Y-coordinate at which to display the drag image.

.

/// <param name="x">X-coordinate at which to display the drag image.

.

/// <param name="y">Y-coordinate at which to display the drag image.

.

''' <param name="x">X-coordinate at which to display the drag image.

.

''' <param name="y">Y-coordinate at which to display the drag image.

.

    /// <summary>The TaskDialogIndirect function creates, displays, and operates a task dialog. The task dialog contains application-defined icons, messages, title, verification check box, command links, push buttons, and radio buttons. This function can register a callback function to receive notification messages.</summary>

.

    /// <param name="taskConfig">A pointer to a <see cref="TaskDialogConfig"/> structure that contains information used to display the task dialog.</param>

.

    /// <summary>The TaskDialogIndirect function creates, displays, and operates a task dialog. The task dialog contains application-defined icons, messages, title, verification check box, command links, push buttons, and radio buttons. This function can register a callback function to receive notification messages.</summary>

.

    /// <param name="taskConfig">A pointer to a <see cref="TaskDialogConfig"/> structure that contains information used to display the task dialog.</param>

mqrt

.

                //Something else went wrong. Display error, and then exit.

.

                //Something else went wrong. Display error, and then exit.

rasapi32

.
Summary
The RasDialDlg function establishes a RAS connection using a specified phone-book entry and the credentials of the logged-on user. The function displays a stream of dialog boxes that indicate the state of the connection operation.
.
Summary
The RasDialDlg function establishes a RAS connection using a specified phone-book entry and the credentials of the logged-on user. The function displays a stream of dialog boxes that indicate the state of the connection operation.

ntdsapi

.

      // display name is not necessarily the defining RDN.

.

      DS_DISPLAY_NAME = 3,

difxapi

.

installerInfo.pDisplayName = "My Package";

.

installerInfo.pDisplayName = "My Package"

.

installerInfo.pDisplayName = "My Package";

.

installerInfo.pDisplayName = "My Package"

user32

.
Summary
.

    public enum ChangeDisplaySettingsFlags : uint

.

    Public Enum ChangeDisplaySettingsFlags As UInteger

.
Summary
.

static extern DISP_CHANGE ChangeDisplaySettingsEx(string lpszDeviceName, ref DEVMODE lpDevMode, IntPtr hwnd, ChangeDisplaySettingsFlags dwflags, IntPtr lParam);

.

Private Shared Function ChangeDisplaySettingsEx(ByVal lpszDeviceName As String, ByRef lpDevMode As DEVMODE, ByVal hwnd As IntPtr, ByVal dwflags As UInteger, ByVal lParam As IntPtr) As DISP_CHANGE

.

ChangeDisplaySettingsFlags

.

See also ChangeDisplaySettings

.

DISPLAY_DEVICE d = new DISPLAY_DEVICE();

.

int deviceID=1; // This is only for my device setting. Go through the whole EnumDisplayDevices to find your device  

.

EnumDisplayDevices(null,deviceID, ref  d, 0); //

.

EnumDisplaySettings(d.DeviceName, 0, ref dm);

.

ChangeDisplaySettingsEx(d.DeviceName, ref dm, IntPtr.Zero, CDS_UPDATEREGISTRY, IntPtr.Zero);

.
Documentation
[ChangeDisplaySettingsEx] on MSDN
.
Summary
.

    public enum ChangeDisplaySettingsFlags : uint

.

Public Enum ChangeDisplaySettingsFlags As UInteger

.

/// <param name="lpWindowName">Pointer to a null-terminated string that specifies the window name. If the window style specifies a title bar, the window title pointed to by lpWindowName is displayed in the title bar. When using CreateWindow to create controls, such as buttons, check boxes, and static controls, use lpWindowName to specify the text of the control. When creating a static control with the SS_ICON style, use lpWindowName to specify the icon name or identifier. To specify an identifier, use the syntax "#num". </param>

.

''' <param name="lpWindowName">Pointer to a null-terminated string that specifies the window name. If the window style specifies a title bar, the window title pointed to by lpWindowName is displayed in the title bar. When using CreateWindow to create controls, such as buttons, check boxes, and static controls, use lpWindowName to specify the text of the control. When creating a static control with the SS_ICON style, use lpWindowName to specify the icon name or identifier. To specify an identifier, use the syntax "#num". </param>

.

    ///<Summary>Displays the window.</Summary>

.

    '''<Summary>Displays the window.</Summary>

.

//Displays the id and name of the all the different data formats currently in the clipboard.

.
Summary
.

static extern bool EnumDisplayDevices(string lpDevice, uint iDevNum, ref DISPLAY_DEVICE lpDisplayDevice, uint dwFlags);

.

<DllImport("user32.dll", EntryPoint:="EnumDisplayDevices", CharSet:=CharSet.Auto, CallingConvention:=CallingConvention.StdCall)> _

.

Public Shared Function EnumDisplayDevices(ByVal lpDevice As String, ByVal iDevNum As UInteger, ByRef lpDisplayDevice As DISPLAY_DEVICE, ByVal dwFlags As UInteger) As Integer

.

DISPLAY_DEVICE

.

    DISPLAY_DEVICE d=new DISPLAY_DEVICE();

.

        for (uint id=0; EnumDisplayDevices(null, id, ref d, 0); id++) {

.

    Dim dispDev1 As New DISPLAY_DEVICE

.

    While (EnumDisplayDevices(vbNullString, i, dispDev1, &H0))

.

        EnumDisplayDevices(vbNullString, i, dispDev1, &H0)

.

        EnumDisplayDevices(dispDev1.DeviceName, 0, dispDev1, &H1)

.
Documentation
[EnumDisplayDevices] on MSDN
.
Summary
.

static extern bool EnumDisplayMonitors(IntPtr hdc, IntPtr lprcClip,

.

Private Shared Function EnumDisplayMonitors(ByVal hdc As IntPtr, ByVal lprcClip As IntPtr, ByVal lpfnEnum As EnumMonitorsDelegate, ByVal dwData As IntPtr) As Boolean

.

    /// The struct that contains the display information

.

    public class DisplayInfo

.

    /// Collection of display information

.

    public class DisplayInfoCollection : List<DisplayInfo>

.

    /// Returns the number of Displays using the Win32 functions

.

    /// <returns>collection of Display Info</returns>

.

    public DisplayInfoCollection GetDisplays()

.

    DisplayInfoCollection col = new DisplayInfoCollection();

.

    EnumDisplayMonitors( IntPtr.Zero, IntPtr.Zero,

.

            DisplayInfo di = new DisplayInfo();

.

Use System.Windows.Forms.Screen.AllScreens to get an array of all displays on the system.

.
Documentation
[EnumDisplayMonitors] on MSDN
.
Summary
.

static extern bool EnumDisplaySettingsEx(string lpszDeviceName, int iModeNum, ref DEVMODE lpDevMode, uint dwFlags);

.

Private Shared Function EnumDisplaySettingsEx(ByVal lpszDeviceName As String, ByVal iModeNum As UInteger, ByRef lpDevMode As DEVMODE, ByVal dwFlags As UInteger) As Boolean

.

See also: EnumDisplaySettings

.
Documentation
[EnumDisplaySettingsEx] on MSDN
.
Summary
.

static extern bool EnumDisplaySettingsEx(string lpszDeviceName, uint iModeNum, out DEVMODE lpDevMode, uint dwFlags);

.

Private Shared Function EnumDisplaySettingsEx(ByVal lpszDeviceName As String, ByVal iModeNum As UInteger, ByRef lpDevMode As DEVMODE, ByVal dwFlags As UInteger) As Boolean

.

See also: EnumDisplaySettings

.
Documentation
[EnumDisplaySettingsEx] on MSDN
.

//Displays the id and name of the all the different data formats currently in the clipboard.

60: GetDC
.

Retrieves a handle to a display device context (DC) for the client area of a specified window or for the entire screen.

.

Unless the display DC belongs to a window class, the ReleaseDC function must be called to release the DC after painting. Also, ReleaseDC must be called from the same thread that called GetDCEx. The number of DCs is limited only by available memory.

.

Unless the display DC belongs to a window class, the ReleaseDC function must be called to release the DC after painting. Also, ReleaseDC must be called from the same thread that called GetDCEx. The number of "DCs" is limited only by available memory.

Cut off search results after 60. Please refine your search.


 
Access PInvoke.net directly from VS: