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]

setupapi

.

DIBCI_NODISPLAYCLASS // Exclude a class if it has the NoDisplayClass value entry in its registry key.

.

const uint DIBCI_NODISPLAYCLASS = 0x00000002;

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.

shell32

.

Consider a Winform application with a OpenFileDialog that helps pick some file. This is then passed to the ExtractAssociatedIcon method to get the icon and display in a picture box.

.
Summary
Extends the ITaskbarList interface by exposing a method to mark a window as a full-screen display.
.

    /// Activates an item on the taskbar. The window is not actually activated; the window's item on the taskbar is merely displayed as active.

.

    /// <param name="hWnd">A handle to the window on the taskbar to be displayed as active.</param>

.

    /// Displays or updates a progress bar hosted in a taskbar button to show the specific percentage

.

    /// Sets the type and state of the progress indicator displayed on a taskbar button.

.

    /// shown. This window's associated taskbar button will display the progress bar.</param>

.

    /// Informs the taskbar that a new tab or document thumbnail has been provided for display in an

.

    /// order in which they are displayed left to right, will be their permanent order.</param>

.

    /// Specifies or updates the text of the tooltip that is displayed when the mouse pointer rests on an

.

    /// <param name="hWnd">The handle to the window whose thumbnail displays the tooltip. This handle must

.

    /// <param name="pszTip">The pointer to the text to be displayed in the tooltip. This value can be NULL,

.

    /// Selects a portion of a window's client area to display as that window's thumbnail in the taskbar.

.

    /// in place and return to the default display of the thumbnail, set this parameter to NULL.</param>

.

        GetDisplayName (

.

        MessageBox.Show ( "GetDisplayName(), PIDL count > 1" );

.

                ShellFolder.GetDisplayNameOf(

.

    string GetParsableDisplayName ( IntPtr lpifq )  

.

                GetDisplayName (

.

    void ParseDisplayName(

.

        String pszDisplayName,

.

    void GetDisplayNameOf(

.

        private uint BIF_BROWSEINCLUDEURLS  = 0x0080;   // Allow URLs to be displayed or entered. (Requires BIF_USENEWUI)

.

        private uint BIF_SHAREABLE      = 0x8000;  // sharable resources displayed (remote shares, requires BIF_USENEWUI)

.

          // Note that the BROWSEINFO object's pszDisplayName only gives you the name of the folder.

.

            public string pszDisplayName;

.
Summary
.

With the above code (VB), I have had problems on Win 7 x64. By changing the build type to x86 in the advanced compile options, the code works... (Specifically, on Win7 x64, ShellExecuteEx returned NO error, but the file's property page was not displayed)

.

        //     No dialog box confirming the deletion of the objects will be displayed.

.

        //     No dialog box indicating the progress will be displayed.

.

     public string szDisplayName;

.

For a whole winform sample of Displayname see http://Dzaebel.NET/ShGetFileInfo.htm

.

        szDisplayName="";

.

      public string szDisplayName;

.

      /// <summary>get display name</summary>

.

      DisplayName      = 0x000000200,

.

        public string szDisplayName;

.

Please note also that it returns a 32x32 icon with the default (lowest) resolution, which is resized by Windows if you display it as 16x16, the result being that it looks horrible.

.

The image size is normally 32x32 pixels. However, if the Use large icons option is selected from the Effects section of the Appearance tab in Display Properties, the image is 48x48 pixels.

.
Summary
.

    DISPLAYATTRMASK = &HFC000

.

    DISPLAYNAME = &H200

.

    NORMALDISPLAY = 0

.

    <System.Runtime.InteropServices.DllImportAttribute("shell32.dll", EntryPoint:="SHParseDisplayName")> _

.

    Private Shared Function SHParseDisplayName( _

.

       displayType As SIGDN) As String

.

        SHGetNameFromIDList(pidl, displayType, ptr)

.

        SHParseDisplayName(parseName, IntPtr.Zero, ptr, 0, 0)

.

    'Example = Get Display Name for 'My Computer'

.

    Public Function ComputerDisplayName() As String

.

        Dim displayName As String = GetNameFromPIDL(ptrLoc, SIGDN.NORMALDISPLAY)

.

        Return displayName

.

   Optional ByRef DisplayName As String = "", _

.

                DisplayName = shi.Name

.

                DisplayName = fit2.Name

.

                    DisplayName = f2.Self.Name

.

                    DisplayName = folder2.Title

.

    public static extern void SHParseDisplayName([MarshalAs(UnmanagedType.LPWStr)] string name, IntPtr bindingContext, [Out] out IntPtr pidl, uint sfgaoIn, [Out] out uint psfgaoOut);

.

        SHParseDisplayName(folderPath, IntPtr.Zero, out nativeFolder, 0, out psfgaoOut);

.

        SHParseDisplayName(Path.Combine(folderPath, file), IntPtr.Zero, out nativeFile, 0, out psfgaoOut);

.

    If SafeNativeMethods.SHParseDisplayName(folderPath, IntPtr.Zero, pidlFolder, 0, 0) = 0 Then

.

    If SafeNativeMethods.SHParseDisplayName(Path.Combine(_folderPath, fileName), IntPtr.Zero, pidl, 0, 0) = 0 Then

.

    Public Shared Function SHParseDisplayName(<MarshalAs(UnmanagedType.LPWStr)> ByVal pszName As String, ByVal pbc As IntPtr, ByRef ppidl As IntPtr, ByVal sfgaoIn As UInteger, ByRef psfgaoOut As UInteger) As Integer

.
Summary
Translates a Shell namespace object's display name into an item identifier list and returns the attributes of the object. This function is the preferred method to convert a string to a pointer to an item identifier list (PIDL).
.

public static extern void SHParseDisplayName( [MarshalAs(UnmanagedType.LPWStr)] string name, IntPtr bindingContext,[Out()] out IntPtr pidl, uint sfgaoIn, [Out()] out uint psfgaoOut);

.

Private Shared Sub SHParseDisplayName(<MarshalAs(UnmanagedType.LPWStr)> ByVal name As String, ByVal bindingContext As IntPtr, <Out()> ByRef pidl As IntPtr, ByVal sfgaoIn As UInt32, <Out()> ByRef sfgaoOut As UInt32)

.
Documentation
SHParseDisplayName @msdn on MSDN
.
Summary
Translates a Shell namespace object's display name into an item identifier list and returns the attributes of the object. This function is the preferred method to convert a string to a pointer to an item identifier list (PIDL).
.

static extern TODO SHParseDisplayName(TODO);

.

Declare Function SHParseDisplayName Lib "shell32.dll" (ByVal pszName As Long, Optional ByVal pbc As Long, Optional ByRef ppidl As Long, Optional ByVal sfgaoIn As Long, Optional ByRef psfgaoOut As Long) As Long

.
Documentation
[SHParseDisplayName] on MSDN
.

        /// A screen saver is displayed, the machine is locked,

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.

mqrt

.

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

.

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

ole32

.

    CF_OWNERDISPLAY = 0x80,

.
Summary
Converts a display name into a moniker that identifies the object named, and then binds to the object identified by the moniker.
.
Summary
.

static extern int MkParseDisplayName(UCOMIBindCtx pbc,

.

    /// <param name="szUserName">A pointer to the display name to be parsed.</param>

.

    int MkParseDisplayName(IBindCtx pbc, string szUserName, ref int pchEaten, out IMoniker ppmk);

.
Documentation
[MkParseDisplayName] on MSDN
.

        ///  Show the property page. Some property pages cannot be displayed

wtsapi32

.
Summary
The WTSSendMessage function displays a message box on the client desktop of a specified Terminal Services session.
.

    WTSClientDisplay = 15,

.

    WTSClientDisplay = 15

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"

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

imm32

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

ntdsapi

.

      // display name is not necessarily the defining RDN.

.

      DS_DISPLAY_NAME = 3,

Structures

.

    public IntPtr pszDisplayName;

.

     <MarshalAs(UnmanagedType.LPTStr)>Public pszDisplayName As String

.

    pszDisplayName As String

.

        /// User-initiated capture flag. If this member is TRUE, AVICap displays a dialog box prompting

.

        ''' User-initiated capture flag. If this member is TRUE, AVICap displays a dialog box prompting

.
Summary
.

    ///     The band object is displayed with a sunken appearance.

.

    ///     The band will be displayed with the background color specified in crBkgnd.

.
Summary
Contains information about the initialization and environment of a printer or a display device.
.

    public Int32 dmDisplayOrientation;

.

    public Int32 dmDisplayFixedOutput;

.

    public Int32 dmDisplayFlags;

.

    public Int32 dmDisplayFrequency;

.

    Public dmDisplayFlags As Integer

.

    Public dmDisplayFrequency As Integer

.

Since the DEVMODE members beyond dmDisplayFrequency do not have to be declared, the structure can vary in size. You should set dmSize to effective size of your implemetation before calling API functions:

.

    public Int32 dmDisplayOrientation;

.

    public Int32 dmDisplayFixedOutput;

.

    public Int32 dmDisplayFlags;    

.

    public Int32 dmDisplayFrequency;

.
Summary
.

public struct DISPLAY_DEVICE

.

      public DisplayDeviceStateFlags StateFlags;

.

Public Structure DISPLAY_DEVICE

.

    Public StateFlags As DisplayDeviceStateFlags

.

DisplayDeviceStateFlags

.

Used with EnumDisplayDevices

.
Documentation
[DISPLAY_DEVICE] on MSDN
.
Summary
.

public struct DISPLAY_DEVICE

.

      public DisplayDeviceStateFlags StateFlags;

.

Public Structure DISPLAY_DEVICE

.

    Public StateFlags As DisplayDeviceStateFlags

.

DisplayDeviceStateFlags

.

Used with EnumDisplayDevices

.
Documentation
[DISPLAY_DEVICE] on MSDN
.

     public string pDisplayName;

.

   EnableMultiBatteryDisplay = 0x02,

.

   EnableVideoDimDisplay     = 0x10,

.

   EnableMultiBatteryDisplay = &H2

.

   EnableVideoDimDisplay = &H10

.

        public string lpDisplayName;

.

    [MarshalAs(UnmanagedType.LPTStr)] public string pDisplayName;

.

    Public pDisplayName As String

.

pDisplayName: a string that supplies the display name of an application that is associated with a driver package. DIFxAPI requires an application display name to inform a user which application is associated with a driver package. For example, if a user clicks on the Remove button of an Add or Remove Programs entry that was created by the DIFx tools to represent a driver package, the resulting user dialog box will list the display names of the applications that are associated with the driver package. If a caller supplies an INSTALLERINFO structure that specifies an association between an application and a driver package, this member must not be NULL or supply an empty string.

48: MAPI
.

    /// Pointer to the display name of the message recipient or sender.

.

    ''' Pointer to the display name of the message recipient or sender.

.

    public ResourceDisplayType dwDisplayType;

.

    Public dwDisplayType As ResourceDisplayType

.

ResourceScope, ResourceType, ResourceDisplayType, ResourceUsage

.
Summary
The NET_DISPLAY_USER structure contains information that an account manager can access to determine information about user accounts.
.

struct NET_DISPLAY_USER {

.

Structure NET_DISPLAY_USER

.
Documentation
[NET_DISPLAY_USER] on MSDN
.

    ''' The first string is your display string that describes the custom filter,

.

    ''' When the user selects a file, nFilterIndex returns the index of the currently displayed

.

    public string szDisplayName;

.

    Public szDisplayName As String

.

szDisplayName

.

Changed from Definition to Signature in order to display them in the PInvoke.net Visual Studio Add-In.

53: STRRET
.

     public IntPtr pOleStr;    // must be freed by caller of GetDisplayNameOf

.

     <FieldOffset(4)> Public pOleStr As IntPtr   'must be freed by caller of GetDisplayNameOf

.

// Structure used to return the display name to

.

STRRET pDisplayName;

.

String DisplayName;

.

pDisplayName.uType = (uint)STRRET_TYPE.STRRET_CSTR;

.

// Get the "normal" display name.

.

iShellFolder.GetDisplayNameOf(pidlItems[0], SHGNO.SHGDN_NORMAL,

.

         out pDisplayName);

.

System.Text.StringBuilder sbDisplayName = new System.Text.StringBuilder(256);

.

// Get the display name from the STRRET structure

.

WindowsAPI.StrRetToBuf(ref pDisplayName, pidlItems[0],

.

        sbDisplayName, (uint)sbDisplayName.Capacity);

.

DisplayName = sbDisplayName.ToString();

difxapi

.

installerInfo.pDisplayName = "My Package";

.

installerInfo.pDisplayName = "My Package"

.

installerInfo.pDisplayName = "My Package";

.

installerInfo.pDisplayName = "My Package"

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.

59: 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.

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


 
Access PInvoke.net directly from VS: