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 "ByVal" in [All]

icmp

.

            [MarshalAs(UnmanagedType.ByValTStr, SizeConst=250)]

comctl32

.

Private Shared Function DestroyPropertySheetPage(ByVal hPage As IntPtr) As Integer

.

    Public Shared Function GetScrollPos(ByVal hWnd As IntPtr, ByVal nBar As Integer) As Integer

.

    Private Shared Function SetScrollPos(ByVal hWnd As IntPtr, ByVal nBar As Integer, ByVal nPos As Integer, ByVal bRedraw As Boolean) As Integer

.

        Set(ByVal value As Integer)

.

        Set(ByVal value As Integer)

.

Declare Function ImageList_Add Lib "comctl32.dll" (ByVal cx As Integer, ByVal cy As Integer, ByVal flags As uint, ByVal cInitial as Integer, ByVal cGrow as Integer) As IntPtr

.

Declare Function ImageList_SetIconSize Lib "comctl32.dll" (ByVal hImageList As IntPtr, ByVal cx As Integer, ByVal cy As Integer) As Boolean

hid

.

Declare Function HidD_GetFeature Lib "hid.dll" (ByVal HidDeviceObject As SafeFileHandle, out lpReportBuffer As Byte, ReportBufferLength As Int32) As Boolean

.

Public Shared Function HidD_GetFeature(hidDeviceObject As SafeFileHandle, ByVal reportBuffer As Byte(), ByVal reportBufferLength As UInt32) As Boolean

.

For VB - Must include "Imports Microsoft.Win32.SafeHandles". The reportBuffer parameter must be ByVal. The call will fail with windows system error 23 if it is ByRef.

.

        ByVal HidDeviceObject As SafeFileHandle, _

.

         ByVal Buffer As System.Text.StringBuilder, _

.

         ByVal BufferLength As Int32) As Boolean

crypt32

.

    ByVal storeProvider As IntPtr, _

.

    ByVal prevCertContext As IntPtr) As IntPtr

.

    ByVal pCertContext As IntPtr _

.

    ByVal pCertContext As Long, _

.

    ByVal dwType As Long, _

.

    ByVal dwFlags As Long, _

.

    ByVal pszNameString As Long, _

.

    ByVal cchNameString As Long _

.

    ByVal hCryptProv As IntPtr, _

.

    ByVal storename As String) As IntPtr

.

Public Shared Function CryptAcquireCertificatePrivateKey(<[In]> ByVal pCert As IntPtr, <[In]> ByVal dwFlags As UInt32, <[In]> ByVal pvReserved As IntPtr, <[In], Out> ByRef phCryptProv As IntPtr, <[In], Out> ByRef pdwKeySpec As UInt32, <[In], Out> ByRef pfCallerFreeProv As Boolean) As Boolean

.

    ByVal szDataDescr As String, _

.

    ByVal pvReseved As IntPtr, _

.

    ByVal dwFlags As Integer, _

.

     ByVal szDataDescr As StringBuilder, _

.

     ByVal pvReserved As IntPtr, _

.

     ByVal dwFlags As Integer, _

.

    <MarshalAs(UnmanagedType.LPWStr)> ByVal szPassword As String, _

.

    ByVal dwFlags As Int32) As IntPtr

Structures

.

    [MarshalAs(UnmanagedType.ByValArray, SizeConst = 6)]

.

   <MarshalAs(UnmanagedType.ByValArray, SizeConst:=6)> Dim adapter_address() As Byte

.

            [MarshalAs(UnmanagedType.ByValArray, SizeConst=64)]

.

    <MarshalAs(UnmanagedType.ByValTStr, SizeConst:=64)> Public szName As String

.

     Set(ByVal value As Byte)

.

     Set(ByVal value As Byte)

.

     Set(ByVal value As Byte)

.

     Set(ByVal value As Byte)

.

        [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 248)]

.

        [MarshalAs(UnmanagedType.ByValTStr, SizeConst = BLUETOOTH_MAX_NAME_SIZE)]

.

        [MarshalAs(UnmanagedType.ByValTStr, SizeConst=128)]

.

    [MarshalAs(UnmanagedType.ByValTStr,SizeConst= 128)]

.

    <MarshalAs(UnmanagedType.ByValTStr, SizeConst:=128)> _

.

    [MarshalAs( UnmanagedType.ByValTStr, SizeConst=32 )]

.

    <MarshalAs(UnmanagedType.ByValTStr, SizeConst := 32)> _

24: CIDA
.

    [MarshalAs(UnmanagedType.ByValArray, SizeConst = 1)]

.

   [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 11)]

.

  [MarshalAs(UnmanagedType.ByValArray, SizeConst = 86, ArraySubType = UnmanagedType.U1)]

.

    [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 255)]

.

    [MarshalAs(UnmanagedType.ByValTStr, SizeConst = CCHDEVICENAME)]

.

    [MarshalAs(UnmanagedType.ByValTStr, SizeConst = CCHFORMNAME)]

.

    <MarshalAs(UnmanagedType.ByValTStr, SizeConst := CCHDEVICENAME)> _

.

    <MarshalAs(UnmanagedType.ByValTStr, SizeConst := CCHFORMNAME)> _

.

    [MarshalAs(UnmanagedType.ByValTStr, SizeConst = CCHDEVICENAME2)]

.

    [MarshalAs(UnmanagedType.ByValTStr, SizeConst = CCHFORMNAME2)]

.

      [MarshalAs(UnmanagedType.ByValTStr, SizeConst=255)]

.

    <MarshalAs(UnmanagedType.ByValTStr, SizeConst:=255)> Public dbcc_name As String

.

   [MarshalAs(UnmanagedType.ByValTStr, SizeConst=255)] public String dbcp_name;

.

    <MarshalAs(UnmanagedType.ByValTStr, SizeConst:=255)> _

.

      [MarshalAs(UnmanagedType.ByValTStr, SizeConst=32)]

.

      [MarshalAs(UnmanagedType.ByValTStr, SizeConst=128)]

.

      [MarshalAs(UnmanagedType.ByValTStr, SizeConst=128)]

.

    [MarshalAs(UnmanagedType.ByValTStr, SizeConst=128)]

.

    <MarshalAs(UnmanagedType.ByValTStr, SizeConst:=32)> _

.

    <MarshalAs(UnmanagedType.ByValTStr, SizeConst:=128)> _

.

    <MarshalAs(UnmanagedType.ByValTStr, SizeConst:=128)> _

.

    <MarshalAs(UnmanagedType.ByValTStr, SizeConst:=128)> _

.

      [MarshalAs(UnmanagedType.ByValTStr, SizeConst=32)]

.

      [MarshalAs(UnmanagedType.ByValTStr, SizeConst=128)]

.

      [MarshalAs(UnmanagedType.ByValTStr, SizeConst=128)]

.

    [MarshalAs(UnmanagedType.ByValTStr, SizeConst=128)]

.

    <MarshalAs(UnmanagedType.ByValTStr, SizeConst:=32)> _

.

    <MarshalAs(UnmanagedType.ByValTStr, SizeConst:=128)> _

.

    <MarshalAs(UnmanagedType.ByValTStr, SizeConst:=128)> _

.

    <MarshalAs(UnmanagedType.ByValTStr, SizeConst:=128)> _

.

        //doesn't work, use load. [MarshalAs(UnmanagedType.ByValArray, ArraySubType=UnmanagedType.U1, SizeParamIndex=1)]

.

        [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 32)]

.

     <MarshalAs(UnmanagedType.ByValTStr, SizeConst := 32)> _

.

        [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.Struct, SizeConst = 0x16)]

.

    [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 32)]

.

    [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 32)]

.

    [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 128)]

.

            [MarshalAs(UnmanagedType.ByValTStr, SizeConst=LF_FACESIZE)]

.

            [MarshalAs(UnmanagedType.ByValTStr, SizeConst=LF_FACESIZE)]

.

            [MarshalAs(UnmanagedType.ByValTStr, SizeConst=LF_FACESIZE)]

.

   [MarshalAs( UnmanagedType.ByValArray, SizeConst = 15, ArraySubType = UnmanagedType.U4 )] public uint[] ExceptionInformation;

39: fd_set
.

        [MarshalAs(UnmanagedType.ByValArray, SizeConst = Size)]

.

       [MarshalAs(UnmanagedType.ByValTStr, SizeConst=260)]

.

    <Runtime.InteropServices.MarshalAs(Runtime.InteropServices.UnmanagedType.ByValTStr, SizeConst:=260)>

.

        [MarshalAsAttribute(UnmanagedType.ByValTStr, SizeConst = 12)]

.

        [MarshalAsAttribute(UnmanagedType.ByValTStr, SizeConst = 1)]

