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
Support Forum
Download Visual Studio Add-In

Terms of Use
Privacy Policy

Search Results for "INPUT" in [All]

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

gdiplus

.

static extern int GdiplusStartup(out IntPtr token, ref StartupInput input,

.

ByRef input As StartupInput, ByRef output As StartupOutput) As Integer

.

                       ByRef input As GdipStartupInput, _

.

struct StartupInput

msvcrt

.
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)

.
Summary
Read formatted data from standard input

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.

ncrypt

.

                [MarshalAs(UnmanagedType.LPArray)] byte[] pbInput,

.

                int cbInput,

.

            [MarshalAs(UnmanagedType.LPArray)] byte[] pbInput,

.

            int cbInput,

.

    IntPtr pbInputByteArray,

.

    int cbInput,

.

  When the input is a 4 byte DWORD; you may also use this:

.

                            ref int pbInput,

.

                            int cbInput,

iphlpapi

.

      Add-Member -InputObject $objOutput -MemberType NoteProperty -Name "LocalAddress" -Value ([System.Net.IPAddress]::new($y[$i].localAddr).IPAddressToString)

.

      Add-Member -InputObject $objOutput -MemberType NoteProperty -Name "RemoteAddress" -Value ([System.Net.IPAddress]::new($y[$i].remoteAddr).IPAddressToString)

.

      Add-Member -InputObject $objOutput -MemberType NoteProperty -Name "LocalPort" -Value ($y[$i].localPort[1]+($y[$i].localPort[0]*0x100)+($y[$i].localPort[3]*0x1000)+($y[$i].localPort[2]*0x10000))

.

      Add-Member -InputObject $objOutput -MemberType NoteProperty -Name "RemotePort" -Value ($y[$i].remotePort[1]+($y[$i].remotePort[0]*0x100)+($y[$i].remotePort[3]*0x1000)+($y[$i].remotePort[2]*0x10000))

.

      Add-Member -InputObject $objOutput -MemberType NoteProperty -Name "PID" -Value $y[$i].owningPid

.

      Add-Member -InputObject $objOutput -MemberType NoteProperty -Name "ProcessName" -Value ((Get-Process -Id $y[$i].owningPid).ProcessName)

.

      Add-Member -InputObject $objOutput -MemberType NoteProperty -Name "StateValue" -Value $y[$i].state

.

      Add-Member -InputObject $objOutput -MemberType NoteProperty -Name "State" -Value $StateList[$y[$i].state]

.

      Add-Member -InputObject $objOutput -MemberType NoteProperty -Name "ServiceName" -Value $services[$j].Caption

.

      if ($boolNoService) { Add-Member -InputObject $objOutput -MemberType NoteProperty -Name "ServiceName" -Value $null }

.

    /// On input, specifies the size in bytes of the buffer pointed to by the pIfTable parameter.

.

        /// <param name="pdwSize">On input, specifies the size of the buffer pointed to

.

    /// <param name="cInFilters">[in] Specifies the number of input filter descriptions pointed to by the pfiltIn parameter.</param>

.

    /// <param name="pfiltIn">[in] Pointer to an array of filter descriptions to use as input filters.</param>

.

    /// <param name="inAction">[in] Specifies a default action for an input packet. This member can be one of the following values.</param>

.

    /// <param name="cInFilters">[in] Specifies the number of input filter descriptions pointed to by the pfiltIn parameter.</param>

.

    /// <param name="pfiltIn">[in] Pointer to an array of filter descriptions to use as input filters.</param>

.

    /// <param name="pInInterface">[in, optional] Handle to an interface to use as an input interface for the packet. This parameter is optional and may be NULL.</param>

coredll

.

    public IntPtr hStdInput;

.

static extern int ExtEscape (IntPtr hdc, uint nEscape, uint cbInput, byte[] lpszInData, int cbOutput, IntPtr lpszOutData);

.

        uint cbInput,

.

                          ByVal cbInput As Int32, _

.

        uint cbInput,

.
Summary
Retrieve a handle to the window that has captured mouse/stylus input.
.
Summary
Returns the input context associated with the specified window. - An application should routinely use this function to retrieve the current input context before attempting to access information in the context. (from msdn.microsoft.com)
.

IME is used to Convert Keyboad input to Local Language.

.

            // close IME(direct input for Alphabet and Number)

.

        /// <param name="lpInBuf">Pointer to the input buffer.</param>

.

static extern uint SendInput(uint cInputs, /* [MarshalAs(UnmanagedType.LPArray)] */ KEYBOARDINPUT[] inputs, int cbSize);

.

Declare Function SendInput Lib "coredll.dll" (TODO) As TODO

.

        public struct KEYBOARDINPUT

.

        public const uint INPUT_KEYBOARD = 1;

.

        public static extern uint SendInput(uint cInputs, /* [MarshalAs(UnmanagedType.LPArray)] */ KEYBOARDINPUT[] inputs, int cbSize);

.

        KEYBOARDINPUT[] inputs;

.

        inputs = new cTabControl.KEYBOARDINPUT[2];

.

        inputs[0].type = inputs[1].type = cTabControl.INPUT_KEYBOARD;

.

        inputs[0].wVk = inputs[1].wVk = cTabControl.VK_TAB;

.

        inputs[1].dwFlags = cTabControl.KEYEVENTF_KEYUP;

.

        retVal = cTabControl.SendInput(2, inputs, 0x001C);

.

        throw new Exception(string.Format("SendInput() returned {0}.", error));

.

        KEYBOARDINPUT[] inputs;

.

        inputs = new cTabControl.KEYBOARDINPUT[4];

.

        inputs[0].type = inputs[1].type = inputs[2].type = inputs[3].type = cTabControl.INPUT_KEYBOARD;

.

        inputs[0].wVk = inputs[3].wVk = cTabControl.VK_SHIFT;

.

        inputs[1].wVk = inputs[2].wVk = cTabControl.VK_TAB;

.

        inputs[2].dwFlags = inputs[3].dwFlags = cTabControl.KEYEVENTF_KEYUP;

.

        retVal = cTabControl.SendInput(4, inputs, 0x001C);

.

        throw new Exception(string.Format("SendInput() returned {0}.", error));

.

        KEYBOARDINPUT[] inputs;

.

        inputs = new cTabControl.KEYBOARDINPUT[4];

.

        inputs[0].type = inputs[1].type = inputs[2].type = inputs[3].type = cTabControl.INPUT_KEYBOARD;

.

        inputs[0].wVk = inputs[3].wVk = cTabControl.VK_CTRL;

.

        inputs[1].wVk = inputs[2].wVk = cTabControl.VK_TAB;

.

        inputs[2].dwFlags = inputs[3].dwFlags = cTabControl.KEYEVENTF_KEYUP;

.

        retVal = cTabControl.SendInput(4, inputs, 0x001C);

.

        throw new Exception(string.Format("SendInput() returned {0}.", error));

.

        KEYBOARDINPUT[] inputs;

.

        inputs = new cTabControl.KEYBOARDINPUT[6];

.

        inputs[0].type = inputs[1].type = inputs[2].type = inputs[3].type = inputs[4].type = inputs[5].type = cTabControl.INPUT_KEYBOARD;

.

        inputs[0].wVk = inputs[5].wVk = cTabControl.VK_CTRL;

.

        inputs[1].wVk = inputs[4].wVk = cTabControl.VK_SHIFT;

.

        inputs[2].wVk = inputs[3].wVk = cTabControl.VK_TAB;

.

        inputs[2].dwFlags = inputs[5].dwFlags = cTabControl.KEYEVENTF_KEYUP;

.

        retVal = cTabControl.SendInput(6, inputs, 0x001C);

.

        throw new Exception(string.Format("SendInput() returned {0}.", error));

.
Documentation
[SendInput] on MSDN
.

        /// <summary>If the calling thread and the thread that owns the window are attached to different input queues,

.
Summary
Set the Input Method
.

Microsoft.WindowsCE.Forms.InputPanel.CurrentInputMethod

.
Summary
This function shows or hides the currently active input panel window. An application must call this function to display the input panel and its current input method (taken from msdn2.microsoft.com)
.

There's the InputPanel control.

.

    inputPanel.Enabled = showIt;

.

    inputPanel.Enabled = !inputPanel.Enabled;

.

Main benefit of using this over the InputPanel is that there is no control to instantiate in the form initialization process. The main drawback is that you do not have access to the InputPanel.Bounds property. C++ TRUE indicates success. When this function fails, it returns an HRESULT error code.

.
Summary
The waveInClose function closes the given waveform-audio input device.
.
Summary
The waveInStop function stops waveform-audio input.

winspool

.

static extern int DocumentProperties(IntPtr hwnd, IntPtr hPrinter, [MarshalAs(UnmanagedType.LPWStr)] string pDeviceName, IntPtr pDevModeOutput, IntPtr pDevModeInput, int fMode);

.

static extern int DocumentProperties(IntPtr hWnd, IntPtr hPrinter, string pDeviceName, IntPtr pDevModeOutput, IntPtr pDevModeInput, fModes fMode);

