Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than irprops, prefix the name with the module name and a period.
<DllImport("irprops.cpl", setlasterror:=True, CharSet:=CharSet.Auto)> _
Private Shared Function BluetoothGetRadioInfo( _
ByVal hRadio As IntPtr, _
ByRef pRadioInfo As BluetoothRadioInfo) As UInteger
End Function
Public Size As Integer
Public Address As Int64
<MarshalAs(UnmanagedType.ByValTStr, SizeConst:=BLUETOOTH_MAX_NAME_SIZE)> _
Public Name As String
Public ClassofDevice As UInteger
Public Subversion As UShort
Public Manufacturer As UShort
Public Sub Initialize()
Me.Size = Marshal.SizeOf(Me)
End Sub
Public Function GetAddress() As String
Dim fmt As String = "({0}:{1}:{2}:{3}:{4}:{5})"
Return String.Format(fmt, _
((Address >> 40) And &HFF).ToString("x2"), _
((Address >> 32) And &HFF).ToString("x2"), _
((Address >> 24) And &HFF).ToString("x2"), _
((Address >> 16) And &HFF).ToString("x2"), _
((Address >> 8) And &HFF).ToString("x2"), _
(Address And &HFF).ToString("x2"))
End Function
helpful tips or sample code to share for using this API in managed code?
corrections to the existing content?
variations of the signature you want to share?
additional languages you want to include?
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).