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]

oleaut32

.

Declare Unicode Function LoadTypeLib Lib "oleaut32.dll" (ByVal szFile As String, ByRef TPpTypeLib As System.Runtime.InteropServices.ComTypes.ITypeLib) As Integer

.

Declare Unicode Function RegisterTypeLib Lib "oleaut32.dll" (ByVal ptlib As System.Runtime.InteropServices.ComTypes.ITypeLib, ByVal szFullPath As String, ByVal szHelpDir As String) As Integer

.

Declare Function RegisterTypeLib Lib "oleaut32.dll" (ByVal pTLB As Object, szFullPath As Byte, szHelpFile As Byte) As Long

.

Declare Unicode Function UnRegisterTypeLib Lib "oleaut32.dll" (ByRef LibID As System.Guid, ByVal nVerMajor As Short, ByVal nVerMinor As Short, ByVal lCID As Integer, ByVal tSysKind As System.Runtime.InteropServices.ComTypes.SYSKIND) As Integer

.

Declare Function UnRegisterTypeLib Lib "oleaut32.dll" (LibID As tGUID, ByVal nVerMajor As Integer, ByVal nVerMinor As Integer, ByVal lCID As Long, ByVal tSysKind As eSYSKIND) As Long

.

    Private Declare Unicode Function LoadTypeLib Lib "oleaut32.dll" (ByVal TLpszModule As String, ByRef TPpTypeLib As ComTypes.ITypeLib2) As Integer

.

    Private Declare Unicode Function RegisterTypeLib Lib "oleaut32.dll" (ByVal ptlib As ComTypes.ITypeLib2, ByVal szFullPath As String, ByVal szHelpDir As String) As Integer

.

    Private Declare Unicode Function UnRegisterTypeLib Lib "oleaut32.dll" (ByRef LibID As System.Guid, ByVal nVerMajor As Short, ByVal nVerMinor As Short, ByVal lCID As Integer, ByVal tSysKind As ComTypes.SYSKIND) As Integer

.

    Public Function RegisterTLib(ByVal strFile As String, ByVal bRegister As Boolean) As Boolean

.

Declare Function VarBstrFromDisp Lib "oleaut32.dll" (Byval Disp as IntPtr, Byval lcid As Integer, Byref pbstrOut as String) As Integer

.

Public Shared Sub memset(<[In](), Out()> ByVal dest As IntPtr, _

.

              <[In]()> ByVal c As Integer, _

.

              <[In]()> ByVal count As UInteger)

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

credui

.

    Public Shared Function CredPackAuthenticationBuffer(ByVal dwFlags As UInt32, ByVal pszUserName As String, ByVal pszPassword As String, ByVal pPackedCredentials As IntPtr, ByRef pcbPackedCredentials As UInt32) As <MarshalAs(UnmanagedType.Bool)> Boolean

.

                            byval targetName as string, _

.

                            byval reserved1 as IntPtr, _

.

                            byval iError as int32, _

.

                            byval UserName as StringBuilder, _

.

                            byval maxUserName AS int32, _

.

                            byval password AS StringBuilder, _

.

                            byval maxPassword as inte32, _

.

                            byval targetName as string, _

.

                            byval reserved1 as IntPtr, _

.

                            byval iError as int32, _

.

                            byval maxUserName AS int32, _

.

                            byval maxPassword as inte32, _

.

                                ByVal dwAuthError As UInt32, _

.

                                ByVal pvInAuthBuffer As IntPtr, _

.

                                ByVal ulInAuthBufferSize As UInt32, _

.

                                ByVal dwFlags As CredUIWinFlags) As CredUIReturnCodes

.

    Public Shared Function CredUnPackAuthenticationBuffer(ByVal dwFlags As UInt32, _

.

                              ByVal pAuthBuffer As IntPtr, ByVal cbAuthBuffer As UInt32, _

.

                              ByVal pszUserName As StringBuilder, ByRef pcchMaxUserName As UInt32, _

.

                              ByVal pszDomainName As StringBuilder, ByRef pcchMaxDomainName As UInt32, _

.

                              ByVal pszPassword As StringBuilder, ByRef pcchMaxPassword As UInt32) As <MarshalAs(UnmanagedType.Bool)> Boolean

rasapi32

.

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

.

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

.

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

.

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

.

        [MarshalAs(UnmanagedType.ByValTStr, SizeConst = RAS_MAXDEVICETYPE + 1)]

.

        [MarshalAs(UnmanagedType.ByValTStr, SizeConst = RAS_MAXDEVICENAME + 1)]

.

Private Declare Auto Function RasEnumDevices Lib "rasapi32.dll" (ByVal lpRasDevInfo As IntPtr, ByRef lpcb As Integer, ByRef lpcDevices As Integer) As Integer

.

        <MarshalAs(UnmanagedType.ByValTStr, SizeConst:=RAS_MAXDEVICETYPE + 1)> _

.

        <MarshalAs(UnmanagedType.ByValTStr, SizeConst:=RAS_MAXDEVICENAME + 1)> _

.

     ByVal reserved As String, _

.

     ByVal lpszPhoneBook As String, _

.

     ByVal lpRasEntryName As IntPtr, _

.

        [MarshalAs(UnmanagedType.ByValTStr,SizeConst=RAS_MaxEntryName + 1)]

.

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

.

        [MarshalAs(UnmanagedType.ByValTStr, SizeConst = RAS_MaxEntryName + 1)]

.

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

.

     ByVal hRasConn As IntPtr, _

.

    ByVal lpszPhonebook As String, _

.

    Private Shared Function RasGetEntryProperties(ByVal lpszPhoneBook As String, _

.

                          ByVal szEntry As String, _

.

                          ByVal lpbEntry As IntPtr, _

.

                          ByVal lpb As IntPtr, _

.

                          ByVal lpdwSize As IntPtr) As UInt32

.

Public Shared Function RasHangUp(ByVal hRasConn As IntPtr) As UInt32

.

          [MarshalAs(UnmanagedType.ByValTStr,SizeConst =

.

          [MarshalAs(UnmanagedType.ByValTStr,SizeConst =

.

          [MarshalAs(UnmanagedType.ByValTStr,SizeConst =

.

          [MarshalAs(UnmanagedType.ByValTStr,SizeConst =

.

          [MarshalAs(UnmanagedType.ByValTStr,SizeConst =

.

          [MarshalAs(UnmanagedType.ByValTStr,SizeConst =

.

          [MarshalAs(UnmanagedType.ByValTStr,SizeConst =

.

          [MarshalAs(UnmanagedType.ByValTStr,SizeConst =

.

          [MarshalAs(UnmanagedType.ByValTStr,SizeConst =

.

          [MarshalAs(UnmanagedType.ByValTStr,SizeConst =

.

          [MarshalAs(UnmanagedType.ByValTStr,SizeConst =

.

          [MarshalAs(UnmanagedType.ByValTStr,SizeConst =

.

          [MarshalAs(UnmanagedType.ByValTStr,SizeConst =

.

          [MarshalAs(UnmanagedType.ByValTStr,SizeConst =

.

          [MarshalAs(UnmanagedType.ByValTStr,SizeConst =

xolehlp

.

Public Declare Ansi Sub DtcGetTransactionManager Lib "xolehlp.dll" (ByVal hostName As String, ByVal tmName As String, ByVal iid As Guid, ByVal dwReserved1 As Integer, ByVal wReserved2 As Short, ByVal pvReserved As Integer, ByRef ppv As Integer)

wer

.

    <DllImport("wer.dll", SetLastError:=True, CharSet:=CharSet.Unicode)> Private Shared Function WerAddExcludedApplication(ByVal pwzExeName As String, ByVal bAllUsers As Boolean) As Integer

difxapi

.

Public Delegate Sub DIFLOGCALLBACK(ByVal EventType As DIFXAPI_LOG, ByVal ErrorCode As Int32, <MarshalAs(UnmanagedType.LPTStr)> ByVal EventDescription As String, ByVal CallbackContext As IntPtr)

.

Public Sub DIFLogCallbackFunc(ByVal EventType As DIFXAPI_LOG, ByVal ErrorCode As Int32, ByVal EventDescription As String, ByVal CallbackContext As IntPtr)

.

Public Delegate Sub DIFXAPILOGCALLBACK(ByVal EventType As DIFXAPI_LOG, ByVal ErrorCode As Int32, <MarshalAs(UnmanagedType.LPTStr)> ByVal EventDescription As String, ByVal CallbackContext As IntPtr)

.

Public Sub DIFxAPILogCallbackFunc(ByVal EventType As DIFXAPI_LOG, ByVal ErrorCode As Int32, ByVal EventDescription As String, ByVal CallbackContext As IntPtr)

.

Public Declare Auto Function DIFXAPISetLogCallback Lib "DIFxAPI.dll" (ByVal LogCallback As DIFXAPILOGCALLBACK, ByVal CallbackContext As IntPtr) As Int32

.

Public Declare Auto Function DriverPackageGetPath Lib "DIFxAPI.dll" (ByVal DriverPackageInfPath As String, ByVal pDestInfPath As String, ByRef pNumOfChars As Int32) As Int32

.

Public Declare Auto Function DriverPackageInstall Lib "DIFxAPI.dll" (ByVal DriverPackageInfPath As String, ByVal Flags As Int32, ByVal pInstallerInfo As IntPtr, ByRef pNeedReboot As Boolean) As Int32

.

Public Declare Auto Function DriverPackagePreinstall Lib "DIFxAPI.dll" (ByVal DriverPackageInfPath As String, ByVal Flags As Int32) As Int32

.

Public Declare Auto Function DriverPackageUninstall Lib "DIFxAPI.dll" (ByVal DriverPackageInfPath As String, ByVal Flags As Int32, ByVal pInstallerInfo As IntPtr, ByRef pNeedReboot As Boolean) As Int32

.

Public Declare Auto Function SetDifxLogCallback Lib "DIFxAPI.dll" (ByVal LogCallback As DIFLOGCALLBACK, ByVal CallbackContext As IntPtr) As Int32

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

32: 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

33: 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

34: 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

35: 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

48: 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

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


 
Access PInvoke.net directly from VS: