Desktop Functions: Smart Device Functions:
|
Search Results for "DISPLAY" in [All]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"); 4: 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. 5: 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. 6: 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); 7: 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; 8: ShellAPI
public const int SHGFI_DISPLAYNAME = 0x000000200; // get display name 9: ShellAPI
public const int SHGFI_DISPLAYNAME = 0x000000200; // get display name 10: 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 11: WM
private const UInt32 WM_DISPLAYCHANGE = 0x007E;
WM_DISPLAYCHANGE = &H7E
WM_DISPLAYCHANGE equ 07Eh mqrt
//Something else went wrong. Display error, and then exit.
//Something else went wrong. Display error, and then exit. odbccp32Using 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 advapi3215: 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" msi20: INSTALLMESSAGE
INSTALLMESSAGE_SHOWDIALOG = 0x0E000000 // sent prior to display or authored dialog or wizard 21: INSTALLUILEVEL
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 22: 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. 24: 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 ole3225: CLIPFORMAT
CF_OWNERDISPLAY = 0x80, 26: CoGetObject
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); 28: OleCreate
/// Show the property page. Some property pages cannot be displayed rasapi3229: RasDial
30: RasDialDlg
wininet31: InternetConnect An application that needs to display multiline text information sent by an FTP server can use InternetGetLastResponseInfo to retrieve the text. 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) 34: 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. 35: GetDC
36: 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. 37: SetWindowPos
/// <summary>Displays the window.</summary> 38: SipShowIM
39: TrackPopupMenuEx
secur3240: GetUserNameEx
/// 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.... 42: TranslateName
NameDisplay = 3, 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)); Structures44: BROWSEINFO
public IntPtr pszDisplayName;
<MarshalAs(UnmanagedType.LPTStr)>Public pszDisplayName As String
pszDisplayName As String 45: 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 47: DESKBANDINFO
/// The band object is displayed with a sunken appearance.
/// The band will be displayed with the background color specified in crBkgnd. 48: 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; 49: DISPLAY
public struct DISPLAY_DEVICE
public DisplayDeviceStateFlags StateFlags;
Public Structure DISPLAY_DEVICE
Public StateFlags As DisplayDeviceStateFlags Used with EnumDisplayDevices 50: 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; 54: 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. 55: MAPI
/// Pointer to the display name of the message recipient or sender.
''' Pointer to the display name of the message recipient or sender. 56: NETRESOURCE
public ResourceDisplayType dwDisplayType;
Public dwDisplayType As ResourceDisplayType ResourceScope, ResourceType, ResourceDisplayType, ResourceUsage 57: NET_DISPLAY_USER
58: 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 59: 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. 60: 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(); Cut off search results after 60. Please refine your search. |