找不到Wlanapi.dll入口点异常

时间:2018-04-22 21:00:47

标签: c# c++ pinvoke wlanapi

当我尝试调用wlanapi.dll的WlanOpenHandle方法时,代码抛出EntryPointNotFoundException。

C#:

[DllImport("wlanapi.dll", SetLastError = true)]
public static extern uint WlanOpenHandle([In] UInt32 clientVersion, [In, Out] IntPtr pReserved, [Out] out UInt32 negotiatedVersion, [Out] out IntPtr clientHandle);

C#:

uint dwClientVersion = 1;
IntPtr pReserved = IntPtr.Zero;
uint pdwNegotiatedVersion;
IntPtr phClientHandle;

var result = WlanOpenHandle(dwClientVersion, pReserved, out pdwNegotiatedVersion, out phClientHandle);

web site表示存在切入点。缺少的部分是什么?

0 个答案:

没有答案