Desktop Functions: Smart Device Functions:
|
Search Results for "ByVal" in [All]msvcrt1: fclose
Public Shared Function fclose(ByVal stream As IntPtr) As Int32 2: fopen
Public Shared Function fopen_s(ByRef pFile As IntPtr, ByVal filename As String, ByVal mode As String) As Int32
Public Shared Function _wfopen_s(ByRef pFile As IntPtr, ByVal filename As String, ByVal mode As String) As Int32 3: freopen
Declare Function freopen Lib "msvcrt.dll" (ByVal filename As String, ByVal mode As String, ByVal stream As IntPtr) As IntPtr 4: memcpy
Public Shared Sub CopyMemory(ByVal dest As IntPtr, ByVal src As IntPtr, ByVal count As Integer) 5: sprintf
Public Shared Function sprintf(ByVal TargetString As System.Text.StringBuilder,
ByVal FormatSpecifier As String, ByVal i As Int32) As Int32 6: srand
srand(ByVal seed As Integer) 7: system
Public Declare Function system Lib "msvcrt.dll" (ByVal sCommand As String) As Long
Public Declare Function system Lib "msvcrt.dll" (ByVal sCommand As String) As Long wlanapi
Public Shared Function WlanCloseHandle(<[In]> ByVal hClientHandle As IntPtr, ByVal pReserved As IntPtr) As UInteger 9: WlanConnect
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 11: WlanFreeMemory
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 13: WlanOpenHandle
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, _ 16: WlanScan
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 17: WLAN_STATISTICS
[MarshalAsAttribute(UnmanagedType.ByValArray, SizeConst=1, ArraySubType=UnmanagedType.Struct)]
<MarshalAsAttribute(UnmanagedType.ByValArray, SizeConst:=1, ArraySubType:=UnmanagedType.Struct)> _ 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)] 19: RasEnumDevices
[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)> _ 20: RasEnumEntries
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 24: RasHangUp
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 = 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 28: WinHttpConnect
Declare Function WinHttpConnect Lib "winhttp.dll" (ByVal hSession As IntPtr, ByVal pswzServerName As String, ByVal nServerPort As Short, ByVal dwReserved As Integer) As IntPtr 29: WinHttpOpen
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 34: WinHttpReadData
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 37: WinHttpSetOption
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 39: WinHttpWriteData
Declare Function WinHttpWriteData Lib "winhttp.dll" (ByVal hRequest As IntPtr, ByVal lpBuffer As IntPtr, ByVal dwNumberOfBytesToWrite As UInteger, ByRef lpdwNumberOfBytesWritten As UInteger) As Boolean advapi32
ByVal TokenHandle As IntPtr, _
ByVal DisableAllPrivileges As Boolean, _
ByVal BufferLengthInBytes As Integer, _
ByVal TokenHandle As IntPtr, _
ByVal DisableAllPrivileges As Boolean, _
ByVal Zero As Integer, _
ByVal Null1 As IntPtr, _
ByVal Null2 As IntPtr _
ByVal TokenHandle As IntPtr, _
ByVal DisableAllPrivileges As Boolean, _
ByVal BufferLength As Integer, _
<MarshalAs(UnmanagedType.ByValArray, SizeConst:=ANYSIZE_ARRAY)> _
ByVal lpSystemName As String, _
ByVal lpName As String, _
ByVal ProcessHandle As IntPtr, _
ByVal DesiredAccess As Integer, _
Private Function CloseHandle(ByVal hHandle As IntPtr) As Boolean
ByVal TokenHandle As IntPtr, _
ByVal DisableAllPrivileges As Boolean, _
ByVal BufferLength As Integer, _
ByVal pIdentifierAuthority As IntPtr, _
ByVal nSubAuthorityCount As Byte, _
ByVal dwSubAuthority0 As Integer, ByVal dwSubAuthority1 As Integer, _
ByVal dwSubAuthority2 As Integer, ByVal dwSubAuthority3 As Integer, _
ByVal dwSubAuthority4 As Integer, ByVal dwSubAuthority5 As Integer, _
ByVal dwSubAuthority6 As Integer, ByVal dwSubAuthority7 As Integer, _
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 6, ArraySubType = UnmanagedType.I1)]
<MarshalAs(UnmanagedType.ByValArray, SizeConst:=6)> Dim Value() As Byte
ByVal pTrusteeName As String, _
ByVal AccessPermissions As Integer, _
ByVal AccessMode As Integer, _
ByVal Inheritance As Integer)
ByVal pTrustee As IntPtr, _
ByVal pSid As IntPtr _
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 20)]
ByVal TokenHandle As IntPtr, _
ByVal SidToCheck As IntPtr, _
Private Shared Function CloseServiceHandle(ByVal serviceHandle As IntPtr) As Boolean
Declare Function CloseServiceHandle Lib "advapi32.dll" (ByVal hSCObject As IntPtr) As Boolean 47: ControlService
Public Function ControlService(ByVal hService As IntPtr, ByVal dwControl As SERVICE_CONTROL, ByRef lpServiceStatus As SERVICE_STATUS) As Boolean
Declare Function ControlService Lib "advapi32.dll" (ByVal hService As Long, ByVal lControlCode As Long, ByVal lpServiceStatus As SERVICE_STATUS) As Boolean
Declare Auto Function ConvertSidToStringSid Lib "advapi32.dll" (ByVal pSID() As Byte, _
ByVal Sid As IntPtr, _ 50: CopySid
Declare Function CopySid Lib "advapi32.dll" (ByVal nDestinationSidLength As Integer, _
ByVal pDestinationSid As IntPtr, ByVal pSourceSid As IntPtr) As Boolean
ByVal hToken As IntPtr, _
ByVal strApplicationName As String, _
ByVal strCommandLine As String, _
ByVal bInheritHandles as Boolean, _
ByVal dwCreationFlags As Integer, _
ByVal lpEnvironment As IntPtr, _
ByVal lpCurrentDriectory As String, _
ByVal hToken As IntPtr, _
ByVal lpApplicationName As String, _
<[In](), Out(), [Optional]()> ByVal lpCommandLine As StringBuilder, _
ByVal lpProcessAttributes As IntPtr, _
ByVal lpThreadAttributes As IntPtr, _
<MarshalAs(UnmanagedType.Bool)> ByVal bInheritHandles As Boolean, _
ByVal dwCreationFlags As Integer, _
ByVal lpEnvironment As IntPtr, _
ByVal lpCurrentDirectory As String, _
Public Function CreateProcessWithLogonW(ByVal userName As String, ByVal domain As String, ByVal password As String, ByVal logonFlags As UInt32, ByVal applicationName As String, ByVal commandLine As String, ByVal creationFlags As UInt32, ByVal environment As UInt32, ByVal currentDirectory As String, ByRef startupInfo As StartupInfo, ByRef processInformation As ProcessInformation) As Boolean
Public Function CreateProcessWithLogonW(ByVal userName As String, ByVal domain As String, ByVal password As String, ByVal logonFlags As UInt32, ByVal applicationName As String, ByVal commandLine As String, ByVal creationFlags As UInt32, ByVal environment As UInt32, ByVal currentDirectory As String, ByRef startupInfo As StartupInfo, ByRef processInformation As ProcessInformation) As Boolean
Public Function GetExitCodeProcess(ByVal process As IntPtr, ByRef exitCode As UInt32) As Boolean
Public Function WaitForSingleObject(ByVal handle As IntPtr, ByVal milliseconds As UInt32) As UInt32
Public Function GetStdHandle(ByVal handle As IntPtr) As IntPtr
Public Function CloseHandle(ByVal handle As IntPtr) As Boolean
Overloads Sub Main(ByVal args() As String) 53: CreateService
Private Shared Function CreateService(ByVal hSCManager As IntPtr, ByVal serviceName As String, _
ByVal displayName As String, ByVal desiredAccess As Int32, ByVal serviceType As Int32, _
ByVal startType As Int32, ByVal errorcontrol As Int32, ByVal binaryPathName As String, _
ByVal loadOrderGroup As String, ByVal TagBY As Int32, ByVal dependencides As String, _
ByVal serviceStartName As String, ByVal password As String) As IntPtr The 4th parameter from the end, TagBY, should - according to the API documention, be a ByRef parameter. Unfortunately, the call only works if the parameter is ByVal.
ByVal WellKnownSidType As Integer, _
ByVal DomainSid As IntPtr, _
ByVal pSID As IntPtr, _ 55: CredDelete
Public Declare Unicode Function CredDelete Lib "advapi32.dll" Alias "CredDeleteW" ( ByVal TargetName As String, ByVal Type As Integer, ByVal Flags As Integer) As Boolean
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 20)] 57: CryptCreateHash
Declare Auto Function CryptCreateHash Lib "advapi32.dll" (ByVal hProv As IntPtr, _
ByVal algId As Integer, ByVal hKey As IntPtr, ByVal dwFlags As Integer, _ 58: CryptDecrypt
Declare Function CryptDecrypt Lib "advapi32.dll" (ByVal hkey As IntPtr, _
ByVal hHash As IntPtr, <MarshalAs(UnmanagedType.Bool)> ByVal final As Boolean, _
ByVal flags As Integer, ByVal data As Byte(), ByRef dataLen As Integer) _ 59: CryptDeriveKey
Declare Function CryptDeriveKey Lib "advapi32.dll" (ByVal hProv As IntPtr, _
ByVal Algid As Integer, ByVal hBaseData As IntPtr, ByVal flags As Integer, _ 60: CryptDestroyHash
Declare Function CryptDestroyHash Lib "advapi32.dll" (ByVal hHash As IntPtr) _ Cut off search results after 60. Please refine your search. |