Desktop Functions: Smart Device Functions:
|
Search Results for "select" in [All]winmmUse "Auto" in the Declare statement to have the correct character set selected automatically. shell32
/// Selects a portion of a window's client area to display as that window's thumbnail in the taskbar.
/// <param name="prcClip">A pointer to a RECT structure that specifies a selection within the window's 3: PickIconDlg Dim iconindex As Integer ' Will store the index of the selected icon MessageBox.Show("Result: " + retval.ToString() + vbCrLf + "Selected Icon Index: " + iconindex.ToString())
Select Case dockStyle
End Select
Select Case abd.uEdge
End Select
Select Case state
End Select
Select Case position
End Select
public const int BFFM_SETSELECTIONA = WM_USER + 102;
public const int BFFM_SETSELECTIONW = WM_USER + 103;
//Win32.SendMessage(new HandleRef(null, hWnd), BFFM_SETSELECTIONA, 1, lpData);
// Use BFFM_SETSELECTIONW if passing a Unicode string, i.e. native CLR Strings.
SendMessage(new HandleRef(null, hWnd), BFFM_SETSELECTIONW, 1, _initialPath);
public string SelectFolder(string caption, string initialPath, IntPtr parentHandle)
"null" - Specifies that the operation is the default for the selected file type.
/// <summary>show icon in selected state</summary>
Selected = 0x000010000, 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.
SELECTED = &H10000
public static extern int SHOpenFolderAndSelectItems(IntPtr pidlFolder, uint cidl, [In, MarshalAs(UnmanagedType.LPArray)] IntPtr[] apidl, uint dwFlags);
Public Shared Function SHOpenFolderAndSelectItems(ByVal pidlFolder As IntPtr, ByVal cidl As UInteger, <MarshalAs(UnmanagedType.LPArray)> ByVal apidl() As IntPtr, ByVal dwFlags As UInteger) As Integer Process.Start("explorer.exe", "\"/select,c:\\windows\\system32\\calc.exe\"");
public static extern int SHOpenFolderAndSelectItems(IntPtr pidlFolder, uint cidl, [In, MarshalAs(UnmanagedType.LPArray)] IntPtr[] apidl, uint dwFlags);
public static void OpenFolderAndSelectItem(string folderPath, string file)
// Open the folder without the file selected if we can't find the file
SHOpenFolderAndSelectItems(nativeFolder, (uint)fileArray.Length, fileArray, 0);
If ExplorerSelectItems.SetFolder("c:\windows\system32\") Then
ExplorerSelectItems.AddFile("calc.exe")
ExplorerSelectItems.AddFile("cacls.exe")
ExplorerSelectItems.AddFile("cabview.dll")
ExplorerSelectItems.AddFile("cabinet.dll")
ExplorerSelectItems.Commit()
Public NotInheritable Class ExplorerSelectItems
''' Sets the parent directory containing the files that will be selected.
''' Adds a single file to be selected.
''' Opens and selects all files. In addition releases all resources.
SafeNativeMethods.SHOpenFolderAndSelectItems(pidlFolder, pidl.Length, pidl, 0)
Public Shared Function SHOpenFolderAndSelectItems(ByVal pidlFolder As IntPtr, ByVal cidl As UInteger, <MarshalAs(UnmanagedType.LPArray)> ByVal apidl() As IntPtr, ByVal dwFlags As UInteger) As Integer 11: SHRunFileDialog
/// No default item selected user3212: BlockInput Useful to create a temporary block in input for sensitive GUI operations. For instance when manually activating a screen saver from within a GUI function, a short blocking delay will prevent the user mouse movements directly after selection from accidently escaping the screen saver. 13: CreatePopupMenu
uint nselected = Helpers.DragQueryFile(m_hDrop, 0xffffffff, null, 0);
if (nselected == 1) 14: CreateWindowEx
/// <param name="x">Specifies the initial horizontal position of the window. For an overlapped or pop-up window, the x parameter is the initial x-coordinate of the window's upper-left corner, in screen coordinates. For a child window, x is the x-coordinate of the upper-left corner of the window relative to the upper-left corner of the parent window's client area. If x is set to CW_USEDEFAULT, the system selects the default position for the window's upper-left corner and ignores the y parameter. CW_USEDEFAULT is valid only for overlapped windows; if it is specified for a pop-up or child window, the x and y parameters are set to zero.</param>
/// <param name="nWidth">Specifies the width, in device units, of the window. For overlapped windows, nWidth is the window's width, in screen coordinates, or CW_USEDEFAULT. If nWidth is CW_USEDEFAULT, the system selects a default width and height for the window; the default width extends from the initial x-coordinates to the right edge of the screen; the default height extends from the initial y-coordinate to the top of the icon area. CW_USEDEFAULT is valid only for overlapped windows; if CW_USEDEFAULT is specified for a pop-up or child window, the nWidth and nHeight parameter are set to zero.</param>
''' <param name="x">Specifies the initial horizontal position of the window. For an overlapped or pop-up window, the x parameter is the initial x-coordinate of the window's upper-left corner, in screen coordinates. For a child window, x is the x-coordinate of the upper-left corner of the window relative to the upper-left corner of the parent window's client area. If x is set to CW_USEDEFAULT, the system selects the default position for the window's upper-left corner and ignores the y parameter. CW_USEDEFAULT is valid only for overlapped windows; if it is specified for a pop-up or child window, the x and y parameters are set to zero.</param>
''' <param name="nWidth">Specifies the width, in device units, of the window. For overlapped windows, nWidth is the window's width, in screen coordinates, or CW_USEDEFAULT. If nWidth is CW_USEDEFAULT, the system selects a default width and height for the window; the default width extends from the initial x-coordinates to the right edge of the screen; the default height extends from the initial y-coordinate to the top of the icon area. CW_USEDEFAULT is valid only for overlapped windows; if CW_USEDEFAULT is specified for a pop-up or child window, the nWidth and nHeight parameter are set to zero.</param> 16: DlgDirSelectEx 17: EnableMenuItem
internal const UInt32 MF_MOUSESELECT =0x00008000; 18: GetClipboardData
/// Gets the data on the clipboard in the format specified by the selected item of the specified listbox.
uint SelectedFormat = GetSelectedClipboardFormat(ListBox);
if (SelectedFormat != 0)
//Get pointer to clipboard data in the selected format
IntPtr ClipboardDataPointer = GetClipboardData(SelectedFormat); 19: GetKeyboardState
VK_SELECT = 0x29,
VK_LAUNCH_MEDIA_SELECT = 0xB5, 20: GetKeyState
VK_SELECT = 0x29,
VK_LAUNCH_MEDIA_SELECT= 0xB5,
Me.SelectionLength = 1 21: InvertRect
If Selection.poStatus <> Selection.EnumSelection.NoSelection Then
Dim loSelected As RECT
loSelected.Left = Selection.poArea.Left
loSelected.Top = Selection.poArea.Top
loSelected.Right = Selection.poArea.Right
loSelected.Bottom = Selection.poArea.Bottom
InvertRect(hdc.ToInt32, loSelected) 22: MessageBeep With the enum beepType you get intellisense when you type "beep." and you can then select the kind of beep you want. For dylan.NET, use the fields containing the integer values inside the WinSnd class of dnu.dll at http://dylandotnetapps.codeplex.com/
Select Case MsgWaitForMultipleObjects(1, arrHandles, 1, waitInterval, QS_ALLEVENTS)
End Select
Select Case MsgWaitForMultipleObjects(1, arrHandles, 1, waitInterval, QS_ALLEVENTS)
End Select
// New power scheme selected. 26: SetWinEventHook const uint EVENT_OBJECT_SELECTION = 0x8006; // hwnd ID idChild is selected item (if only one), or idChild is OBJID_WINDOW if complex const uint EVENT_OBJECT_SELECTIONADD = 0x8007; // hwnd ID idChild is item added const uint EVENT_OBJECT_SELECTIONREMOVE = 0x8008; // hwnd ID idChild is item removed const uint EVENT_OBJECT_SELECTIONWITHIN = 0x8009; // hwnd ID idChild is parent of changed selected items const uint EVENT_OBJECT_TEXTSELECTIONCHANGED = 0x8014; // hwnd ID idChild is item w? test selection change Now you can use the font info however you want. Here's how to return a GDI+ Font corresponding to the MessageBox font selected by the user. Note that the height is always negative and always returns "world" units. 28: UnregisterHotKey
Select Case m.Msg
End Select
oldBitmap = Win32.SelectObject(memDc, hBitmap);
Win32.SelectObject(memDc, oldBitmap);
public extern static IntPtr SelectObject(IntPtr hDC, IntPtr hObject); 30: VirtualKeyCodes Public Const VK_SELECT = &H29
public const uint VK_SELECT = 0x29;
public const uint VK_LAUNCH_MEDIA_SELECT = 0xB5; 31: VkKeyScan
foreach(var culture in (new string[]{"he-IL", "en-US", "en-IE"}).Select(code => CultureInfo.GetCultureInfo(code))) 32: VkKeyScanEx
foreach(var culture in (new string[]{"he-IL", "en-US", "en-IE"}).Select(code => CultureInfo.GetCultureInfo(code))) Constants33: CB_
CB_SELECTSTRING = 0x014D,
public const int CB_SELECTSTRING = 0x014D;
CB_SELECTSTRING = &H14D
Public Const CB_SELECTSTRING As Integer = &H14D 34: EMR_
EMR_SELECTOBJECT = 37,
EMR_SELECTPALETTE = 48,
EMR_SELECTCLIPPATH = 67,
EMR_EXTSELECTCLIPRGN = 75, 35: MAPI
/// to select between two different dialog boxes for logon. 36: PROPERTYKEY
public static PropertyKey SENSOR_DATA_TYPE_GPS_SELECTION_MODE = new PropertyKey(0X055C74D8, 0XCA6F, 0X47D6, 0X95, 0XC6, 0X1E, 0XD3, 0X63, 0X7A, 0X0F, 0XF4, 31); //[VT_I4] 37: ShellAPI
public const int NIN_SELECT = (WM_USER + 0);
public const int NIN_KEYSELECT = (NIN_SELECT | NINF_KEY);
public const int SHGFI_SELECTED = 0x000010000; // show icon in selected state 38: ShellAPI
public const int NIN_SELECT = (WM_USER + 0);
public const int NIN_KEYSELECT = (NIN_SELECT | NINF_KEY);
public const int SHGFI_SELECTED = 0x000010000; // show icon in selected state 39: TCM_ public const UInt32 TCM_DESELECTALL = (TCM_FIRST + 50);
// (void)SNDMSG((hwnd), TCM_DESELECTALL, fExcludeFocus, 0)
Private Const TCM_DESELECTALL As UInt32 = (TCM_FIRST + 50)
' (void)SNDMSG((hwnd), TCM_DESELECTALL, fExcludeFocus, 0) 40: WA_
'''the SetActiveWindow function or by use of the keyboard interface to select the window).
'''the SetActiveWindow function or by use of the keyboard interface to select the window). 41: WINERROR
/// Invalid message for single-selection list box.
/// There is no driver selected for the device information set or element.
public const int SPAPI_E_NO_DRIVER_SELECTED = (int)(0x800F0203 - 0x100000000);
/// There is no device information element currently selected for this device information set.
public const int SPAPI_E_NO_DEVICE_SELECTED = (int)(0x800F0211 - 0x100000000);
/// The machine selected for remote communication is not available at this time.
/// The driver selected for this device does not support Windows XP.
/// The driver selected for this device does not support Windows. 42: WM
private const UInt32 WM_IME_SELECT = 0x0285;
private const UInt32 WM_MENUSELECT = 0x011F;
WM_IME_SELECT = &H285
WM_MENUSELECT = &H11F
WM_MENUSELECT equ 11Fh
WM_IME_SELECT equ 285h advapi32
ManagementObjectCollection UserSearch = new ManagementObjectSearcher("Select * From Win32_LogicalFileSecuritySetting Where Path='" + FromPath + "'").Get();
new ManagementObjectSearcher("Select * From Win32_Account Where Name = '" + Account + "'").Get(); 44: RegSetValueEx
Select Case Value.GetType.ToString
End Select
Select Case RegType
End Select
Dim dirInfo As DirectoryInfo = New DirectoryInfo(mainFolderBrowserDialog.SelectedPath)
path = mainFolderBrowserDialog.SelectedPath dhcpsapi
string strSQL = "select * from IP_to_Name where IP_address = '" + scope + "'"; iphlpapi47: GetBestInterface
select thisAddress).FirstOrDefault();
select thisInterface).SingleOrDefault();
select thisInterface).SingleOrDefault(); 48: GetIpNetTable
Return String.Join(":", (From z As Byte In mac.GetAddressBytes Select z.ToString("X2")).ToArray())
Return String.Join(":", (From z As Byte In mac.GetAddressBytes Select z.ToString("x2")).ToArray()) netapi3249: DsGetDcName Pointer to a PDOMAIN_CONTROLLER_INFO value that receives a pointer to a DOMAIN_CONTROLLER_INFO structure that contains data about the domain controller selected. This structure is allocated by DsGetDcName. The caller must free the structure using the NetApiBufferFree function when it is no longer required. 50: NetShareGetInfo
Select Case Result
End Select 51: NetWkstaUserEnum If you want to find the user logged in to the workstation, consider instead a WMI query ("select UserName from Win32_ComputerSystem"), which has certain advantages (runs faster, less ambigious results, doesn't require Interop if using .Net 2.0 System.Management namespace, etc.) cfgmgr3252: CM_Setup_DevNode flags, Flags that select the mode of restarting. coredll53: CreateEvent
Select Case val
End Select
Select Case val
End Select 57: DisableGestures
public const UInt64 TGF_GID_SELECT = 0x0000000000004000;
public const UInt64 TGF_GID_DOUBLESELECT = 0x0000000000008000; 58: EnableGestures
public const UInt64 TGF_GID_SELECT = 0x0000000000004000;
public const UInt64 TGF_GID_DOUBLESELECT = 0x0000000000008000; 59: SelectObject
[DllImport ("coredll.dll", EntryPoint="SelectObject", SetLastError=true)]
private static extern IntPtr SelectObjectCE(IntPtr hdc, IntPtr hgdiobj);
Declare Function SelectObject Lib "coredll.dll" (TODO) As TODO 60: SetSysColors
/// 13 COLOR_HIGHLIGHT Color of an item selected in a control.
/// 14 COLOR_HIGHLIGHTTEXT Color of the text of an item selected in a control. Cut off search results after 60. Please refine your search. |