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]

wlanapi

.

    Public Shared Function WlanCloseHandle(<[In]> ByVal hClientHandle As IntPtr, ByVal pReserved As IntPtr) As UInteger

.

Declare Function WlanConnect Lib "wlanapi.dll" (ByVal hClientHandle As IntPtr, _

.

                         ByVal pReserved As IntPtr) As UInteger

.

     Public Shared Function WlanEnumInterfaces(<[In]> ByVal hClientHandle As IntPtr, ByVal pReserved As IntPtr, ByRef ppInterfaceList As IntPtr) As UInteger

.

     Public Shared Sub WlanFreeMemory(<[In]> ByVal pMemory As IntPtr)

.

     Public Shared Function WlanGetAvailableNetworkList(ByVal hClientHandle As IntPtr, ByRef pInterfaceGuid As Guid, ByVal dwFlags As UInteger, ByVal pReserved As IntPtr, ByRef ppAvailableNetworkList As IntPtr) As UInteger

.

    Public Shared Function WlanOpenHandle(ByVal dwClientVersion As UInteger, ByVal pReserved As IntPtr, <Out> ByRef pdwNegotiatedVersion As UInteger, ByRef phClientHandle As IntPtr) As UInteger

.

     Public Shared Function WlanQueryInterface(<[In]> ByVal hClientHandle As IntPtr, _

.

    <[In]> ByRef pInterfaceGuid As Guid, ByVal OpCode As WLAN_INTF_OPCODE, _

.

    ByVal pReserved As IntPtr, <Out> ByRef pdwDataSize As UInteger, _

.

    ByRef ppData As IntPtr, ByVal pWlanOpcodeValueType As IntPtr) As UInteger

.

    Public Delegate Sub WLAN_NOTIFICATION_CALLBACK(ByRef notificationData As WLAN_NOTIFICATION_DATA, ByVal context As IntPtr)

.

    Public Shared Function WlanRegisterNotification(ByVal hClientHandle As IntPtr, ByVal dwNotifSource As WLAN_NOTIFICATION_SOURCE,

.

                            ByVal bIgnoreDuplicate As Boolean, ByVal funcCallback As WLAN_NOTIFICATION_CALLBACK,

.

                            ByVal pCallbackContext As IntPtr, ByVal pReserved As IntPtr, _

.

Public Shared Function WlanScan(ByVal hClientHandle As IntPtr, ByRef pInterfaceGuid As Guid, ByVal pDot11Ssid As IntPtr, ByVal pIeData As IntPtr, ByVal pReserved As IntPtr) As UInteger

.

            [MarshalAsAttribute(UnmanagedType.ByValArray, SizeConst=1, ArraySubType=UnmanagedType.Struct)]

.

            <MarshalAsAttribute(UnmanagedType.ByValArray, SizeConst:=1, ArraySubType:=UnmanagedType.Struct)>  _

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)> _

15: 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)]

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

.

Private Shared Function CreateToolhelp32Snapshot(ByVal dwFlags As SnapshotFlags, ByVal th32ProcessID As UInteger) As IntPtr

.

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

.

    Shared Function DeviceIoControl(ByVal hDevice As IntPtr, ByVal dwIoControlCode As UInteger, ByVal lpInBuffer As IntPtr, ByVal nInBufferSize As UInteger, ByVal lpOutBuffer As IntPtr, ByVal nOutBufferSize As UInteger, ByRef lpBytesReturned As UInteger, ByVal lpOverlapped As IntPtr) As Boolean

.

    Public Shared Function DeviceIoControl(ByVal hDevice As IntPtr, _

.

    ByVal dwIoControlCode As UInteger, ByRef InBuffer As Long, _

.

    ByVal nInBufferSize As Integer, ByRef OutBuffer As Long, _

.

    ByVal nOutBufferSize As Integer, ByRef pBytesReturned As Integer, _

.

    ByVal hDevice As Microsoft.Win32.SafeHandles.SafeFileHandle, _

.

    ByVal IoControlCode As EIOControlCode, _

.

    <MarshalAs(UnmanagedType.AsAny), [In]()> ByVal InBuffer As Object, _

.

    ByVal nInBufferSize As UInteger, <MarshalAs(UnmanagedType.AsAny), _

.

    Out()> ByVal OutBuffer As Object, ByVal nOutBufferSize As UInteger, _

.

   Private Declare Function DeviceIoControl Lib "kernel32" (ByVal hDevice As Integer, ByVal dwIoControlCode As Integer, ByRef lpInBuffer As IntPtr,   ByVal nInBufferSize As Integer, ByRef lpOutBuffer As IntPtr, ByVal nOutBufferSize As Integer, ByRef lpBytesReturned As Integer, ByVal lpOverlapped As IntPtr) As Integer

.

   Private Declare Ansi Function DeviceIoControl Lib "kernel32" (ByVal hDevice As Integer, ByVal dwIoControlCode As Integer, ByVal lpInBuffer As Integer, ByVal nInBufferSize As Integer, ByRef lpOutBuffer As Integer, ByVal nOutBufferSize As Integer, ByRef lpBytesReturned As Integer, ByVal lpOverlapped As Integer) As Integer

.

   Private Declare Function DeviceIoControl Lib "kernel32" (ByVal hDevice As Integer, ByVal dwIoControlCode As Integer, ByRef lpInBuffer As IntPtr, ByVal nInBufferSize As Integer, ByRef lpOutBuffer As DISK_GEOMETRY, ByVal nOutBufferSize As Integer, ByRef lpBytesReturned As Integer, ByVal lpOverlapped As IntPtr) As Integer

.

   Private Declare Function DeviceIoControl Lib "kernel32" (ByVal hDevice As Integer, ByVal dwIoControlCode As Integer, ByRef lpInBuffer As IntPtr, ByVal nInBufferSize As Integer, ByRef lpOutBuffer As GETVERSIONOUTPARAMS, ByVal nOutBufferSize As Integer, ByRef lpBytesReturned As Integer, ByVal lpOverlapped As IntPtr) As Integer

.

   Private Declare Function DeviceIoControl Lib "kernel32" (ByVal hDevice As Integer, ByVal dwIoControlCode As Integer, ByRef lpInBuffer As SENDCMDINPARAMS, ByVal nInBufferSize As Integer, ByRef lpOutBuffer As IntPtr, ByVal nOutBufferSize As Integer, ByRef lpBytesReturned As Integer, ByVal lpOverlapped As IntPtr) As Integer

.

   Private Declare Ansi Function CreateFile Lib "kernel32" Alias "CreateFileA" (ByVal lpFileName As String, ByVal dwDesiredAccess As Integer, ByVal dwShareMode As Integer, ByVal lpSecurityAttributes As IntPtr, ByVal dwCreationDisposition As Integer, ByVal dwFlagsAndAttributes As Integer, ByVal hTemplateFile As IntPtr) As Integer

.

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

.

   Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (ByVal Destination As IDSECTOR, ByVal Source As Byte, ByVal Length As Long)

.

       <MarshalAs(UnmanagedType.ByValArray, SizeConst:=3)> _

.

       <MarshalAs(UnmanagedType.ByValArray, SizeConst:=2)> _

.

       <MarshalAs(UnmanagedType.ByValArray, SizeConst:=19)> _

.

       <MarshalAs(UnmanagedType.ByValArray, SizeConst:=7)> _

.

       <MarshalAs(UnmanagedType.ByValArray, SizeConst:=39)> _

.

       <MarshalAs(UnmanagedType.ByValArray, SizeConst:=127)> _

.

       <MarshalAs(UnmanagedType.ByValArray, SizeConst:=3)> _

.

       <MarshalAs(UnmanagedType.ByValArray, SizeConst:=4)> _

.

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

.

   Private Sub test(ByVal VerParam As GETVERSIONOUTPARAMS, ByVal hdrive As Integer)

.

   Private Function IsBitSet(ByVal iBitString As Byte, ByVal lBitNo As Integer) As Boolean

.

   Private Function SwapStringBytes(ByVal sIn As String) As String

.

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

.

Public Shared Function EndUpdateResource(ByVal hUpdate As IntPtr, ByVal fDiscard As Boolean) As Boolean

.

Private Shared Function EnumResourceNames(ByVal hModule As IntPtr, ByVal lpszType As String, ByVal lpEnumFunc As EnumResNameProcDelegate, ByVal lParam As IntPtr) As Boolean

.

Private Shared Function EnumResourceNames(ByVal hModule As IntPtr, ByVal dwID As Integer, ByVal lpEnumFunc As EnumResNameProcDelegate, ByVal lParam As IntPtr) As Boolean

.

Private Delegate Function EnumResNameProcDelegate(ByVal hModule As IntPtr, ByVal lpszType As IntPtr, ByVal lpszName As IntPtr, ByVal lParam As IntPtr) As Boolean

.

    Private Delegate Function EnumResNameProcDelegate(ByVal hModule As IntPtr, ByVal lpszType As IntPtr, ByVal lpszName As IntPtr, ByVal lParam As IntPtr) As Boolean

.

    Private Shared Function EnumResourceNames(ByVal hModule As IntPtr, ByVal lpszType As String, ByVal lpEnumFunc As EnumResNameProcDelegate, ByVal lParam As IntPtr) As Boolean

.

    Private Shared Function EnumResourceNames(ByVal hModule As IntPtr, ByVal lpszType As Integer, ByVal lpEnumFunc As EnumResNameProcDelegate, ByVal lParam As IntPtr) As Integer

.

    Private Function EnumResNameProc(ByVal hModule As IntPtr, ByVal lpszType As IntPtr, ByVal lpszName As IntPtr, ByVal a As IntPtr) As Boolean

.

Private Shared Function EnumResourceTypes(ByVal hModule As IntPtr, ByVal lpEnumFunc As EnumResTypeProc, ByVal lParam As IntPtr) As Boolean

.

        ByVal lpLocaleEnumProcEx As Long, _

.

        ByVal dwFlags As Long, _

.

        ByVal lParam As Long, _

.

        ByVal lpReserved As Long) As Long

.

        ByVal lpLocaleEnumProcEx As Long, _

.

        ByVal dwFlags As Long, _

.

        ByVal lParam As Long, _

.

        ByVal lpReserved As Long) As Long

.

Public Declare Function ExpandEnvironmentStrings Lib "kernel32.dll" Alias "ExpandEnvironmentStringsW" (ByVal lpSrc As String, ByVal lpDst As String, ByVal nSize As Long) As Long

.

    Private Function FindFirstFileEx(ByVal lpFileName As String, ByVal fInfoLevelId As FINDEX_INFO_LEVELS, ByRef lpFindFileData As WIN32_FIND_DATA, ByVal fSearchOp As FINDEX_SEARCH_OPS, lpSearchFilter As Int32, dwAdditionalFlags As Integer) As Int32

.

    Public Shared Function FindFirstFileExW(ByVal lpFileName As String, ByVal fInfoLevelId As FINDEX_INFO_LEVELS, ByRef lpFindFileData As WIN32_FIND_DATAW, ByVal fSearchOp As FINDEX_SEARCH_OPS, lpSearchFilter As IntPtr, dwAdditionalFlags As Integer) As IntPtr

.

    Private Function FindFirstFileEx(ByVal lpFileName As String, ByVal fInfoLevelId As FINDEX_INFO_LEVELS, ByRef lpFindFileData As WIN32_FIND_DATA, ByVal fSearchOp As FINDEX_SEARCH_OPS, lpSearchFilter As Int32, dwAdditionalFlags As Integer) As Int32

.

    Public Shared Function FindFirstFileExW(ByVal lpFileName As String, ByVal fInfoLevelId As FINDEX_INFO_LEVELS, ByRef lpFindFileData As WIN32_FIND_DATAW, ByVal fSearchOp As FINDEX_SEARCH_OPS, lpSearchFilter As IntPtr, dwAdditionalFlags As Integer) As IntPtr

.

  Declare Function FindFirstVolumeW Lib "kernel32.dll" (ByVal lpszVolumeName As System.Text.StringBuilder, ByVal cchBufferLength As UInteger) As IntPtr

.

    Private Function FindNextFile(ByVal hFindFile As IntPtr, ByRef lpFindFileData As WIN32_FIND_DATA) As Boolean

.

Public Declare Function FindNextFile Lib "kernel32" Alias "FindNextFileA" (ByVal hFindFile As IntPtr, ByRef lpFindFileData As WIN32_FIND_DATA) As Boolean

.

Private Shared Function FindResourceEx(ByVal hModule As IntPtr, ByVal lpType As IntPtr, ByVal lpName As IntPtr, ByVal wLanguage As UShort) As IntPtr

.

<DllImport("kernel32.dll", SetLastError:=True)> Private Shared Function FlushFileBuffers(ByVal hFile As IntPtr) As Boolean

.

Public Shared Function FormatMessage(ByVal dwFlags As Integer, ByRef lpSource As IntPtr, ByVal dwMessageId As Integer, ByVal dwLanguageId As Integer, ByRef lpBuffer As [String], ByVal nSize As Integer, ByRef Arguments As IntPtr) As Integer

.

Public Shared Function FormatMessage(ByVal dwFlags As Integer, ByVal lpSource As IntPtr, ByVal dwMessageId As Integer, ByVal dwLanguageId As Integer, <MarshalAs(UnmanageType.LPWStr)> ByRef lpBuffer As String, ByVal nSize As Integer, ByVal Arguments As IntPtr) As Integer

.

Public Shared Function FormatMessage(ByVal dwFlags As Integer, ByVal lpSource As IntPtr, ByVal dwMessageId As Integer, ByVal dwLanguageId As Integer, ByRef lpBuffer As StringBuilder, ByVal nSize As Integer, ByVal Arguments As IntPtr) As Integer

.

Public Shared Function FormatMessage(ByVal dwFlags As Integer, ByRef lpSource As IntPtr, ByVal dwMessageId As Integer, ByVal dwLanguageId As Integer, ByRef lpBuffer As [String], ByVal nSize As Integer, ByRef Arguments As IntPtr) As Integer

.

Public Shared Function FormatMessage(ByVal dwFlags As Integer, ByVal lpSource As IntPtr, ByVal dwMessageId As Integer, ByVal dwLanguageId As Integer, <MarshalAs(UnmanageType.LPWStr)> ByRef lpBuffer As String, ByVal nSize As Integer, ByVal Arguments As IntPtr) As Integer

.

Public Shared Function FormatMessage(ByVal dwFlags As Integer, ByVal lpSource As IntPtr, ByVal dwMessageId As Integer, ByVal dwLanguageId As Integer, ByRef lpBuffer As StringBuilder, ByVal nSize As Integer, ByVal Arguments As IntPtr) As Integer

.

    Public Shared Function FormatMessage(ByVal dwFlags As Integer, ByRef lpSource As IntPtr, ByVal dwMessageId As Integer, ByVal dwLanguageId As Integer, ByRef lpBuffer As IntPtr, ByVal nSize As Integer, ByRef Arguments As IntPtr) As Integer

.

    Public Shared Function LocalFree(ByVal hMem As IntPtr) As IntPtr

.

Public Shared Function FreeLibrary(ByVal hModule As IntPtr) As Boolean

.

Private Declare Function FreeLibrary Lib "kernel32" (ByVal hLibModule As Long) As Long

.

<DllImport("Kernel32")> Public Shared sub GenerateConsoleCtrlEvent(ByVal dwCtrlEvent As Short, ByVal dwProcessGroupId As Short)

.

        ByVal lpAppName As String, _

.

Declare Function GetCommProperties Lib "kernel32" (ByVal hFile As Integer, ByRef lpCommProp As COMMPROP) As Boolean

.

     ByVal hFile As IntPtr, _

.

<DllImport("kernel32.dll", SetLastError:=True)> Private Shared Function GetCommTimeouts(ByVal hFile As IntPtr, ByRef lpCommTimeouts As COMMTIMEOUTS) As Boolean

.

Private Declare Function GetCompressedFileSize Lib "kernel32" Alias "GetCompressedFileSizeA" (ByVal lpFileName As String, ByVal lpFileSizeHigh As IntPtr) As UInt32

.

Private Declare Function GetCompressedFileSize Lib "kernel32" Alias "GetCompressedFileSizeA" (ByVal lpFileName As String, lpFileSizeHigh As Long) As Long

.

Public Function CompressedFileSize(ByVal path As String) As Long

.

Private Sub GetFileSize(ByVal strPath As String)

.

   MsgBox "The size of " + strPath " is " + CStr(GetCompressedFileSize(strPath, ByVal 0&)) + " bytes "

.

Private Shared Function GetComputerNameEx(ByVal NameType As COMPUTER_NAME_FORMAT, ByVal lpBuffer As StringBuilder, ByRef lpnSize As UInt32) As Boolean

.

Private Shared Function GetComputerNameEx(ByVal NameType As COMPUTER_NAME_FORMAT, ByVal lpBuffer As StringBuilder, ByRef lpnSize As UInt32) As Boolean

.

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

.

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

.

Private Function ShowWindow(ByVal hwnd As IntPtr, ByVal nCmdShow As ShowWindowCommands) As Boolean

.

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

.

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

.

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

.

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

.

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

.

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

.

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

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


 
Access PInvoke.net directly from VS: