Am I creating the correct signature to wrap this unmanaged functio

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

The function signature in the unmanaged DLL is as follows.
KPDCStatus KPDCIteratorFind(KPDCIteratorRef inIteratorRef, const char
*inName, KPDCOpaqueRef *outFoundItemRef);

The types are:
KPDCStatus = int
KPDCIteratorRef, KPDCOpaqueRef = void*

I am wrapping it so:
Declare Auto Function KIteratorFind Lib "DCSPro4SLR.dll" Alias
"KPDCIteratorFind" (ByVal inIteratorRef As IntPtr, ByVal inName As String,
ByRef outFoundItemRef As IntPtr) As Integer

I figure inName As String is wrong. How should I do this. VB.Net
 
Back
Top