C
Chris Bruckner
Hi,
I have trouble with a C# wrapper for an unmanaged DLL. The code is:
int WINAPI DcpDll_GetFoundDevices
(int piIdx, /*[in] Device index in the internal
list(0..MAX_MEMBER)*/
char far *psName, /*[out] Device Name*/
char far *psIP, /*[out] Device Ip Address*/
char far *psSubnet,/*[out] Device Subnet Mask*/
char far *psMAC, /*[out] Device MAC Address*/
char far *psType) /*[out] Device Type*/
So far all I've got is:
[DllImport("DcpDll.dll")]
private static extern int DcpDll_GetFoundDevices
(int piIdx, ?? psName, ?? psIP, ?? psSubnet, ??
psMAC, ?? psType);
I just can't figure out how to do these char far* in C#. Can somebody
help? I'm getting desperate here.
Yours,
Chris
I have trouble with a C# wrapper for an unmanaged DLL. The code is:
int WINAPI DcpDll_GetFoundDevices
(int piIdx, /*[in] Device index in the internal
list(0..MAX_MEMBER)*/
char far *psName, /*[out] Device Name*/
char far *psIP, /*[out] Device Ip Address*/
char far *psSubnet,/*[out] Device Subnet Mask*/
char far *psMAC, /*[out] Device MAC Address*/
char far *psType) /*[out] Device Type*/
So far all I've got is:
[DllImport("DcpDll.dll")]
private static extern int DcpDll_GetFoundDevices
(int piIdx, ?? psName, ?? psIP, ?? psSubnet, ??
psMAC, ?? psType);
I just can't figure out how to do these char far* in C#. Can somebody
help? I'm getting desperate here.
Yours,
Chris