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]

ntdsapi

.

    Public Shared Function DsCrackNames(ByVal hDS As IntPtr, _

.

       ByVal flags As DS_NAME_FLAGS, _

.

       ByVal formatOffered As DS_NAME_FORMAT, _

.

       ByVal formatDesired As DS_NAME_FORMAT, _

.

       ByVal cNames As UInt32, _

.

       <MarshalAs(UnmanagedType.LPArray, ArraySubType:=UnmanagedType.LPTStr, SizeParamIndex:=4)> ByVal rpNames As String(), _

.

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

.

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

winhttp

.

Declare Function WinHttpAddRequestHeaders Lib "winhttp.dll" (ByVal hRequest As IntPtr, ByVal pwszHeaders As String, ByVal dwHeaderLength As Integer, ByVal dwModifiers As Integer) As Boolean

.

Declare Function WinHttpCloseHandle Lib "winhttp.dll" (ByVal hInternet As IntPtr) As Boolean

.

Declare Function WinHttpConnect Lib "winhttp.dll" (ByVal hSession As IntPtr, ByVal pswzServerName As String, ByVal nServerPort As Short, ByVal dwReserved As Integer) As IntPtr

.

Declare Function WinHttpOpenRequest Lib "winhttp.dll" (ByVal hConnect As IntPtr, ByVal pwszVerb As String, ByVal pwszObjectName As String, ByVal pwszVersion As String, ByVal pwszReferrer As String, ByRef ppwszAcceptTypes As Byte(), ByVal dwFlags As Integer) As IntPtr

.

Declare Function WinHttpOpenRequest Lib "winhttp.dll" (ByVal hConnect As IntPtr, ByVal pwszVerb As String, ByVal pwszObjectName As String, ByVal pwszVersion As String, ByVal pwszReferrer As String, ByRef ppwszAcceptTypes As Byte(), ByVal dwFlags As Integer) As IntPtr

.

Declare Function WinHttpQueryDataAvailable Lib "winhttp.dll" (ByVal hRequest As IntPtr, ByRef lpdwNumberOfBytesAvailable As Integer) As Boolean

.

Declare Function WinHttpQueryHeaders Lib "winhttp.dll" (ByVal hRequest As IntPtr, ByVal dwInfoLevel As Integer, ByVal pwszName As String, ByVal buffer As Byte(), ByRef lpdwBufferLength As Integer, ByRef lpdwIndex As Integer) As Boolean

.

Declare Function WinHttpQueryOption Lib "winhttp.dll" (ByVal hInternet As IntPtr, ByVal dwOption As Integer, ByVal lpBuffer As Byte(), ByRef lpdwBufferLength As Integer) As Boolean

.

Declare Function WinHttpReadData Lib "winhttp.dll" (ByVal hRequest As IntPtr, ByVal lpBuffer As Byte(), ByVal dwNumberOfBytesToRead As Integer, ByRef lpdwNumberOfBytesRead As Integer) As Boolean

.

Declare Function WinHttpReceiveResponse Lib "winhttp.dll" (ByVal hRequest As IntPtr, ByVal lpReserved As Integer) As Boolean

.

Declare Function WinHttpSendRequest Lib "winhttp.dll" (ByVal hRequest As IntPtr, ByVal pwszHeaders As String, ByVal dwHeadersLength As Integer, ByVal lpOptional As Byte(), ByVal dwOptionalLength As Integer, ByVal dwTotalLength As Integer, ByVal dwContext As IntPtr) As Boolean

.

Declare Function WinHttpSetOption Lib "winhttp.dll" (ByVal hInternet As IntPtr, ByVal dwOption As Integer, ByVal lpBuffer As Byte(), ByVal dwBufferLength As Integer) As Boolean

.

Declare Function WinHttpSetTimeouts Lib "winhttp.dll" (ByVal hInternet As IntPtr, ByVal dwResolveTimeout As Integer, ByVal dwConnectTimeout As Integer, ByVal dwSendTimeout As Integer, ByVal dwReceiveTimeout As Integer) As Boolean

.

Declare Function WinHttpWriteData Lib "winhttp.dll" (ByVal hRequest As IntPtr, ByVal lpBuffer As IntPtr, ByVal dwNumberOfBytesToWrite As UInteger, ByRef lpdwNumberOfBytesWritten As UInteger) As Boolean

urlmon

.

    ByVal FeatureEntry As INTERNETFEATURELIST, ByVal dwFlags As Long, _

.

    ByVal fEnable As Long) As Long

.

        ByVal pBC As IntPtr, _

.

        ByVal pwzUrl As String, _

.

        <MarshalAs(UnmanagedType.LPArray, ArraySubType:=UnmanagedType.I1, SizeParamIndex:=3)> ByVal _

.

        ByVal cbSize As Integer, _

.

        ByVal pwzMimeProposed As String, _

.

        ByVal dwMimeFlags As Integer, _

.

        ByVal dwReserved As Integer) As Integer

.

        ByVal pbc As Long, _

.

        ByVal pwzUrl As String, _

.

        ByVal pwzMimeProposed As String, _

.

Public Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (hpvDest As Any, hpvSource As Any, ByVal cbCopy As Long)

.

Public Declare Function lstrlenW Lib "kernel32.dll" (ByVal lpString As Long) As Long

.

                CopyMemory Buffer(0), ByVal lpwString, nLen

.

    Public Shared Function getMimeFromFile(ByVal file As String) As String

.

    ByVal pBC As IntPtr,

.

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

.

    <MarshalAs(UnmanagedType.LPArray, ArraySubType:=UnmanagedType.I1, SizeParamIndex:=3)> ByVal pBuffer As Byte(),

.

    ByVal cbSize As Integer,

.

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

.

    ByVal dwMimeFlags As Integer,

.

    ByVal dwReserved As Integer) As Integer

.

Public Declare Function URLDownloadToFileA Lib "urlmon" (ByVal pCaller As Long, ByVal szURL As String, ByVal szFileName As String, ByVal dwReserved As Long, ByVal lpfnCB As Long) As Long

.

     ByVal dwOption As Integer, _

.

     ByVal pBuffer As StringBuilder, _

.

     ByVal dwBufferLength As Integer, _

.

     ByVal dwReserved As Integer _

Enums

.

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

.

        [MarshalAs(UnmanagedType.ByValArray)] public SID_AND_ATTRIBUTES[] Groups;

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

ole32

.

  Friend Shared Function CLSIDFromProgIDEx(ByVal lpszProgID As String) As Guid

.

  Friend Shared Function CLSIDFromProgIDEx(ByVal lpszProgID As String) As Guid

.

    (<[In](), MarshalAs(UnmanagedType.LPStruct)> ByVal rclsid As Guid, _

.

    ByVal dwClsContext As CLSCTX, _

.

    ByVal pServerInfo As IntPtr, _

.

    <[In](), MarshalAs(UnmanagedType.LPStruct)> ByVal riid As Guid) _

.

  Private Shared Function CoRegisterMessageFilter(ByVal lpMessageFilter As IMessageFilter,

.

Private Declare Function CreateFileMoniker Lib "ole32.dll" (ByVal lpszPathName As String, ByRef ppmk As IMoniker) As Integer

.

    Public Shared Function CreateILockBytesOnHGlobal(ByVal hGlobal As IntPtr, _

.

                              ByVal fDeleteOnRelease As Boolean, _

.

    Declare Function CreateStreamOnHGlobal Lib "ole32" (ByVal hGlobal As IntPtr, ByVal fDeleteOnRelease As Boolean, ByRef ppstm As UCOMIStream) As Long

.

    ByVal oszName As StringBuilder) As Integer

.

    (ByVal hwndOwner As IntPtr, _

.

    ByVal x As Int32, _

.

    ByVal y As Int32, _

.

    ByVal lpszCaption As String, _

.

    ByVal cObjects As Int32, _

.

    ByVal cPages As Int32, _

.

    ByVal pPageClsID As Int32, _

.

    ByVal lcid As Int32, _

.

    ByVal dwReserved As Int32, _

.

    ByVal pvReserved As IntPtr) As Integer

.

    (ByVal hwndOwner As IntPtr, _

.

    ByVal x As Int32, _

.

    ByVal y As Int32, _

.

    ByVal lpszCaption As String, _

.

    ByVal cObjects As Int32, _

.

    ByVal cPages As Int32, _

.

    ByVal pPageClsID As Int32, _

.

    ByVal lcid As Int32, _

.

    ByVal dwReserved As Int32, _

.

    ByVal pvReserved As IntPtr) As Integer

.

Public Shared Function OleSetClipboard(ByVal pDataObj As System.Runtime.InteropServices.ComTypes.IDataObject) As Int32

.

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

.

   Friend Function BitsToInteger(ByVal bits As BitArray) 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

secur32

.

  Declare Function GetUserNameExA Lib "secur32.dll" (ByVal nameFormat As Integer, _

.

  ByVal userName As System.Text.StringBuilder, ByRef userNameSize As Integer) As Byte

.

    ByVal phContext As IntPtr, _

.

    ByVal pszTargetName As String, _

.

    ByVal fContextReq As Integer, _

.

    ByVal Reserved1 As Integer, _

.

    ByVal TargetDataRep As Integer, _

.

    ByVal pInput As IntPtr, _

.

    ByVal Reserved2 As Integer, _

.

                    [MarshalAs(UnmanagedType.ByValArray,SizeConst=8)] public byte[] SourceName;

query

.

Declare Unicode Function LoadIFilter Lib "query.dll" (ByVal pwcsPath As String, _

.

           <MarshalAs(UnmanagedType.IUnknown)> ByVal pUnkOuter As Object, _

hhctrl

.

     ByVal hWndCaller As IntPtr, ByVal pszFile As String, _

.

     ByVal uCommand As Integer, ByVal dwData As IntPtr) As Integer

comctl32

.

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

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


 
Access PInvoke.net directly from VS: