Desktop Functions: Smart Device Functions:
|
Search Results for "connect" in [All]secur32
public const int ISC_REQ_CONNECTION = 0x00000800;
public const int STANDARD_CONTEXT_ATTRIBUTES = ISC_REQ_CONFIDENTIALITY | ISC_REQ_REPLAY_DETECT | ISC_REQ_SEQUENCE_DETECT | ISC_REQ_CONNECTION;
/// <param name="LsaHandle">[in] Handle obtained from a previous call to LsaRegisterLogonProcess or LsaConnectUntrusted.</param>
public static extern WinStatusCodes LsaConnectUntrusted([Out] out IntPtr LsaHandle);
Declare Function LsaConnectUntrusted Lib "secur32.dll" (TODO) As TODO
NewCredentials, // Allows the caller to clone its current token and specify new credentials for outbound connections. 6: LsaLogonUser
public static extern WinStatusCodes LsaConnectUntrusted([Out] out IntPtr LsaHandle);
OSCalls.WinStatusCodes status = OSCalls.LsaConnectUntrusted(out lsaHandle); ole328: CoInitialize
Connect = 2,
Connect = 2, wininet11: FtpCommand hConnect (in) A handle returned from a call to InternetConnect. fExpectResponse (in) A Boolean value that indicates whether the application expects a data connection to be established by the FTP server. This must be set to TRUE if a data connection is expected, or FALSE otherwise.
Dim ret As Boolean = FTPCommandA(ConnectionHandle, False, 0, sCommand, IntPtr.Zero, IntPtr.Zero)
static extern bool FtpCreateDirectory(IntPtr hConnect, string lpszDirectory);
Private Shared Function FtpCreateDirectory(ByVal hConnect As IntPtr, ByVal lpszDirectory As String) As Boolean 13: FtpDeleteFile
static extern bool FtpDeleteFile(IntPtr hConnect, string fileName);
(ByVal hConnect As IntPtr, ByVal fileName As String) _ 14: FtpFindFirstFile
static extern IntPtr FtpFindFirstFile(IntPtr hConnect,
(ByVal hConnect As IntPtr, ByVal searchFile As String, _
static extern bool FtpGetCurrentDirectory(IntPtr hConnect,
(ByVal hConnect As IntPtr, ByVal directory As StringBuilder, ByRef bufferLength As Integer) _
' and Me.hINetConn is an IntPtr opened by InternetConnect 16: FtpGetFile
static extern bool FtpGetFile(IntPtr hConnect, string remoteFile,
Declare Function FtpGetFile Lib "wininet.dll" (ByVal hConnect As IntPtr, _
[DllImport("wininet.dll", EntryPoint = "InternetConnectW", CharSet = CharSet.Auto, SetLastError = true)]
private static extern IntPtr InternetConnectW(
public void Connect()
ftpHandle = InternetConnectW(internetHandle, FTPSite,
public void Disconnect()
Connect();
Connect();
Disconnect(); 17: FtpPutFile
static extern bool FtpPutFile(IntPtr hConnect, string lpszLocalFile, string lpszNewRemoteFile, int dwFlags, IntPtr dwContext); Call InternetOpen() and InternetConnect() to get a valid hConnect handle. 18: FtpRenameFile
(ByVal hConnect As Integer, ByVal lpszExisting As String, _ Call InternetOpen() and InternetConnect() to get a valid hConnect handle.
static extern bool FtpSetCurrentDirectory(IntPtr hFtpConnection, string lpszDirectory);
Declare Function FtpSetCurrentDirectory Lib "wininet.dll" Alias "FtpSetCurrentDirectoryA" (ByVal hConnect As IntPtr, ByVal lpszDirectory As String) As Boolean 20: HttpOpenRequest
IntPtr hConnect,
__in HINTERNET hConnect,
static extern int InternetAttemptConnect(int dwReserved);
Public Declare Function InternetAttemptConnect Lib "wininet" (Optional ByVal dwReserved As Long = 0) As Long If the computer is already connected, the function may hang.
' This function tries to connect to the internet. If it works, it returns True,
Private Declare Function InternetAttemptConnect Lib "wininet" (Optional ByVal dwReserved As Integer = 0) As Integer
Public Function ConnectToInternet() As Boolean
If InternetAttemptConnect(0) = 0 Then
static extern bool InternetCheckConnection(string lpszUrl, int dwFlags, int dwReserved);
Declare Function InternetCheckConnection Lib "wininet.dll" (ByVal lpszUrl As String, ByVal dwFlags As Integer, ByVal dwReserved As Integer) As Boolean
private static extern bool InternetCheckConnection(string lpszUrl, int dwFlags, int dwReserved);
bool connectivity;
if (InternetCheckConnection("http://www.google.com/", 1, 0))
connectivity = true; 23: InternetConnect
* Returns a valid handle to the FTP, Gopher, or HTTP session if the connection is successful, or NULL otherwise. To get extended error information, call GetLastError. An application can also use InternetGetLastResponseInfo to determine why access to the service was denied.
static extern IntPtr InternetConnect(
Declare Auto Function InternetConnect Lib "wininet.dll" (
Number of the TCP/IP port on the server to connect to. Can be one of the values in the following list. If this parameter is set to INTERNET_INVALID_PORT_NUMBER, the function uses the default port for the specified service. These values do not cause the function to use this protocol. The value sets the port to be used. A flag must be used to set the service.
INTERNET_SERVICE_FTP INTERNET_CONNECT_FLAG_PASSIVE (Use passive mode in all data connections for this FTP session.) The InternetConnect function is required before communicating with any Internet service. Having a connect function for all protocols, even those that do not use persistent connections, lets an application communicate common information about several requests using a single function call. In addition, this allows for future versions of Internet protocols that do not require a connection to be established for every client request. For FTP sites, InternetConnect actually establishes a connection with the server; for others, such as Gopher, the actual connection is not established until the application requests a specific transaction. For maximum efficiency, applications using the Gopher and HTTP protocols should try to minimize calls to InternetConnect and avoid calling this function for every transaction requested by the user. One way to accomplish this is to keep a small cache of handles returned from InternetConnect; when the user makes a request to a previously accessed server, that session handle is still available. For FTP connections, if lpszUsername is NULL, InternetConnect sends the string "anonymous" as the user name. If lpszPassword is NULL, InternetConnect attempts to use the user's e-mail name as the password. To close the handle returned from InternetConnect, the application should call InternetCloseHandle. This function disconnects the client from the server and frees all resources associated with the connection. 24: InternetDial private static extern Int32 InternetDial(IntPtr hwndParent, string lpszConnectoid, Int32 dwFlags, ref Int32 lpdwConnection, Int32 dwReserved); int nResult = InternetDial(IntPtr.Zero ,"Your connection",(int)InternetDialFlags.INTERNET_DIAL_UNATTENDED ,ref nConnection , 0);
/// Retrieves the connected state of the local system.
/// C++ ( lpdwFlags [out]. Type: LPDWORD )<br />Pointer to a variable that receives the connection description. This
/// <term>Internet Connection State Possible Flags</term>
/// <term>INTERNET_CONNECTION_CONFIGURED (0x40)</term>
/// Local system has a valid connection to the Internet, but it might or might not be currently
/// connected.
/// <term>INTERNET_CONNECTION_LAN (0x02)</term>
/// <description>Local system uses a local area network to connect to the Internet.</description>
/// <term>INTERNET_CONNECTION_MODEM (0x01)</term>
/// <description>Local system uses a modem to connect to the Internet.</description>
/// <term>INTERNET_CONNECTION_MODEM_BUSY (0x08)</term>
/// <term>INTERNET_CONNECTION_OFFLINE (0x20)</term>
/// <term>INTERNET_CONNECTION_PROXY (0x04)</term>
/// <description>Local system uses a proxy server to connect to the Internet.</description>
/// <c>true</c> if there is an active modem or a LAN Internet connection, <c>false</c> if there is no Internet
/// connection, or if all possible Internet connections are not currently active.
/// A return value of TRUE from InternetGetConnectedState indicates that at least one connection to the Internet is
/// available. It does not guarantee that a connection to a specific host can be established. Applications should
/// always check for errors returned from API calls that connect to a server. InternetCheckConnection can be called to
/// determine if a connection to a specific destination can be established.
/// <br />A return value of TRUE indicates that either the modem connection is active, or a LAN connection is active
/// is connected.If FALSE is returned, the INTERNET_CONNECTION_CONFIGURED flag may be set to indicate that autodial is
extern static bool InternetGetConnectedState(out int lpdwFlags, int dwReserved);
enum ConnectionStates
Private Declare Function InternetGetConnectedState Lib "wininet.dll" _
Private Enum ConnectionStates InternetGetConnectedStateFlags
private static extern bool InternetGetConnectedState(out int lpdwFlags, int dwReserved);
bool isConnected = InternetGetConnectedState(out flags, 0);
Console.WriteLine(string.Format("Is connected :{0} Flags:{1}", isConnected, flags)); Function Get_InternetConnectedState(ByRef p_lngFlags As Long, Optional ByRef p_return_str As String = "") As Boolean
Get_InternetConnectedState = False
If InternetGetConnectedState(lngFlags, 0) Then
'connected.
If lngFlags And ConnectionStates.LAN Then
'LAN connection.
p_return_str = "LAN connection."
ElseIf lngFlags And ConnectionStates.Modem Then
'Modem connection.
p_return_str = "Modem connection."
ElseIf lngFlags And ConnectionStates.Proxy Then
'Proxy connection.
p_return_str = "Proxy connection."
Get_InternetConnectedState = True
'not connected.
p_return_str = "Not connected."
Get_InternetConnectedState = False Direct Link: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wininet/wininet/internetgetconnectedstate.asp 26: InternetHangUp 27: InternetOpen
sAgent can be any string, it is just to identify the connection Enums29: CSIDL
CSIDL_CONNECTIONS = 0x0031,
CSIDL_CONNECTIONS = &H31
Disconnect = 0x2000000
Disconnect = &H2000000
DS_REPL_INFO_KCC_DSA_CONNECT_FAILURES = 3, 32: FILEOP_FLAGS
/// Don't operate on connected elements.
FOF_NO_CONNECTED_ELEMENTS = 0x2000,
''' Don't operate on connected elements.
FOF_NO_CONNECTED_ELEMENTS = &H2000
FOF_NO_CONNECTED_ELEMENTS As Integer = &H2000 33: HRESULT
///The connection terminated or is in a bogus state and cannot be used any more. Other connections are still valid.
[Description("The connection terminated or is in a bogus state and cannot be used any more. Other connections are still valid.")]
public const int RPC_E_CONNECTION_TERMINATED = unchecked((int)0x80010006);
///The callee (server [not server application]) is not available and disappeared; all connections are invalid. The call may have executed.
[Description("The callee (server [not server application]) is not available and disappeared; all connections are invalid. The call may have executed.")]
///The callee (server [not server application]) is not available and disappeared; all connections are invalid. The call did not execute.
[Description("The callee (server [not server application]) is not available and disappeared; all connections are invalid. The call did not execute.")]
///The object invoked has disconnected from its clients.
[Description("The object invoked has disconnected from its clients.")]
public const int RPC_E_DISCONNECTED = unchecked((int)0x80010108);
///There is no connection for this connection ID
[Description("There is no connection for this connection ID")]
public const int OLE_E_NOCONNECTION = unchecked((int)0x80040004);
///Moniker needs to be connected manually
[Description("Moniker needs to be connected manually")]
public const int MK_E_CONNECTMANUALLY = unchecked((int)0x800401E0);
///Object is not connected to server
[Description("Object is not connected to server")]
public const int CO_E_OBJNOTCONNECTED = unchecked((int)0x800401FD);
///A connection with the transaction manager was lost.
[Description("A connection with the transaction manager was lost.")]
public const int XACT_E_CONNECTION_DOWN = unchecked((int)0x8004D01C);
///A request to establish a connection with the transaction manager was denied.
[Description("A request to establish a connection with the transaction manager was denied.")]
public const int XACT_E_CONNECTION_DENIED = unchecked((int)0x8004D01D);
///This transaction manager failed to establish a connection with another TIP transaction manager.
[Description("This transaction manager failed to establish a connection with another TIP transaction manager.")]
public const int XACT_E_TIP_CONNECT_FAILED = unchecked((int)0x8004D01F);
///The smart card cannot be accessed because of other connections outstanding.
[Description("The smart card cannot be accessed because of other connections outstanding.")]
'''The connection terminated or is in a bogus state and cannot be used any more. Other connections are still valid.
<Description("The connection terminated or is in a bogus state and cannot be used any more. Other connections are still valid.")> _
Public Const RPC_E_CONNECTION_TERMINATED As Integer = CInt(&H80010006UI)
'''The callee (server [not server application]) is not available and disappeared; all connections are invalid. The call may have executed.
<Description("The callee (server [not server application]) is not available and disappeared; all connections are invalid. The call may have executed.")> _
'''The callee (server [not server application]) is not available and disappeared; all connections are invalid. The call did not execute.
<Description("The callee (server [not server application]) is not available and disappeared; all connections are invalid. The call did not execute.")> _
'''The object invoked has disconnected from its clients.
<Description("The object invoked has disconnected from its clients.")> _
Public Const RPC_E_DISCONNECTED As Integer = CInt(&H80010108UI)
'''There is no connection for this connection ID
<Description("There is no connection for this connection ID")> _
Public Const OLE_E_NOCONNECTION As Integer = CInt(&H80040004UI)
'''Moniker needs to be connected manually
<Description("Moniker needs to be connected manually")> _
Public Const MK_E_CONNECTMANUALLY As Integer = CInt(&H800401e0UI)
'''Object is not connected to server
<Description("Object is not connected to server")> _
Public Const CO_E_OBJNOTCONNECTED As Integer = CInt(&H800401fdUI)
'''A connection with the transaction manager was lost.
<Description("A connection with the transaction manager was lost.")> _
Public Const XACT_E_CONNECTION_DOWN As Integer = CInt(&H8004d01cUI)
'''A request to establish a connection with the transaction manager was denied.
<Description("A request to establish a connection with the transaction manager was denied.")> _
Public Const XACT_E_CONNECTION_DENIED As Integer = CInt(&H8004d01dUI)
'''This transaction manager failed to establish a connection with another TIP transaction manager.
<Description("This transaction manager failed to establish a connection with another TIP transaction manager.")> _
Public Const XACT_E_TIP_CONNECT_FAILED As Integer = CInt(&H8004d01fUI)
'''The smart card cannot be accessed because of other connections outstanding.
<Description("The smart card cannot be accessed because of other connections outstanding.")> _
enum InternetGetConnectedStateFlags
INTERNET_CONNECTION_MODEM = 0x01,
INTERNET_CONNECTION_LAN = 0x02,
INTERNET_CONNECTION_PROXY = 0x04,
INTERNET_CONNECTION_RAS_INSTALLED = 0x10,
INTERNET_CONNECTION_OFFLINE = 0x20,
INTERNET_CONNECTION_CONFIGURED = 0x40
Enum InternetGetConnectedStateFlags
INTERNET_CONNECTION_MODEM = &H01
INTERNET_CONNECTION_LAN = &H02
INTERNET_CONNECTION_PROXY = &H04
INTERNET_CONNECTION_RAS_INSTALLED = &H10
INTERNET_CONNECTION_OFFLINE = &H20
INTERNET_CONNECTION_CONFIGURED = &H40 35: MIB_TCP_STATE 36: NetDriveTypes
/// The specified drive is a network drive that is properly connected.
NetDriveConnected = 1,
/// The specified drive is a network drive that is disconnected or in an error state.
''' The specified drive is a network drive that is properly connected.
NetDriveConnected = 1
''' The specified drive is a network drive that is disconnected or in an error state.
NetDriveConnected As Long = 1 37: NtStatus
PrimaryTransportConnectFailed = 0x0000010e,
PortConnectionRefused = 0xc0000041,
PipeDisconnected = 0xc00000b0,
PipeConnected = 0xc00000b2,
LpcInvalidConnectionUsage = 0xc0000706,
RmDisconnected = 0xc0190032, 38: PrinterEnumFlags
PRINTER_ENUM_CONNECTIONS = 0x00000004,
PRINTER_ENUM_CONNECTIONS = &H4
/// Printer is a network printer connection.
/// Indicates the printer is currently connected through a terminal server.
/// The printer was installed by using the Push Printer Connections
/// The printer was installed by using the Push Printer Connections
/// Printer is a per-machine connection.
/// A computer has connected to this printer and given it a friendly name. 40: RASCONNSTATE
RASCS_ConnectDevice,
RASCS_DeviceConnected,
RASCS_AllDevicesConnected,
RASCS_SubEntryConnected,
RASCS_SubEntryDisconnected,
RASCS_Connected = 0x2000,
RASCS_Disconnected
/// <summary>Indicates that the credentials are default credentials for an all-user connection.</summary> 42: RasError
/// <summary>606. The specified port is not connected. </summary>
ERROR_PORT_NOT_CONNECTED,
/// <summary>617. The modem (or other connecting device) is already disconnecting. </summary>
ERROR_ALREADY_DISCONNECTING,
/// <summary>619. The specified port is not connected. </summary>
ERROR_PORT_DISCONNECTED,
/// <summary>623. The system could not find the phone book entry for this connection. </summary>
/// <summary>628. The connection was closed. </summary>
ERROR_DISCONNECTION,
/// <summary>629. The connection was closed by the remote computer. </summary>
ERROR_REMOTE_DISCONNECTION,
/// <summary>630 The modem (or other connecting device) was disconnected due to hardware failure. </summary>
/// <summary>631. The user disconnected the modem (or other connecting device). </summary>
ERROR_USER_DISCONNECTION,
/// <summary>633. The modem (or other connecting device) is already in use or is not configured properly. </summary>
/// <summary>651. The modem (or other connecting device) has reported an error. </summary>
/// <summary>652. There was an unrecognized response from the modem (or other connecting device). </summary>
/// <summary>653. A macro required by the modem (or other connecting device) was not found in the device.INF file. </summary>
/// <summary>665. The modem (or other connecting device) is not properly configured. </summary>
/// <summary>666. The modem (or other connecting device) is not functioning. </summary>
/// <summary>668. The connection was terminated. </summary>
ERROR_NO_CONNECTION,
/// <summary>674. The system was unable to read the maximum connection BPS rate from the media.INI file. </summary>
ERROR_READING_MAXCONNECTBPS,
/// <summary>675. The system was unable to read the maximum carrier connection speed from the media.INI file. </summary>
/// <summary>677. A person answered instead of a modem (or other connecting device). </summary>
/// <summary>681. The modem (or other connecting device) reported a general error. </summary>
/// <summary>685. There was an error in writing the maximum connection speed. </summary>
ERROR_WRITING_MAXCONNECTBPS,
/// <summary>692. There was a hardware failure in the modem (or other connecting device). </summary>
/// <summary>699. The modem (or other connecting device) response caused a buffer overflow. </summary>
/// <summary>701. The modem moved to a connection speed not supported by the COM driver. </summary>
/// <summary>703. The connection needs information from you, but the application does not allow user interaction. </summary>
/// <summary>718. The connection timed out waiting for a valid response from the remote computer. </summary>
/// <summary>719. The connection was terminated by the remote computer. </summary>
/// <summary>720. The connection attempt failed because your computer and the remote computer could not agree on PPP control protocols. </summary>
/// <summary>724. The IPX protocol cannot dial out on the modem (or other connecting device) because this computer is not configured for dialing out (it is an IPX router). </summary>
/// <summary>725. The IPX protocol cannot dial in on the modem (or other connecting device) because this computer is not configured for dialing in (the IPX router is not installed). </summary>
/// <summary>726. The IPX protocol cannot be used for dialing out on more than one modem (or other connecting device) at a time. </summary>
/// <summary>753. The connection could not be disconnected because it was created by the multi-protocol router. </summary>
/// <summary>755. The system cannot perform automated dial because this connection has a custom dialer specified. </summary>
/// <summary>756. This connection is already being dialed. </summary>
/// <summary>758. Internet Connection Sharing (ICS) is already enabled on the connection. </summary>
ERROR_CONNECTION_ALREADY_SHARED,
/// <summary>759. An error occurred while the existing Internet Connection Sharing settings were being changed. </summary>
/// <summary>761. An error occurred while Internet Connection Sharing was being enabled for the connection. </summary>
ERROR_SHARE_CONNECTION_FAILED,
/// <summary>763. Internet Connection Sharing cannot be enabled. There is more than one LAN connection other than the connection to be shared. </summary>
ERROR_CANNOT_SHARE_CONNECTION,
/// <summary>765. Internet Connection Sharing cannot be enabled. A LAN connection is already configured with the IP address that is required for automatic IP addressing. </summary>
/// <summary>766. A certificate could not be found. Connections that use the L2TP protocol over IPSec require the installation of a machine certificate, also known as a computer certificate. </summary>
/// <summary>767. Internet Connection Sharing cannot be enabled. The LAN connection selected as the private network has more than one IP address configured. Please reconfigure the LAN connection with a single IP address before enabling Internet Connection Sharing. </summary>
/// <summary>768. The connection attempt failed because of failure to encrypt data. </summary>
/// <summary>770. The remote computer rejected the connection attempt. </summary>
ERROR_CONNECTION_REJECT,
/// <summary>771. The connection attempt failed because the network is busy. </summary>
/// <summary>773. The connection attempt failed because the destination number has changed. </summary>
/// <summary>774. The connection attempt failed because of a temporary failure. Try connecting again. </summary>
/// <summary>776. The call could not be connected because the remote computer has invoked the Do Not Disturb feature. </summary>
/// <summary>777. The connection attempt failed because the modem or other connection device on the remote computer is out of order. </summary>
/// <summary>779. To dial out using this connection you must use a smart card. </summary>
/// <summary>780. An attempted function is not valid for this connection. </summary>
/// <summary>782. Connection Sharing (NAT) is currently installed as a routing protocol, and must be removed before enabling Internet Connection Sharing. </summary>
/// <summary>783. Internet Connection Sharing cannot be enabled. The LAN connection selected as the private network is either not present, or is disconnected from the network. Please ensure that the LAN adapter is connected before enabling Internet Connection Sharing. </summary>
/// <summary>784. You cannot dial using this connection at login time because it is configured to use a user name different than the one on the smart card. If you want to use this connection at login time, you must configure it to use the user name on the smart card. </summary>
/// <summary>785. You cannot dial using this connection at login time because it is not configured to use a smart card. If you want to use it at login time, you must edit the properties of this connection so that it uses a smart card. </summary>
/// <summary>786. The L2TP connection attempt failed because there is no valid machine certificate on your computer for security authentication. </summary>
/// <summary>787. The L2TP connection attempt failed because the security layer could not authenticate the remote computer. </summary>
/// <summary>788. The L2TP connection attempt failed because the security layer could not negotiate compatible parameters with the remote computer. </summary>
/// <summary>789. The L2TP connection attempt failed because the security layer encountered a processing error during initial negotiations with the remote computer. </summary>
/// <summary>790. The L2TP connection attempt failed because certificate validation on the remote computer failed. </summary>
/// <summary>791. The L2TP connection attempt failed because security policy for the connection was not found. </summary>
/// <summary>792. The L2TP connection attempt failed because security negotiation timed out. </summary>
/// <summary>793. The L2TP connection attempt failed because an error occurred while negotiating security. </summary>
/// <summary>797. A connection to the remote computer could not be established because the modem was not found or was busy. </summary>
ERROR_CONNECTING_DEVICE_NOT_FOUND,
/// <summary>799. Internet Connection Sharing (ICS) cannot be enabled due to an IP address conflict on the network. ICS requires the host be configured to use 192.168.0.1. Ensure that no other client on the network is configured to use 192.168.0.1. </summary>
/// <summary>800. Unable to establish the VPN connection. The VPN server may be unreachable, or security parameters may not be configured properly for this connection. </summary>
/// <summary>801. This connection is configured to validate the identity of the access server, but Windows cannot verify the digital certificate sent by the server. </summary>
/// <summary>805. You cannot dial using this connection at login time because it is configured to use the currently-logged-in user's credentials. </summary>
/// <summary>806. A connection between your computer and the VPN server has been started, but the VPN connection cannot be completed. The most common cause for this is that at least one Internet device (for example, a firewall or a router) between your computer and the VPN server is not configured to allow Generic Routing Encapsulation (GRE) protocol packets. </summary>
/// <summary>807. The network connection between your computer and the VPN server was interrupted. This can be caused by a problem in the VPN transmission and is commonly the result of internet latency or simply that your VPN server has reached capacity. Try to reconnect to the VPN server. </summary>
ERROR_VPN_DISCONNECT,
/// <summary>808. The network connection between your computer and the VPN server could not be established because the remote server refused the connection. This is typically caused by a mismatch between the server's configuration and your connection settings. </summary>
/// <summary>809. The network connection between your computer and the VPN server could not be established because the remote server is not responding. This could be because one of the network devices (for example, firewalls, NAT, routers) between your computer and the remote server is not configured to allow VPN connections. </summary>
/// <summary>810. A network connection between your computer and the VPN server was started, but the VPN connection was not completed. This is typically caused by the use of an incorrect or expired certificate for authentication between the client and the server. </summary>
/// <summary>811. The network connection between your computer and the VPN server could not be established because the remote server is not responding. This is typically caused by a pre-shared key problem between the client and server. A pre-shared key is used to guarantee you are who you say you are in an IP Security (IPSec) communication cycle. </summary>
/// <summary>812. The connection was prevented because of a policy configured on your RAS/VPN server. Specifically, the authentication method used by the server to verify your username and password may not match the authentication method configured in your connection profile. </summary>
/// <summary>813. You have attempted to establish a second broadband connection while a previous broadband connection is already established using the same device or port. </summary>
/// <summary>814. The underlying Ethernet connectivity required for the broadband connection was not found. </summary>
/// <summary>815. The broadband network connection could not be established on your computer because the remote server is not responding. This could be caused by an invalid value for the 'Service Name' field for this connection. </summary>
/// <summary>817. Cannot delete a connection while it is connected. </summary>
/// <summary>818. The Network Access Protection (NAP) enforcement client could not create system resources for remote access connections. Some network services or resources might not be available. </summary>
ERROR_RASQEC_NAPAGENT_NOT_CONNECTED,
/// <summary>821. The Network Access Protection (NAP) enforcement client was unable to process the request because the remote access connection does not exist. </summary>
/// <summary>827. The L2TP/IPsec connection cannot be completed because the IKE and AuthIP IPSec Keying Modules service and/or the Base Filtering Engine service is not running. These services are required to establish an L2TP/IPSec connection. </summary>
/// <summary>828. The connection was terminated because of idle timeout. </summary>
/// <summary>829. The modem (or other connecting device) was disconnected due to link failure. </summary>
/// <summary>830. The connection was terminated because user logged off. </summary>
/// <summary>831. The connection was terminated because user switch happened. </summary>
/// <summary>832. The connection was terminated because of hibernation. </summary>
/// <summary>833. The connection was terminated because the system got suspended. </summary>
/// <summary>834. The connection was terminated because Remote Access Connection manager stopped. </summary>
/// <summary>835. The L2TP connection attempt failed because the security layer could not authenticate the remote computer. This could be because one or more fields of the certificate presented by the remote server could not be validated as belonging to the target destination. </summary> 43: REGCLS 44: ResourceScope
Connected = 0x1,
Connected = &H1 45: ResourceUsage
Connectable = 0x1,
All = Connectable | Container | Attached,
Connectable = &H1
All = Connectable Or Container Or Attached 46: SCM_ACCESS
SC_MANAGER_CONNECT = 0x00001,
SC_MANAGER_CONNECT |
SC_MANAGER_CONNECT = &H1
SC_MANAGER_ALL_ACCESS = STANDARD_RIGHTS_REQUIRED And SC_MANAGER_CONNECT And SC_MANAGER_CREATE_SERVICE And SC_MANAGER_ENUMERATE_SERVICE And SC_MANAGER_LOCK And SC_MANAGER_QUERY_LOCK_STATUS And SC_MANAGER_MODIFY_BOOT_CONFIG
Connect = 0x00001,
Connect = &H1
SHCNE_SERVERDISCONNECT = 0x00004000L,
SHCNE_SERVERDISCONNECT = &H4000L 49: SHCNE
SHCNE_SERVERDISCONNECT = 0x00004000,
SHCNE_SERVERDISCONNECT = &H4000 50: SHSTOCKICONID
SIID_NETWORKCONNECT = 103,
SIID_NETWORKCONNECT = 103
NETWORKCONNECT = 103 51: ShutdownReason
MinorNetworkConnectivity = 0x00000014,
MinorNetworkConnectivity = &H14 52: TCP_TABLE_CLASS
TCP_TABLE_BASIC_CONNECTIONS,
TCP_TABLE_OWNER_PID_CONNECTIONS,
TCP_TABLE_OWNER_MODULE_CONNECTIONS,
enum USB_CONNECTION_STATUS
NoDeviceConnected,
DeviceConnected,
Enum USB_CONNECTION_STATUS
typedef enum _USB_CONNECTION_STATUS {
NoDeviceConnected,
DeviceConnected,
} USB_CONNECTION_STATUS, *PUSB_CONNECTION_STATUS; 54: USB_DEVICE_SPEED
public enum WLAN_CONNECTION_MODE
wlan_connection_mode_profile,
wlan_connection_mode_temporary_profile,
wlan_connection_mode_discovery_secure,
wlan_connection_mode_discovery_unsecure,
wlan_connection_mode_auto,
wlan_connection_mode_invalid,
Public Enum WLAN_CONNECTION_MODE
wlan_connection_mode_profile
wlan_connection_mode_temporary_profile
wlan_connection_mode_discovery_secure
wlan_connection_mode_discovery_unsecure
wlan_connection_mode_auto
wlan_connection_mode_invalid Windows XP with SP3 and Wireless LAN API for Windows XP with SP2: Only the wlan_connection_mode_profile value is supported.
wlan_hosted_network_reason_incompatible_connection_started,
wlan_hosted_network_reason_incompatible_connection_stopped,
/// Defines the state of the interface. e.g. connected, disconnected.
/// wlan_interface_state_connected -> 1
wlan_interface_state_connected = 1,
/// wlan_interface_state_disconnecting -> 3
wlan_interface_state_disconnecting = 3,
/// wlan_interface_state_disconnected -> 4
wlan_interface_state_disconnected = 4,
''' wlan_interface_state_connected -> 1
wlan_interface_state_connected = 1
''' wlan_interface_state_disconnecting -> 3
wlan_interface_state_disconnecting = 3
''' wlan_interface_state_disconnected -> 4
wlan_interface_state_disconnected = 4 58: WLAN_INTF_OPCODE
wlan_intf_opcode_current_connection,
wlan_intf_opcode_current_connection 59: WTSINFO
/// The session's current connection state. For more information, see <see cref="WTS_CONNECTSTATE_CLASS"/>.
WTSConnectState,
/// Information about a Remote Desktop Connection (RDC) client. For more information, see <see cref="WTSCLIENT"/>.
WTSConnectState 60: WTSInfoClass
WTSConnectState,
WTSConnectState Cut off search results after 60. Please refine your search. |