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

cfgmgr32

.

    ByRef ClassGuid As GUID, _

coredll

.
Summary
ByRef is a VB keyword that specifies a variable to be passed as a parameter BY REFERENCE. In other words, the pointer to the variable is passed and any change to its value made within the function or sub will change its value outside the function/sub.
.

static extern TODO ByRef(TODO);

.

Declare Function ByRef Lib "coredll.dll" (TODO) As TODO

.
Documentation
[ByRef] on MSDN
.

To pass a variable by reference (i.e. change the external variable to whatever value is set inside the function/sub) use ByRef before the parameter name.

.

Declare Function CeGetUserNotificationHandles Lib "coredll" (ByVal rghNotifications As IntPtr(), ByVal chandles As UInt32, ByRef pcHandlesNeeded As UInt32) As Boolean

.

       (ByVal AppName As String, ByRef lWhichEvent As Integer) As Boolean

.

       (ByVal AppName As String, ByRef ExecTime As SYSTEMTIME) As Boolean

.

    Public Shared Function WaitAny(ByRef waitHandles() As WaitEvent, Optional ByVal millisecondsTimeout As Integer = Infitite) As Integer

.

    Public Shared Function WaitAll(ByRef waitHandles() As WaitEvent, Optional ByVal millisecondsTimeout As Integer = Infitite) As Integer

.

    Private Shared Function Wait(ByRef waitEvents() As WaitEvent, ByVal waitAll As Boolean, ByVal millisecondsTimeout As Integer) As Integer

.

                         ByRef lpBytesReturned As Integer, ByVal lpOverlapped As Integer) As Integer

.

                          ByRef pcbDeviceIDOutput As Integer) As Integer

.

    ByRef lpFreeBytesAvailable As ULong, _

.

    ByRef lpTotalNumberOfBytes As ULong, _

.

    ByRef lpTotalNumberOfFreeBytes As ULong) As Boolean

.

  ByRef lpFreeBytesAvailableToCaller As Long, _

.

  ByRef lpTotalNumberOfBytes As Long, _

.

  ByRef lpTotalNumberOfFreeBytes As Long) As Long

.

Friend Shared Function GetModuleHandleEx(ByVal dwFlags As UInt32, ByVal lpModuleName As String, ByRef phModule As IntPtr) As Boolean

.

   (ByRef lpdwStorePages As UInt32, _

.

    ByRef ldpwRamPages As UInt32, _

.

    ByRef ldpwPageSize As UInt32) As Integer

.

    (ByRef ms As MEMORYSTATUS) As Integer

.

<DllImport("coredll.dll")> Private Shared Function GlobalMemoryStatus(ByRef ms As MEMORYSTATUS) As Int32

.

    ByRef lpPerformanceCount As Int64) As Integer

.

   Private Shared Function SetLocalTime(ByRef time As SYSTEMTIME) As Boolean

.

Public Shared Function SetSysColors(ByVal cElements As Integer, ByRef lpaElements As Integer(), ByRef lpaRgbValues As Integer()) As Integer

.

   Private Shared Function SetSystemTime(ByRef time As SYSTEMTIME) As Boolean

.

    Private Shared Function SetSystemTime(ByRef time As SYSTEMTIME) As Boolean

.

Declare Function ShowWindow Lib "coredll.dll" (ByRef hWnd As IntPtr, ByVal nCmdShow As Integer) As Boolean

.

Declare Auto Function waveInGetDevCaps Lib "winmm.dll" (ByVal uDeviceID as Integer, ByRef lpCaps As WAVEINCAPS, _

.

Declare Function waveOutGetVolume Lib "coredll.dll" (ByVal uDeviceID As Integer, ByRef lpdwVolume As Integer) As Integer

netapi32

.

    <Out()> ByRef SiteNameBuffer As IntPtr) As UInt32

.

Declare Function LsaQueryInformationPolicy Lib "Advapi32.dll" (ByVal PolicyHandle As IntPtr, ByVal InformationClass As UInteger, ByRef Buffer As IntPtr) As UInteger

.

Changed VB.NET Signature from "ByRef buffer" to "ByVal buffer". With ByRef you get a significant memory leak, with ByVal everything is fine.

.

        ByRef Buffer As IntPtr, _

.

        ByRef EntriesRead As Integer, _

.

        ByRef ResumeHandle As Integer) As Integer

.

    ByRef buffer As IntPtr) As Integer

.

Declare Unicode Function NetDfsGetInfo Lib "NETAPI32.DLL" (ByVal DfsEntryPath As String, ByVal ServerName As String, ByVal ShareName As String, ByVal Level As Integer, ByRef Buffer As IntPtr) As Integer

.

    ByRef bufptr As IntPtr, _

.

    ByRef entriesread As Integer, _

.

    ByRef totalentries As Integer, _

.

  Private Shared Function NetGetDCName(ByVal serverName As String, ByVal domainName As String, ByRef buffer As IntPtr) As NetApiStatus

.

    ByRef lpNameBuffer As IntPtr, _

.

    ByRef bufferType As NETSETUP_JOIN_STATUS) _

.

        ByRef lpNameBuffer As IntPtr, _

.

        ByRef bufferType As NETSETUP_JOIN_STATUS) _

.

    ByRef entriesRead As Integer, _

.

    ByRef Buffer As Long) As Integer

.

     ByRef OptionsSupported As NetSupportOption) _

.

    ByVal UncServerName As String, ByRef BufferPtr As IntPtr) As Integer

.

    Friend Shared Function NetScheduleJobAdd(ByVal Servername As String, ByVal Buffer As IntPtr, ByRef JobId As Integer) As Integer

.

    ByRef bufptr As IntPtr, _

.

    ByRef entriesread As Integer, _

.

    ByRef TotalEntries As Integer, _

.

    ByVal Level As Integer, ByRef ptrBuff As IntPtr) As Integer

.

        ByRef bufptr As IntPtr, _

.

        ByRef entriesread As Integer, _

.

        ByRef totalentries As Integer, _

.

        ByRef resume_handle As Integer) As Integer

.

            ByRef buf As SHARE_INFO_2, _

.

            ByRef parm_err As Integer) As Integer

.

            ByRef BufPtr As IntPtr,

.

            ByRef entriesread As Integer, _

.

            ByRef totalentries As Integer, _

.

            ByRef resume_handle As Integer) As Integer

.

        ByRef BufPtr As IntPtr, _

.

        ByRef entriesread As Integer, _

.

        ByRef totalentries As Integer, _

.

        ByRef resume_handle As Integer) As Integer

.

        ByRef BufPtr As IntPtr, _

.

        ByRef entriesread As Integer, _

.

        ByRef totalentries As Integer, _

.

        ByRef resume_handle As Integer) As Integer

.

    ByRef BufPtr As IntPtr) As Integer

.

      (ByRef buffer As IntPtr) As Long

.

            ByRef BufPtr As IntPtr) As Integer

.

    ByRef BufPtr As IntPtr) As Integer

.

    (ByRef buffer As IntPtr) As Long

.

    ByRef Buf As IntPtr, _

.

    ByRef EntriesRead As Integer, _

.

    ByRef TotalEntries As Integer, _

.

    ByRef resumeHandle As IntPtr) As NET_API_STATUS

.

    ByRef buf As USER_INFO_1, _

.

    ByRef param_error As Integer) As Integer

.

    ByRef buf As USER_INFO_1, _

.

    ByRef param_error As Integer) As Integer

.

    ByRef bufptr As IntPtr, _

.

    ByRef entriesread As Integer, _

.

    ByRef totalentries As Integer, _

.

    ByRef resume_handle As Integer) As Integer

.

            ByVal level As Integer, ByRef bufptr As IntPtr, _

.

            ByVal prefmaxlen As Integer, ByRef entriesread As Integer, _

.

            ByRef totalentries As Integer) As Integer

.

        ByRef BufPtr As IntPtr) As Integer

.

     ByRef BufPtr As IntPtr) As Integer

.

    (ByRef buffer As IntPtr) As Long

.

    Public Function AccountGetFullName(ByVal MachineName As String, ByVal AccountName As String, ByRef FullName As String) As Boolean

.

            ByRef bufptr As IntPtr, _

.

            ByRef entriesread As Integer, _

.

            ByRef totalentries As Integer) As Integer

.

Shared Function NetWkstaUserEnum(ByVal servername As String, ByVal level As Integer, <System.Runtime.InteropServices.Out()> ByRef bufptr As IntPtr, ByVal prefmaxlen As Integer, <System.Runtime.InteropServices.Out()> ByRef entriesread As Integer, <System.Runtime.InteropServices.Out()> ByRef totalentries As Integer, ByRef resume_handle As Integer) As Integer

.

Declare Function NetWkstaUserGetInfo Lib "netapi32.dll" (ByVal reserved As String, ByVal level As Integer, ByRef lpBuffer As IntPtr) As Integer

userenv

.

    Public Shared Function CreateEnvironmentBlock(ByRef lpEnvironment As IntPtr, ByVal hToken As IntPtr, ByVal bInherit As Boolean) As Boolean

.

        Public Shared Function LoadUserProfile(ByVal hToken As IntPtr, ByRef lpProfileInfo As PROFILEINFO) As Boolean

iphlpapi

.

    Public Shared Function EnableRouter(pHandle As IntPtr, ByRef pOverlapped As OVERLAPPED) As Integer

.

    Public Shared Function EnableRouter(pHandle As IntPtr, ByRef pOverlapped As OVERLAPPED) As Integer

.

     ByRef pBufOutLen As UInt64) As Int32

.

Public Shared Function GetExtendedTcpTable(ByVal pTcpTable As IntPtr, ByRef dwOutBufLen As Integer, ByVal sort As Boolean, ByVal ipVersion As  Integer, ByVal tblClass As TCP_TABLE_CLASS, ByVal reserved As Integer) As UInteger

.

GetIpAddrTable Lib "iphlpapi.dll" (ByRef ipTable As IntPtr, ByRef tableSize As IntPtr, ByVal ordered As Boolean) As UInt32

.

    Private Shared Function GetIpNetTable(pIpNetTable As IntPtr, <MarshalAs(UnmanagedType.U4)> ByRef pdwSize As Integer, bOrder As Boolean) As <MarshalAs(UnmanagedType.U4)> Integer

.

    Public Shared Function GetNetworkParams(pFixedInfo As IntPtr, ByRef pBufOutLen As Integer) As Integer

.

    Private Shared Function GetNetworkParams(pFixedInfo As IntPtr, ByRef pBufOutLen As Integer) As Integer

.

      ByVal pMacAddr As Byte(), ByRef PhyAddrLen As Integer) As Integer

.

    Public Shared Function UnenableRouter(pOverlapped As IntPtr, ByRef lpdwEnableCount As Long) As Integer

.

    Public Shared Function UnenableRouter(pOverlapped As IntPtr, ByRef lpdwEnableCount As Long) As Integer

shell32

.

    ByRef pNumArgs As Integer) As Long

.

      ByRef index As Short) As IntPtr

.

            ByRef phiconLarge() As IntPtr, _

.

            ByRef phiconSmall() As IntPtr, _

.

         ByRef phiconLarge As Integer, _

.

         ByRef phiconSmall As Integer, _

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


 
Access PInvoke.net directly from VS: