Help Converting To C#

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: MDB (nospam)
Date: 11/10/04


Date: Wed, 10 Nov 2004 10:03:07 -0500

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!



Relevant Pages

  • Re: "Portability" contructs like UINT32 etc.
    ... All those WORDS, DWORDS, LPCSTR, HPARAMS, LPARAMS etc. ... I have a real problem with "WORD" and "DWORD" which is used in Windows programs a lot: "WORD" is defined as a 16 bit type and DWORD as a 32 bit type, which means that on your average Pentium or Athlon processor a WORD is a halfword and a DWORD is a word, whereas on a 64 bit processor a WORD is a quarterword and a DWORD is a ... And LPCSTR - "Long Pointer to C String". ... You see, char* is typedef'ed to PCCHAR (yes, ...
    (comp.lang.c)
  • Re: Which assembler can handle the BIG stuff ?
    ... >>> Instructtions for finaly pointing to the Pointer, ... >> What's a checksum table, ... then a rep cmpsd (dword compare) could be pretty fast indeed. ... This kind of Hash Table is ...
    (alt.lang.asm)
  • Re: CListCtrl, custom item data and allocation policy
    ... This is a good example of where to use inheritance. ... CMyListCtrl use DWORDs and then inherit from CMyListCtrl and have it use ... The problem is it takes a DWORD argumentr that can reference a value or a ... pointer to an allocated structure. ...
    (microsoft.public.vc.mfc)
  • Re: Threads on class,
    ... DWORD ThreadFuncAdaptor ... > structure that force the compiler to use a pointer ... > resolves that issue and I can't just post that code, ... > wanted was the threading library it probably would be cheaper to do it ...
    (microsoft.public.vc.language)
  • Re: creating registry entry
    ... It puts data OF ANY TYPE AT ALL into the registry. ... allow DWORD values less than 255 so you can pass the value as a byte? ... You pass a pointer to a DWORD, the call looks at the regType ... The call sees that you've told it that a string is coming ...
    (microsoft.public.windowsce.embedded.vc)