这个函数在C#中如何调用?
C函数:BOOLEAN PacketGetAdapterNames(PTSTR pStr,PULONG BufferSize)
这样写对吗?
[DllImport("packet.dll", EntryPoint="PacketGetAdapterNames")]
private static extern bool PacketGetAdapterNames(string pStr, int BufferSize);
如果写对了,如何来调呢?
如果没有写对,请高手给个demo,谢了