Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "INPUT" in [All]

Structures

.

->If there are any bytes in the input buffer, ReadFile returns immediately with the bytes in the buffer.

.

->If there are no bytes in the input buffer, ReadFile waits until a byte arrives and then returns immediately.

2: DCB
.

    internal sbyte EofChar;          // end of input character

.

    struct DELTA_INPUT

.

Structure DELTA_INPUT

.
Documentation
.

    Private Shared Function ConvertFileTimeToDateTime(input As FILETIME) As DateTime

.

    Dim longTime As ULong = (CType(input.dwHighDateTime, ULong) << 32) Or input.dwLowDateTime

.

    internal struct HARDWAREINPUT

.

Structure HARDWAREINPUT

.
Documentation
[HARDWAREINPUT] on MSDN
.
Documentation
.
Summary
.
Summary
.

   internal enum INPUT_TYPE : uint {

.

      INPUT_MOUSE = 0,

.

      INPUT_KEYBOARD = 1,

.

      INPUT_HARDWARE = 2

.

Structure INPUT_TYPE

.
Summary
Used to report input events in the console input buffer
.

    public struct INPUT_RECORD

.

  Public Structure INPUT_RECORD

.

  Public Enum InputEventTypes

.
Documentation
[INPUT_RECORD] on MSDN
.

   internal enum INPUT_TYPE : uint {

.

      INPUT_MOUSE = 0,

.

      INPUT_KEYBOARD = 1,

.

      INPUT_HARDWARE = 2

.

Structure INPUT_TYPE

.
Documentation
[INPUT_TYPE] on MSDN
.
Summary
The KBDLLHOOKSTRUCT structure contains information about a low-level keyboard input event
.
Summary
The KEYBDINPUT structure contains information about a simulated keyboard event. It's part of the INPUT structure, and is used for the SendInput function.
.

    internal struct KEYBDINPUT

.

Structure KEYBDINPUT

.

        ///Input Method Editor (IME) Kana mode

.

        ///The VK_PACKET key is the low word of a 32-bit Virtual Key value used for non-keyboard input methods. For more information,

.

        ///see Remark in KEYBDINPUT, SendInput, WM_KEYDOWN, and WM_KEYUP

.
Documentation
[KEYBDINPUT] on MSDN
.
Summary
The KEY_EVENT_RECORD structure is used to report keyboard input events in a console INPUT_RECORD structure.
.
Summary
The LASTINPUTINFO structure contains the time of the last input.
.

    struct LASTINPUTINFO

.

        public static readonly int SizeOf = Marshal.SizeOf(typeof(LASTINPUTINFO));

.

    Structure LASTINPUTINFO

.

   type LastInputInfo = {

.
Documentation
[LASTINPUTINFO] on MSDN
.

    internal struct MOUSEINPUT

.

Structure MOUSEINPUT

.
Documentation
[MOUSEINPUT] on MSDN
.
Summary
The MOUSE_EVENT_RECORD structure is used in a console INPUT_RECORD structure to report mouse input events.
.
Summary
The MSLLHOOKSTRUCT structure contains information about a low-level mouse input event.
.

    ''' You can specify an index on input to indicate the initial filter description and filter

.

    ''' When the dialog box returns, it sets these flags to indicate the user's input.

.
Summary
Structure containing raw input information from a mouse device.
.

Structure RAWINPUTMOUSE

.
Documentation
[RAWINPUTMOUSE] on MSDN
.
Summary
Structure containing device information for raw input.
.

/// <summary>Value type for raw input devices.</summary>

.

public struct RAWINPUTDEVICE

.

    /// <summary>Top level collection Usage page for the raw input device.</summary>

.

    /// <summary>Top level collection Usage for the raw input device. </summary>

.

    public RawInputDeviceFlags Flags;

.

''' <summary>Value type for raw input devices.</summary>

.

Public Structure RAWINPUTDEVICE

.

    ''' <summary>Top level collection Usage page for the raw input device.</summary>

.

    ''' <summary>Top level collection Usage for the raw input device. </summary>

.

    Public Flags As RawInputDeviceFlags

.

HIDUsagePage, HIDUsage, RawInputDeviceFlags

.
Documentation
[RAWINPUTDEVICE] on MSDN
.
Summary
Structure containing header information for raw input data.
.

    /// Value type for a raw input header.

.

    public struct RAWINPUTHEADER

.

        /// <summary>Type of device the input is coming from.</summary>

.

        public RawInputType Type;

.

    ''' Value type for a raw input header.

.

    Public Structure RawInputHeader

.

        ''' <summary>Type of device the input is coming from.</summary>

.

        Public Type As RawInputType

.
Documentation
[RAWINPUTHEADER] on MSDN
.

    /// Value type for raw input from a HID.

.

    public struct RAWINPUTHID

.

Structure RAWINPUTHID

.
Documentation
[RAWINPUTHID] on MSDN
.
Summary
.

    /// Value type for raw input from a keyboard.

.

    ''' Value type for raw input from a keyboard.

.
Summary
Structure containing raw input information from a mouse device.
.

Structure RAWINPUTMOUSE

.
Documentation
[RAWINPUTMOUSE] on MSDN
.
Summary
Input buffer to FSCTL_READ_USN_JOURNAL
.
Summary
Indicates the properties of a storage device or adapter to retrieve as the input buffer passed to the IOCTL_STORAGE_QUERY_PROPERTY control code.
.

  public uint dwBytesRecorded; // used for input only

.

Have a look at SendInput for an example of where these constants are used.

.

   // For use with the INPUT struct, see SendInput for an example

.

   public const int INPUT_MOUSE     = 0;

.

   public const int INPUT_KEYBOARD  = 1;

.

   public const int INPUT_HARDWARE  = 2;

.

    ' For use with the INPUT struct, see SendInput for an example

.

    INPUT_MOUSE = 0

.

    INPUT_KEYBOARD = 1

.

    INPUT_HARDWARE = 2

.

Buffer size events are placed in the input buffer when the console is in window-aware mode (ENABLE_WINDOW_INPUT).

.

        System.Runtime.InteropServices.ComTypes.FILETIME LastInputTime;

.

The rationale behind the change in the history for this is because is that he/she wanted to "unmarshal". However, in functions like WlanConnect(), it is used as an "input". So, it needs to be marshaled. Then I believe they should be IntPtr.

Constants

33: NERR_
.

        /// <summary> 2357 - Could not determine the type of input. </summary>

.

        /// <summary> 2662 - There is no DFS name whose entry path matches the input Entry Path. </summary>

.

    public static PropertyKey WPD_PROPERTY_MTP_EXT_OPERATION_CODE = new PropertyKey(0x4d545058, 0x1a2e, 0x4106, 0xa3, 0x57, 0x77, 0x1e, 0x8, 0x19, 0xfc, 0x56, 1001);    // [ VT_UI4 ] : Input param which identifies the vendor-extended MTP operation code

.

    public static PropertyKey WPD_PROPERTY_MTP_EXT_OPERATION_PARAMS = new PropertyKey(0x4d545058, 0x1a2e, 0x4106, 0xa3, 0x57, 0x77, 0x1e, 0x8, 0x19, 0xfc, 0x56, 1002);    // [ VT_UNKNOWN ] : Input IPortableDevicePropVariantCollection (of VT_UI4) specifying the params for the vendor operation

.

    public static PropertyKey WPD_PROPERTY_MTP_EXT_TRANSFER_TOTAL_DATA_SIZE = new PropertyKey(0x4d545058, 0x1a2e, 0x4106, 0xa3, 0x57, 0x77, 0x1e, 0x8, 0x19, 0xfc, 0x56, 1007);    // [ VT_UI8 ] : Input (when writing data) or output (when reading data) param which specifies total data size in bytes (excluding any overhead)

.

    public static PropertyKey WPD_PROPERTY_MTP_EXT_TRANSFER_NUM_BYTES_TO_READ = new PropertyKey(0x4d545058, 0x1a2e, 0x4106, 0xa3, 0x57, 0x77, 0x1e, 0x8, 0x19, 0xfc, 0x56, 1008); // [ VT_UI4 ] : Input param specifying the number of bytes to read from device in a series of read calls

.

    public static PropertyKey WPD_PROPERTY_MTP_EXT_TRANSFER_NUM_BYTES_TO_WRITE = new PropertyKey(0x4d545058, 0x1a2e, 0x4106, 0xa3, 0x57, 0x77, 0x1e, 0x8, 0x19, 0xfc, 0x56, 1010); // [ VT_UI4 ] : Input specifying the number of bytes to send to device in a series of write calls

.

    public const int SEE_MASK_WAITFORINPUTIDLE  = 0x02000000;

.

    public const int SEE_MASK_WAITFORINPUTIDLE  = 0x02000000;

.

        /// Name translation: Input name mapped to more than one output name.

.

        /// Name translation: Input name found, but not the associated output format.

.

        /// User input required for operation to succeed

.

        /// Common prefix is input moniker

.

        /// An outgoing call cannot be made since the application is dispatching an input-synchronous call.

.

        public const int RPC_E_CANTCALLOUT_ININPUTSYNCCALL = (int)(0x8001010D - 0x100000000);

.

        public const int OSS_MORE_INPUT = (int)(0x80093004 - 0x100000000);

38: WM
.
WM_CHARTOITEM 0x2F Sent by a list box with the LBS_WANTKEYBOARDINPUT style to its owner in response to a WM_CHAR message.
.
WM_GETDLGCODE 0x87 The WM_GETDLGCODE message is sent to the window procedure associated with a control. By default, the system handles all keyboard input to the control; the system interprets certain types of keyboard input as dialog box navigation keys. To override this default behavior, the control can respond to the WM_GETDLGCODE message to indicate the types of input it wants to process itself.
.
WM_INPUTLANGCHANGE 0x51 The WM_INPUTLANGCHANGE message is sent to the topmost affected window after an application's input language has been changed. You should make any application-specific settings and pass the message to the DefWindowProc function, which passes the message to all first-level child windows. These child windows can pass the message to DefWindowProc to have it pass the message to their child windows, and so on.
.
WM_INPUTLANGCHANGEREQUEST 0x50 The WM_INPUTLANGCHANGEREQUEST message is posted to the window with the focus when the user chooses a new input language, either with the hotkey (specified in the Keyboard control panel application) or from the indicator on the system taskbar. An application can accept the change by passing the message to the DefWindowProc function or reject the change (and prevent it from taking place) by returning immediately.
.
WM_QUEUESYNC 0x23 The WM_QUEUESYNC message is sent by a computer-based training (CBT) application to separate user-input messages from other messages sent through the WH_JOURNALPLAYBACK Hook procedure.
.
WM_SETCURSOR 0x20 The WM_SETCURSOR message is sent to a window if the mouse causes the cursor to move within a window and mouse input is not captured.
.
WM_VKEYTOITEM 0x2E Sent by a list box with the LBS_WANTKEYBOARDINPUT style to its owner in response to a WM_KEYDOWN message.
.

private const UInt32 WM_INPUTLANGCHANGE    = 0x0051;

.

private const UInt32 WM_INPUTLANGCHANGEREQUEST = 0x0050;

.

   WM_INPUTLANGCHANGE = &H51

.

   WM_INPUTLANGCHANGEREQUEST = &H50

.

WM_INPUTLANGCHANGEREQUEST equ 050h

.

WM_INPUTLANGCHANGE    equ 051h

aygshell

.
Summary
SHFullScreen is a simple boolean function for hiding or displaying CE and PocketPC desktop elements such as the TaskBar, the Start Icon and the SIP (Standard Input Panel).
.

Return the Input Panel button to its visible state.

.

Hide the Input Panel button.

.
Summary
Set the state of the input panel.
.

A request to display the input panel. Any pending SIP_DOWN requests are ignored.

.

A request to hide the input panel. When this value is used, a timer is set and the input panel is lowered only after the timer message is received. This approach prevents the input panel from flashing when one control requests SIP_DOWN and another control immediately requests SIP_UP.

.

forces the input panel to be hidden immediately, without setting a timer. If you want the input panel hidden and are sure there will be no SIP_UP requests — for example, because your application is a full-screen game — use this value.

.

tells the system to ignore any pending down requests. That is, if SHSipPreference is called with the SIP_DOWN flag, the system sets a timer and after the timer fires, the input panel is lowered. However, if you call SIP_UNCHANGED before the timer fires, then the input panel will stay in its current location.

hid

.
Summary
Removes any Input reports waiting in the buffer.
.

            result = HidP_GetValueCaps(HidP_Input, ref valueCaps[0], ref Capabilities.NumberInputValueCaps, preparsedDataPointer);

.

      UInt16 InputReportByteLength;

.

      UInt16 NumberInputButtonCaps;

.

      UInt16 NumberInputValueCaps;

.

      UInt16 NumberInputDataIndices;

.

InputReportByteLength

.

Specifies the maximum size, in bytes, of all the input reports (including the report ID, if report IDs are used, which is prepended to the report data).

.

NumberInputButtonCaps

.

Specifies the number of input HIDP_BUTTON_CAPS structures that HidP_GetButtonCaps returns.

.

NumberInputValueCaps

.

Specifies the number of input HIDP_VALUE_CAPS structures that HidP_GetValueCaps returns.

.

NumberInputDataIndices

.

Specifies the number of data indices assigned to buttons and values in all input reports.

.

Callers of the HIDClass support routines use the information provided in this structure when a called routine requires, as input, the size of a report type, the number of link collection nodes, the number of control capabilities, or the number of data indices.

urlmon

.
  • Use Marshal.StringToCoTaskMemUni() to prepare input parameters (IntPtr) declared to receive strings.

msvcrt

45: kbhit
.
Summary
Checks the console for keyboard input.
.

System.Console.KeyAvailable() - Gets a value indicating whether a key press is available in the input stream. (Nonblocking)

46: scanf
.
Summary
Read formatted data from standard input

setupapi

.

inputDeviceInstance, Caller-supplied device instance handle that is bound to the local machine.

.

inputDeviceInstance, Caller-supplied device instance handle that is bound to the local machine

.

    //Inputs:   pointer to hdev, SP_DEV_INFO, bool

.

    MidiDevName  = "inputwave"

.

    //Inputs:   pointer to hdev, SP_DEV_INFO, bool

imm32

.

        bool bSuccess = ImmGetConversionStatus(HIme, ref iMode, ref iSentence);  //Scan the input method info

msdelta

.

                      DELTA_INPUT GlobalOptions,

.

                      DELTA_INPUT GlobalOptions,

.

DELTA_INPUT

ntdll

.

    ProcessImageFileMapping, // q: HANDLE (input)

cards

.
Summary
Draws a card in with size dx, dy at position x, y on the input device context.
.
Summary
Draws a card in with size dx, dy at position x, y on the input device context.

kernel32

.

    // http://pinvoke.net/default.aspx/kernel32/FlushConsoleInputBuffer.html

.

    static extern bool FlushConsoleInputBuffer(

.

        IntPtr hConsoleInput

.

    // http://pinvoke.net/default.aspx/kernel32/GetNumberOfConsoleInputEvents.html

.

    static extern bool GetNumberOfConsoleInputEvents(

.

        IntPtr hConsoleInput,

.

    // http://pinvoke.net/default.aspx/kernel32/PeekConsoleInput.html

.

    static extern bool PeekConsoleInput(

.

        IntPtr hConsoleInput,

.

        [Out] INPUT_RECORD[] lpBuffer,

.

        IntPtr hConsoleInput,

.

    // http://pinvoke.net/default.aspx/kernel32/ReadConsoleInput.html

.

    [DllImport("kernel32.dll", EntryPoint = "ReadConsoleInputW", CharSet = CharSet.Unicode)]

.

    static extern bool ReadConsoleInput(

.

        IntPtr hConsoleInput,

.

        [Out] INPUT_RECORD[] lpBuffer,

.

    // http://pinvoke.net/default.aspx/kernel32/WriteConsoleInput.html

.

    static extern bool WriteConsoleInput(

.

        IntPtr hConsoleInput,

.

        INPUT_RECORD[] lpBuffer,

.

    public struct INPUT_RECORD

.

        uint nInBufferSize,                            // input buffer size

.

       Dim bBuffer As Byte       ' Input buffer.

.
Summary
.

static extern bool FlushConsoleInputBuffer(IntPtr hConsoleInput);

.

This code segment will allow you to grab the Console input buffer using CreateFileW and Flush the input using FlushConsoleInputBuffer

.

  private static extern bool FlushConsoleInputBuffer(IntPtr hConsoleInput);

.

  private static extern IntPtr GetInputBuffer(

.

  //C# method to flush console input

.

    //"CONIN$" will allow you to grab the input buffer regardless if it is being redirected.

.

    IntPtr inBuffer = GetInputBuffer("CONIN$", 0x40000000 | 0x80000000,

.

    //throw an error if the input buffer is not obtained

.

    FlushConsoleInputBuffer(inBuffer);

.
Documentation
[FlushConsoleInputBuffer] on MSDN

Cut off search results after 60. Please refine your search.


 
Access PInvoke.net directly from VS: