Desktop Functions: Smart Device Functions:
|
Search Results for "code" in [All]wlanapiSample Code:Sample Code:3: WlanConnect Managed Wifi - http://managedwifi.codeplex.com/ Sample Code:
[DllImport("Wlanapi.dll", SetLastError = true, CharSet = CharSet.Unicode)] Sample Code:Sample Code:Sample Code:Sample Code:Sample Code:Sample Code:10: WlanGetProfile Sample Code:Sample Code:Sample Code:Sample Code:Sample Code:Sample Code:Sample Code:Sample Code:
WLAN_HOSTED_NETWORK_OPCODE OpCode, Sample Code:Sample Code:Sample Code:21: WlanOpenHandle Sample Code:
WLAN_INTF_OPCODE OpCode,
IntPtr pWlanOpcodeValueType);
<[In]> ByRef pInterfaceGuid As Guid, ByVal OpCode As WLAN_INTF_OPCODE, _
ByRef ppData As IntPtr, ByVal pWlanOpcodeValueType As IntPtr) As UInteger There is a managed WiFi API available on codeplex http://managedwifi.codeplex.com/ Depending on the opcode, the data returned in the memory pointed to by ppData can be: Sample Code:
if (WlanQueryInterface(handle, ref guid, WLAN_INTF_OPCODE.wlan_intf_opcode_current_connection, IntPtr.Zero, out dataSize, ref ptr, IntPtr.Zero) != 0)
If WlanQueryInterface(handle, guid, WLAN_INTF_OPCODE.wlan_intf_opcode_current_connection, IntPtr.Zero, dataSize, ptr, _
[DllImport("Wlanapi.dll",SetLastError = true,CharSet = CharSet.Unicode)]
public static extern uint WlanReasonCodeToString(uint dwReasonCode,uint dwBufferSize,string pStringBuffer,IntPtr pReserved);
Declare Function WlanReasonCodeToString Lib "wlanapi.dll" (TODO) As TODO Sample Code:
uint pwdReasonCode=524289,dwBufferSize=64;
WlanReasonCodeToString(pwdReasonCode,dwBufferSize,pStringBuffer,new IntPtr()); Sample Code:Sample Code:26: WlanScan Sample Code:
uint resultCode = WlanScan(wlanHndl, ref g, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero);
if (resultCode != 0) 27: WlanSetInterface
public static extern uint WlanSetInterface(IntPtr hClientHandle,ref Guid pInterfaceGuid,WLAN_INTF_OPCODE OpCode,uint dwDataSize,ref object obj ,IntPtr pReserved); Sample Code:28: WlanSetProfile
[DllImport("Wlanapi.dll",SetLastError = true,CharSet = CharSet.Unicode)] Sample Code:
[DllImport("Wlanapi.dll",SetLastError = true,CharSet = CharSet.Unicode)] Sample Code:30: WLAN_RADIO_STATE <StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)> _ Sample Code:31: WLAN_STATISTICS Sample Code:quickusbAlso, see the Managed wrapper class CsQuickUSB http://code.google.com/p/csquickusb/ QuickUsb.dll is not unicode friendly, make sure you use ANSI encodings on your pinvoke calls! 33: QuickUSB Sample Code:34: QuickUsbClose Sample Code:Sample Code:36: QuickUsbOpen Sample Code:37: QuickUsbReadData Sample Code:Sample Code:ws2_3239: accept Sample Code:40: bind Sample Code:
int resultCode = 0; //Result of operation.
int errorCode = 0; //Resultant error.
resultCode = bind(socketHandle, ref remoteAddress,
errorCode = Marshal.GetLastWin32Error();
returnValue = (resultCode == 0); 41: closesocket
[DllImport("ws2_32.dll", CharSet = CharSet.Unicode, SetLastError = true)] Sample Code:42: Command Sample Code:43: connect Sample Code:44: ControlCode
public enum ControlCode : int
Declare Function ControlCode Lib "ws2_32.dll" (TODO) As TODO Sample Code:45: gethostname Sample Code:46: getsockopt Sample Code:47: htonl Sample Code:48: htons Sample Code:49: InetNtop
[DllImport("Ws2_32.dll", CharSet = CharSet.Unicode, EntryPoint = "InetNtopW")]
[DllImport("Ws2_32.dll", CharSet = CharSet.Unicode, EntryPoint = "InetNtopW")] Sample Code:50: inet_addr Sample Code:51: inet_ntoa Sample Code:52: inet_pton
[DllImport("Ws2_32.dll", CharSet = CharSet.Unicode, EntryPoint = "InetPtonW")]
[DllImport("Ws2_32.dll", CharSet = CharSet.Unicode, EntryPoint = "InetPtonW")] Sample Code:53: INTERFACE_INFO Sample Code:54: ioCommand Sample Code:55: ioctlsocket Sample Code:
this.socketPtr, Native.ControlCode.FIONREAD, 56: listen Sample Code:57: MsgFlags Sample Code:58: ntohl Sample Code:59: ntohs Sample Code:60: ntohs Sample Code:Cut off search results after 60. Please refine your search. |