Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
1` DF
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "ByVal" in [All]

dwmapi

.

Private Shared Function DwmDefWindowProc(ByVal hWnd As IntPtr, ByVal msg As Integer, ByVal wParam As IntPtr, ByVal lParam As IntPtr, ByRef plResult As IntPtr) As Integer

.

Private Shared Sub DwmEnableBlurBehindWindow(ByVal hwnd As IntPtr, ByRef blurBehind As DWM_BLURBEHIND)

.

    Public Shared Sub DwmEnableComposition(ByVal uCompositionAction As CompositionAction)

.

Private Shared Function DwmExtendFrameIntoClientArea(ByVal hwnd As IntPtr, ByRef margins As MARGINS) As Integer

.

Shared Function DwmpSetColorization(ByVal ColorizationColor As UInt32, ByVal ColorizationOpaqueBlend As Boolean, ByVal Opacity As UInt32) As Integer

.

Public Shared Sub DwmQueryThumbnailSourceSize(ByVal hThumbnail as IntPtr, ByRef size as Size);

.

Declare Function DwmRegisterThumbnail Lib "dwmapi.dll" (ByVal Dest as IntPtr, ByVal Src as IntPtr, ByRef Thumb as IntPtr) As Integer

.

    Public Declare Function DwmUnregisterThumbnail Lib "dwmapi.dll" (ByVal Thumb as IntPtr) As Integer

.

Public Declare Function DwmUpdateThumbnailProperties Lib "dwmapi.dll" (ByVal hThumbnail as IntPtr, ByRef props as DWM_THUMBNAIL_PROPERTIES) As Integer

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

httpapi

.

Private Shared Function HttpInitialize(ByVal Version As HTTPAPI_VERSION, ByVal Flags As UInteger, ByVal pReserved As IntPtr) As UInteger

.

Declare Function HttpSetServiceConfiguration Lib "httpapi.dll" (ByVal mustbezero As IntPtr, ByVal configID As Integer, ByVal configInfo As HTTP_SERVICE_CONFIG_URLACL_SET, ByVal configInfoLength As Integer, ByVal mustBeZero2 As IntPtr) As Integer

cfgmgr32

.

    ByVal ClassIndex As Integer, _

.

    Optional ByVal Flags As Integer = &H0) As Integer

.

    ByVal dnDevNode As Integer, _

.

    ByVal samDesired As Integer, _

.

    ByVal ulHardwareProfile As Integer, _

.

    ByVal Disposition As Integer, _

.

    ByVal phkDevice As Integer, _

.

    ByVal ulFlags As Integer) As Integer

setupapi

.

    Private Shared Function CM_Get_DevNode_Status(ByRef status As ULong, ByRef probNum As ULong, ByVal devInst As IntPtr, ByVal Flag As Integer) As Integer

.

(ByVal DeviceInfoSet As Long, DeviceInterfaceData As Any, _

.

ByVal DeviceInterfaceDetailDataSize As Long, _

.

RequiredSize As Long, ByVal DeviceInfoData As Long) As Long

.

(ByVal lpFileName As String, ByVal dwDesiredAccess As Long, _

.

ByVal dwShareMode As Long, lpSecurityAttributes As Any, _

.

ByVal dwCreationDisposition As Long, _

.

ByVal dwFlagsAndAttributes As Long, _

.

ByVal hTemplateFile As Long) As Long

.

(ByVal HandleToClose As Long)

.

(ByVal Handle As Long, ByVal BufferPtr As Long, _

.

ByVal ByteCount As Long, BytesReturnedPtr As Long, _

.

ByVal OverlappedPtr As Long) As Long

.

(ByVal Handle As Long, Buffer As String, _

.

ByVal ByteCount As Long, BytesReturnedPtr As Long, _

.

ByVal OverlappedPtr As Long) As Long

.

ByVal EnumPtr As Long, ByVal hwndParent As Long, _

.

ByVal Flags As Long) As Long

.

(ByVal DeviceInfoSet As Long) As Boolean

.

Lib “setupapi.dll” (ByVal Handle As Long, _

.

ByVal InfoPtr As Long, GuidPtr As Long, _

.

ByVal MemberIndex As Long, _

.

Public Declare Auto Sub SetupCloseInfFile Lib "setupapi.dll" (ByVal InfHandle As IntPtr)

.

Public Shared Function SetupDiCallClassInstaller(ByVal InstallFunction As Integer, _

.

                          ByVal DeviceInfoSet As Integer, _

.

Public Shared Function SetupDiCallClassInstaller(ByVal InstallFunction As IntPtr, _

.

                          ByVal DeviceInfoSet As IntPtr, _

.

    ByVal ClassName As StringBuilder, _

.

    ByVal ClassGuidSize As Integer, _

.

    ByVal DeviceInfoSet As Integer) As Boolean

.

    ByVal DeviceInfoSet As Integer, _

.

    ByVal MemberIndex As Integer, _

.

  Public Shared Function SetupDiEnumDeviceInterfaces(ByVal hDevInfo As IntPtr, _

.

    ByVal memberIndex As UInt32, ByRef deviceInterfaceData As SP_DEVICE_INTERFACE_DATA) As Boolean

.

    ByVal DeviceInfoSet As IntPtr, _

.

    ByVal DeviceInfoData As UInteger, _

.

    ByVal MemberIndex As UInteger, _

.

    ByVal Enumerator As Integer, _

.

    ByVal hwndParent As Integer, _

.

    ByVal Flags As Integer) As Integer

.

    ByVal samDesired As Integer, _

.

    ByVal Flags As Integer, _

.

    ByVal Reserved As Integer) As Integer

.

    ByVal Enumerator As IntPtr, _

.

    ByVal hwndParent As IntPtr, _

.

    ByVal Flags As UInteger) As IntPtr

.

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

.

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

.

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

.

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

.

Public Shared Function SetupDiGetDeviceInstallParams(ByVal hDevinfo As Integer, _  'Alternate ByVal hDevInfo as IntPtr

.

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

.

    ByVal hDevInfo As IntPtr, _

.

    ByVal deviceInterfaceDetailDataSize As Int32, _

.

    ByVal DeviceInfoSet As IntPtr, _

.

    ByVal DeviceInterfaceDetailDataSize As UInteger, _

.

SP_DEVICE_INTERFACE_DETAIL_DATA needs a ByVal TCHAR[ANYSIZE_ARRAY] member, which could conceivably be any size. This does not bode well for determining the correct size, however DevicePath should be no longer than MAX_PATH (256).

.

    ByVal DeviceInfoSet As Integer, _

.

    ByVal [Property] As Integer, _

.

    ByVal PropertyBuffer As Byte(), _

.

    ByVal PropertyBufferSize As Integer, _

.

    ByVal samDesired As Integer, _

.

    ByVal Flags As Integer, _

.

    ByVal MachineName As Integer, _

.

    ByVal Reserved As Integer) As Integer

.

Public Declare Auto Function SetupFindFirstLine Lib "setupapi.dll" (ByVal InfHandle As IntPtr, ByVal Section As String, ByVal Key As String, ByRef Context As INFCONTEXT) As Boolean

.

Public Declare Auto Function SetupFindNextMatchLine Lib "setupapi.dll" (ByRef ContextIn As INFCONTEXT, ByVal Key As String, ByRef ContextOut As INFCONTEXT) As Boolean

.

Public Declare Auto Function SetupGetStringField Lib "setupapi.dll" (ByRef Context As INFCONTEXT, ByVal FieldIndex As Int32, ByVal ReturnBuffer As String, ByVal ReturnBufferSize As Int32, ByRef RequiredSize As Int32) As Boolean

.

Public Declare Auto Function SetupOpenInfFile Lib "setupapi.dll" (ByVal FileName As String, ByVal InfClass As String, ByVal InfStyle As Int32, ByRef ErrorLine As UInteger) As IntPtr

twain_32

.

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

.

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

.

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

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

getuname

.

Declare Function GetUName Lib "getuname.dll" (ByVal wCharCode As UShort, <MarshalAs(UnmanagedType.LPWStr)> ByVal lpbuf As StringBuilder) As Integer

.

     Private Declare Function GetUName Lib "getuname.dll" (ByVal wCharCode As UShort, <MarshalAs(UnmanagedType.LPWStr)> ByVal lpbuf As System.Text.StringBuilder) As Integer

kernel32

.

Private Declare Function ActivateActCtx Lib "Kernel32" (ByVal hActCtx As IntPtr, _

.

                    <Out()> ByVal lpCookie As IntPtr) As Boolean

.

Declare Function AddConsole Lib "kernel32" (ByVal Source As String, ByVal Target As String, ByVal ExeName As String) As Boolean

.

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

.

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

.

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

45: Beep
.

Declare Function Lib "kernel32.dll" Alias "Beep" (ByVal dwFrequency As Long, ByVal dwMilliseconds As Long) As Long

.

     Public Declare Sub Wait Lib "kernel32" Alias "Sleep" (ByVal dwMilliseconds As Integer)

.

    Public Shared Function BeginUpdateResource(ByVal pFileName As String, _

.

    <MarshalAs(UnmanagedType.Bool)> ByVal bDeleteExistingResources As Boolean) As IntPtr

.

(ByVal hProcess As Long, ByVal fResult As Boolean) As Boolean

.

    (ByVal hProcess As Long, ByVal fResult As Boolean) As Boolean

.

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

.

Public Shared Function CloseHandle(ByVal hObject As IntPtr) As <MarshalAs(UnmanagedType.Bool)> Boolean

.

Declare Auto Function CloseHandle Lib "kernel32.dll" (ByVal hObject As IntPtr) As Boolean

.

Declare Function CloseHandle Lib "kernel32" Alias "CloseHandle" (ByVal hObject As Integer) As Integer

.

    Public Declare Unicode Function CompareStringEx Lib "kernel32" (ByVal strLocaleName As String, ByVal dwComparationFlags As EComparationFlags, ByVal str1 As String, ByVal iLength1 As Int32, ByVal str2 As String, ByVal iLength2 As Int32, ByVal pVersionInformation As IntPtr, ByVal pReserved As IntPtr, ByVal lParam As IntPtr) As EComparationResult

.

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

51: COORD
.

    Public Sub New(ByVal x As Short, ByVal y As Short)

.

Private Declare Auto Function CopyFileEx Lib "kernel32.dll" (ByVal lpExistingFileName As String, _

.

     ByVal lpNewFileName As String, ByVal lpProgressRoutine As CopyProgressRoutine, _

.

     ByVal lpData As IntPtr, ByRef pbCancel As Boolean, _

.

     ByVal dwCopyFlags As CopyFileFlags) As <MarshalAs(UnmanagedType.Bool)> Boolean

.

    Private Declare Auto Function CopyFileEx Lib "kernel32.dll" (ByVal lpExistingFileName As String, _

.

        ByVal lpNewFileName As String, ByVal lpProgressRoutine As CopyProgressRoutine, _

.

        ByVal lpData As IntPtr, ByRef pbCancel As Boolean, _

.

        ByVal dwCopyFlags As CopyFileFlags) As <MarshalAs(UnmanagedType.Bool)> Boolean

.

    Private Delegate Function CopyProgressRoutine(ByVal TotalFileSize As Long, _

.

        ByVal TotalBytesTransferred As Long, ByVal StreamSize As Long, ByVal StreamBytesTransferred As Long, _

.

        ByVal dwStreamNumber As UInteger, ByVal dwCallbackReason As CopyProgressCallbackReason, _

.

        ByVal hSourceFile As IntPtr, ByVal hDestinationFile As IntPtr, ByVal lpData As IntPtr) As CopyProgressResult

.

    Private Function GetFilenameFromPath(ByVal filePath As String, _

.

                Optional ByVal errMsg As String = "") As String

.

    Public Sub New(ByVal _sourcePath As String, ByVal _destPath As String, ByVal _overWrite As Boolean)

.

    Public Sub CopyEx(ByVal _sourcePath As String, ByVal _destPath As String, ByVal _overWrite As Boolean)

.

    Private Function CopyProgressHandler(ByVal total As Long, ByVal transferred As Long, ByVal streamSize As Long, ByVal StreamByteTrans As Long, ByVal dwStreamNumber As UInteger, ByVal reason As CopyProgressCallbackReason, _

.

     ByVal hSourceFile As IntPtr, ByVal hDestinationFile As IntPtr, ByVal lpData As IntPtr) As CopyProgressResult

.

Private Declare Auto Function CopyFileEx Lib "kernel32.dll" (ByVal lpExistingFileName As String, _

.

     ByVal lpNewFileName As String, ByVal lpProgressRoutine As CopyProgressRoutine, _

.

     ByVal lpData As IntPtr, ByRef pbCancel As Boolean, _

.

     ByVal dwCopyFlags As CopyFileFlags) As <MarshalAs(UnmanagedType.Bool)> Boolean

.

    Private Declare Auto Function CopyFileEx Lib "kernel32.dll" (ByVal lpExistingFileName As String, _

.

        ByVal lpNewFileName As String, ByVal lpProgressRoutine As CopyProgressRoutine, _

.

        ByVal lpData As IntPtr, ByRef pbCancel As Boolean, _

.

        ByVal dwCopyFlags As CopyFileFlags) As <MarshalAs(UnmanagedType.Bool)> Boolean

.

    Private Delegate Function CopyProgressRoutine(ByVal TotalFileSize As Long, _

.

        ByVal TotalBytesTransferred As Long, ByVal StreamSize As Long, ByVal StreamBytesTransferred As Long, _

.

        ByVal dwStreamNumber As UInteger, ByVal dwCallbackReason As CopyProgressCallbackReason, _

.

        ByVal hSourceFile As IntPtr, ByVal hDestinationFile As IntPtr, ByVal lpData As IntPtr) As CopyProgressResult

.

    Private Function GetFilenameFromPath(ByVal filePath As String, _

.

                Optional ByVal errMsg As String = "") As String

.

    Public Sub New(ByVal _sourcePath As String, ByVal _destPath As String, ByVal _overWrite As Boolean)

.

    Public Sub CopyEx(ByVal _sourcePath As String, ByVal _destPath As String, ByVal _overWrite As Boolean)

.

    Private Function CopyProgressHandler(ByVal total As Long, ByVal transferred As Long, ByVal streamSize As Long, ByVal StreamByteTrans As Long, ByVal dwStreamNumber As UInteger, ByVal reason As CopyProgressCallbackReason, _

.

     ByVal hSourceFile As IntPtr, ByVal hDestinationFile As IntPtr, ByVal lpData As IntPtr) As CopyProgressResult

.

    ByVal lpEventAttributes As IntPtr, _

.

    ByVal bManualReset As Boolean, _

.

    ByVal bInitialState As Boolean, _

.

    ByVal lpName As String) As IntPtr

.

    Friend Function CreateFile(ByVal lpFileName As String, _

.

    ByVal dwDesiredAccess As EFileAccess, _

.

    ByVal dwShareMode As EFileShare, _

.

    ByVal lpSecurityAttributes As IntPtr, _

.

    ByVal dwCreationDisposition As ECreationDisposition, _

.

    ByVal dwFlagsAndAttributes As EFileAttributes, _

.

    ByVal hTemplateFile As IntPtr) As Microsoft.Win32.SafeHandles.SafeFileHandle

.

Private Declare PtrSafe Function CreateFileA Lib "kernel32.dll" (ByVal lpFileName As String, _

.

    ByVal dwDesiredAccess As LongPtr, _

.

    ByVal dwShareMode As LongPtr, _

.

    ByVal lpSecurityAttributes As LongPtr, _

.

    ByVal dwCreationDisposition As LongPtr, _

.

    ByVal dwFlagsAndAttributes As LongPtr, _

.

    ByVal hTemplateFile As LongPtr) _

.

Private Shared Function CreateHardLink(ByVal lpFileName As String, ByVal lpExistingFileName As String, ByVal lpSecurityAttributes As IntPtr) As Boolean

.

(ByVal lpName As String, _

.

  ByVal nMaxMessageSize As UInt32, _

.

  ByVal lReadTimeoutAs As UInt32, _

.

  ByVal lpSecurityAttributes As IntPtr _

.

    Public Function CreateMutex(ByVal lpMutexAttributes As IntPtr, _

.

    ByVal bInitialOwner As Boolean, _

.

    ByVal lpName As String) As IntPtr

.

Function CreatePipe Lib "kernel32" (phReadPipe As Long, phWritePipe As Long, lpPipeAttributes As Any, ByVal nSize As Long) As Long

.

Private Shared Function CreateSymbolicLink(ByVal lpSymlinkFileName As String, ByVal lpTargetFileName As String, ByVal dwFlags As SYMBOLIC_LINK_FLAG) As Boolean

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


 
Access PInvoke.net directly from VS: