Desktop Functions: Smart Device Functions:
|
Search Results for "DISPLAY" in [All]ntdsapi1: DsCrackNames
// 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, comdlg32msi
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 8: MsiEnableLog
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. 10: MsiSetInternalUI
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 13: WNetEnumResource
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; wtsapi3216: WTSSendMessage 17: WTS_INFO_CLASS
WTSClientDisplay = 15,
WTSClientDisplay = 15 msdrmhid
DisplayException( MODULE_NAME, ex ); Structures20: BROWSEINFO
public IntPtr pszDisplayName;
<MarshalAs(UnmanagedType.LPTStr)>Public pszDisplayName As String
pszDisplayName As String 21: CAPTUREPARMS
/// 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 23: DESKBANDINFO
/// The band object is displayed with a sunken appearance.
/// The band will be displayed with the background color specified in crBkgnd. 24: DEVMODE
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; 25: DISPLAY
public struct DISPLAY_DEVICE
public DisplayDeviceStateFlags StateFlags;
Public Structure DISPLAY_DEVICE
Public StateFlags As DisplayDeviceStateFlags Used with EnumDisplayDevices 26: DISPLAY_DEVICE
public struct DISPLAY_DEVICE
public DisplayDeviceStateFlags StateFlags;
Public Structure DISPLAY_DEVICE
Public StateFlags As DisplayDeviceStateFlags Used with EnumDisplayDevices
public string pDisplayName;
EnableMultiBatteryDisplay = 0x02,
EnableVideoDimDisplay = 0x10,
EnableMultiBatteryDisplay = &H2
EnableVideoDimDisplay = &H10
public string lpDisplayName; 30: INSTALLERINFO
[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. 32: NETRESOURCE
public ResourceDisplayType dwDisplayType;
Public dwDisplayType As ResourceDisplayType ResourceScope, ResourceType, ResourceDisplayType, ResourceUsage 33: NET_DISPLAY_USER 34: OpenFileName
''' 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 35: SHFILEINFO
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(); gdi3237: AlphaBlend 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. 39: CreateDC
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, 41: GetDeviceCaps
/// 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 42: GetPixel
IntPtr hdcScreen = CreateDC("Display", null, null, IntPtr.Zero); 43: TextOut [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
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) 46: ExtEscape 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 48: SetSysColors
/// 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. 49: SetWindowPos
/// <summary>Displays the window.</summary> 50: SipShowIM 51: TrackPopupMenuEx user32
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 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); 55: CreateWindowEx
/// <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.
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 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)
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.
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 Cut off search results after 60. Please refine your search. |