Desktop Functions: Smart Device Functions:
|
Search Results for "connect" in [All]credui
credui.pszCaptionText = "Connect to your application"; user322: DdeConnect
static extern IntPtr DdeConnect(uint idInst, IntPtr hszService, IntPtr handle = DdeConnect(instanceId, serviceHandle, topicHandle, IntPtr.Zero); 6: DdeReconnect netapi327: NetFileClose
if (MessageBox.Show(this, "Are you sure you want to close this connection?" == DialogResult.Yes))
If MsgBox("Are you sure you want to disconnect this resource?", MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then lpAccount - (in) Pointer to a constant string that specifies an account name to use when connecting to the domain controller. If this parameter is NULL, the caller's context is used. lpPassword - (in) If the lpAccount parameter specifies an account name, this parameter must point to the password to use when connecting to the domain controller. Otherwise, this parameter must be NULL.
public int AutoDisconnectMinutes; 10: NetSessionDel
''' <param name="UncClientName">[in] Pointer to a string that specifies the computer name of the client to disconnect. If UncClientName is NULL, then all the sessions of the user identified by the username parameter will be deleted on the server specified by servername.</param> 11: NetSessionEnum
/// Unable to contact resource. Connection timed out.
/// No available network connection to make call. 12: NetUnjoinDomain lpAccount - (in) Pointer to a constant string that specifies the account name to use when connecting to the domain controller. The string must specify either a domain NetBIOS name and user account (for example, "REDMOND\user") or the user principal name (UPN) of the user in the form of an Internet-style login name (for example, "someone@example.com"). If this parameter is NULL, the caller's context is used. lpPassword - (in) If the lpAccount parameter specifies an account name, this parameter must point to the password to use when connecting to the domain controller. Otherwise, this parameter must be NULL. 13: NetUseAdd You can also use the WNetAddConnection2 and WNetAddConnection3 functions to redirect a local device to a network resource. Connections added by NetUseAdd are not shown in the Explorer. You should use one of the WNetAddConnection methods to make the networkdrive visible in the explorer. 14: NetUseDel You can also use the WNetCancelConnection2 function to terminate a network connection. 15: NetUseEnum
// Connection/Session counts
public int Reconnects;
public int CoreConnects;
public int Lanman20Connects;
public int Lanman21Connects;
public int LanmanNtConnects;
public int ServerDisconnects; Constants
const int IOCTL_USB_GET_DESCRIPTOR_FROM_NODE_CONNECTION = 0x220410; 23: NERR_
/// <summary> 2107 - The device is not connected. </summary>
/// <summary> 2250 - The network connection could not be found. </summary>
/// <summary> 2372 - The system cannot delete current connections to network resources. </summary>
/// <summary> 2392 - The shared resource you are connected to could not be found. </summary>
/// <summary> 2401 - There are open files on the connection. </summary>
/// <summary> 2402 - Active connections still exist. </summary>
/// <summary> 2462 - The connection identification does not specify a valid connection. </summary>
public const int NoSuchConnection = 2462;
/// <summary> 2465 - The server has reached the maximum number of connections it supports. </summary>
public const int TooManyConnections = 2465;
/// <summary> 2513 - Cannot connect to the Remoteboot server. </summary>
public const int CantConnectRplSrvr = 2513;
/// <summary> 2515 - Connecting to the Remoteboot server... </summary>
/// <summary> 2516 - Connecting to the Remoteboot server... </summary>
/// <summary> 2519 - A second connection to a Remoteboot resource is not allowed. </summary>
public const int RPL_CONNECTED = 2519; 24: PROPERTYKEY
public static PropertyKey PKEY_Device_NoConnectSound = new PropertyKey(0xa8b865dd, 0x2e3d, 0x4094, 0xad, 0x97, 0xe5, 0x93, 0xa7, 0xc, 0x75, 0xd6, 17); // DEVPROP_TYPE_BOOLEAN
public static PropertyKey PKEY_DeviceDisplay_IsConnected = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000037); // VT_BOOL
public static PropertyKey PKEY_DeviceDisplay_Last_Connected = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000043); // VT_FILETIME
public static PropertyKey PKEY_DeviceDisplay_IsShowInDisconnectedState = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000044); // VT_BOOL
public static PropertyKey PKEY_DeviceDisplay_LaunchDeviceStageOnDeviceConnect = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x0000004C); // VT_BOOL
public static PropertyKey PKEY_DeviceDisplay_AlwaysShowDeviceAsConnected = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000065); // VT_BOOL
public static PropertyKey SENSOR_PROPERTY_CONNECTION_TYPE = new PropertyKey(0X7F8383EC, 0XD3EC, 0X495C, 0XA8, 0XCF, 0XB8, 0XBB, 0XE8, 0X5C, 0X29, 0X20, 11); //[VT_UI4] 25: RESOURCE
const UInt32 RESOURCE_CONNECTED = 0x00000001;
const UInt32 RESOURCEUSAGE_CONNECTABLE = 0x00000001; 26: SCM
Const SC_MANAGER_CONNECT As Int32 = &H1
SC_MANAGER_CONNECT Or _ 27: ShellAPI
public const int FOF_NO_CONNECTED_ELEMENTS = 0x2000; // don't operate on connected elements.
public const int PO_PORTCHANGE = 0x0020; // port this printer connected to is being changed
public const int SEE_MASK_CONNECTNETDRV = 0x00000080; 28: ShellAPI
public const int FOF_NO_CONNECTED_ELEMENTS = 0x2000; // don't operate on connected elements.
public const int PO_PORTCHANGE = 0x0020; // port this printer connected to is being changed
public const int SEE_MASK_CONNECTNETDRV = 0x00000080; 29: WINERROR
/// You were not connected because a duplicate name exists on the network. Go to System in Control Panel to change the computer name and try again.
/// No more connections can be made to this remote computer at this time because there are already as many connections as the computer can accept.
public const int ERROR_PIPE_NOT_CONNECTED = 233;
public const int ERROR_VC_DISCONNECTED = 240;
public const int ERROR_PIPE_CONNECTED = 535;
/// The service process could not connect to the service controller.
public const int ERROR_FAILED_SERVICE_CONTROLLER_CONNECT = 1063;
/// The device is not connected.
public const int ERROR_DEVICE_NOT_CONNECTED = 1167;
/// The device is not currently connected but it is a remembered connection.
public const int ERROR_CONNECTION_UNAVAIL = 1201;
/// The local device name has a remembered connection to another network resource.
/// Unable to open the network connection profile.
/// The network connection profile is corrupted.
/// Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed. Disconnect all previous connections to the server or shared resource and try again..
/// The remote system refused the network connection.
public const int ERROR_CONNECTION_REFUSED = 1225;
/// The network connection was gracefully closed.
public const int ERROR_GRACEFUL_DISCONNECT = 1226;
/// An operation was attempted on a nonexistent network connection.
public const int ERROR_CONNECTION_INVALID = 1229;
/// An invalid operation was attempted on an active network connection.
public const int ERROR_CONNECTION_ACTIVE = 1230;
/// The network connection was aborted by the local system.
public const int ERROR_CONNECTION_ABORTED = 1236;
/// A connection to the server could not be made because the limit on the number of concurrent connections for this account has been reached.
public const int ERROR_CONNECTION_COUNT_LIMIT = 1238;
/// This operation is supported only when you are connected to the server.
public const int ERROR_ONLY_IF_CONNECTED = 1251;
/// The service being accessed is licensed for a particular number of connections.
/// No more connections can be made to the service at this time because there are already as many connections as the service can accept.
public const int ERROR_REMOTE_PRINT_CONNECTIONS_BLOCKED = 1936;
/// The network connection was made successfully, but the user had to be prompted for a password other than the one originally specified.
public const int ERROR_CONNECTED_OTHER_PASSUInt16 = 2108;
/// The network connection was made successfully using default credentials.
public const int ERROR_CONNECTED_OTHER_PASSUInt16_DEFAULT = 2109;
/// This network connection does not exist.
public const int ERROR_NOT_CONNECTED = 2250;
/// This network connection has files open or requests pending.
/// Active connections still exist.
public const int ERROR_ACTIVE_CONNECTIONS = 2402;
/// The device is in use by an active process and cannot be disconnected.
public const int ERROR_WMI_GUID_DISCONNECTED = 4207;
/// The specified terminal connection driver was not found in the system path.
/// Carrier detect has failed or carrier has been dropped due to disconnect.
/// The requested operation cannot be completed because the terminal connection is currently busy processing a connect, disconnect, reset, or delete operation.
/// An attempt has been made to connect to a session whose video mode is not supported by the current client.
/// The client failed to respond to the server connect message.
/// Disconnecting the console session is not supported.
public const int ERROR_CTX_CONSOLE_DISCONNECT = 7041;
/// Reconnecting a disconnected session to the console is not supported.
public const int ERROR_CTX_CONSOLE_CONNECT = 7042;
/// The specified terminal connection driver is invalid.
/// This may be because the session is disconnected or does not currently have a user logged on.
/// Your request to connect to this Terminal Server has been rejected. Your Terminal Server client license number is currently being used by another user.
/// Your request to connect to this Terminal Server has been rejected. Your Terminal Server client license number has not been entered for this copy of the Terminal Server client.
/// This request requires a secure connection.
public const int ERROR_DS_DRA_CONNECTION_FAILED = 8444;
public const int ERROR_DS_DRA_EXTN_CONNECTION_FAILED = 8466;
/// The connection between client and server requires packet privacy or better.
public const int ERROR_DS_NO_PKT_PRIVACY_ON_CONNECTION = 8533;
/// The connection has been broken due to keep-alive activity detecting a failure while the operation was in progress.
/// An established connection was aborted by the software in your host machine.
/// An existing connection was forcibly closed by the remote host.
/// A connect request was made on an already connected socket.
/// A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied.
/// A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
/// No connection could be made because the target machine actively refused it.
/// There is no connection for this connection ID
public const int OLE_E_NOCONNECTION = (int)(0x80040004 - 0x100000000);
/// Moniker needs to be connected manually
/// Moniker needs to be connected manually
public const int MK_E_CONNECTMANUALLY = (int)(0x800401E0 - 0x100000000);
/// Object is not connected to server
public const int CO_E_OBJNOTCONNECTED = (int)(0x800401FD - 0x100000000);
/// A connection with the transaction manager was lost.
public const int XACT_E_CONNECTION_DOWN = (int)(0x8004D01C - 0x100000000);
/// A request to establish a connection with the transaction manager was denied.
public const int XACT_E_CONNECTION_DENIED = (int)(0x8004D01D - 0x100000000);
/// This transaction manager failed to establish a connection with another TIP transaction manager.
public const int XACT_E_TIP_CONNECT_FAILED = (int)(0x8004D01F - 0x100000000);
/// 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 = (int)(0x80010006 - 0x100000000);
/// 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.
/// The object invoked has disconnected from its clients.
public const int RPC_E_DISCONNECTED = (int)(0x80010108 - 0x100000000);
/// The smart card cannot be accessed because of other connections outstanding. gdiplus30: GdipAddPathPath
bool connect); winfax
static extern bool FaxConnectFaxServer (string MachineName, out IntPtr FaxHandle);
Declare Function FaxConnectFaxServer Lib "winfax.dll" (TODO) As TODO 32: FaxEnumJobs 33: FaxEnumPorts winspool34: AddPrinter
internal static extern bool AddPrinterConnection(String pszBuffer);
Declare Function AddPrinterConnection Lib "winspool.dll" (TODO) As TODO
internal static extern bool AddPrinterConnection(String pszBuffer);
Declare Function AddPrinterConnection Lib "winspool.dll" (TODO) As TODO 36: ClosePrinter 37: DeletePrinter
internal static extern bool DeletePrinterConnection(String pName);
Declare Function DeletePrinterConnection Lib "winspool.dll" (TODO) As TODO result = DeletePrinterConnection("\\\\Server_Name\\Printer_Share"); ole3240: CoInitialize
Connect = 2,
Connect = 2, rapi43: CeRegDeleteValue shell3244: CSIDL
CSIDL_CONNECTIONS = 0x0031, // Network and Dial-up Connections
/// The computer has disconnected from a server.
/// <i>dwItem1</i> contains the server from which the computer was disconnected.
SHCNE_SERVERDISCONNECT = 0x00004000,
' The computer has disconnected from a server.
' <i>dwItem1</i> contains the server from which the computer was disconnected.
SHCNE_SERVERDISCONNECT = &H4000 46: ShellExecuteEx
SEE_MASK_CONNECTNETDRV = 0x00000080, 47: SHFileOperation
FOF_NO_CONNECTED_ELEMENTS = 0x2000, // don't operate on connected elements.
public bool FOF_NO_CONNECTED_ELEMENTS = false;
if ( this.FOF_NO_CONNECTED_ELEMENTS )
ReturnValue |= (ushort)FILEOP_FLAGS_ENUM.FOF_NO_CONNECTED_ELEMENTS; 48: SHGetFolderPath
CSIDL_CONNECTIONS = 0x0031, // Network and Dial-up Connections
public static readonly Guid ConnectionsFolder = new Guid( "6F0CD92B-2E97-45D1-88FF-B0D186B8DEDD" );
CONNECTIONS = &H31
CSIDL_CONNECTIONS = 0x0031, // Network and Dial-up Connections
public static Guid ConnectionsFolder = new Guid("6F0CD92B-2E97-45D1-88FF-B0D186B8DEDD"); odbccp32
vAttributes &= "Trusted_Connection=Yes" & Convert.ToChar(0) This function persists a system data source with the provided name and connection string. Remember to add your own error checking mechanisms.
// Connection string for SQLConfigDataSource must be null- 55: SQLSetConfigMode This function persists a system data source with the provided name and connection string. Remember to add your own error checking mechanisms.
// Connection string for SQLConfigDataSource must be null- 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. Cut off search results after 60. Please refine your search. |