Desktop Functions: Smart Device Functions:
|
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 } 2: GetIfTable
/// On input, specifies the size in bytes of the buffer pointed to by the pIfTable parameter. 3: MIB_IPNETROW
/// <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> 7: PfTestPacket
/// <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> msvcrt8: kbhit System.Console.KeyAvailable() - Gets a value indicating whether a key press is available in the input stream. (Nonblocking) 9: scanf 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.
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); imm3212: ImmGetContext
bool bSuccess = ImmGetConversionStatus(HIme, ref iMode, ref iSentence); //Scan the input method info Structures13: COMMTIMEOUTS ->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 15: DELTA_INPUT 16: FILETIME
Private Shared Function ConvertFileTimeToDateTime(input As FILETIME) As DateTime
Dim longTime As ULong = (CType(input.dwHighDateTime, ULong) << 32) Or input.dwLowDateTime 17: HARDWAREINPUT 18: HitTestValues 21: INPUT
internal enum INPUT_TYPE : uint {
INPUT_MOUSE = 0,
INPUT_KEYBOARD = 1,
INPUT_HARDWARE = 2
Structure INPUT_TYPE 22: INPUT_RECORD 23: INPUT_TYPE
internal enum INPUT_TYPE : uint {
INPUT_MOUSE = 0,
INPUT_KEYBOARD = 1,
INPUT_HARDWARE = 2
Structure INPUT_TYPE 24: KBDLLHOOKSTRUCT 25: KEYBDINPUT
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 26: KEY_EVENT_RECORD 27: LASTINPUTINFO
struct LASTINPUTINFO
public static readonly int SizeOf = Marshal.SizeOf(typeof(LASTINPUTINFO));
Structure LASTINPUTINFO
type LastInputInfo = { 28: MOUSEINPUT 30: MSLLHOOKSTRUCT 31: OpenFileName
''' 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. 32: RAWINPUT 33: RAWINPUTDEVICE
/// <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 34: RAWINPUTHEADER
/// 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 35: RAWINPUTHID 36: RAWINPUTKEYBOARD 37: RAWINPUTMOUSE 40: WAVEHDR
public uint dwBytesRecorded; // used for input only 41: Win32Consts 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. misc45: FAQ advapi32
SE_UNSOLICITED_INPUT_NAME,
Public stdInput As IntPtr
public IntPtr stdInput; 49: LookupAccountSid
public const string SE_UNSOLICITED_INPUT_NAME = "SeUnsolicitedInputPrivilege";
' Setup the input parameters for the LsaRemoveAccountRights API
' Setup the input parameters for the LsaEnumerateAccountsWithUserRight API 53: LsaOpenPolicy
' Setup the input parameters for the LsaEnumerateAccountsWithUserRight API
' Setup the input parameters for the LsaRemoveAccountRights API 55: MapGenericMask 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> kernel3258: ConsoleFunctions
// 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 59: CreateNamedPipe
uint nInBufferSize, // input buffer size 60: DeviceIoControl
Dim bBuffer As Byte ' Input buffer. Cut off search results after 60. Please refine your search. |