解决方案 »
- 整合多个模块功能做一个业务流程控制导航页,给想个思路
- 另气新贴:麻烦大家帮我看看,为什么这三行代码,一到clear()就崩溃?
- 在OleDbCommand 如何执行SET ROWCOUNT 1这句话?
- 一个简单的JS
- 使用 Visual C# .NET 實作包裝 [瀏覽資料夾] 通用對話方塊的 Managed 元件
- 不用TreeView控件,谁有这个树形菜单的C#源程序?
- 页面中如何停止刷新
- C# winform 消息循环Appliacation.Run()替换
- C#连接Oracle的问题
- 如何获得mdi子窗体上某控件的屏幕绝对坐标?
- C#怎么通过url调用接口,并获取返回值?
- insert into 语法错误
public static uint GetSignalQuality(Guid gg)
{
UInt32 dwSize = 0;
IntPtr ppData = IntPtr.Zero;
IntPtr ppChannel = IntPtr.Zero;
WLAN_OPCODE_VALUE_TYPE pOpcodeValueType; if (WlanQueryInterface(m_pClientHandle, ref gg,
WLAN_INTF_OPCODE.wlan_intf_opcode_current_connection,
IntPtr.Zero, out dwSize, out ppData,
out pOpcodeValueType) != ERROR_SUCCESS)
{
m_errorMessage = "Failed WlanQueryInterface() - " +
"Current Connection Attributes";
return 0;
} if (ppData != IntPtr.Zero)
{
WLAN_CONNECTION_ATTRIBUTES connectionAttributes =
new WLAN_CONNECTION_ATTRIBUTES(ppData);
return connectionAttributes.wlanAssociationAttributes.wlanSignalQuality; }
return 0;
}
详见:http://www.codeproject.com/Articles/23496/Wireless-signal-indicator