Hello All, I have a function in a 3rd party dll that I am trying to use
however, I am unsure how to convert to C# Can anyone help or give me some
pointers? Here is what the documentation states:
DWORD IBT_DeviceDiscovery (PIBTDEVICE pbtDev, BYTE *pnDevs);
This function will perform a Device Discovery and store the results for each
device in a IBTDEVICE structure.
pbtDev is a pointer to an allocated array of IBTDEVICE structures.
*pnDevs is a pointer to a DWORD value. When passed in, it should be set to
the number of allocated IBTDEVICE structures in the array. On function
return, it will contain the number of IBTDEVICE structures filled in the
array.
And a Second one;
IBT_RegisterBTService
DWORD IBT_RegisterBTService (GUID *pguid, BYTE bChannel, WCHAR
*szServiceName, DWORD *pRecord);
This function creates an SDP record and registers a Bluetooth service within
the local SDP database. The SDP record is built using *pguid which points to
a service GUID, bChannel which contains an RFCOMM channel number, and
szServiceName which contains the name of the service being registered.
pRecord is a pointer to the record handle created by this function call.
TIA!