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

dnsapi

.

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

.

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

.

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

.

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

.

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

.

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

.

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

.

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

.

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

.

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

msvcrt

.

Public Shared Function fclose(ByVal stream As IntPtr) As Int32

.

Public Shared Function fopen_s(ByRef pFile As IntPtr, ByVal filename As String, ByVal mode As String) As Int32

.

Public Shared Function _wfopen_s(ByRef pFile As IntPtr, ByVal filename As String, ByVal mode As String) As Int32

.

Declare Function freopen Lib "msvcrt.dll" (ByVal filename As String, ByVal mode As String, ByVal stream As IntPtr) As IntPtr

.

    Public Shared Sub CopyMemory(ByVal dest As IntPtr, ByVal src As IntPtr, ByVal count As Integer)

.

  Public Shared Function sprintf(ByVal TargetString As System.Text.StringBuilder,

.

    ByVal  FormatSpecifier As String, ByVal i As Int32) As Int32

.

    srand(ByVal seed As Integer)

.

Public Declare Function system Lib "msvcrt.dll" (ByVal sCommand As String) As Long

.

   Public Declare Function system Lib "msvcrt.dll" (ByVal sCommand As String) As Long

gdi32

.

    (ByVal hdcDest As IntPtr, ByVal nXOriginDest As Integer, ByVal nYOriginDest As Integer,

.

    ByVal nWidthDest As Integer, ByVal nHeightDest As Integer,

.

    ByVal hdcSrc As IntPtr, ByVal nXOriginSrc As Integer, ByVal nYOriginSrc As Integer,

.

    ByVal nWidthSrc As Integer, ByVal nHeightSrc As Integer,

.

    ByVal blendFunction As BLENDFUNCTION) As Boolean

11: Arc
.

Declare Function ArcTo Lib "gdi32.dll" (ByVal hdc As IntPtr, _

.

  ByVal nLeftRect As Integer, ByVal nTopRect As Integer, _

.

  ByVal nRightRect As Integer, ByVal nBottomRect As Integer, _

.

  ByVal nXRadial1 As Integer, ByVal nYRadial1 As Integer, _

.

  ByVal nXRadial2 As Integer, ByVal nYRadial2 As Integer) As Boolean

12: ArcTo
.

Declare Function ArcTo Lib "gdi32.dll" (ByVal hdc As IntPtr, _

.

  ByVal nLeftRect As Integer, ByVal nTopRect As Integer, _

.

  ByVal nRightRect As Integer, ByVal nBottomRect As Integer, _

.

  ByVal nXRadial1 As Integer, ByVal nYRadial1 As Integer, _

.

  ByVal nXRadial2 As Integer, ByVal nYRadial2 As Integer) As Boolean

13: BitBlt
.

Private Shared Function BitBlt(ByVal hdc As IntPtr, ByVal nXDest As Integer, ByVal nYDest As Integer, ByVal nWidth As Integer, ByVal nHeight As Integer, ByVal hdcSrc As IntPtr, ByVal nXSrc As Integer, ByVal nYSrc As Integer, ByVal dwRop As TernaryRasterOperations) As Boolean

14: Chord
.

Public Function Chord(ByVal hDc As IntPtr, ByVal nLeftRect As Integer, ByVal nTopRect As Integer,

.

               ByVal nRightRect As Integer, ByVal nBottomRect As Integer, ByVal nXRadial1 As Integer,

.

               ByVal nYRadial1 As Integer, ByVal nXRadial2 As Integer, ByVal nYRadial2 As Integer) As Boolean

.

Private Shared Function CombineRgn(ByVal hrgnDest As IntPtr,

.

   ByVal hrgnSrc1 As IntPtr, ByVal hrgnSrc2 As IntPtr,

.

   ByVal fnCombineMode As Integer) As Integer

.

Shared Function CopyMetaFile(ByVal hmfSrc As IntPtr, ByVal lpszFile As String) As IntPtr

.

Private Shared Function CreateCompatibleDC(ByVal hRefDC As IntPtr) As IntPtr

.

ByVal hdc As IntPtr, _

.

ByVal fdwInit As UInteger, _

.

ByVal lpbInit As Byte(), _

.

ByVal fuUsage As UInteger) _

.

  Private Shared Function CreateDIBSection(ByVal hdc As Int32, _

.

    ByRef pbmi As BITMAPINFO, ByVal iUsage As System.UInt32, _

.

    ByRef ppvBits As Int32, ByVal hSection As Int32, _

.

    ByVal dwOffset As System.UInt32) As Int32

.

Public Function CreateEllipticRgn(ByVal X1 As Integer, ByVal Y1 As Integer, ByVal X2 As Integer, ByVal Y2 As Integer) As Integer

.

Public Function CreatePatternBrush(ByVal hbmp As IntPtr) As IntPtr

.

Private Shared Function CreateRectRgn(ByVal nLeftRect As Integer, ByVal nTopRect As Integer, ByVal nRightRect As Integer, ByVal nBottomRect As Integer) As IntPtr

.

          (ByVal hDC As Long) As Long

.

Shared Function DeleteEnhMetaFile(ByVal hemf As IntPtr) As Boolean

.

Shared Function DeleteMetaFile(ByVal hmf As IntPtr) As Boolean

.

          (ByVal hObject As Long) As Long

27: EndDoc
.

  Public Function EndDoc(ByVal hdc As IntPtr) As Integer

.

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

.

    [MarshalAs(UnmanagedType.ByValArray)]

.

    [MarshalAs(UnmanagedType.ByValArray)]

.

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

.

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

.

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

.

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

.

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

.

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

.

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

.

    [MarshalAs(UnmanagedType.ByValArray)]

.

    [MarshalAs(UnmanagedType.ByValArray)]

.

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

.

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

.

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

.

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

.

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

.

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

.

    Public Shared Function ExtEscape(ByVal hdc As IntPtr, ByVal nEscape As Integer, ByVal cbInput As Integer, ByVal lpszInData As String, ByVal cbOutput As Integer, ByRef lpszOutData As IntPtr) As Integer

.

Declare Function FloodFill Lib "gdi32" (ByVal hDC As Integer, ByVal x As Integer, ByVal y As Integer, ByVal crColor As Integer) As Integer

.

          (ByVal prmlngHD As Long) As Long

.

        (ByVal prmlngHDc As Long) As Long

.

Public Shared Function GetDeviceCaps(ByVal hDC As IntPtr, ByVal nIndex As Integer) As Integer

.

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

.

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

.

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

.

Public Declare Function GetPixel Lib "gdi32" Alias "GetPixel" (ByVal hdc As Long, ByVal X As Long, ByVal Y As Long) As Long

.

         (ByVal hDC As Long) As Long

.

    ByVal hdc As Integer, _

.

    ByVal nCount As Integer) _

.

Public Shared Function SelectObject(ByVal hdc As IntPtr, ByVal hObject As IntPtr) As IntPtr

.

          (ByVal prmlngHDc As Long, _

.

           ByVal hObject As Long) As Long

.

         (ByVal prmlngHDc As Long, _

.

          ByVal ColorRef As Long) As Long

.

        (ByVal prmlngHDc As Long, _

.

         ByVal ColorRef As Integer) As Integer

.

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

.

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

.

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

.

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

.

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

.

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

.

Shared Function SetMetaFileBitsEx(ByVal nSize As UInteger, ByVal lpData As Byte()) As IntPtr

.

         (ByVal prmlngHDc As Long, _

.

          ByVal prmlngRGB As Long) As Long

.

    Shared Function TextOut(ByVal hdc As IntPtr, ByVal x As Integer, _

.

      ByVal y As Integer, ByVal textstring As String, _

.

      ByVal charCount As Integer) As Boolean

.

    Declare Function SetTextCharacterExtra Lib "gdi32" Alias "SetTextCharacterExtra" (ByVal hDC As Integer, ByVal nCharExtra As Integer) As Integer

.

    Private Shared Function TextOut(ByVal hdc As IntPtr, ByVal x As Integer, ByVal y As Integer, ByVal textstring As String, ByVal charCount As Integer) As Boolean

.

    Private Shared Function SelectObject(ByVal hdc As IntPtr, ByVal hgdiobj As IntPtr) As IntPtr

.

    Private Shared Function DeleteObject(ByVal objectHandle As IntPtr) As Boolean

.

    Private Shared Function SetBkColor(ByVal hdc As IntPtr, ByVal crColor As Integer) As UInt32

.

    Private Shared Function SetTextColor(ByVal hdc As IntPtr, ByVal crColor As Integer) As UInt32

.

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

rapi

.

     ByVal s As String,

.

Declare Function CeRegDeleteValue Lib "rapi.dll" (ByVal hKey as Integer, ByVal sValueName as String) As Integer

.

Public Function CeRegDeleteValue(ByVal hKey as Integer, ByVal sValueName as String) As Integer

.

    Private Sub SaveValue(ByVal thisval As String, ByVal textvalue As String)

.

            [MarshalAs(UnmanagedType.ByValTStr,SizeConst=260),FieldOffset(40)] public string Name;

.

        <MarshalAs(UnmanagedType.ByValTStr, sizeConst:=MAX_PATH)> _

.

MAX_PATH is set to 260 characters by Windows so we create a ByValTStr with this length. Can then just use the 'Name' field as a normal string

winmm

.

Private Shared Function mciGetErrorString(ByVal dwError As Integer, ByVal lpstrBuffer As System.Text.StringBuilder, ByVal uLength As Integer) As Integer

.

Public Declare Auto Function mciGetErrorString Lib "winmm.dll" (ByVal errorCode As Integer, ByRef errorText As StringBuilder, ByVal errorTextSize As Integer) As Integer

.

Private Shared Function mciSendString(ByVal command As String, ByVal buffer As StringBuilder, ByVal bufferSize As Integer, ByVal hwndCallback As IntPtr) As Integer

.

Declare Ansi Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" (ByVal command As String, ByRef buffer As StringBuilder, ByVal bufferSize As Integer, ByVal hWndCallback As IntPtr) As Integer

.

Public Sub OpenMediaFile(ByVal strFilePath As String)

.

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

.

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

.

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

.

    <DllImport("winmm.dll")> Shared Function midiOutOpen(ByRef lphMidiOut As IntPtr, ByVal uDeviceID As UInteger, ByVal dwCallback As IntPtr, ByVal dwInstance As IntPtr, ByVal dwFlags As UInteger) As UInteger

.

Public Declare Function midiStreamClose Lib "winmm.dll" (ByVal hMidiStream As IntPtr) As Integer

.

Public Declare Function midiStreamOpen Lib "winmm.dll" (ByVal hMidiStream As IntPtr, ByVal puDeviceId As IntPtr, ByVal cMidi As Integer, ByVal dwCallback As IntPtr, ByVal dwInstance As IntPtr, ByVal fdwOpen As Integer) As Integer

.

Declare Function midiStreamOut Lib "winmm.dll" (ByVal hMidiStream As IntPtr, ByVal lpMidiHdr As MIDIHDR, ByVal cbMidiHdr As UInteger) As Integer

.

Declare Function midiStreamPause Lib "winmm.dll" (ByVal hMidiStream As IntPtr) As Integer

.

Declare Function midiStreamPosition Lib "winmm.dll" (ByVal hms As IntPtr, ByVal pmmt As MMTIME, ByVal cbmmt As UInteger) As Integer

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


 
Access PInvoke.net directly from VS: