Call void* from c#

J

jtraversini

Hello,

I'm trying to acces a method from a com dll to access RSA Server. I
cannot find which type I have to use from c# for the void* pinBuff
parameter...idealy, I would like to pass a string.

[DllImport("aceclnt")]
private static extern int SD_PinCredential(IntPtr iHandle,
string pin, UInt32 bufSize);

C method description
================
Description
int WINAPI SD_PinCredential (
SDI_HANDLE hdl,
void *pinBuf,
SD_U32 bufLen )


hdl Handle to the current authentication session, which
SDInit created.
pinBuf Raw new pin data.
bufLen Size of new pin data.

Thank you very much for your help...I can't find a solution ;-(

Regards,

JT
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top