Desktop Functions: Smart Device Functions:
|
Search Results for "out" in [All]irprops
static extern uint BluetoothAuthenticateDeviceEx(IntPtr hwndParentIn, IntPtr hRadioIn, ref BLUETOOTH_DEVICE_INFO pbtdiInout, BLUETOOTH_OOB_DATA pbtOobData, uint authenticationRequirement);
static extern uint BluetoothAuthenticateDeviceEx(IntPtr hwndParentIn, IntPtr hRadioIn, ref BLUETOOTH_DEVICE_INFO pbtdiInout, BLUETOOTH_OOB_DATA pbtOobData, uint authenticationRequirement);
<StructLayout(LayoutKind.Sequential, pack:=4)> _
Public timeoutMultiplier As Byte
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Auto, Pack:=1)> _
<StructLayout(LayoutKind.Sequential, pack:=1)> _
<StructLayout(LayoutKind.Sequential, pack:=1)> _
static extern IntPtr BluetoothFindFirstRadio(ref Bluetooth_Find_Radio_Params pbtfrp,out IntPtr phRadio );
<Out()> ByRef hRadio As IntPtr) As IntPtr
nextRadio = BluetoothFindFirstRadio(ref parameters, out firstRadio);
[StructLayout(LayoutKind.Sequential)]
static extern IntPtr BluetoothFindFirstRadio(ref BLUETOOTH_FIND_RADIO_PARAM pbtfrp, out IntPtr phRadio);
static extern bool BluetoothFindNextRadio(IntPtr hFind, out IntPtr phRadio);
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)> _ ws2_328: Command
/// Use to determine if all out of band (OOB) data has been read. 9: ControlCode
SIO_FIND_ROUTE = 1207959555,
SIO_ROUTING_INTERFACE_QUERY = -939524076,
SIO_ROUTING_INTERFACE_CHANGE = -2013265899,
/* [OUT] INTERFACE_INFO */
/* [OUT] Int32*/
/// Use to determine if all out of band (OOB) data has been read. 10: getsockopt
public static extern int getsockopt(IntPtr s, SocketOptionLevel level, SocketOptionName optname, out int optval, ref int optlen);
public int ReceiveTimeout
Native.getsockopt(socketPtr, Native.SocketOptionLevel.Socket, Native.SocketOptionName.ReceiveTimeout, out optval, ref optlen);
Native.setsockopt(socketPtr, Native.SocketOptionLevel.Socket, Native.SocketOptionName.ReceiveTimeout, ref optval, optlen); 11: INTERFACE_INFO
[StructLayout(LayoutKind.Sequential)] 12: MsgFlags
/// Processes Out Of Band (OOB) data.
/// send without using routing tables
MSG_DONTROUTE = 0x4, 13: select
ref timeval timeout); 14: send
/// <summary> Specifies that the data should not be subject to routing. A Windows Sockets service provider can choose to ignore this flag</summary>
DontRoute = 1,
[StructLayout(LayoutKind.Sequential)]
[StructLayout(LayoutKind.Sequential)] 15: SendTo
/// <summary> Specifies that the data should not be subject to routing. A Windows Sockets service provider can choose to ignore this flag</summary>
DontRoute = 1,
[StructLayout(LayoutKind.Sequential)]
[StructLayout(LayoutKind.Sequential)] 16: setsockopt
public int ReceiveTimeout
Native.getsockopt(socketPtr, Native.SocketOptionLevel.Socket, Native.SocketOptionName.ReceiveTimeout, out optval, ref optlen);
Native.setsockopt(socketPtr, Native.SocketOptionLevel.Socket, Native.SocketOptionName.ReceiveTimeout, ref optval, optlen); 17: SocketOptionName
DontRoute = 0x10,
OutOfBandInline = 0x100,
ReceiveTimeout = 0x1006,
SendTimeout = 0x1005,
/// Set/get IPv6 routing header.
/// Receive the routing header.
/// Set/get IPv6 routing header.
/// Receive the routing header.
SO_DONTROUTE = 0x0010,
/// send timeout
/// receive timeout
/// to disable UDP checksum calculation, it may simply store this option without taking any action. This option is not supported for IPv6. 19: tcp_keepalive
[StructLayout(LayoutKind.Sequential)] 20: WSAData
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] 21: WSAIoctl
IntPtr lpvOutBuffer, int cbOutBuffer,
IntPtr lpOverlapped, IntPtr lpCompletionRoutine);
result = WSAStartup(2, out data); 23: WSANSIoctl
static extern Int32 WSAIoctl(Int32 s, UInt32 dwControlCode, IntPtr lpvInBuffer, Int32 cbInBuffer, IntPtr lpvOutBuffer, Int32 cbOutBuffer, out UInt32 lpcbBytesReturned, IntPtr lpOverlapped, IntPtr lpCompletion); 24: WSAPROTOCOL_INFO [StructLayout(LayoutKind.Sequential)] [StructLayout(LayoutKind.Sequential)] 25: WSASocket
SO_DONTROUTE = 0x0010,
// send timeout
// receive timeout 26: WSAStartup
static extern Int32 WSAStartup(Int16 wVersionRequested, out WSAData wsaData);
advapi32
out UInt32 ReturnLengthInBytes);
[StructLayout(LayoutKind.Sequential, Pack = 1)]
if (NativeMethods.OpenProcessToken(currentProcess, NativeMethods.TOKEN_ADJUST_PRIVILEGES | NativeMethods.TOKEN_QUERY, out tokenHandle))
throw new ArgumentOutOfRangeException(typeof(SecurityEntity).Name);
out IntPtr tokenHandle);
[StructLayout(LayoutKind.Sequential)]
[StructLayout(LayoutKind.Sequential)]
'This routine enables the Shutdown privilege for the current process,
<StructLayout(LayoutKind.Sequential)> _
<StructLayout(LayoutKind.Sequential)> _
<StructLayout(LayoutKind.Sequential)> _
out IntPtr pSid);
[StructLayout(LayoutKind.Sequential)]
Native.AllocateAndInitializeSid(ref NtAuthority, 1, AuthenticatedUser, 0, 0, 0, 0, 0, 0, 0, out AuthenticatedUsersSid);
out IntPtr ppAuditCategoriesArray,
out int pCountReturned);
AuditEnumerateCategories(out buffer,out categoryCount);
[StructLayout(LayoutKind.Sequential)]
static extern bool CheckTokenMembership(IntPtr TokenHandle, IntPtr SidToCheck, out bool IsMember); 33: ClearEventLog
Quick and cheerful, this routine will attempt to save and clear the specified EventLog to the specified folder. 34: ControlService
private int WAIT_TIMEOUT = 0x00000102;
if (WaitHandle.WaitAny (activeHeartbeatHandles, heartbeatMilliseconds, false) == WAIT_TIMEOUT)
out IntPtr ptrSid);
static extern bool ConvertSidToStringSid(IntPtr pSid, out string strSid);
if (!ConvertSidToStringSid(sid,out ptrSid))
out IntPtr SecurityDescriptor,
out UIntPtr SecurityDescriptorSize
out IntPtr ptrSid
ManagementBaseObject outParams1 = UserObject.InvokeMethod("GetSecurityDescriptor", inParams1, null);
Descriptor = ((ManagementBaseObject)(outParams1.Properties["Descriptor"].Value));
ManagementBaseObject outParams = Share.InvokeMethod("ChangeSecurityPermissions", inParams, null);
out IntPtr ptrSid);
ConvertStringSidToSid(UserObject["SID"].ToString(), out SID_ptr);
out PROCESS_INFORMATION lpProcessInformation);
<[In](), Out(), [Optional]()> ByVal lpCommandLine As StringBuilder, _
<Out()> ByRef lpProcessInformation As PROCESS_INFORMATION) As <MarshalAs(UnmanagedType.Bool)> Boolean
out ProcessInformation processInformation);
Public StdOutputHandle As Int32 = -11
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Auto)> _
Public stdOutput As IntPtr
Marshal.WriteInt32(MyPointer, StdOutputHandle)
startupInfo.stdOutput = MyPointer
public const Int32 StdOutputHandle = -11;
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Auto)]
public IntPtr stdOutput;
out ProcessInformation processInformation);
startupInfo.stdOutput = (IntPtr)StdOutputHandle;
out processInfo); 40: CreateService
/// control manager about the status of the service.
''' control manager about the status of the service. I changed the C# version from using "out uint lpdwTagId" to "string lpdwTagId". Without that change, the C# call to CreateService always returned an incorrect parameter error.
NativeMethods.ConvertSidToStringSid(pSid, out sidString); 42: CredDelete
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Unicode)]
out IntPtr marshaledCredential);
[StructLayout(LayoutKind.Sequential)] One needs to free the string returned in the "out IntPtr marshaledCredential" parameter!
out marshaledCredential); 44: CredRead
public static extern bool CredRead(string target, CRED_TYPE type, int reservedFlag, out IntPtr credentialPtr);
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Unicode)]
if(CredRead(strTarget, CRED_TYPE.GENERIC, 0, out credPtr)) 45: CredRead
[MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(CredentialInMarshaler))]out Credential credential);
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] Custom Marshalling provide a self contained and caller transparent solution to this scenario, the returned Credentials object is fully managed without the need to worry about object lifetimes. 46: CredWrite
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Unicode)] The stuff on this page about needing custom marshaling are just wrong.
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Unicode)]
out IntPtr phProv, bool res = Crypt32.CryptAcquireContext(out hProv, "user", null, PROV_RSA_FULL, CRYPT_NEWKEYSET); 48: CryptExportKey
public static extern bool CryptExportKey(IntPtr hKey, IntPtr hExpKey, uint dwBlobType, uint dwFlags, [In, Out] byte[] pbData, ref uint dwDataLen); 49: CryptGenKey
[Out] out IntPtr phKey
CryptGenKey(hProv, (uint)CryptAlg.CALG_RSA_SIGN, dwFlags, out hKey); 50: CryptGetKeyParam
[Out] byte[] pbData,
[In,Out] ref uint pdwDataLen,
[In, Out] byte[] pbData,
<[In], Out> pbData() As Byte, ByRef dwDataLen As Integer, dwFlags As Integer) As Boolean 52: CryptSignHash
[Out] byte[] signature,
[In, Out] ref uint signatureLen); 53: DuplicateToken
out IntPtr phNewToken ); 54: DuplicateTokenEx
out IntPtr phNewToken );
out uint pcbBytesNeeded, out uint lpServicesReturned, As usual when doing pinvoke operations, watch out for 64 bit vs 32 bit and packing boundaries.
if (!EnumServicesStatusEx(handle, SC_ENUM_PROCESS_INFO, (int)ServiceType.SERVICE_WIN32, (int)ServiceStateRequest.SERVICE_STATE_ALL, IntPtr.Zero, 0, out iBytesNeeded, out iServicesReturned, ref iResumeHandle, null))
if (!EnumServicesStatusEx(handle, SC_ENUM_PROCESS_INFO, (int)ServiceType.SERVICE_WIN32, (int)ServiceStateRequest.SERVICE_STATE_ALL, buf, iBytesNeeded, out iBytesNeeded, out iServicesReturned, ref iResumeHandle, null))
out uint pcbBytesNeeded, out uint lpServicesReturned,
[StructLayout(LayoutKind.Sequential, Pack = 4)]
[StructLayout(LayoutKind.Sequential)] 56: GetAce
static extern int GetAce(IntPtr aclPtr, int aceIndex, out IntPtr acePtr);
static extern bool GetAce(IntPtr aclPtr, int aceIndex, out IntPtr acePtr); // returns bool per MS
out IntPtr bufPtr);
[MarshalAs(UnmanagedType.Bool)] out bool bDaclPresent,
[MarshalAs(UnmanagedType.Bool)] out bool bDaclDefaulted
out IntPtr acePtr
out IntPtr ptrSid
[StructLayout(LayoutKind.Sequential)]
[StructLayout(LayoutKind.Sequential)]
[StructLayout(LayoutKind.Sequential)]
[StructLayout(LayoutKind.Sequential)]
int err = NetShareGetInfo(args[0], args[1], 502, out bufptr);
GetSecurityDescriptorDacl(shareInfo.shi502_security_descriptor, out bDaclPresent, ref pAcl, out bDaclDefaulted);
err = GetAce(pAcl, i, out pAce);
ConvertSidToStringSid(bSID, out ptrSid); Retrieves information about the current hardware profile for the local computer. [StructLayout(LayoutKind.Sequential)] 59: GetLengthSid
if ( !ConvertStringSidToSid(stringSid, out pSid) )
out IntPtr pSidOwner,
out IntPtr pSidGroup,
out IntPtr pDacl,
out IntPtr pSacl,
out IntPtr pSecurityDescriptor);
out pSid, out pZero, out pZero, out pZero, out psd);
errorReturn = LookupAccountSid(null, pSid, _account, ref _accounLength, _domain, ref _domainLength, out _sidNameUse); Cut off search results after 60. Please refine your search. |