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]

credui

.
Summary
The CredUIPromptForWindowsCredentials function creates and displays a configurable dialog box that allows users to supply credential information by using any credential provider installed on the local computer.
.

    ''' The CredUIPromptForWindowsCredentials function creates and displays a configurable dialog box that allows users to supply credential information by using any credential provider installed on the local computer.

.

    ''' <param name="pfSave">If set to <c>True</c> the check the "Save" checkbox on the dialog - only displayed if CREDUIWIN_CHECKBOX is passed in dwFlags.</param>

.

      /// The Save check box is displayed in the dialog box.

.

      /// The credential dialog box should be displayed on the secure desktop. This value cannot be combined with CREDUIWIN_GENERIC.

.

      else errorcode = 1326; //Else display an error message inside the dialog next time (The errorcodes are defined in 'winerror.h')

.

     credui.pszMessageText = "DisplayedMessage";

gdi32

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

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.

imm32

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

odbccp32

.

Using the value of this.Handle from within a Windows Forms application's form control will cause SQLConfigDataSource to display a dialog to the user that is pre-populated with the provided attribute values.

.

        /// <param name="hwndParent">Parent window handle. The function will not display

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"

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.

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

.

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.

.

internal static extern bool EnumDisplayMonitors(IntPtr hdc, IntPtr lprcClip, MonitorEnumProc lpfnEnum, IntPtr dwData);

.

    EnumDisplayMonitors(IntPtr.Zero, IntPtr.Zero, MonitorEnumCallBack, IntPtr.Zero);

.

    public const int GMMP_USE_DISPLAY_POINTS     = 1;

.

    uint mode  = GMMP_USE_DISPLAY_POINTS;

.
Summary
Retrieves various system metrics of display elements and system configuration settings.
.

* System metrics may vary from display to display. Most values are returned in number of pixels, all others are flag or boolean values.

.

* GetSystemMetrics(SM_CMONITORS) counts only display monitors. This is different from EnumDisplayMonitors, which enumerates display monitors and also non-display pseudo-monitors.

.

The following example creates a new ListView control, and displays each member of the enumerator and it's return value. To use this example, paste it into the code (not the deigner code) file of a blank form. (ie, Form1.cs), if you have AIPCC installed you wont need to use the WindowsAPI class, instead it will be imported fron the AIP class library.

.

///     WS_VISIBLE[0x10000000L] is set, the window is displayed and subsequent drawing into it is displayed as long as the

.

///     not be displayed if the window is obscured by other windows or is clipped by its parent window.

.

The language for the text displayed in the message box button(s). Specifying a value of zero (0) indicates to display the button text in the default system language. If this parameter is MAKELANGID(LANG_NEUTRAL, SUBLANG_NEUTRAL), the current language associated with the calling thread is used.

.

   private Shared Function DisplayMessageBox( _

.

     Public Function DisplayMessageBox( _

.

    DisplayMessageBox = MessageBoxTimeOut(hWnd, Message, Caption, MessageBoxOptions, 0, TimeOutMilliseconds)

.

The MONITORINFOEX structure contains information about a display monitor.

.

The MONITORINFOEX structure is a superset of the MONITORINFO structure. The MONITORINFOEX structure adds a string member to contain a name for the display monitor.

.

    /// The MONITORINFOEX structure contains information about a display monitor.

.

    /// for the display monitor.

.

    /// A RECT structure that specifies the display monitor rectangle, expressed in virtual-screen coordinates.

.

    /// Note that if the monitor is not the primary display monitor, some of the rectangle's coordinates may be negative values.

.

    /// A RECT structure that specifies the work area rectangle of the display monitor that can be used by applications,

.

    /// Note that if the monitor is not the primary display monitor, some of the rectangle's coordinates may be negative values.

.

    /// The attributes of the display monitor.

.

    /// A string that specifies the device name of the monitor being used. Most applications have no use for a display monitor name,

.

The MONITORINFOEX structure contains information about a display monitor.

.

The MONITORINFOEX structure is a superset of the MONITORINFO structure. The MONITORINFOEX structure adds a string member to contain a name for the display monitor.

.

    /// The MONITORINFOEX structure contains information about a display monitor.

.

    /// for the display monitor.

.

    /// A RECT structure that specifies the display monitor rectangle, expressed in virtual-screen coordinates.

.

    /// Note that if the monitor is not the primary display monitor, some of the rectangle's coordinates may be negative values.

.

    /// A RECT structure that specifies the work area rectangle of the display monitor that can be used by applications,

.

    /// Note that if the monitor is not the primary display monitor, some of the rectangle's coordinates may be negative values.

.

    /// The attributes of the display monitor.

.

    /// A string that specifies the device name of the monitor being used. Most applications have no use for a display monitor name,

.

http://www.microsoft.com/downloads/details.aspx?FamilyID=c6f140ce-3dfb-49c4-b365-2a79e799817a&displaylang=en

.
Summary
Sets the current process as dots per inch (dpi) aware. Call this before your application displays an UI to disable the scaling that Windows Vista would otherwise do to your application. A good place is just before you call Application.EnableVisualStyle(). It's also a good idea to ensure you're actually running on Vista before calling this, because you'll get an exception on downlevel platforms.
.
Summary
.

static extern bool SetWindowDisplayAffinity(IntPtr hwnd, DisplayAffinity affinity);

.

Declare Function SetWindowDisplayAffinity Lib "user32.dll" (hwnd As IntPtr, affinity As DisplayAffinity) As Boolean

.

enum DisplayAffinity : uint

.
Documentation
[SetWindowDisplayAffinity] on MSDN
.

    ///         <term>SWP_SHOWWINDOW (0x0040)</term><description>Displays the window.</description>

.

        ///     Displays the window.

.

///     0x09). Tab characters are displayed as vertical bar(|) characters.<br />For an example go to

.

The ShowCursor function displays or hides the cursor.

.

    [in] Specifies whether the internal display counter is to be incremented or decremented. If bShow is TRUE, the display count is incremented by one. If bShow is FALSE, the display count is decremented by one.

.

In the TextBox's Change event handler, use the PictureBox's TextHeight function to see how tall the text is. If the text is too big to fit in the TextBox, we need to display the scrollbar. If the need for the scrollbar has changed, use the ShowScrollBar API function to show or hide it.

.
Summary
Indicates that the system cannot be shut down and sets a reason string to be displayed to the user if system shutdown is initiated.
.

     ///<Summary>Display topic in ulTopic</Summary>

.

     ///<Summary>Display index</Summary>

.

     ///<Summary>Display help on using help</Summary>

.

     ///<Summary>Display topic for keyword in offabData</Summary>

.

     '''<Summary>Display topic in ulTopic</Summary>

.

     '''<Summary>Display index</Summary>

.

     '''<Summary>Display help on using help</Summary>

.

     '''<Summary>Display topic for keyword in offabData</Summary>

mapi32

.
Summary
MAPIDetails - Displays a dialog box containing the details of a selected address list entry.
.

  /// The MAPIDetails function displays a dialog box containing the details of a selected address list entry.

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

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

.

Private szDisplayNameNative as String

comdlg32

.
Summary
Display the Save File common dialog

difxapi

.

installerInfo.pDisplayName = "My Package";

.

installerInfo.pDisplayName = "My Package"

.

installerInfo.pDisplayName = "My Package";

.

installerInfo.pDisplayName = "My Package"

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).

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


 
Access PInvoke.net directly from VS: