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]

oleacc

.

If you are calling this API from .NET Framework version 2.0 or higher, be sure to put the STAThread attribute on your main(), or manually set the ApartmentState property of the thread you are calling this from to ApartmentStates.STA, or you will get an error code of 0x8001010D which is a “cannot call out exception because of an input synchronous call”.

imm32

.

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

userenv

.

    /// <param name="env">The input environment</param>

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.

credui

.

    ''' <param name="ulInAuthBufferSize">Size of the input authentication buffer.</param>

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
.

    /* Retrieves the input code page used by the console associated with the calling process.

.

        A console uses its input code page to translate keyboard input into the corresponding character value. */

.

System.Console.InputEncoding.CodePage

.

    ENABLE_PROCESSED_INPUT = &H1

.

    ENABLE_LINE_INPUT = &H2

.

    ENABLE_ECHO_INPUT = &H4

.

    ENABLE_WINDOW_INPUT = &H8

.

    ENABLE_MOUSE_INPUT = &H10

.

    /// <returns>The long path.  Null or empty if the input is null or empty.</returns>

.

/// The ToLongName function retrieves the long file name form of a specified short input path

.

/// The ToLongPathNameToShortPathName function retrieves the short path form of a specified long input path

.

      public IntPtr hStdInput;

.

const int STD_INPUT_HANDLE = -10;

.
Summary
.

       /* Reads data from the specified console input buffer without removing it from the buffer. */

.

    [DllImport("kernel32.dll", EntryPoint = "PeekConsoleInputW", CharSet = CharSet.Unicode, SetLastError = true)]

.

    internal static extern BOOL PeekConsoleInput(

.

        IntPtr hConsoleInput,

.

        [MarshalAs(UnmanagedType.LPArray), Out] INPUT_RECORD[] lpBuffer,

.
Documentation
[PeekConsoleInput] on MSDN
.
Summary
.

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

.

static extern bool ReadConsoleInput(

.

        IntPtr hConsoleInput,

.

        [Out] INPUT_RECORD [] lpBuffer,

.
  • INPUT_RECORD
.
Documentation
[ReadConsoleInput] on MSDN
.

        ENABLE_PROCESSED_INPUT = 0x0001,

.

        ENABLE_LINE_INPUT = 0x0002,

.

        ENABLE_ECHO_INPUT = 0x0004,

.

        ENABLE_WINDOW_INPUT = 0x0008,

.

        ENABLE_MOUSE_INPUT = 0x0010,

.

    private enum ConsoleInputModes : uint

.

        ENABLE_PROCESSED_INPUT = 0x0001,

.

        ENABLE_LINE_INPUT = 0x0002,

.

        ENABLE_ECHO_INPUT = 0x0004,

.

        ENABLE_WINDOW_INPUT = 0x0008,

.

        ENABLE_MOUSE_INPUT = 0x0010,

.

    ENABLE_PROCESSED_INPUT = &H1

.

    ENABLE_LINE_INPUT = &H2

.

    ENABLE_ECHO_INPUT = &H4

.

    ENABLE_WINDOW_INPUT = &H8

.

    ENABLE_MOUSE_INPUT = &H10

.
Summary
.

    /* Writes data directly to the console input buffer. */

.

    [DllImport("kernel32.dll", EntryPoint = "WriteConsoleInputW", CharSet = CharSet.Unicode, SetLastError = true)]

.

    internal static extern BOOL WriteConsoleInput(

.

        IntPtr hConsoleInput,

.

        [MarshalAs(UnmanagedType.LPArray), In] INPUT_RECORD[] lpBuffer,

.
Documentation
[WriteConsoleInput] on MSDN

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.

23: 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
30: INPUT
.

   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.

secur32

.

                    ref SecBufferDesc pInput,

.

    IntPtr pInput, //PSecBufferDesc SecBufferDesc

.

    ByVal pInput As IntPtr, _

.

    IntPtr pInput, //PSecBufferDesc SecBufferDesc

.

                                                ref SecBufferDesc pInput,

.

                                                ref SecBufferDesc pInput,

.

                        ref ClientToken,            // [in] pointer to the input buffers

.

                        ref ClientToken,            // [in] pointer to the input buffers

Interfaces

.

    Implements IInputObject

.

    Protected BandObjectSite As IInputObjectSite

.

    BandObjectSite = DirectCast(pUnkSite, IInputObjectSite)

.

    Public Overridable Sub UIActivateIO(fActivate As Int32, ByRef Msg As MSG) Implements IInputObject.UIActivateIO

.

    Public Overridable Function HasFocusIO() As Int32 Implements IInputObject.HasFocusIO

.

    Public Overridable Function TranslateAcceleratorIO(ByRef msg As MSG) As Int32 Implements IInputObject.TranslateAcceleratorIO

.

    BandObjectSite.OnFocusChangeIS(TryCast(Me, IInputObject), 1)

.

        BandObjectSite.OnFocusChangeIS(TryCast(Me, IInputObject), 0)

.

Public Interface IInputObject

.

Public Interface IInputObjectSite

.

    Implements IInputObject

.

    Protected BandObjectSite As IInputObjectSite

.

    BandObjectSite = DirectCast(pUnkSite, IInputObjectSite)

.

    Public Overridable Sub UIActivateIO(fActivate As Int32, ByRef Msg As MSG) Implements IInputObject.UIActivateIO

.

    Public Overridable Function HasFocusIO() As Int32 Implements IInputObject.HasFocusIO

.

    Public Overridable Function TranslateAcceleratorIO(ByRef msg As MSG) As Int32 Implements IInputObject.TranslateAcceleratorIO

.

    BandObjectSite.OnFocusChangeIS(TryCast(Me, IInputObject), 1)

.

        BandObjectSite.OnFocusChangeIS(TryCast(Me, IInputObject), 0)

.

Public Interface IInputObject

.

Public Interface IInputObjectSite

.
Summary
The IInputObjectSite interface is used to communicate focus changes for a user input object contained in the Shell.
.

public interface IInputObjectSite

.
Documentation
[IInputObjectSite] on MSDN
.

            /// <param name="pvaIn">Input arguments</param>

.

        /// <param name="vaIn">Input Arguments</param>

.

    /// <param name="hwnd">If user input is required to perform the enumeration, this window handle should be used by the enumeration object as the parent window to take user input.</param>

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


 
Access PInvoke.net directly from VS: