Desktop Functions: Smart Device Functions:
|
Search Results for "DISPLAY" in [All]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> 2: IDeskBand
''' 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). 3: IDeskBand2
''' 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.
public interface IParseDisplayName
int ParseDisplayName([In, MarshalAs(UnmanagedType.Interface)] IBindCtx pbc,
[In, MarshalAs(UnmanagedType.LPWStr)] string pszDisplayName,
/// 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. 10: IPStore
[MarshalAs(UnmanagedType.LPWStr)] public string szDisplayName; 11: IQueryInfo
12: IShellFolder
/// 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> 13: IShellView
/// 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. 14: ITfLangBarMgr 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. 15: IUIContextualUI
// Sets the desired anchor point where ContextualUI should be displayed. 16: IUri
UInt32 GetDisplayUri([MarshalAs(UnmanagedType.BStr)][Out] out string sDisplayString);
DISPLAY_URI = 2, 17: PROGDLG
/// <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> kernel3218: CommConfigDialog
19: ConsoleFunctions
// http://pinvoke.net/default.aspx/kernel32/GetConsoleDisplayMode.html
static extern bool GetConsoleDisplayMode(
// http://pinvoke.net/default.aspx/kernel32/SetConsoleDisplayMode.html
static extern bool SetConsoleDisplayMode( 20: DeviceIoControl
VideoQueryDisplayBrightness = (EFileDevice.Video << 16) | (0x0126 << 2) | EMethod.Buffered | (0 << 14),
VideoSetDisplayBrightness = (EFileDevice.Video << 16) | (0x0127 << 2) | EMethod.Buffered | (0 << 14)
DoGetLocaleInfo("", LCTYPE.LOCALE_SENGLISHDISPLAYNAME);
DoGetLocaleInfo(null, LCTYPE.LOCALE_SENGLISHDISPLAYNAME);
DoGetLocaleInfo("en-US", LCTYPE.LOCALE_SENGLISHDISPLAYNAME);
DoGetLocaleInfo("tlh-piqad", LCTYPE.LOCALE_SENGLISHDISPLAYNAME);
DoGetLocaleInfo("fj-FJ", LCTYPE.LOCALE_SENGLISHDISPLAYNAME);
DoGetLocaleInfo("fj", LCTYPE.LOCALE_SENGLISHDISPLAYNAME);
DoGetLocaleInfo("haw-US", LCTYPE.LOCALE_SENGLISHDISPLAYNAME);
DoGetLocaleInfo("hasdfasdf", LCTYPE.LOCALE_SENGLISHDISPLAYNAME);
LOCALE_SLOCALIZEDDISPLAYNAME =0x00000002, // localized name of locale, eg "German (Germany)" in UI language
LOCALE_SENGLISHDISPLAYNAME =0x00000072, // Display name (language + country usually) in English, eg "German (Germany)"
LOCALE_SNATIVEDISPLAYNAME =0x00000073, // Display name in native locale language, eg "Deutsch (Deutschland)
LOCALE_SLOCALIZEDLANGUAGENAME =0x0000006f, // Language Display Name for a language, eg "German" in UI language
DoGetLocaleInfo("", LCTYPE.LOCALE_SENGLISHDISPLAYNAME);
DoGetLocaleInfo(null, LCTYPE.LOCALE_SENGLISHDISPLAYNAME);
DoGetLocaleInfo("en-US", LCTYPE.LOCALE_SENGLISHDISPLAYNAME);
DoGetLocaleInfo("tlh-piqad", LCTYPE.LOCALE_SENGLISHDISPLAYNAME);
DoGetLocaleInfo("fj-FJ", LCTYPE.LOCALE_SENGLISHDISPLAYNAME);
DoGetLocaleInfo("fj", LCTYPE.LOCALE_SENGLISHDISPLAYNAME);
DoGetLocaleInfo("haw-US", LCTYPE.LOCALE_SENGLISHDISPLAYNAME);
DoGetLocaleInfo("hasdfasdf", LCTYPE.LOCALE_SENGLISHDISPLAYNAME);
LOCALE_SLOCALIZEDDISPLAYNAME =0x00000002, // localized name of locale, eg "German (Germany)" in UI language
LOCALE_SENGLISHDISPLAYNAME =0x00000072, // Display name (language + country usually) in English, eg "German (Germany)"
LOCALE_SNATIVEDISPLAYNAME =0x00000073, // Display name in native locale language, eg "Deutsch (Deutschland)
LOCALE_SLOCALIZEDLANGUAGENAME =0x0000006f, // Language Display Name for a language, eg "German" in UI language
/* Retrieves the display mode of the current console. */
internal static extern BOOL GetConsoleDisplayMode(
Declare Function GetConsoleDisplayMode Lib "kernel32.dll" (TODO) As TODO 24: GetLocaleInfo
LOCALE_SLOCALIZEDDISPLAYNAME =0x00000002, // localized name of locale, eg "German (Germany)" in UI language
LOCALE_SENGLISHDISPLAYNAME =0x00000072, // Display name (language + country usually) in English, eg "German (Germany)"
LOCALE_SNATIVEDISPLAYNAME =0x00000073, // Display name in native locale language, eg "Deutsch (Deutschland)
LOCALE_SLOCALIZEDLANGUAGENAME =0x0000006f, // Language Display Name for a language, eg "German" in UI language
result = LocaleFunctions.GetLocaleInfoEx("en-US", LCTYPE.LOCALE_SENGLISHDISPLAYNAME, data, 500); 25: GetLocaleInfoEx
LOCALE_SLOCALIZEDDISPLAYNAME =0x00000002, // localized name of locale, eg "German (Germany)" in UI language
LOCALE_SENGLISHDISPLAYNAME =0x00000072, // Display name (language + country usually) in English, eg "German (Germany)"
LOCALE_SNATIVEDISPLAYNAME =0x00000073, // Display name in native locale language, eg "Deutsch (Deutschland)
LOCALE_SLOCALIZEDLANGUAGENAME =0x0000006f, // Language Display Name for a language, eg "German" in UI language
result = LocaleFunctions.GetLocaleInfoEx("en-US", LCTYPE.LOCALE_SENGLISHDISPLAYNAME, data, 500); 26: GetLongPathName The short name can be used without problem to open files so the only time you would need to use GetLongPathName is if you want to display the path or want to display the file name.
static void DisplayUserPref()
static void DisplayUserPref() private void DisplayMemory() private void DisplayMemory() Sends a string to the debugger for display. Get DebugView here (http://www.sysinternals.com/Utilities/DebugView.html) to display the output of OutputDebugString.
static extern bool SetConsoleDisplayMode(
Declare Function SetConsoleDisplayMode Lib "kernel32.dll" (TODO) As TODO
// It's best to use SetColor for the purpose of choosing the 16 colors you want the console to be able to display, then use You can create this FileAttributes type to go in your class and be used with the alternative signature if you wish (or you can use the System.IO.FileAttributes as displayed in the below example): 35: SetLocalTime Note that on XP although in the background the time changes, the time displayed often does not change. I am yet to discover why and how to fix this
ES_DISPLAY_REQUIRED = 0x00000002,
Also note that this setting is per thread/application not global, so if you go to ES_CONTINUOUS and another app/thread is still setting ES_DISPLAY the display will be kept on.
SetThreadExecutionState(EXECUTION_STATE.ES_DISPLAY_REQUIRED | EXECUTION_STATE.ES_CONTINUOUS); You can download Mdbg at http://www.microsoft.com/downloads/details.aspx?familyid=38449a42-6b7a-4e28-80ce-c55645ab1310&displaylang=en and get the wrappers there. mqrt
//Something else went wrong. Display error, and then exit.
//Something else went wrong. Display error, and then exit. 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, _ comdlg3240: GetSaveFileName
advapi3242: CreateService
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;
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.
// 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" hhctrl47: HtmlHelp
HH_DISPLAY_TOPIC = 0,
HH_DISPLAY_TOC = 1,
HH_DISPLAY_INDEX = 2,
HH_DISPLAY_SEARCH = 3,
HH_DISPLAY_TEXT_POPUP = 0x000E,
HH_DISPLAY_TOPIC = 0
HH_DISPLAY_TOC = 1
HH_DISPLAY_INDEX = 2
HH_DISPLAY_SEARCH = 3
HTMLHelp(Nothing, filePath, HTMLHelpCommand.HH_DISPLAY_TOC, 0)
HtmlHelp(IntPtr.Zero, filePath, HTMLHelpCommand.HH_DISPLAY_TOC, 0)
HtmlHelp(IntPtr.Zero, null, HTMLHelpCommand.HH_DISPLAY_TEXT_POPUP, param); comctl32
/// Displays the drag image at the specified position within the window.
/// <param name="x">X-coordinate at which to display the drag image.
/// <param name="y">Y-coordinate at which to display the drag image.
''' Displays the drag image at the specified position within the window.
''' <param name="x">X-coordinate at which to display the drag image.
''' <param name="y">Y-coordinate at which to display the drag image.
/// <param name="x">X-coordinate at which to display the drag image.
/// <param name="y">Y-coordinate at which to display the drag image.
''' <param name="x">X-coordinate at which to display the drag image.
''' <param name="y">Y-coordinate at which to display the drag image. 50: TaskDialog
/// <summary>The TaskDialogIndirect function creates, displays, and operates a task dialog. The task dialog contains application-defined icons, messages, title, verification check box, command links, push buttons, and radio buttons. This function can register a callback function to receive notification messages.</summary>
/// <param name="taskConfig">A pointer to a <see cref="TaskDialogConfig"/> structure that contains information used to display the task dialog.</param>
/// <summary>The TaskDialogIndirect function creates, displays, and operates a task dialog. The task dialog contains application-defined icons, messages, title, verification check box, command links, push buttons, and radio buttons. This function can register a callback function to receive notification messages.</summary>
/// <param name="taskConfig">A pointer to a <see cref="TaskDialogConfig"/> structure that contains information used to display the task dialog.</param> 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) 54: 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. 55: GetDC
56: 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. 57: SetWindowPos
/// <summary>Displays the window.</summary> 58: SipShowIM
59: TrackPopupMenuEx
credui
''' 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') Cut off search results after 60. Please refine your search. |