correct declaration for C-function

Announcements and discussion for PInvoke

Moderators: Luke Jefferson, Robert

correct declaration for C-function

Postby Arm79 » Tue Jul 24, 2007 3:47 pm

Hi

The declaration exists:
Code: Select all
MPFUN int MPAPI GetSignatureCertInBuffer(void *CTX, int Index, char **Buf, int *Len);


The parameter Buf may be NULL

Please, help. I don't know how translate it to C#

It's correct?
Code: Select all
[DLLImport("..." ... )]
public static extern int GetSignatureCertInBuffer(IntPtr CTX, int Index, [in, out] string[] Buf, IntPtr Len)


Thanks
Arm79
 
Posts: 1
Joined: Tue Jul 24, 2007 3:33 pm

Postby fixitchris » Tue Jul 22, 2008 4:38 pm

I would try 'IntPtr' or 'StringBuilder' for 'char** Buf'.
fixitchris
 
Posts: 2
Joined: Tue Jul 22, 2008 4:29 pm


Return to PInvoke.Net

Who is online

Users browsing this forum: No registered users and 0 guests