.

    Private Shared Function DocumentProperties(ByVal hwnd As IntPtr, ByVal hPrinter As IntPtr, <MarshalAs(UnmanagedType.LPWStr)> ByVal pDeviceName As String, ByVal pDevModeOutput As IntPtr, ByVal pDevModeInput As IntPtr, ByVal fMode As Integer) As Integer

.

Doesn't work on a x64 system. (i.e. this declaration is wrong for x64, I'm just not quite sure why.). MH:I tested the code extensivly and I think the param "IntPtr pDevModeInput" must not have the "ref" flag. If it has the initial state of the dialog is wrong. EP: Yup, you're right! Thanks!!! I've been trying to figure out why it doesn't work on some drivers for a few weeks now! "ref" removed.

.

static extern bool XcvData(IntPtr hXcv, [MarshalAs(UnmanagedType.LPWStr)] string pszDataName, IntPtr InputData, uint cbInputData,

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”.

powrprof

.

     IntPtr lpInputBuffer,

.

     UInt32 nInputBufferSize,

.

     IntPtr lpInputBuffer,

.

     uint nInputBufferSize,

.

Private Shared Function CallNtPowerInformation(InformationLevel As Int32, lpInputBuffer As IntPtr, nInputBufferSize As UInt32, lpOutputBuffer As IntPtr, nOutputBufferSize As UInt32) As UInt32

.

        IntPtr lpInputBuffer,

.

        int nInputBufferSize,

.

    private const int PBT_APMRESUMESUSPEND = 7; // (0x7) - Operation is resuming from a low-power state.This message is sent after PBT_APMRESUMEAUTOMATIC if the resume is triggered by user input, such as pressing a key.

.

            Console.WriteLine("\tOperation is resuming from a low-power state.This message is sent after PBT_APMRESUMEAUTOMATIC if the resume is triggered by user input, such as pressing a key.");

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.

37: 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
44: INPUT
.
Summary
Used by [user32.SendInput] to store information for synthesizing input events such as keystrokes, mouse movement, and mouse clicks.
.

public struct INPUT

.

  internal InputUnion U;

.

   get { return Marshal.SizeOf(typeof(INPUT)); }

.

internal struct InputUnion

.

  internal MOUSEINPUT mi;

.

  internal KEYBDINPUT ki;

.

  internal HARDWAREINPUT hi;

.

Structure InputUnion

.

  <FieldOffset(0)> Public mi As MOUSEINPUT

.

  <FieldOffset(0)> Public ki As KEYBDINPUT

.

  <FieldOffset(0)> Public hi As HARDWAREINPUT

.

Structure INPUT

.

  Public u As InputUnion

.

MOUSEINPUT, KEYBDINPUT, HARDWAREINPUT

.

On 64-Bit systems, the offset of the mi, ki and hi fields is 8, because the nested struct uses the alignment of its biggest member, which is 8 (due to the 64-bit pointer in dwExtraInfo). By separating the union into its own structure, rather than placing the mi, ki and hi fields directly in the INPUT structure, we assure that the .Net structure will have the correct alignment on both 32 and 64 bit.

.

"internal int Size" <-- Not quite correct: Size is not part of the structure itself. It is a static helper property to get the size of INPUT in bytes. See SendInput. The definition above works well.

.
Documentation
[INPUT] on MSDN
.
Summary
Used to report input events in the console input buffer
.

    public struct INPUT_RECORD

.

    public struct INPUT_RECORD_UNION

.

    public struct INPUT_RECORD

.

        public INPUT_RECORD_UNION Event;

.

    Public Structure INPUT_RECORD

.

    Public Structure INPUT_RECORD_UNION

.

    Public Structure INPUT_RECORD

.

        Public [Event] As INPUT_RECORD_UNION

.

    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
.

    /// Value type for raw input.

.

    public struct RawInput

.

        public RawInputHeader Header;

.

        /// <summary>Mouse raw input data.</summary>

.

        public RawInputMouse Mouse;

.

        /// <summary>Keyboard raw input data.</summary>

.

        /// <summary>HID raw input data.</summary>

.

        public RawInputHid Hid;

.

    /// Contains the raw input from a device.

.

    public struct RawInput

.

        public RawInputHeader Header;

.

            /// Mouse raw input data.

.

            /// Keyboard raw input data.

.

            /// HID raw input data.

.

    ''' <summary>Contains the raw input from a device.</summary>

.

    Public Structure RawInput

.

    Public Header As RAWINPUTHEADER

.

        ''' <summary>Mouse raw input data.</summary>

.

        ''' <summary>Keyboard raw input data.</summary>

.

        ''' <summary>HID raw input data.</summary>

.
Documentation
[RAWINPUT] 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

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


 
Access PInvoke.net directly from VS: