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]

ntdsapi

.

      // display name is not necessarily the defining RDN.

.

      DS_DISPLAY_NAME = 3,

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,

comdlg32

.
Summary
Display the Save File common dialog

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

mpr

.

        public ResourceDisplayType dwDisplayType = 0;

.

    public enum ResourceDisplayType

.

        RESOURCEDISPLAYTYPE_GENERIC,

.

        RESOURCEDISPLAYTYPE_DOMAIN,

.

        RESOURCEDISPLAYTYPE_SERVER,

.

        RESOURCEDISPLAYTYPE_SHARE,

.

        RESOURCEDISPLAYTYPE_FILE,

.

        RESOURCEDISPLAYTYPE_GROUP,

.

        RESOURCEDISPLAYTYPE_NETWORK,

.

        RESOURCEDISPLAYTYPE_ROOT,

.

        RESOURCEDISPLAYTYPE_SHAREADMIN,

.

        RESOURCEDISPLAYTYPE_DIRECTORY,

.

        RESOURCEDISPLAYTYPE_TREE,

.

        RESOURCEDISPLAYTYPE_NDSCONTAINER

.

nr.dwDisplayType = ResourceDisplayType.RESOURCEDISPLAYTYPE_SHARE;

.

  //      public enum ResourceDisplayType

.

  //      RESOURCEDISPLAYTYPE_GENERIC,

.

  //      RESOURCEDISPLAYTYPE_DOMAIN,

.

  //      RESOURCEDISPLAYTYPE_SERVER,

.

  //      RESOURCEDISPLAYTYPE_SHARE,

.

  //      RESOURCEDISPLAYTYPE_FILE,

.

  //      RESOURCEDISPLAYTYPE_GROUP,

.

  //      RESOURCEDISPLAYTYPE_NETWORK,

.

  //      RESOURCEDISPLAYTYPE_ROOT,

.

  //      RESOURCEDISPLAYTYPE_SHAREADMIN,

.

  //      RESOURCEDISPLAYTYPE_DIRECTORY,

.

  //      RESOURCEDISPLAYTYPE_TREE,

.

  //      RESOURCEDISPLAYTYPE_NDSCONTAINER

.

  //      public ResourceDisplayType dwDisplayType = 0;

.

myNetResource.dwDisplayType = 3;            

.

        DisplayType = ResourceDisplaytype.Share,

.

    public ResourceDisplaytype DisplayType;

.

public enum ResourceDisplaytype : int

.

    public enum ResourceDisplayType

.

        RESOURCEDISPLAYTYPE_GENERIC,

.

        RESOURCEDISPLAYTYPE_DOMAIN,

.

        RESOURCEDISPLAYTYPE_SERVER,

.

        RESOURCEDISPLAYTYPE_SHARE,

.

        RESOURCEDISPLAYTYPE_FILE,

.

        RESOURCEDISPLAYTYPE_GROUP,

.

        RESOURCEDISPLAYTYPE_NETWORK,

.

        RESOURCEDISPLAYTYPE_ROOT,

.

        RESOURCEDISPLAYTYPE_SHAREADMIN,

.

        RESOURCEDISPLAYTYPE_DIRECTORY,

.

        RESOURCEDISPLAYTYPE_TREE,

.

        RESOURCEDISPLAYTYPE_NDSCONTAINER

.

        public ResourceDisplayType dwDisplayType = 0;

.

    myResource.dwDisplayType = 3

.

public enum RESOURCE_DISPLAYTYPE

.

    RESOURCEDISPLAYTYPE_GENERIC= 0x00000000,

.

    RESOURCEDISPLAYTYPE_DOMAIN= 0x00000001,

.

    RESOURCEDISPLAYTYPE_SERVER= 0x00000002,

.

    RESOURCEDISPLAYTYPE_SHARE= 0x00000003,

.

    RESOURCEDISPLAYTYPE_FILE = 0x00000004,

.

    RESOURCEDISPLAYTYPE_GROUP= 0x00000005,

.

    RESOURCEDISPLAYTYPE_NETWORK= 0x00000006,

.

    RESOURCEDISPLAYTYPE_ROOT = 0x00000007,

.

    RESOURCEDISPLAYTYPE_SHAREADMIN = 0x00000008,

.

    RESOURCEDISPLAYTYPE_DIRECTORY = 0x00000009,

.

    RESOURCEDISPLAYTYPE_TREE = 0x0000000A,

.

    RESOURCEDISPLAYTYPE_NDSCONTAINER = 0x0000000B

.

    public RESOURCE_DISPLAYTYPE dwDisplayType;

.

        nr.dwDisplayType.ToString(), nr.lpLocalName, nr.lpRemoteName );

.

    Public Enum RESOURCE_DISPLAYTYPE

.

    RESOURCEDISPLAYTYPE_GENERIC = &H0

.

    RESOURCEDISPLAYTYPE_DOMAIN = &H1

.

    RESOURCEDISPLAYTYPE_SERVER = &H2

.

    RESOURCEDISPLAYTYPE_SHARE = &H3

.

    RESOURCEDISPLAYTYPE_FILE = &H4

.

    RESOURCEDISPLAYTYPE_GROUP = &H5

.

    RESOURCEDISPLAYTYPE_NETWORK = &H6

.

    RESOURCEDISPLAYTYPE_ROOT = &H7

.

    RESOURCEDISPLAYTYPE_SHAREADMIN = &H8

.

    RESOURCEDISPLAYTYPE_DIRECTORY = &H9

.

    RESOURCEDISPLAYTYPE_TREE = &HA

.

    RESOURCEDISPLAYTYPE_NDSCONTAINER = &HB

.

    Public dwDisplayType As RESOURCE_DISPLAYTYPE

.

Private Sub DisplayUncPath(ByVal aLocalPath As String)

.

public enum ResourceDisplayType

.

    public ResourceDisplayType  dwDisplayType = 0;

wtsapi32

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

    WTSClientDisplay = 15,

.

    WTSClientDisplay = 15

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.

hid

.

        DisplayException( MODULE_NAME, ex );

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.

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

36: 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();

gdi32

.
Summary
This function displays bitmaps that have transparent or semitransparent pixels on Microsoft Mobile Os'es
38: 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.

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.

47: 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

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

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


 
Access PInvoke.net directly from VS: