Desktop Functions: Smart Device Functions:
|
Search Results for "ByVal" in [All]dnsapi1: DnsQuery
[MarshalAs(UnmanagedType.ByValArray, SizeConst = DnsAddrMaxSockaddrLength)]
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 8)]
[MarshalAs(UnmanagedType.ByValArray, SizeConst = IpAddressV4LengthBytes)]
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 8)]
[MarshalAs(UnmanagedType.ByValArray, SizeConst = IpAddressV6LengthBytes)] 2: DnsQueryEx
[MarshalAs(UnmanagedType.ByValArray, SizeConst = DnsAddrMaxSockaddrLength)]
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 8)]
[MarshalAs(UnmanagedType.ByValArray, SizeConst = IpAddressV4LengthBytes)]
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 8)]
[MarshalAs(UnmanagedType.ByValArray, SizeConst = IpAddressV6LengthBytes)] msvcrt3: fclose
Public Shared Function fclose(ByVal stream As IntPtr) As Int32 4: 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 5: freopen
Declare Function freopen Lib "msvcrt.dll" (ByVal filename As String, ByVal mode As String, ByVal stream As IntPtr) As IntPtr 6: memcpy
Public Shared Sub CopyMemory(ByVal dest As IntPtr, ByVal src As IntPtr, ByVal count As Integer) 7: sprintf
Public Shared Function sprintf(ByVal TargetString As System.Text.StringBuilder,
ByVal FormatSpecifier As String, ByVal i As Int32) As Int32 8: srand
srand(ByVal seed As Integer) 9: 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 gdi3210: AlphaBlend
(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 11: 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 12: 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 13: 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 14: 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 15: CombineRgn
Private Shared Function CombineRgn(ByVal hrgnDest As IntPtr,
ByVal hrgnSrc1 As IntPtr, ByVal hrgnSrc2 As IntPtr,
ByVal fnCombineMode As Integer) As Integer 16: CopyMetaFile
Shared Function CopyMetaFile(ByVal hmfSrc As IntPtr, ByVal lpszFile As String) As IntPtr
Private Shared Function CreateCompatibleDC(ByVal hRefDC As IntPtr) As IntPtr 18: CreateDIBitmap
ByVal hdc As IntPtr, _
ByVal fdwInit As UInteger, _
ByVal lpbInit As Byte(), _
ByVal fuUsage As UInteger) _ 19: CreateDIBSection
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 22: CreateRectRgn
Private Shared Function CreateRectRgn(ByVal nLeftRect As Integer, ByVal nTopRect As Integer, ByVal nRightRect As Integer, ByVal nBottomRect As Integer) As IntPtr 23: DeleteDC
(ByVal hDC As Long) As Long
Shared Function DeleteEnhMetaFile(ByVal hemf As IntPtr) As Boolean 25: DeleteMetaFile
Shared Function DeleteMetaFile(ByVal hmf As IntPtr) As Boolean 26: DeleteObject
(ByVal hObject As Long) As Long 27: EndDoc
Public Function EndDoc(ByVal hdc As IntPtr) As Integer 28: EnumFontFamilies
[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)] 30: ExtEscape
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 31: FloodFill
Declare Function FloodFill Lib "gdi32" (ByVal hDC As Integer, ByVal x As Integer, ByVal y As Integer, ByVal crColor As Integer) As Integer 32: GetBkColor
(ByVal prmlngHD As Long) As Long 33: GetBkMode
(ByVal prmlngHDc As Long) As Long 34: GetDeviceCaps
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)] 36: GetPixel
Public Declare Function GetPixel Lib "gdi32" Alias "GetPixel" (ByVal hdc As Long, ByVal X As Long, ByVal Y As Long) As Long 37: GetTextColor
(ByVal hDC As Long) As Long 38: Polygon
ByVal hdc As Integer, _
ByVal nCount As Integer) _ 39: SelectObject
Public Shared Function SelectObject(ByVal hdc As IntPtr, ByVal hObject As IntPtr) As IntPtr
(ByVal prmlngHDc As Long, _
ByVal hObject As Long) As Long 40: SetBkColor
(ByVal prmlngHDc As Long, _
ByVal ColorRef As Long) As Long 41: SetBkMode
(ByVal prmlngHDc As Long, _
ByVal ColorRef As Integer) As Integer
[ MarshalAs(UnmanagedType.ByValArray, SizeConst=256)]
[ MarshalAs(UnmanagedType.ByValArray, SizeConst=256)]
[ MarshalAs(UnmanagedType.ByValArray, SizeConst=256)]
[ MarshalAs(UnmanagedType.ByValArray, SizeConst=256)]
[ MarshalAs(UnmanagedType.ByValArray, SizeConst=256)]
[ MarshalAs(UnmanagedType.ByValArray, SizeConst=256)]
Shared Function SetMetaFileBitsEx(ByVal nSize As UInteger, ByVal lpData As Byte()) As IntPtr 44: SetTextColor
(ByVal prmlngHDc As Long, _
ByVal prmlngRGB As Long) As Long 45: TextOut
Shared Function TextOut(ByVal hdc As IntPtr, ByVal x As Integer, _
ByVal y As Integer, ByVal textstring As String, _
ByVal charCount As Integer) As Boolean
Declare Function SetTextCharacterExtra Lib "gdi32" Alias "SetTextCharacterExtra" (ByVal hDC As Integer, ByVal nCharExtra As Integer) As Integer
Private Shared Function TextOut(ByVal hdc As IntPtr, ByVal x As Integer, ByVal y As Integer, ByVal textstring As String, ByVal charCount As Integer) As Boolean
Private Shared Function SelectObject(ByVal hdc As IntPtr, ByVal hgdiobj As IntPtr) As IntPtr
Private Shared Function DeleteObject(ByVal objectHandle As IntPtr) As Boolean
Private Shared Function SetBkColor(ByVal hdc As IntPtr, ByVal crColor As Integer) As UInt32
Private Shared Function SetTextColor(ByVal hdc As IntPtr, ByVal crColor As Integer) As UInt32
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click rapi46: CeFindFirstFile
ByVal s As String, 47: CeRegDeleteValue
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 48: CeRegSetValueEx
Private Sub SaveValue(ByVal thisval As String, ByVal textvalue As String) 49: CE_FIND_DATA
[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 winmm
Private Shared Function mciGetErrorString(ByVal dwError As Integer, ByVal lpstrBuffer As System.Text.StringBuilder, ByVal uLength As Integer) As Integer
Public Declare Auto Function mciGetErrorString Lib "winmm.dll" (ByVal errorCode As Integer, ByRef errorText As StringBuilder, ByVal errorTextSize As Integer) As Integer 51: mciSendString
Private Shared Function mciSendString(ByVal command As String, ByVal buffer As StringBuilder, ByVal bufferSize As Integer, ByVal hwndCallback As IntPtr) As Integer
Declare Ansi Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" (ByVal command As String, ByRef buffer As StringBuilder, ByVal bufferSize As Integer, ByVal hWndCallback As IntPtr) As Integer
Public Sub OpenMediaFile(ByVal strFilePath As String) 52: MIDIHDR
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 4)] 53: MIDIOUTCAPS
[MarshalAs(UnmanagedType.ByValTStr, SizeConst= 32)]
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 32)] 55: midiOutOpen
<DllImport("winmm.dll")> Shared Function midiOutOpen(ByRef lphMidiOut As IntPtr, ByVal uDeviceID As UInteger, ByVal dwCallback As IntPtr, ByVal dwInstance As IntPtr, ByVal dwFlags As UInteger) As UInteger 56: midiStreamClose
Public Declare Function midiStreamClose Lib "winmm.dll" (ByVal hMidiStream As IntPtr) As Integer 57: midiStreamOpen
Public Declare Function midiStreamOpen Lib "winmm.dll" (ByVal hMidiStream As IntPtr, ByVal puDeviceId As IntPtr, ByVal cMidi As Integer, ByVal dwCallback As IntPtr, ByVal dwInstance As IntPtr, ByVal fdwOpen As Integer) As Integer 58: midiStreamOut
Declare Function midiStreamOut Lib "winmm.dll" (ByVal hMidiStream As IntPtr, ByVal lpMidiHdr As MIDIHDR, ByVal cbMidiHdr As UInteger) As Integer 59: midiStreamPause
Declare Function midiStreamPause Lib "winmm.dll" (ByVal hMidiStream As IntPtr) As Integer
Declare Function midiStreamPosition Lib "winmm.dll" (ByVal hms As IntPtr, ByVal pmmt As MMTIME, ByVal cbmmt As UInteger) As Integer Cut off search results after 60. Please refine your search. |