Red Gate forums :: View topic - correct declaration for C-function
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
PInvoke.Net
PInvoke.Net forum

correct declaration for C-function

Search in PInvoke.Net forum
Post new topic   Reply to topic
Jump to:  
Author Message
Arm79



Joined: 24 Jul 2007
Posts: 1

PostPosted: Tue Jul 24, 2007 3:47 pm    Post subject: correct declaration for C-function Reply with quote

Hi

The declaration exists:
Code:
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:
[DLLImport("..." ... )]
public static extern int GetSignatureCertInBuffer(IntPtr CTX, int Index, [in, out] string[] Buf, IntPtr Len)


Thanks
Back to top
View user's profile Send private message
fixitchris



Joined: 22 Jul 2008
Posts: 2

PostPosted: Tue Jul 22, 2008 4:38 pm    Post subject: Reply with quote

I would try 'IntPtr' or 'StringBuilder' for 'char** Buf'.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group