Desktop Functions: Smart Device Functions:
|
Search Results for "DISPLAY" in [All]mapi321: MAPIDetails
/// The MAPIDetails function displays a dialog box containing the details of a selected address list entry. Constants
public static readonly Guid GUID_DEVCLASS_DISPLAY = new Guid("{0x4d36e968, 0xe325, 0x11ce, {0xbf, 0xc1, 0x08, 0x00, 0x2b, 0xe1, 0x03, 0x18}}");
public static Guid GUID_DEVINTERFACE_DISPLAY_ADAPTER = new Guid("5B45201D-F2F2-4F3B-85BB-30FF1F953599");
public static Guid GUID_DISPLAY_DEVICE_ARRIVAL = new Guid("1CA05180-A699-450A-9A0C-DE4FBE3DDD89"); 5: LR_
/// This flag is useful for loading a bitmap without mapping it to the colors of the display device.
''' This flag is useful for loading a bitmap without mapping it to the colors of the display device. 6: MAPI
/// A logon dialog box should be displayed to prompt the user for logon information.
/// A dialog box should be displayed to prompt the user for recipients and other sending options.
/// was displayed.
/// was displayed. 7: PROPERTYKEY
public static PropertyKey PKEY_DeviceClass_NoDisplayClass = new PropertyKey(0x259abffc, 0x50a7, 0x47ce, 0xaf, 0x8, 0x68, 0xc9, 0xa7, 0xd7, 0x33, 0x66, 8); // DEVPROP_TYPE_BOOLEAN
public static PropertyKey PKEY_ItemFolderNameDisplay = new PropertyKey( 0xB725F130, 0x47EF, 0x101A, 0xA5, 0xF1, 0x02, 0x60, 0x8C, 0x9E, 0xEB, 0xAC, 2);
public static PropertyKey PKEY_ItemFolderPathDisplay = new PropertyKey( 0xE3E0584C, 0xB788, 0x4A5A, 0xBB, 0x20, 0x7F, 0x5A, 0x44, 0xC9, 0xAC, 0xDD, 6);
public static PropertyKey PKEY_ItemFolderPathDisplayNarrow = new PropertyKey( 0xDABD30ED, 0x0043, 0x4789, 0xA7, 0xF8, 0xD0, 0x13, 0xA4, 0x73, 0x66, 0x22, 100);
public static PropertyKey PKEY_ItemNameDisplay = new PropertyKey( 0xB725F130, 0x47EF, 0x101A, 0xA5, 0xF1, 0x02, 0x60, 0x8C, 0x9E, 0xEB, 0xAC, 10);
public static PropertyKey PKEY_ItemPathDisplay = new PropertyKey( 0xE3E0584C, 0xB788, 0x4A5A, 0xBB, 0x20, 0x7F, 0x5A, 0x44, 0xC9, 0xAC, 0xDD, 7);
public static PropertyKey PKEY_ItemPathDisplayNarrow = new PropertyKey( 0x28636AA6, 0x953D, 0x11D2, 0xB5, 0xD6, 0x00, 0xC0, 0x4F, 0xD9, 0x18, 0xD0, 8);
public static PropertyKey PKEY_DeviceDisplay_Address = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000033); // VT_LPWSTR or VT_LPWSTR | VT_VECTOR
public static PropertyKey PKEY_DeviceDisplay_DiscoveryMethod = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000034); // VT_LPWSTR | VT_VECTOR
public static PropertyKey PKEY_DeviceDisplay_IsEncrypted = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000035); // VT_BOOL
public static PropertyKey PKEY_DeviceDisplay_IsAuthenticated = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000036); // VT_BOOL
public static PropertyKey PKEY_DeviceDisplay_IsConnected = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000037); // VT_BOOL
public static PropertyKey PKEY_DeviceDisplay_IsPaired = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000038); // VT_BOOL
public static PropertyKey PKEY_DeviceDisplay_Icon = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000039); // VT_LPWSTR
public static PropertyKey PKEY_DeviceDisplay_Version = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000041); // VT_LPWSTR
public static PropertyKey PKEY_DeviceDisplay_Last_Seen = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000042); // VT_FIELTIME
public static PropertyKey PKEY_DeviceDisplay_Last_Connected = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000043); // VT_FILETIME
public static PropertyKey PKEY_DeviceDisplay_IsShowInDisconnectedState = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000044); // VT_BOOL
public static PropertyKey PKEY_DeviceDisplay_IsLocalMachine = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000046); // VT_BOOL
public static PropertyKey PKEY_DeviceDisplay_MetadataPath = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000047); // VT_LPWSTR
public static PropertyKey PKEY_DeviceDisplay_IsMetadataSearchInProgress = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000048); // VT_BOOL
public static PropertyKey PKEY_DeviceDisplay_MetadataChecksum = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000049); // VT_UI1 | VT_VECTOR
public static PropertyKey PKEY_DeviceDisplay_IsNotInterestingForDisplay = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x0000004A); // VT_BOOL
public static PropertyKey PKEY_DeviceDisplay_LaunchDeviceStageOnDeviceConnect = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x0000004C); // VT_BOOL
public static PropertyKey PKEY_DeviceDisplay_LaunchDeviceStageFromExplorer = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x0000004D); // VT_BOOL
public static PropertyKey PKEY_DeviceDisplay_BaselineExperienceId = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x0000004E); // VT_CLSID
public static PropertyKey PKEY_DeviceDisplay_IsDeviceUniquelyIdentifiable = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x0000004F); // VT_BOOL
public static PropertyKey PKEY_DeviceDisplay_AssociationArray = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000050); // VT_LPWSTR | VT_VECTOR
public static PropertyKey PKEY_DeviceDisplay_DeviceDescription1 = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000051); // VT_LPWSTR
public static PropertyKey PKEY_DeviceDisplay_DeviceDescription2 = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000052); // VT_LPWSTR
public static PropertyKey PKEY_DeviceDisplay_IsNotWorkingProperly = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000053); // VT_BOOL
public static PropertyKey PKEY_DeviceDisplay_IsSharedDevice = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000054); // VT_BOOL
public static PropertyKey PKEY_DeviceDisplay_IsNetworkDevice = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000055); // VT_BOOL
public static PropertyKey PKEY_DeviceDisplay_IsDefaultDevice = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000056); // VT_BOOL
public static PropertyKey PKEY_DeviceDisplay_MetadataCabinet = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000057); // VT_LPWSTR
public static PropertyKey PKEY_DeviceDisplay_RequiresPairingElevation = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000058); // VT_BOOL
public static PropertyKey PKEY_DeviceDisplay_ExperienceId = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000059); // VT_CLSID
public static PropertyKey PKEY_DeviceDisplay_Category = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x0000005A); // VT_LPWSTR | VT_VECTOR
public static PropertyKey PKEY_DeviceDisplay_Category_Desc_Singular = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x0000005B); // VT_LPWSTR | VT_VECTOR
public static PropertyKey PKEY_DeviceDisplay_Category_Desc_Plural = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x0000005C); // VT_LPWSTR | VT_VECTOR
public static PropertyKey PKEY_DeviceDisplay_Category_Icon = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x0000005D); // VT_LPWSTR
public static PropertyKey PKEY_DeviceDisplay_CategoryGroup_Desc = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x0000005E); // VT_LPWSTR | VT_VECTOR
public static PropertyKey PKEY_DeviceDisplay_CategoryGroup_Icon = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x0000005F); // VT_LPWSTR
public static PropertyKey PKEY_DeviceDisplay_PrimaryCategory = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000061); // VT_LPWSTR
public static PropertyKey PKEY_DeviceDisplay_UnpairUninstall = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000062); // VT_BOOL
public static PropertyKey PKEY_DeviceDisplay_RequiresUninstallElevation = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000063); // VT_BOOL
public static PropertyKey PKEY_DeviceDisplay_DeviceFunctionSubRank = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000064); // VT_UI4
public static PropertyKey PKEY_DeviceDisplay_AlwaysShowDeviceAsConnected = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000065); // VT_BOOL
public static PropertyKey PKEY_DeviceDisplay_FriendlyName = new PropertyKey(0x656A3BB3, 0xECC0, 0x43FD, 0x84, 0x77, 0x4A, 0xE0, 0x40, 0x4A, 0x96, 0xCD, 0x00003000); // VT_LPWSTR
public static PropertyKey PKEY_DeviceDisplay_Manufacturer = new PropertyKey(0x656A3BB3, 0xECC0, 0x43FD, 0x84, 0x77, 0x4A, 0xE0, 0x40, 0x4A, 0x96, 0xCD, 0x00002000); // VT_LPWSTR
public static PropertyKey PKEY_DeviceDisplay_ModelName = new PropertyKey(0x656A3BB3, 0xECC0, 0x43FD, 0x84, 0x77, 0x4A, 0xE0, 0x40, 0x4A, 0x96, 0xCD, 0x00002002); // VT_LPWSTR (localizable)
public static PropertyKey PKEY_DeviceDisplay_ModelNumber = new PropertyKey(0x656A3BB3, 0xECC0, 0x43FD, 0x84, 0x77, 0x4A, 0xE0, 0x40, 0x4A, 0x96, 0xCD, 0x00002003); // VT_LPWSTR
public static PropertyKey PKEY_DeviceDisplay_InstallInProgress = new PropertyKey(0x83da6326, 0x97a6, 0x4088, 0x94, 0x53, 0xa1, 0x92, 0x3f, 0x57, 0x3b, 0x29, 9); // DEVPROP_TYPE_BOOLEAN
public static PropertyKey PKEY_WNET_DisplayType = new PropertyKey(0xdebda43a, 0x37b3, 0x4383, 0x91, 0xE7, 0x44, 0x98, 0xda, 0x29, 0x95, 0xab, 0x00000003); // VT_UINT
public static PropertyKey PKEY_Hardware_DisplayAttribute = new PropertyKey(0x5EAF3EF2, 0xE0CA, 0x4598, 0xBF, 0x06, 0x71, 0xED, 0x1D, 0x9D, 0xD9, 0x53, 5);
public static PropertyKey WPD_OBJECT_HINT_LOCATION_DISPLAY_NAME = new PropertyKey(0xEF6B490D, 0x5CD8, 0x437A, 0xAF, 0xFC, 0xDA, 0x8B, 0x60, 0xEE, 0x4A, 0x3C, 25);
public static PropertyKey WPD_CONTACT_DISPLAY_NAME = new PropertyKey(0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B, 2);
public static PropertyKey PKEY_DisplayName = new PropertyKey("{B725F130-47EF-101A-A5F1-02608C9EEBAC}",10); 8: RESOURCE
const UInt32 RESOURCEDISPLAYTYPE_GENERIC = 0x00000000;
const UInt32 RESOURCEDISPLAYTYPE_DOMAIN = 0x00000001;
const UInt32 RESOURCEDISPLAYTYPE_SERVER = 0x00000002;
const UInt32 RESOURCEDISPLAYTYPE_SHARE = 0x00000003;
const UInt32 RESOURCEDISPLAYTYPE_FILE = 0x00000004;
const UInt32 RESOURCEDISPLAYTYPE_GROUP = 0x00000005;
const UInt32 RESOURCEDISPLAYTYPE_TREE = 0x0000000A; 9: ShellAPI
public const int SHGFI_DISPLAYNAME = 0x000000200; // get display name 10: ShellAPI
public const int SHGFI_DISPLAYNAME = 0x000000200; // get display name 11: WINERROR
/// The name is already in use as either a service name or a service display name.
/// The remote control of the console was terminated because the display mode was changed. Changing the display mode in a remote control session is not supported.
/// Schema update failed: duplicate LDAP display name.
public const int ERROR_DS_DUP_LDAP_DISPLAY_NAME = 8382;
/// The LDAP display name of the class or attribute contains non-ASCII characters.
public const int ERROR_DS_INVALID_LDAP_DISPLAY_NAME = 8479;
/// Message is too long; some of it had to be truncated before displaying
/// Message is too long; some of it had to be truncated before displaying 12: WM
private const UInt32 WM_DISPLAYCHANGE = 0x007E;
WM_DISPLAYCHANGE = &H7E
WM_DISPLAYCHANGE equ 07Eh shell32Consider 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. 14: ITaskbarList2 15: ITaskbarList3
/// 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> 16: SHBindToParent
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; 18: ShellAbout 19: ShellExecuteEx 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. 21: SHGetFileInfo
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. 22: SHGetImageList 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.
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 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)
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
/// A screen saver is displayed, the machine is locked, netapi32
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)); opengl32
GLU_DISPLAY_MODE = 100204, mqrt
//Something else went wrong. Display error, and then exit.
//Something else went wrong. Display error, and then exit. Interfaces32: IAutoComplete2
/// 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> 33: 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). 34: 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> 37: IOleContainer
// 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, 40: IProgressDialog
/// 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. 41: IPStore
[MarshalAs(UnmanagedType.LPWStr)] public string szDisplayName; 42: IQueryInfo 43: 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> 44: 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. 45: 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. 46: IUIContextualUI
// Sets the desired anchor point where ContextualUI should be displayed. 47: IUri
UInt32 GetDisplayUri([MarshalAs(UnmanagedType.BStr)][Out] out string sDisplayString);
DISPLAY_URI = 2, 48: 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> difxapi
installerInfo.pDisplayName = "My Package";
installerInfo.pDisplayName = "My Package"
installerInfo.pDisplayName = "My Package";
installerInfo.pDisplayName = "My Package" 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 53: 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; 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); 59: 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> Cut off search results after 60. Please refine your search. |