Desktop Functions: Smart Device Functions:
|
Search Results for "select" in [All]kernel32
// http://pinvoke.net/default.aspx/kernel32/GetConsoleSelectionInfo.html
static extern bool GetConsoleSelectionInfo(
CONSOLE_SELECTION_INFO ConsoleSelectionInfo
public struct CONSOLE_SELECTION_INFO
COORD SelectionAnchor;
SMALL_RECT Selection;
const uint CONSOLE_MOUSE_SELECTION = 0x0004; //Selecting with the mouse
const uint CONSOLE_NO_SELECTION = 0x0000; //No selection
const uint CONSOLE_SELECTION_IN_PROGRESS = 0x0001; //Selection has begun
const uint CONSOLE_SELECTION_NOT_EMPTY = 0x0002; //Selection rectangle is not empty FileTimeToLocalFileTime converts a time from UTC time (also known as Greenwich Mean Time) to "local time" (inside the computer's selected time zone). The source and target times are stored in FILETIME structures. The function returns 1 if successful, or 0 if an error occurs.FileTimeToLocalFileTime Converts a UTC file time to a local file time. System.DateTime.ToFileTime FileTimeToLocalFileTime Converts a UTC file time to a local file time. System.DateTime.ToLocalTime
Get-ChildItem $env:windir\sysnative -filter *.exe | Get-BinaryType -ErrorAction SilentlyContinue -passthrough | select Name,BinaryType Here's a method that uses this method in conjunction with GetCurrentConsoleFont to return the size of the currently selected console font.
static extern bool GetConsoleSelectionInfo(
CONSOLE_SELECTION_INFO ConsoleSelectionInfo
Declare Function GetConsoleSelectionInfo Lib "kernel32.dll" (TODO) As TODO
public struct CONSOLE_SELECTION_INFO
COORD SelectionAnchor;
SMALL_RECT Selection;
const uint CONSOLE_MOUSE_SELECTION = 0x0004; //Selecting with the mouse
const uint CONSOLE_NO_SELECTION = 0x0000; //No selection
const uint CONSOLE_SELECTION_IN_PROGRESS = 0x0001; //Selection has begun
const uint CONSOLE_SELECTION_NOT_EMPTY = 0x0002; //Selection rectangle is not empty
currencyFormat.uiLeadingZero = Convert.ToUInt32(cboLeadingZero.SelectedIndex);
currencyFormat.uiNegativeOrder = Convert.ToUInt32(cboNegativeOrder.SelectedIndex);
currencyFormat.uiPositiveOrder = Convert.ToUInt32(cboPositiveOrder.SelectedIndex); This can be very useful while creating the Installers e.g. Wix. User can create custom actions to determine the Windows OS languages and then select the install language.
public uint ErrorSelector;
public uint DataSelector;
public ushort ErrorSelector;
public ushort DataSelector;
static extern bool GetThreadSelectorEntry (
uint dwSelector,
out LDT_ENTRY lpSelectorEntry
if ( !GetThreadSelectorEntry( GetCurrentThread(), cntx.SegDs, out ldt ) )
/// <para>To select the correct day in the month, set the wYear member to zero, the wHour and wMinute members to the transition time, the wDayOfWeek member to the appropriate weekday, and the wDay member to indicate the occurence of the day of the week within the month (first through fifth).</para>
/// <para>To select the correct day in the month, set the wYear member to zero, the wHour and wMinute members to the transition time, the wDayOfWeek member to the appropriate weekday, and the wDay member to indicate the occurence of the day of the week within the month (first through fifth).</para> 11: MoveMemory
Select Case nColors
End Select
Although Away Mode is supported on any Windows Vista PC, the mode must be explicitly allowed by the current power policy. The Allow Away Mode power setting enables the user to selectively allow Away Mode on one or more power plans or individually for AC and DC (on battery) power states.
/// <para>To select the correct day in the month, set the wYear member to zero, the wHour and wMinute members to the transition time, the wDayOfWeek member to the appropriate weekday, and the wDay member to indicate the occurence of the day of the week within the month (first through fifth).</para>
/// <para>To select the correct day in the month, set the wYear member to zero, the wHour and wMinute members to the transition time, the wDayOfWeek member to the appropriate weekday, and the wDay member to indicate the occurence of the day of the week within the month (first through fifth).</para>
UInt32 ErrorSelector;
UInt32 DataSelector; wininet
dwZone = cmbZone1.SelectedIndex
dwParty = cmbParty1.SelectedIndex
dwZone = cmbZone2.SelectedIndex
dwParty = cmbParty2.SelectedIndex
sTmp = cmbSetTemplate.SelectedItem opengl32
GL_SELECTION_BUFFER_POINTER = 0x0DF3,
GL_SELECTION_BUFFER_SIZE = 0x0DF4,
GL_SELECT = 0x1C02,
public static extern void glSelectBuffer(int size, uint[] buffer);
_OldFontH = Gdi.SelectObject(dc, fontH);
IntPtr disposeFontH = Gdi.SelectObject(dc, _OldFontH); wtsapi32
Select Case State
End Select dhcpsapi
string strSQL = "select * from IP_to_Name where IP_address = '" + scope + "'"; coredll21: CreateEvent
Select Case val
End Select
Select Case val
End Select 25: DisableGestures
public const UInt64 TGF_GID_SELECT = 0x0000000000004000;
public const UInt64 TGF_GID_DOUBLESELECT = 0x0000000000008000; 26: EnableGestures
public const UInt64 TGF_GID_SELECT = 0x0000000000004000;
public const UInt64 TGF_GID_DOUBLESELECT = 0x0000000000008000; 27: 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 28: 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. 29: TrackPopupMenuEx Use TrackPopupMenuEx with the TPM_RETURNCMD flag to return the ID of the selected Menu Item. comctl3230: TaskDialog To Run the VistaBridge Project in Visual Studio 2008, you must re-create the Application Manifest file. To do this, open the manifest already in the project, copy all of the text from it to notepad and then delete the manifest file from the project. Next, right click on the "VistaBridgeDemoApp" project and select Add New Item. Choose an Application Manifest File and MAKE SURE you name it as follows: VistaBridgeDemoApp.exe.manifest and then press enter. Now double click on the new manifest file, select all the text and replace it with the text that was copied out of the old manifest. You can now Build the solution and the Demo App should now operate properly. If you still have problems, try closing Visual Studio and then Re-opening it. To Run the VistaBridge Project in Visual Studio 2008, you must re-create the Application Manifest file. To do this, open the manifest already in the project, copy all of the text from it to notepad and then delete the manifest file from the project. Next, right click on the "VistaBridgeDemoApp" project and select Add New Item. Choose an Application Manifest File and MAKE SURE you name it as follows: VistaBridgeDemoApp.exe.manifest and then press enter. Now double click on the new manifest file, select all the text and replace it with the text that was copied out of the old manifest. You can now Build the solution and the Demo App should now operate properly. If you still have problems, try closing Visual Studio and then Re-opening it. winmmUse "Auto" in the Declare statement to have the correct character set selected automatically. misc33: Comments I need to use this call to permit the user to browse the network neighborhood and select a specific computer system, and the .Net implementation of the wrapper for this does not seem to support the BIG_BROWSEFORCOMPUTER option! If anyone has figured this out, could they please post the information to this web site and let me know at MAILTO:kendrhyd@sympatico.ca? Thanks.
One thing that I would like to see is a page that lets you select one or more signatures and have it generate a C# file that contains those signatures. -- jeff@consultutah.com comdlg3235: ChooseFont
CF_SELECTSCRIPT = 0x00400000, 36: GetOpenFileName
Console.WriteLine("Selected file with full path: {0}", ofn.file)
Console.WriteLine("Selected file name: {0}", ofn.fileTitle)
#define OFN_ALLOWMULTISELECT 0x200 37: PrintDlg
Private m_bAllowSelection As Boolean = False
_pdex.Flags = PRINTFLAG.PD_NOSELECTION Or PRINTFLAG.PD_NOPAGENUMS
Public Const PD_SELECTION As Int32 = 1
Public Const PD_NOSELECTION As Int32 = 4 38: PrintDlgEx
Private m_bAllowSelection As Boolean = False
_pdex.Flags = PRINTFLAG.PD_NOSELECTION Or PRINTFLAG.PD_NOPAGENUMS
Public Const PD_SELECTION As Int32 = 1
Public Const PD_NOSELECTION As Int32 = 4 difxapi39: DIFLOGCALLBACK
Select Case EventType
End Select
Select Case EventType
End Select cardsuser3247: 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. 48: CreatePopupMenu
uint nselected = Helpers.DragQueryFile(m_hDrop, 0xffffffff, null, 0);
if (nselected == 1) 49: 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> 51: DlgDirSelectEx 52: EnableMenuItem
internal const UInt32 MF_MOUSESELECT =0x00008000; 53: 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); 54: GetKeyboardState
VK_SELECT = 0x29,
VK_LAUNCH_MEDIA_SELECT = 0xB5, 55: GetKeyState
VK_SELECT = 0x29,
VK_LAUNCH_MEDIA_SELECT= 0xB5,
Me.SelectionLength = 1 56: 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) 57: 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. Cut off search results after 60. Please refine your search. |