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]

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>

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

httpapi

.

     IntPtr pInputConfigInfo,

.

     int InputConfigInfoLength,

.

Depending on the value of ConfigId, both pInputConfigInfo and pOutputConfigInfo should point to a different type of structure. If it wasn't for this, I could redifine the PInvoke signature to explicitly specify the underlying structure type.

.
ConfigId Value InputConfigInfor Structure Type
.
HttpServiceConfigIPListenList No input data; set to NULL.
.

     HTTP_SERVICE_CONFIG_URLACL_QUERY inputConfigInfoQuery = new HTTP_SERVICE_CONFIG_URLACL_QUERY();

.

     inputConfigInfoQuery.QueryDesc = HTTP_SERVICE_CONFIG_QUERY_TYPE.HttpServiceConfigQueryExact;

.

     inputConfigInfoQuery.KeyDesc = keyDesc;

.

     inputConfigInfoQuery.dwToken = 0;

.

     IntPtr pInputConfigInfo = Marshal.AllocCoTaskMem(Marshal.SizeOf(typeof(HTTP_SERVICE_CONFIG_URLACL_QUERY)));

.

     Marshal.StructureToPtr(inputConfigInfoQuery, pInputConfigInfo, true);

.

     size = Marshal.SizeOf(inputConfigInfoQuery);

.

         pInputConfigInfo,

.

         Marshal.SizeOf(inputConfigInfoQuery),

.

         pInputConfigInfo,

.

         Marshal.SizeOf(inputConfigInfoQuery),

.

     HTTP_SERVICE_CONFIG_URLACL_SET inputConfigInfoSet = new HTTP_SERVICE_CONFIG_URLACL_SET();

.

     inputConfigInfoSet.KeyDesc = keyDesc;

.

     inputConfigInfoSet.ParamDesc = paramDesc;

.

     IntPtr pInputConfigInfo = Marshal.AllocCoTaskMem(Marshal.SizeOf(typeof(HTTP_SERVICE_CONFIG_URLACL_SET)));

.

     Marshal.StructureToPtr(inputConfigInfoSet, pInputConfigInfo, false);

.

         pInputConfigInfo,

.

         Marshal.SizeOf(inputConfigInfoSet),

.

         pInputConfigInfo,

.

         Marshal.SizeOf(inputConfigInfoSet),

.

             pInputConfigInfo,

.

             Marshal.SizeOf(inputConfigInfoSet),

.

     Marshal.FreeCoTaskMem(pInputConfigInfo);

.

        IntPtr pInputConfigInfo = Marshal.AllocCoTaskMem(Marshal.SizeOf(typeof(HTTP_SERVICE_CONFIG_SSL_SET)));

.

        Marshal.StructureToPtr(configSslSet, pInputConfigInfo, false);

.

            pInputConfigInfo,

.

            pInputConfigInfo,

.

                pInputConfigInfo,

.

        Marshal.FreeCoTaskMem(pInputConfigInfo);

imm32

.

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

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.

14: 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
21: 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.

misc

45: FAQ
.
Question
How can I fetch a parameterized message from an externalized ".mc" resource file using FormatMessage function ? What is the va* arguments parameter that the FormatMessage API takes as an input and how do I pass this parameter in C# ?

advapi32

.

      SE_UNSOLICITED_INPUT_NAME,

.

    Public stdInput As IntPtr

.

            public IntPtr stdInput;

.
Summary
The LookupAccountName function accepts the name of a system and an account as input. It retrieves a security identifier (SID) for the account and the name of the domain on which the account was found.
.
Summary
The LookupAccountSid function accepts a security identifier (SID) as input. It retrieves the name of the account for this SID and the name of the first domain on which this SID is found.
.

    'Input format is the format returned from "ConvertStringSidToSid"

.

public const string SE_UNSOLICITED_INPUT_NAME = "SeUnsolicitedInputPrivilege";

.

    ' Setup the input parameters for the LsaRemoveAccountRights API

.

    ' Setup the input parameters for the LsaEnumerateAccountsWithUserRight API

.

    ' Setup the input parameters for the LsaEnumerateAccountsWithUserRight API

.

    ' Setup the input parameters for the LsaRemoveAccountRights API

.

After calling the MapGenericMask function, the access mask pointed to by the AccessMask parameter has none of its generic bits (GenericRead, GenericWrite, GenericExecute, or GenericAll) or undefined bits set, although it can have other bits set. If bits other than the generic bits are provided on input, this function does not clear them.

.

    IntPtr InputArg,

.

internal struct NET_VALIDATE_AUTHENTICATION_INPUT_ARG

.

    public NET_VALIDATE_PERSISTED_FIELDS InputPersistedFields;

.

internal struct NET_VALIDATE_PASSWORD_CHANGE_INPUT_ARG

.

    public NET_VALIDATE_PERSISTED_FIELDS InputPersistedFields;

.

internal struct NET_VALIDATE_PASSWORD_RESET_INPUT_ARG

.

    public NET_VALIDATE_PERSISTED_FIELDS InputPersistedFields;

.

     var inputArgs = new NET_VALIDATE_PASSWORD_CHANGE_INPUT_ARG();

.

     inputArgs.PasswordMatched = true;

.

     inputArgs.UserAccountName = @"accountname";

.

     IntPtr inputPointer = IntPtr.Zero;

.

        inputArgs.ClearPassword = Marshal.StringToBSTR(@"password");

.

        //inputArgs.ClearPassword = Marshal.SecureStringToBSTR(secureStringPassword);

.

        inputPointer = Marshal.AllocHGlobal(Marshal.SizeOf(inputArgs));

.

        Marshal.StructureToPtr(inputArgs, inputPointer, false);        

.

        NET_API_STATUS status = NetValidatePasswordPolicy(serverName, IntPtr.Zero, NET_VALIDATE_PASSWORD_TYPE.NetValidatePasswordChange, inputPointer, ref outputPointer);

.

        if (inputArgs.ClearPassword != IntPtr.Zero)

.

            Marshal.ZeroFreeBSTR(inputArgs.ClearPassword);

.

        if (inputPointer != IntPtr.Zero)

.

            Marshal.FreeHGlobal(inputPointer);

userenv

.

    /// <param name="env">The input environment</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.

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


 
Access PInvoke.net directly from VS: