correct declaration for C-function

Announcements and discussion for PInvoke

correct declaration for C-function

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


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)

Posts: 1
Joined: Tue Jul 24, 2007 2:33 pm

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

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

Return to PInvoke.Net

Who is online

Users browsing this forum: No registered users and 0 guests