windows Ce 打开设备WiFi设置窗口

[System.Runtime.InteropServices.DllImport("coredll.dll")]
public static extern bool PostMessage(IntPtr hWnd, uint Msg, int wParam, IntPtr lParam);

const uint HWND_BROADCAST = 0xffff;
const uint WM_APP = 0x8000;
const uint WM_WZCSYSTRAYICON = WM_APP + 100;
const uint WM_LBUTTONDBLCLK = 0x0203;

private void btnWifiConfig_Click(object sender, EventArgs e)
{
PostMessage((IntPtr)HWND_BROADCAST, WM_WZCSYSTRAYICON, 1, (IntPtr)WM_LBUTTONDBLCLK);
}

原文地址:https://www.cnblogs.com/ydy157/p/4054170.html