internal static extern int WlanGetSecuritySettings( [In] IntPtr hClientHandle, [In] WlanSecurableObject SecurableObject, [Out, Optional] out WlanOpcodeValueType pValueType, [Out] out IntPtr strCurrentSDDL, [Out] out WlanAccess pdwGrantedAccess );
internal static extern uint WlanHostedNetworkQueryProperty( [In] WlanHandle clientHandle, [In] WlanHostedNetworkOpcode opCode, [Out] out uint dataSize, [Out] out IntPtr data, [Out] out WlanOpcodeValueType wlanOpcodeValueType, IntPtr reserved);
internal static extern int WlanHostedNetworkSetProperty( [In] IntPtr hClientHandle, [In] WlanHostedNetworkOpcode OpCode, [In] int pdwDataSize, [In] IntPtr ppvData, [Out, Optional] out WlanOpcodeValueType pWlanOpcodeValueType, [In, Out] IntPtr pvReserved );
internal static extern int WlanQueryAutoConfigParameter( [In] IntPtr hClientHandle, [In] WlanAutoConfOpcode OpCode, [In, Out] IntPtr pReserved, [Out] out uint pdwDataSize, [Out] out IntPtr ppData, [Out, Optional] out WlanOpcodeValueType pWlanOpodeValueType );
public static extern int WlanQueryInterface( [In] IntPtr clientHandle, [In, MarshalAs(UnmanagedType.LPStruct)] Guid interfaceGuid, [In] WlanIntfOpcode opCode, [In, Out] IntPtr pReserved, [Out] out int dataSize, [Out] out IntPtr ppData, [Out] out WlanOpcodeValueType wlanOpcodeValueType);
internal static extern int WlanQueryInterface( [In] IntPtr hClientHandle, [In, MarshalAs(UnmanagedType.LPStruct)] Guid interfaceGuid, [In] WlanIntfOpcode OpCode, [In, Out] IntPtr pReserved, [Out] out uint pdwDataSize, [Out] out IntPtr ppData, [Out, Optional] out WlanOpcodeValueType pWlanOpcodeValueType );
public static string ToString(WlanOpcodeValueType opCode) { switch (opCode) { case WlanOpcodeValueType.QueryOnly: return("未知"); case WlanOpcodeValueType.SetByGroupPolicy: return("组策略设置"); case WlanOpcodeValueType.SetByUser: return("用户自定义"); case WlanOpcodeValueType.Invalid: return("无效"); default: return("未知的 WLAN_OPCODE_VALUE_TYPE"); } }
public static extern int WlanQueryInterface([In] IntPtr clientHandle, [In, MarshalAs(UnmanagedType.LPStruct)] Guid interfaceGuid, [In] WlanIntfOpcode opCode, [In, Out] IntPtr pReserved, out int dataSize, out IntPtr ppData, out WlanOpcodeValueType wlanOpcodeValueType);
public static extern int WlanHostedNetworkQueryProperty(IntPtr hClientHandle, WlanHostedNetworkOpcode opCode, [Out] out uint pDataSize, [Out] out IntPtr ppvData, [Out] out WlanOpcodeValueType pWlanOpcodeValueType, IntPtr pReserved);