.

  [MarshalAs( UnmanagedType.ByValTStr, SizeConst = MAX_PATH )]

.

   [MarshalAs(UnmanagedType.ByValArray, SizeConst = NUM_DISCHARGE_POLICIES)]

.

   <MarshalAs(UnmanagedType.ByValArray, SizeConst:=NUM_DISCHARGE_POLICIES)>

.

        [MarshalAs(UnmanagedType.ByValArray, SizeConst=50)]

.

    Public Sub New(ByVal majorVersion As UInt16, ByVal minorVersion As UInt16)

.

    Public Sub New(ByVal urlPrefix As String)

.

    Public Sub New(ByVal stringSecurityDescriptor As String)

.

        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 2)]

.

        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 4)]

.

        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 10)]

.

        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 4)]

.

        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 4)]

.

        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 8)]

.

    <MarshalAs(UnmanagedType.ByValTStr, SizeConst:=8)> _

.

     [MarshalAs(UnmanagedType.ByValArray, SizeConst=10)]

.

    <MarshalAs(UnmanagedType.ByValArray, SizeConst := 10)> _

.

    [MarshalAs(UnmanagedType.ByValTStr, SizeConst=MAX_ADAPTER_NAME_LENGTH + 4)]

.

    [MarshalAs(UnmanagedType.ByValTStr, SizeConst=MAX_ADAPTER_DESCRIPTION_LENGTH + 4)]

.

    [MarshalAs(UnmanagedType.ByValArray, SizeConst=MAX_ADAPTER_ADDRESS_LENGTH)]

.

    <MarshalAs(UnmanagedType.ByValTStr, SizeConst:=(MAX_ADAPTER_NAME_LENGTH + 4))> _

.

    <MarshalAs(UnmanagedType.ByValTStr, SizeConst:=(MAX_ADAPTER_DESCRIPTION_LENGTH + 4))> _

.

    <MarshalAs(UnmanagedType.ByValArray, SizeConst:=(MAX_ADAPTER_ADDRESS_LENGTH))> _

.

    [MarshalAs(UnmanagedType.ByValTStr, SizeConst=16)]

.

    <MarshalAs(UnmanagedType.ByValTStr, SizeConst:=(4 * 4))> _

.

   <MarshalAs(UnmanagedType.ByValArray, SizeConst:=MAX_LANA + 1)> Dim lana() As Byte

.

            [MarshalAs(UnmanagedType.ByValTStr, SizeConst=32)]

.

            [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 32)]

.

    <MarshalAs(UnmanagedType.ByValTStr, SizeConst:=32)> _

.

     <MarshalAs(UnmanagedType.ByValTStr, SizeConst:=32)> _

.

The .NET Framework class Font, has a method, Font::FromLogfont that takes an Object reference as it's method parameter. You must define a managed LOGFONT class using the same format as the C# signature above. When using the StructLayout attribute on the class definition, you must set the CharSet property to Auto (the default is Ansi, which will not work correctly). The only difficulty encountered is passing the string value (the designated Font Face Name) to the FromLogfont method; apparently, this must have the attribute: [MarshalAs(UnmanagedType::ByValTStr)] enum value for the method to work correctly. Then, when instantiating a new Font in your managed application, you must cast the LOGFONT class (with appropriate member values assigned) to a System::Object for the function to work without generating a runtime exception.

.

    [MarshalAs(UnmanagedType.ByValArray, SizeConst = 2)]

.

        <MarshalAs(UnmanagedType.ByValArray, SizeConst := 2)> _

.

    Public Sub New(ByVal owner As Control)

.

    [MarshalAs(UnmanagedType.ByValArray, SizeConst = 16)]

.

    [MarshalAs(UnmanagedType.ByValArray, SizeConst = 4)]

.

    [MarshalAs(UnmanagedType.ByValArray, SizeConst = 16)]

.

    [MarshalAs(UnmanagedType.ByValArray, SizeConst = 4)]

.

     [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.Struct, SizeConst = 1)]

.

    [MarshalAs(UnmanagedType.ByValArray, SizeConst = 4)]

.

    [MarshalAs(UnmanagedType.ByValArray, SizeConst = 4)]

.

    <MarshalAs(UnmanagedType.ByValArray, SizeConst := 4)> _

.

    <MarshalAs(UnmanagedType.ByValArray, SizeConst := 4)> _

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


 
Access PInvoke.net directly from VS: