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]

msi

.

            INSTALLMESSAGE_SHOWDIALOG = 0x0E000000 // sent prior to display or authored dialog or wizard

.

            INSTALLUILEVEL_ENDDIALOG    = 0x80, // display success/failure dialog at end of install

.

            INSTALLUILEVEL_PROGRESSONLY = 0x40, // display only progress dialog

.

            INSTALLUILEVEL_HIDECANCEL   = 0x20, // do not display the cancel button in basic UI

.

            INSTALLUILEVEL_SOURCERESONLY = 0x100, // force display of source resolution even if quiet

.

            INSTALLMESSAGE_SHOWDIALOG = 0x0E000000 // sent prior to display or authored dialog or wizard

.

The MsiInstallProduct function displays the user interface with the current settings and log mode.

.

    INSTALLUILEVEL_ENDDIALOG    = 0x80, // display success/failure dialog at end of install

.

    INSTALLUILEVEL_PROGRESSONLY = 0x40, // display only progress dialog

.

    INSTALLUILEVEL_HIDECANCEL   = 0x20, // do not display the cancel button in basic UI

.

    INSTALLUILEVEL_SOURCERESONLY = 0x100, // force display of source resolution even if quiet

Interfaces

.

    /// display the autosuggest drop-down list.</summary>

.

    /// <summary>Normal windows display text left-to-right

.

    /// (LTR). Windows can be mirrored to display languages

.

    /// Typically, control text is displayed in the same

.

    /// filtering when displaying the autosuggest dropdown.

.

    /// Always display all suggestions.</summary>

.

    ''' Title of band object. Displayed at the left or on top of the band object.

.

''' Specifies Style of the band object, its Name(displayed in explorer menu) and HelpText(displayed in status bar when menu command selected).

.

    ''' Title of band object. Displayed at the left or on top of the band object.

.

''' Specifies Style of the band object, its Name(displayed in explorer menu) and HelpText(displayed in status bar when menu command selected).

.

    public string DisplayName;

.

        public string HyperlinkDisplayText

.

                    ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.GetHyperlinkDisplayText),typeof(string)),CultureInfo.CurrentCulture

.

        /// <param name="text">Text to display for the hyperlink</param>

.

     // IParseDisplayName.

.

     int ParseDisplayName([In, MarshalAs(UnmanagedType.Interface)] IBindCtx pbc,

.

              [In, MarshalAs(UnmanagedType.LPWStr)] string pszDisplayName,

.

I include the methods from the inherited IParseDisplayName interface because .Net's COM interop will not properly handle interface inheritance.

.

     // IParseDisplayName.

.

     int ParseDisplayName([In, MarshalAs(UnmanagedType.Interface)] IBindCtx pbc,

.

              [In, MarshalAs(UnmanagedType.LPWStr)] string pszDisplayName,

.

I include the methods from the inherited IParseDisplayName and IOleContainer interfaces because .Net's COM interop will not properly handle interface inheritance.

.
Summary
IParseDisplayName interface definition
.

public interface IParseDisplayName

.

     int ParseDisplayName([In, MarshalAs(UnmanagedType.Interface)] IBindCtx pbc,

.

              [In, MarshalAs(UnmanagedType.LPWStr)] string pszDisplayName,

.
Documentation
[IParseDisplayName] on MSDN
.
Summary
Exposes methods that provide options for an application to display a progress dialog box.
.

        /// Displays a message in the progress dialog.

.

        /// <param name="dwLineNum">The line number on which the text is to be displayed. Currently there are three lines—1, 2, and 3. If the PROGDLG_AUTOTIME flag was included in the dwFlags parameter when IProgressDialog::StartProgressDialog was called, only lines 1 and 2 can be used. The estimated time will be displayed on line 3.</param>

.

        /// <remarks>This function is typically used to display a message such as "Item XXX is now being processed." typically, messages are displayed on lines 1 and 2, with line 3 reserved for the estimated time.</remarks>

.

        /// Sets a message to be displayed if the user cancels the operation.

.

        /// <param name="pwzCancelMsg">A pointer to a null-terminated Unicode string that contains the message to be displayed.</param>

.

        /// immediate feedback by clearing text lines 1 and 2 and displaying the cancel message on line 3.

.

    [MarshalAs(UnmanagedType.LPWStr)] public string szDisplayName;

.
Summary
The Shell uses the IQueryInfo interface to retrieve flags and info tip information for an item that resides in an IShellFolder implementation. Info tips are usually displayed inside of a ToolTip control.
.

    /// Translates a file object's or folder's display name into an item identifier list.

.

    /// <param name="pszDisplayName">Null-terminated UNICODE string with the display name</param>

.

    /// <param name="pchEaten">Pointer to a ULONG value that receives the number of characters of the display name that was parsed.</param>

.

    void ParseDisplayName(IntPtr hwnd, IntPtr pbc, String pszDisplayName, UInt32 pchEaten, out IntPtr ppidl, UInt32 pdwAttributes);

.

    /// <param name="hwndOwner">Handle to the owner window that the client should specify if it displays a dialog box or message box.</param>

.

    /// Retrieves the display name for the specified file object or subfolder.

.

    /// <param name="uFlags">Flags used to request the type of display name to return. For a list of possible values. </param>

.

    /// <param name="pName"> Address of a STRRET structure in which to return the display name.</param>

.

    void GetDisplayNameOf(IntPtr pidl, ESHGDN uFlags, out STRRET pName);

.

    /// Sets the display name of a file object or subfolder, changing the item

.

    /// <param name="hwnd"> Handle to the owner window of any dialog or message boxes that the client displays.</param>

.

    /// <param name="pszName"> Pointer to a null-terminated string that specifies the new display name.</param>

.

    /// In the case of an error, the view should fail silently rather than displaying a UI.

.

    /// The folder flags are used to specify how the control displays its content.

.

        /// <summary>The view should not display icons.</summary>

.

        /// <summary>The view should not display file names.</summary>

.

        /// <summary>Windows Vista and later: Do not display filters in the view.</summary>

.

        /// <summary>Windows Vista and later: Do not display a column header in the view in any view mode.</summary>

.

        /// <summary>Windows Vista and later: The view should list the number of items displayed in each group. To be used with IFolderView2::SetGroupSubsetCount.</summary>

.

        /// <summary>The view should display medium-size icons.</summary>

.

        /// <summary>The view should display thumbnail icons.</summary>

.

        /// <summary>The view should display large icons.</summary>

.

        /// Windows 7 and later. The view should display content mode.    

.

The ITfLangBarMgr interface is implemented by the TSF manager and used by text services to manage event sink notification and configure floating language bar display settings. The interface ID is IID_ITfLangBarMgr.

.

     // Sets the desired anchor point where ContextualUI should be displayed.

21: IUri
.

        UInt32 GetDisplayUri([MarshalAs(UnmanagedType.BStr)][Out] out string sDisplayString);

.

        DISPLAY_URI = 2,

.

    /// <summary>Automatically estimate the remaining time and display the estimate on line 3. </summary>

.

    /// <remarks>If this flag is set, IProgressDialog::SetLine can be used only to display text on lines 1 and 2.</remarks>

.

    /// <summary>Do not display a minimize button on the dialog box's caption bar.</summary>

.

    /// <summary>Do not display a progress bar.</summary>

.

    ''' <summary>Automatically estimate the remaining time and display the estimate on line 3. </summary>

.

    ''' <remarks>If this flag is set, IProgressDialog::SetLine can be used only to display text on lines 1 and 2.</remarks>

.

    ''' <summary>Do not display a minimize button on the dialog box's caption bar.</summary>

.

    ''' <summary>Do not display a progress bar.</summary>

ntdsapi

.

      // display name is not necessarily the defining RDN.

.

      DS_DISPLAY_NAME = 3,

crypt32

.

    const uint CERT_NAME_SIMPLE_DISPLAY_TYPE    = 4;

.

    const uint CERT_NAME_FRIENDLY_DISPLAY_TYPE  = 5;

.

                        CERT_NAME_FRIENDLY_DISPLAY_TYPE,

.

                      CERT_NAME_SIMPLE_DISPLAY_TYPE, _

hid

.

        DisplayException( MODULE_NAME, ex );

mqrt

.

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

.

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

gdi32

.
Summary
This function displays bitmaps that have transparent or semitransparent pixels on Microsoft Mobile Os'es
28: BitBlt
.

BitBlt returns an error if the source and destination device contexts represent different devices. To transfer data between device contexts for different devices, convert the memory bitmap to a DIB by calling GetDIBits. To display the DIB to the second device, call SetDIBits or StretchDIBits.

.

        hdc = CreateDC("DISPLAY", null, null, IntPtr.Zero); // create a new dc,yeni bir dc yaratıyoruz.Yeni bir system dc si yaratıyoruz.

.

        GCP_DISPLAYZWG = 0x00400000,

.

        /// Current vertical refresh rate of the display device (for displays only) in Hz

.

    ''' Current vertical refresh rate of the display device (for displays only) in Hz

.

    IntPtr hdcScreen = CreateDC("Display", null, null, IntPtr.Zero);

.

[CharSet = CharSet.Auto] According to my experience this parameter should be used when using a LOGFONT structure and the CreateFontIndirect fuction, otherwise the selected font will not be displayed. All flags will be done (lfItalic, lfUnderline ...) but not the lfFaceName string.

advapi32

.
Summary
The ConvertSidToStringSid function converts a security identifier (SID) to a string format suitable for display, storage, or transmission.
.

    string lpDisplayName,

.

                ByVal displayName As String, ByVal desiredAccess As Int32, ByVal serviceType As Int32, _

.

    Dim displayName As String = "AAATestDisplayName"

.

    Dim serviceHandle As IntPtr = CreateService(scHandle, serviceName, displayName, SERVICE_ALL_ACCESS, SERVICE_WIN32_OWN_PROCESS, _

.

     internal string pDisplayName;

.
Summary
Returns the display name for a privilege when provided with the system name.
.

static extern bool LookupPrivilegeDisplayName(

.

    System.Text.StringBuilder displayName,  // out

.

    ref uint cbDisplayName,

.

Declare Function LookupPrivilegeDisplayName Lib "advapi32.dll" (TODO) As TODO

.

This is one of those "call twice" functions, so this error is just daily life. When it returns with this error, the byte count (cbDisplayName) will be set to what you need. Call EnsureCapacity on your StringBuilder and go round again.

.
Documentation
[LookupPrivilegeDisplayName] on MSDN
.

        // Use the service name and *NOT* the display name.

.

        string serviceName = "Dnscache"; // Display name is "DNS Client"

.

        // Use the service name and *NOT* the display name.

.

        string serviceName = "Dnscache"; // Display name is "DNS Client"

shlwapi

.
Summary
This interface describes the API implemented by preview handlers. When a handler for a given file type is installed on a system, the shell or custom apps can use it to display the contents of these files in their window. Preview handlers usually do not allow in-place editing and may not display all the information contained in the file (for example, macros inside Office documents are ignored by their preview handlers)
.

You can use this interface to leverage previewers already installed on a system to display a document preview in a Windows Forms app.

.

            // displays : "c:\a\very\very\long...\PathCompactpathEx"

.

            // displays : "c:\a\very\very\long...\PathCompactpathEx"

.

string sWin8ManifestString = "{C:\Program Files\WindowsApps\Microsoft.Video_6.2.8158.0_x86__8wekyb3d8bbwe\resources.pri?ms-resource://Microsoft.Video/resources/manifestVideoDisplayName}";

.
Summary
Displays a message box with a "Never show this dialog again" check box. This dialog is useful for displaying a one-time message to the user where they are likely never to want to see the dialog again.
.

/* The SHMessageBoxCheck() function is a Windows Shell API function that displays a custom messagebox with a "never ask me again" check box.  When the user checks the checkbox, the dialog never shows up again.  The shell API .dll exports this function by ordinal only.  The entrypoint  is ordinal 185 for ASCII and 191 for unicode. */

.

/* This code displays a dialog box with a "Don't show me this dialog again" checkbox and an OK button.  In normal circumstances, result will always be 0 on return. */

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

coredll

.
Summary
This function queries the user for notification settings by displaying a dialog box showing options that are valid for the current hardware platform.
.
Summary
Get/change the display rotation (landscape/portrait)
.

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

.

     public int dmDisplayFlags;

.

     public int dmDisplayFrequency;

.

     public int dmDisplayOrientation;

.

Declare Function ChangeDisplaySettingsEx Lib "coredll.dll" (ByVal lpszDeviceName As String, ByVal lpDevMode As Byte(), ByVal hwnd As IntPtr, ByVal dwflags As CDSFlags, ByVal lParam As IntPtr) As CDSRet

.

    DM_DISPLAYORIENTATION = 8388608

.

    DM_DISPLAYQUERYORIENTATION = 16777216

.

    ' Flags for ChangeDisplaySettings

.

    ' Return values for ChangeDisplaySettings

.

    static extern int ChangeDisplaySettingsEx(string lpszDeviceName,

.

        public int dmDisplayFlags;

.

        public int dmDisplayFrequency;

.

        public int dmDisplayOrientation;

.

        ChangeDisplaySettingsEx(null, ref DevM2, IntPtr.Zero, 2, IntPtr.Zero); // 2 = test

.

        MessageBox.Show("Supported: " + DevM2.dmDisplayOrientation.ToString());

.

        ChangeDisplaySettingsEx(null, ref devmode, IntPtr.Zero, 2, IntPtr.Zero); // 2 = test

.

        MessageBox.Show("Current: " + devmode.dmDisplayOrientation.ToString());

.

        devmode.dmDisplayOrientation = (devmode.dmDisplayOrientation == 0) ? 1 : 0; //switch between 0, 90 rotation

.

        ChangeDisplaySettingsEx(null, ref devmode, IntPtr.Zero, 0, IntPtr.Zero); // 0 = set

.

    Public Property dmDisplayFlags() As UInteger

.

    Public Property dmDisplayFrequency() As UInteger

.

    Public Property dmDisplayOrientation() As DMD

.

    Friend Shared Function ChangeDisplaySettingsEx(ByVal lpszDeviceName As String, ByVal lpDevMode As Byte(), ByVal hwnd As IntPtr, ByVal dwflags As CDSFlags, ByVal lParam As IntPtr) As CDSRet

.

        devMode.dmFields = DM_Fields.DM_DISPLAYORIENTATION

.

        devMode.dmDisplayOrientation = DMD.DMDO_0

.

        devMode.dmDisplayOrientation = DMD.DMDO_90

.

        devMode.dmDisplayOrientation = DMD.DMDO_180

.

        devMode.dmDisplayOrientation = DMD.DMDO_270

.

        Dim ret As CDSRet = ChangeDisplaySettingsEx(Nothing, devMode.Data, IntPtr.Zero, 0, IntPtr.Zero)

.
Documentation
[ChangeDisplaySettingsEx] on MSDN
.

Turn Off the Display While Running Applications

.

Applications like the Microsoft® Windows Media™ Player for Pocket PC allow the user to turn off the display while the application is running in the background. This article shows you how to do this with your own applications.

49: GetDC
.
Summary
This function retrieves a handle to a display device context (DC) for the client area of the specified window. The display device context can be used in subsequent graphics display interface (GDI) functions to draw in the client area of the window.
.

    /// 17 COLOR_GRAYTEXT Color of shaded text. This color is set to 0 if the current display driver does not support a solid gray color.

.

    /// 21 COLOR_3DDKSHADOW Color of the dark shadow for three-dimensional display elements.

.

    /// 22 COLOR_3DLIGHT Highlight color of three-dimensional display elements for edges that face the light source.

.

        /// <summary>Displays the window.</summary>

.
Summary
This function shows or hides the currently active input panel window. An application must call this function to display the input panel and its current input method (taken from msdn2.microsoft.com)
.
Summary
This function displays a floating pop-up menu at the specified location and tracks the selection of items on the pop-up menu. The floating pop-up menu can appear anywhere on the screen.
.

    // Display a Pop Up menu at the bottom right corner of the working area of the screen

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,

msdrm

.
Summary
The DRMRegisterContent function informs the Active Directory Rights Management Services (AD RMS) client that an AD RMS-protected document is being or is no longer being displayed.

aygshell

.
Summary
SHFullScreen is a simple boolean function for hiding or displaying CE and PocketPC desktop elements such as the TaskBar, the Start Icon and the SIP (Standard Input Panel).
.

Hide the Start button icon on the navigation bar. When the Start icon is hidden, the shell is in a special state in which clicking or tapping the navigation bar will not display the drop-down Start menu. The navigation bar is essentially disabled when in this state. While in this mode, WM_LBUTTONDOWN and WM_LBUTTONUP messages will be forwarded to hwndRequester. This allows an application to drop out of this mode by calling this function with the SHFS_SHOWSTARTICON, when the user clicks or taps the navigation bar.

.

A request to display the input panel. Any pending SIP_DOWN requests are ignored.

.

  Private szDisplayNameNative as String

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


 
Access PInvoke.net directly from VS: