Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "connect" in [All]

coredll

.
NOTIFICATION_EVENT_RS232_DETECTED When an RS232 connection is made. 9
.

NOTIFICATION_EVENT_RS232_DETECTED is also raised when connecting the device to USB.

.
Summary
Enumerate through the active RAS connections (GPRS, dialup, etc) on Windows Mobile device
.

    private static extern uint RasEnumConnections(

.

        [Out] out int connections);

.

public static RASCONN[] GetAllConnections()

.

        RASCONN[] allConnections = tempConn;

.

        int lpcConnections = 0;

.

        uint ret = RasEnumConnections(tempConn, ref lpcb, out lpcConnections);

.

        // first call returned that there are more than one connections

.

        allConnections = new RASCONN[lpcb / Marshal.SizeOf(typeof(RASCONN))];

.

        allConnections[0] = tempConn[0];

.

        ret = RasEnumConnections(allConnections, ref lpcb, out lpcConnections);

.

        if (lpcConnections > allConnections.Length)

.

        throw new Exception("RAS: error retrieving correct connection count");

.

        else if (lpcConnections == 0)

.

        allConnections = new RASCONN[0];

.

        return allConnections;

.
Documentation
RasEnumConnections @msdn on MSDN
.

    internal static extern UInt32 RasEnumConnections([In, Out] _RASCONN[] lprasconn, ref UInt32 lpcb, ref UInt32 lpcConnections);

.

        public IntPtr ConnectionHandle { get { return m_hrasconn; } }

.

    public static _RASCONN[] EnumerateConnections()

.

        if (RasEnumConnections(rasconn, ref size, ref noelements) != 0x00)

.

            if (RasEnumConnections(rasconn, ref size, ref noelements) != 0x00) { rasconn = null; }

.
Summary
This function retrieves information on the current status of the specified remote access connection
.

public static extern int RasGetConnectStatus(IntPtr hrasconn, ref RASCONNSTATUS lprasconnstatus);

.

        RASCS_ConnectDevice,

.

        RASCS_DeviceConnected,

.

        RASCS_AllDevicesConnected,

.

        RASCS_Connected = RASCS_DONE,

.

        RASCS_Disconnected

.

    public static RASCONNSTATUS GetConnectStatus(IntPtr hrasconn)

.

        RasGetConnectStatus(hrasconn, ref status);

.
Documentation
[RasGetConnectStatus] on MSDN
.
Summary
Disconnect a RAS connection
.

Use this function together with RasEnumConnections, to return a list of the active connections, then the sample code below will loop through the RASCONN[] array and close each one.

.

public static void CloseAllConnections()

.

        RASCONN[] connections = GetAllConnections();

.

        for (int i = 0; i < connections.Length; ++i)

.

        RasHangUp(connections[i].hrasconn);

odbc32

.
Summary
SQLAllocConnect allocates memory for a connection handle within the environment identified by henv.
.

static extern short SQLAllocConnect(IntPtr EnvironmentHandle, out IntPtr ConnectionHandle);

.

  IntPtr connectionHandle  = IntPtr.Zero;

.

  if (!isOK(SQLAllocConnect(environmentHandle, out connectionHandle)))

.

    throw new Exception("Failed to allocate connection handle.");

.
Documentation
[SQLAllocConnect] on MSDN
.
Summary
SQLAllocHandle allocates an environment, connection, statement, or descriptor handle.
.

    private static extern short SQLBrowseConnect(IntPtr hconn, StringBuilder inString,

.

                if (SQL_NEED_DATA == SQLBrowseConnect(hconn, inString, inStringLength, outString,

.

                    if (SQL_NEED_DATA != SQLBrowseConnect(hconn, inString, inStringLength, outString,

.
Summary
SQLAllocStmt allocates memory for a statement handle and associates the statement handle with the connection specified by hdbc.
.

static extern short SQLAllocStmt(IntPtr ConnectionHandle, out IntPtr StatementHandle);

.

    Private Shared Function SQLAllocStmt(ByVal connectionHandle As IntPtr, <Runtime.InteropServices.Out()> _

.

            //We will use a DSN in our connection string

.

            string connectionString = "DSN=SomeDSN; Uid=myun; Pwd=mypwd;";

.

            //Allocate a database connection handle, using the environment handle we allocated earlier

.

            //Connect to the DB, the completed connection string will be passed back

.

            short retcode = SQLDriverConnect(dbcHandle, IntPtr.Zero, connectionString, 256, completedConnString, 1024, out strLength, SQL_DRIVER_COMPLETE);

.

            //Free resources and disconnect

.

            SQLDisconnect(dbcHandle);

.
Summary
Supports an iterative method of discovering and enumerating the attributes and attribute values required to connect to a data source.
.

  private static extern short SQLBrowseConnect( IntPtr handleConnection, StringBuilder connectionString, short stringLength, StringBuilder outConnection, short bufferLength, out short stringLength2Ptr );

.

Declare Function SQLBrowseConnect Lib "odbc32.dll" (TODO) As TODO

.
Documentation
[SQLBrowseConnect] on MSDN
.

static extern short SQLConnect (int connectionHandle, string serverName,

.

    Private Function SQLConnect(ByVal hDBc As IntPtr, ByVal servername As String, ByVal serverlen As Short, _

.

     RetCode = SQLAllocConnect(hEnv,ref hdbc);

.

     RetCode = SQLConnect(hdbc, "Northwind",-3,null,-3,null,-3);

.
Documentation
[SQLConnect] on MSDN
.

    Private Sub OnGetODBCConnectionNames(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmbExpSID.DropDown, cmbImpSid.DropDown

.
Summary
SQLDisconnect closes the connection associated with a specific connection handle.
.

public static extern short  SQLDisconnect(IntPtr ConnectionHandle);

.

Declare Function SQLDisconnect Lib "odbc32.dll" ( _

.

   connectionHandle As Integer) As Short

.

See SQLDriverConnect.

.
Documentation
[SQLDisconnect] on MSDN
.
Summary
SQLDriverConnect is an alternative API to SQLConnect. The difference is that it can popup the dialog to ask the user for more information about the connection
.

    public static extern short SQLDriverConnect(IntPtr  hdbc,

.

    Private Shared Function SQLDriverConnect(ByVal hdbc As IntPtr, ByVal hwnd As IntPtr, ByVal szConnStrIn As String, _

.

    void driverConnect(string connstr, ushort driverCompletion)

.

        const short    MAX_CONNECT_LEN = 1024;

.

        StringBuilder  out_connect = new StringBuilder(MAX_CONNECT_LEN);

.

        string            in_connect  = connstr;

.

        if (!isOK(SQLDriverConnect(connectionHandle,

.

            in_connect,

.

            (short) in_connect.Length,

.

            out_connect,

.

            MAX_CONNECT_LEN,

.

                string msg  = GetError(IntPtr.Zero) + "\nconnection string:\n\t" + connstr;

.

            connectionHandle,

.

            if (!isOK(SQLAllocConnect(environmentHandle, out connectionHandle)))

.

                throw new Exception("Failed to allocate connection handle.");

.

        if (connectionHandle.ToInt32()!=0)

.

            SQLDisconnect(connectionHandle);

.

        if (connectionHandle.ToInt32()!=0)

.

            SQLFreeConnect(connectionHandle);

.

            connectionHandle = IntPtr.Zero;

.
Documentation
[SQLDriverConnect] on MSDN
.

        IntPtr        ConnectionHandle,

.

See SQLDriverConnect example.

.
Summary
SQLFreeConnect releases a connection handle and frees all memory associated with the handle.
.

  static extern short SQLFreeConnect(IntPtr ConnectionHandle);

.

See SQLDriverConnect example.

.
Documentation
[SQLFreeConnect] on MSDN
.

See SQLDriverConnect example.

.
Summary
SQLFreeHandle frees resources associated with a specific environment, connection, statement, or descriptor handle.
.

        if (!isOK(SQLAllocStmt(connectionHandle, out statementHandle)))

gdiplus

.

   bool connect);

winscard

. . .
Summary
The SCardConnect function establishes a connection (using a specific resource manager context) between the calling application and a smart card contained by a specific reader. If no card exists in the specified reader, an error is returned.
.

[DllImport("winscard.dll", EntryPoint="SCardConnect", CharSet=CharSet.Auto)]

.

static extern int SCardConnect(

.

rv = SCardConnect(hContext, "Reader X", SCARD_SHARE_SHARED,

.

error CS1502: The best overloaded method match for 'PCSC_ContactlessNet.SmartCard.SCardConnect(System.IntPtr, string, uint, uint, out int, out uint)' has some invalid arguments

.
Documentation
[SCardConnect] on MSDN
. . .
Summary
The SCardDisconnect function terminates a connection previously opened between the calling application and a smart card in the target reader.
.

static extern int SCardDisconnect(int hCard, int dwDisposition);

.
Documentation
[SCardDisconnect] on MSDN
.

    static extern int SCardConnect(IntPtr hContext,

.

    static extern int SCardDisconnect(IntPtr hCard, int Disposition);

.

            result = SCardConnect(hContext, readerName, 2, 3, ref phCard, ref ActiveProtocol);

.

            SCardDisconnect(phCard, 0);

.

   IntPtr hCard,            // Reference value returned from SCardConnect

.

  // Copy code to connect to the card here

.
Summary
The SCardStatus function provides the current status of a smart card in a reader. You can call it any time after a successful call to SCardConnect and before a successful call to SCardDisconnect. It does not affect the state of the reader or reader driver.
.

updated to better working signature (VS2010)...still need to establish context, and connect the card like in sample area, but this is an example of code that will read an iClass UID

.

// Paste here code for SCardEstablishContext, SCardConnect

.

// Paste here code for SCardDisconnect, pbRecvBuffer contains Answer as Byte[]

Structures

.

  MIXERLINE_LINEF_DISCONNECTED = &H8000

.

        public bool fConnected;

.

        internal bool fReturnConnected;

.
Summary
The MIB_TCP6ROW_OWNER_PID structure contains information that describes an IPv6 TCP connection associated with a specific process ID (PID).
.
Summary
The MIB_TCPROW_OWNER_PID structure contains information that describes an IPv4 TCP connection with IPv4 addresses, ports used by the TCP connection, and the specific process ID (PID) associated with connection.
.

     DISCONNECTED    = 0x00008000u,

.

Without the Structlayout the WNetAddConnection2 does not work !!!

.
Summary
.
Summary
stores the statistics for a single-link RAS connection, or for one of the links in a multilink RAS connection.
.

     public int dwConnectionDuration;

.

     Public dwConnectionDuration As Integer

.

See docs for RasGetConnectionStatistics

.

        //  Connection/Session counts

.

        public int Reconnects;

.

        public int CoreConnects;

.

        public int Lanman20Connects;

.

        public int Lanman21Connects;

.

        public int LanmanNtConnects;

.

        public int ServerDisconnects;

.

    public bool AoAcConnectivitySupported;  // Ignore if earlier than Windows 10 (10.0.10240.0)

.

    TCP_TABLE_BASIC_CONNECTIONS,

.

    TCP_TABLE_OWNER_PID_CONNECTIONS,

.

    TCP_TABLE_OWNER_MODULE_CONNECTIONS,

.

    TCP_TABLE_BASIC_CONNECTIONS

.

    TCP_TABLE_OWNER_PID_CONNECTIONS

.

    TCP_TABLE_OWNER_MODULE_CONNECTIONS

.

  TCP_TABLE_CLASS = (TCP_TABLE_BASIC_LISTENER,TCP_TABLE_BASIC_CONNECTIONS,

.

            TCP_TABLE_OWNER_PID_CONNECTIONS,TCP_TABLE_OWNER_PID_ALL,

.

            TCP_TABLE_OWNER_MODULE_LISTENER,TCP_TABLE_OWNER_MODULE_CONNECTIONS,

.

TCP_TABLE_BASIC_CONNECTIONS

.

A MIB_TCPTABLE table that contains all connected TCP endpoints on the machine is returned to the caller.

.

TCP_TABLE_OWNER_PID_CONNECTIONS

.

A MIB_TCPTABLE_OWNER_PID or MIB_TCP6TABLE_OWNER_PID that all connected TCP endpoints on the machine is returned to the caller.

.

TCP_TABLE_OWNER_MODULE_CONNECTIONS

.

A MIB_TCPTABLE_OWNER_MODULE or MIB_TCP6TABLE_OWNER_MODULE that contains all connected TCP endpoints on the machine is returned to the caller.

.
Summary
.

   public int ConnectionIndex;

.

   ULONG ConnectionIndex;

.

   Request.ConnectionIndex = PortPortNumber;

.

   if (DeviceIoControl(h, IOCTL_USB_GET_DESCRIPTOR_FROM_NODE_CONNECTION, ptrRequest, nBytes, ptrRequest, nBytes, out nBytesReturned, IntPtr.Zero))

.
Summary
Used by DeviceIoControl and IOCTL_USB_GET_DESCRIPTOR_FROM_NODE_CONNECTION to get the Device Descriptor of a device on a port on a USB Hub
.

Is often used as a type inside a USB_NODE_CONNECTION_INFORMATION_EX structure, hence the need for the "Pack=1"

.
Summary
Used with DeviceIoControl and IOCTL_USB_GET_NODE_CONNECTION_DRIVERKEY_NAME to get the "Driver Key Name" of a device on a USB Hub
.

struct USB_NODE_CONNECTION_DRIVERKEY_NAME

.

   public int ConnectionIndex;

.

Structure USB_NODE_CONNECTION_DRIVERKEY_NAME

.

Identical to the USB_NODE_CONNECTION_NAME structure

.

typedef struct _USB_NODE_CONNECTION_DRIVERKEY_NAME {

.

   ULONG  ConnectionIndex;

.

} USB_NODE_CONNECTION_DRIVERKEY_NAME, *PUSB_NODE_CONNECTION_DRIVERKEY_NAME;

.
Documentation
[USB_NODE_CONNECTION_DRIVERKEY_NAME] on MSDN
.

   USB_NODE_CONNECTION_DRIVERKEY_NAME DriverKey = new USB_NODE_CONNECTION_DRIVERKEY_NAME();

.

   DriverKey.ConnectionIndex = PortPortNumber;

.

   if (DeviceIoControl(h, IOCTL_USB_GET_NODE_CONNECTION_DRIVERKEY_NAME, ptrDriverKey, nBytes, ptrDriverKey, nBytes, out nBytesReturned, IntPtr.Zero))

.

     DriverKey = (USB_NODE_CONNECTION_DRIVERKEY_NAME)Marshal.PtrToStructure(ptrDriverKey, typeof(USB_NODE_CONNECTION_DRIVERKEY_NAME));

.
Summary
Used with DeviceIoControl and IOCTL_USB_GET_NODE_CONNECTION_INFORMATION_EX to retrieve information about a port connection on a USB Hub
.

struct USB_NODE_CONNECTION_INFORMATION_EX

.

   public int ConnectionIndex;

.

   public int ConnectionStatus;

.

Structure USB_NODE_CONNECTION_INFORMATION_EX

.

typedef struct _USB_NODE_CONNECTION_INFORMATION_EX {

.

   ULONG  ConnectionIndex;

.

   USB_CONNECTION_STATUS  ConnectionStatus;

.

} USB_NODE_CONNECTION_INFORMATION_EX, *PUSB_NODE_CONNECTION_INFORMATION_EX;

.
Documentation
[USB_NODE_CONNECTION_INFORMATION_EX] on MSDN
.

   int nBytes = Marshal.SizeOf(typeof(USB_NODE_CONNECTION_INFORMATION_EX));

.

   IntPtr ptrNodeConnection = Marshal.AllocHGlobal(nBytes);

.

     USB_NODE_CONNECTION_INFORMATION_EX NodeConnection = new USB_NODE_CONNECTION_INFORMATION_EX();

.

     NodeConnection.ConnectionIndex = i;

.

     Marshal.StructureToPtr(NodeConnection, ptrNodeConnection, true);

.

     if (DeviceIoControl(h, IOCTL_USB_GET_NODE_CONNECTION_INFORMATION_EX, ptrNodeConnection, nBytes, ptrNodeConnection, nBytes, out nBytesReturned, IntPtr.Zero))

.

       NodeConnection = (USB_NODE_CONNECTION_INFORMATION_EX)Marshal.PtrToStructure(ptrNodeConnection, typeof(USB_NODE_CONNECTION_INFORMATION_EX));

.

   Marshal.FreeHGlobal(ptrNodeConnection);

.

   USB_NODE_CONNECTION_INFORMATION_EX connection = new USB_NODE_CONNECTION_INFORMATION_EX();

.

   connection.ConnectionIndex = i;

.

   size = Marshal.SizeOf(typeof(USB_NODE_CONNECTION_INFORMATION_EX)) + 32 * Marshal.SizeOf(typeof(USB_PIPE_INFO)); // Assuming 32 should be enough, you can make this larger

.

   IntPtr ptr_connection = Marshal.AllocHGlobal(size);

.

   Marshal.StructureToPtr(connection, ptr_connection, true);

.

   if (DeviceIoControl(hHub, IOCTL_USB_GET_NODE_CONNECTION_INFORMATION_EX, ptr_connection, size, ptr_connection, size, out bytes_returned, IntPtr.Zero))

.

     connection = (USB_NODE_CONNECTION_INFORMATION_EX)Marshal.PtrToStructure(ptr_connection, typeof(USB_NODE_CONNECTION_INFORMATION_EX));

.

     if (bytes_returned != Marshal.SizeOf(typeof(USB_NODE_CONNECTION_INFORMATION_EX)))

.

       int num = (bytes_returned - Marshal.SizeOf(typeof(USB_NODE_CONNECTION_INFORMATION_EX))) / Marshal.SizeOf(typeof(USB_PIPE_INFO));

.

     IntPtr ptr_pipeinfo = new IntPtr((byte*)ptr_connection.ToPointer()

.

                       + Marshal.SizeOf(typeof(USB_NODE_CONNECTION_INFORMATION_EX))

.

   Marshal.FreeHGlobal(ptr_connection);

.
Summary
Used with DeviceIoControl and IOCTL_USB_GET_NODE_CONNECTION_NAME to get the Device Path of a downstream Hub
.

struct USB_NODE_CONNECTION_NAME

.

   public int ConnectionIndex;

.

Structure USB_NODE_CONNECTION_NAME

.

typedef struct _USB_NODE_CONNECTION_NAME {

.

   ULONG  ConnectionIndex;

.

} USB_NODE_CONNECTION_NAME, *PUSB_NODE_CONNECTION_NAME;

.
Documentation
[USB_NODE_CONNECTION_NAME] on MSDN
.

   USB_NODE_CONNECTION_NAME NodeName = new USB_NODE_CONNECTION_NAME();

.

   NodeName.ConnectionIndex = PortPortNumber;

.

   if (DeviceIoControl(h, IOCTL_USB_GET_NODE_CONNECTION_NAME, ptrNodeName, nBytes, ptrNodeName, nBytes, out nBytesReturned, IntPtr.Zero))

.

     NodeName = (USB_NODE_CONNECTION_NAME)Marshal.PtrToStructure(ptrNodeName, typeof(USB_NODE_CONNECTION_NAME));

.
Summary
Used with DeviceIoControl and IOCTL_USB_GET_NODE_INFORMATION to get connection-related information about a port on a USB Hub
.

You don't use an IOCTL call directly with a USB_STRING_DESCRIPTOR structure. Instead you use a USB_DESCRIPTOR_REQUEST "request packet" with IOCTL_USB_GET_DESCRIPTOR_FROM_NODE_CONNECTION. The USB_STRING_DESCRIPTOR structure is returned at the very end of the request packet. The whole idea of "writing off the edge" of a structure is counter to the way C#/VB.Net was designed to work, so you'll have to make sure to allocate sufficient amount of memory to handle both the "request packet" and the USB_STRING_DESCRIPTOR structure.

.

   Request.ConnectionIndex = PortPortNumber;

.

   if (DeviceIoControl(h, IOCTL_USB_GET_DESCRIPTOR_FROM_NODE_CONNECTION, ptrRequest, nBytes, ptrRequest, nBytes, out nBytesReturned, IntPtr.Zero))

.

        Byte[] ConnectState;

.

        System.Runtime.InteropServices.ComTypes.FILETIME ConnectTime;

.

        System.Runtime.InteropServices.ComTypes.FILETIME DisconnectTime;

.
Summary
Contains association attributes for a connection.
.
Summary
Defines the attributes of a wireless connection.
.

        public struct WLAN_CONNECTION_ATTRIBUTES

.

        /// WLAN_CONNECTION_MODE->_WLAN_CONNECTION_MODE

.

        public WLAN_CONNECTION_MODE wlanConnectionMode;

.

     Public Structure WLAN_CONNECTION_ATTRIBUTES

.

     ''' WLAN_CONNECTION_MODE->_WLAN_CONNECTION_MODE

.

     Public wlanConnectionMode As WLAN_CONNECTION_MODE

.

WLAN_CONNECTION_MODE

.
Documentation
[WLAN_CONNECTION_ATTRIBUTES] on MSDN
.

public struct WLAN_CONNECTION_PARAMETERS

.

        public WLAN_CONNECTION_MODE wlanConnectionMode;

.

Structure WLAN_CONNECTION_PARAMETERS

.

WLAN_CONNECTION_MODE

.

The rationale behind the change in the history for this is because is that he/she wanted to "unmarshal". However, in functions like WlanConnect(), it is used as an "input". So, it needs to be marshaled. Then I believe they should be IntPtr.

.
Documentation
[WLAN_CONNECTION_PARAMETERS] on MSDN
.

public struct WLAN_HOSTED_NETWORK_CONNECTION_SETTINGS

.

Structure WLAN_HOSTED_NETWORK_CONNECTION_SETTINGS

.
Documentation
[WLAN_HOSTED_NETWORK_CONNECTION_SETTINGS] on MSDN
.

        wlan_notification_acm_connection_start,

.

        wlan_notification_acm_connection_complete,

.

        wlan_notification_acm_connection_attempt_fail,

.

        wlan_notification_acm_disconnecting,

.

        wlan_notification_acm_disconnected,

.

        wlan_notification_acm_connection_start

.

        wlan_notification_acm_connection_complete

.

        wlan_notification_acm_connection_attempt_fail

.

        wlan_notification_acm_disconnecting

.

        wlan_notification_acm_disconnected

.

        wlan_notification_msm_connected,

.

        wlan_notification_msm_disconnected,

.
Summary
Defines the security attributes for a wireless connection.
.

        public WTS_CONNECTSTATE_CLASS State;

rasapi32

.
Summary
The RasDialDlg function establishes a RAS connection using a specified phone-book entry and the credentials of the logged-on user. The function displays a stream of dialog boxes that indicate the state of the connection operation.
.

bool ret = RAW.RasDialDlg(IntPtr.Zero, "Some Connection Name", IntPtr.Zero, ref info);

.
Summary
The RasDialDlg function establishes a RAS connection using a specified phone-book entry and the credentials of the logged-on user. The function displays a stream of dialog boxes that indicate the state of the connection operation.
.

bool ret = RAW.RasDialDlg(IntPtr.Zero, "Some Connection Name", IntPtr.Zero, ref info);

.

public static extern int RasEnumConnections(

.

    [Out] out int connections);

.

RAW.RASCONN[] connections = new RAW.RASCONN[1];

.

connections[0].dwSize = Marshal.SizeOf(typeof(RAW.RASCONN));

.

int connectionsCount = 0;

.

int nRet = RAW.RasEnumConnections(connections, ref cb, out connectionsCount);

.

if (connectionsCount == 0)

.

connections = new RAW.RASCONN[connectionsCount];

.

for (int i = 0; i < connections.Length; i++)

.

    connections[i].dwSize = Marshal.SizeOf(typeof(RAW.RASCONN));

.

nRet = RAW.RasEnumConnections(connections, ref cb, out connectionsCount);

.

int cb = 0, connectionCount;

.

if (RAW.RasEnumConnections(null, ref cb, out connectionCount) == RAW.ERROR_BUFFER_TOO_SMALL)

.

    if (connectionCount == 0) return;

.

    if (RasApi.RasEnumConnections(buffer, ref cb, out conns) == RAW.ERROR_SUCCESS)

.
Documentation
[RasEnumConnections] on MSDN
.
Summary
Retrieves accumulated connection statistics for a connection
.

static extern uint RasGetConnectionStatistics(IntPtr hRasConn, ref RAS_STATS lpStatistics);

.

Public Shared Function RasGetConnectionStatistics( _

.

uint retVal = RasGetConnectionStatistics(rasConnectionHandle, ref statistics);

.
Documentation
[RasGetConnectionStatistics] on MSDN
.

public static extern int RasGetConnectStatus(int hrasconn, ref RASCONNSTATUS lprasconnstatus);

.

Declare Function RasGetConnectStatus Lib "rasapi32.dll" (TODO) As TODO

.
Documentation
[RasGetConnectStatus] on MSDN
.
Summary
The RasGetEntryDialParams function retrieves the connection information saved by the last successful call to the RasDial or RasSetEntryDialParams function for a specified phone-book entry.

Cut off search results after 60. Please refine your search.


 
Access PInvoke.net directly from VS: