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 "set" in [All]

odbc32

.

[DllImport("odbc32.dll",CharSet=CharSet.Unicode)]

.

    private static extern short SQLSetEnvAttr(IntPtr henv, int attribute, IntPtr valuePtr, int strLength);

.

    [DllImport("odbc32.dll", CharSet = CharSet.Ansi)]

.

            if (SQL_SUCCESS == SQLSetEnvAttr(henv, SQL_ATTR_ODBC_VERSION, (IntPtr)SQL_OV_ODBC3, 0))

.

<Runtime.InteropServices.DllImport("odbc32.dll", CharSet:=Runtime.InteropServices.CharSet.Unicode)> _

.
Summary
Bind a buffer to a column of the result set.
.

            //Set the environment attribute SQL_ATTR_ODBC_VERSION to the latest version of ODBC driver

.

            SQLSetEnvAttr(environmentHandle.ToInt32(), SQL_ATTR_ODBC_VERSION, new IntPtr(SQL_OV_ODBC3), 0);

.

  [DllImport( "odbc32.dll", CharSet = CharSet.Ansi )]

.
Summary
SQLColAttribute returns descriptor information for a column in a result set.
.

[DllImport("odbc32.dll", SetLastError=true)]

.
Summary
SQLColAttribute returns descriptor information for a column in a result set.
.

[DllImport("odbc32.dll", SetLastError=true)]

.

[DllImport("odbc32.dll",CharSet=CharSet.Unicode)]

.

<Runtime.InteropServices.DllImport("odbc32.dll", CharSet:=Runtime.InteropServices.CharSet.Unicode)> _

.

[DllImport("odbc32.dll", CharSet=CharSet.Ansi))]

.

You must provide an Environment Handle provided by SQLAllocHandle as the first parameter. SQLAllocHandle is a replacement for SQLAllocEnv. When using SQLAllocHandle, you must call SQLSetEnvAttr and set the SQL_ATTR_ODBC_VERSION attribute to SQL_OV_ODBC3 before calling SQLDataSources. You must release Environment handle with SQLFreeHandle at the end.

.

    rc = SQLSetEnvAttr(sql_env_handle, SQL_ATTR_ODBC_VERSION, (IntPtr)SQL_OV_ODBC3, 0);

.

        throw new Exception("Could not setup ODBC Environment handle");

.

[DllImport("odbc32.dll",CharSet=CharSet.Ansi)]

.

    [DllImport("odbc32.dll",CharSet=CharSet.Ansi)]

.

<Runtime.InteropServices.DllImport("odbc32.dll", CharSet:=Runtime.InteropServices.CharSet.Unicode)> _

.

[DllImport("odbc32.dll",CharSet=CharSet.Ansi)]

.

[DllImport("odbc32.dll",CharSet=CharSet.Unicode)]

.

<Runtime.InteropServices.DllImport("odbc32.dll", CharSet:=Runtime.InteropServices.CharSet.Unicode)> _

.

<Runtime.InteropServices.DllImport("odbc32.dll", CharSet:=Runtime.InteropServices.CharSet.Unicode)> _

.

  [DllImport("odbc32.dll",CharSet=CharSet.Ansi)]

.

[DllImport("odbc32.dll",CharSet=CharSet.Ansi)]

.

[DllImport("odbc32.dll", CharSet = CharSet.Unicode)]

.

[DllImport("odbc32.dll",CharSet=CharSet.Ansi)]

.

<Runtime.InteropServices.DllImport("odbc32.dll", CharSet:=Runtime.InteropServices.CharSet.Unicode)> _

.

const int  SQL_RESET_PARAMS = 3;

.
Summary
Returns part or all of one column of one row of a result set. (Useful for long data values.)
.

[DllImport("odbc32.dll", CharSet=CharSet.Unicode)]

.

[DllImport("odbc32.dll", CharSet=CharSet.Unicode)]

.

[DllImport("odbc32.dll",CharSet=CharSet.Unicode)]

.

<Runtime.InteropServices.DllImport("odbc32.dll", CharSet:=Runtime.InteropServices.CharSet.Unicode)> _

.

[DllImport("odbc32.dll", CharSet=CharSet.Unicode)]

.
Summary
SQLSetEnvAttr sets attributes that govern aspects of environments.
.

[DllImport("odbc32.dll", SetLastError=true)]

.

static extern short SQLSetEnvAttr (

.

[DllImport("odbc32.dll", SetLastError=true)]

.

static extern short SQLSetEnvAttr (

.

Private Declare Auto Function SQLSetEnvAttr Lib "odbc32.dll" ( _

.
Documentation
[SQLSetEnvAttr] on MSDN
.

    [DllImport("odbc32.dll",CharSet=CharSet.Ansi)]

.

    const int  SQL_RESET_PARAMS = 3;

wintrust

.

[DllImport("wintrust.dll", ExactSpelling = true, SetLastError = false, CharSet = CharSet.Unicode)]

.

    [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]

.

    [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]

.

        [DllImport("wintrust.dll", ExactSpelling = true, SetLastError = false, CharSet = CharSet.Unicode)]

glu32

.

[DllImport("glu32.dll", SetLastError=true)]

wininet

.

        SetLastError = true,

.

        CharSet = CharSet.Auto,

.

      SetLastError:=True, _

.

      CharSet:=CharSet.Auto, _

.

    [DllImport(@"wininet", SetLastError = true, CharSet = CharSet.Auto, EntryPoint = "DeleteUrlCacheGroup", CallingConvention = CallingConvention.StdCall)]

.

       SetLastError:=True, _

.

       CharSet:=CharSet.Auto, _

.

[DllImport(@"wininet",SetLastError=true,CharSet=CharSet.Auto,EntryPoint="FindFirstUrlCacheEntryA",CallingConvention=CallingConvention.StdCall)]

.

       SetLastError:=True, _

.

       CharSet:=CharSet.Auto, _

.

<DllImport("wininet.dll", SetLastError:=True, _

.

       CharSet:=CharSet.Auto, _

.

    [DllImport("wininet.dll", SetLastError=true, CharSet=CharSet.Auto, CallingConvention=CallingConvention.StdCall)]

.

        SetLastError:=True, _

.

        CharSet:=CharSet.Auto, _

.

       SetLastError:=True, _

.

       CharSet:=CharSet.Auto, _

.

[DllImport("wininet.dll", CharSet=CharSet.Ansi, SetLastError=true, ExactSpelling=true)]

.

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.

.

dwFlags(in) A parameter that can be set to one of the following values.

.

phFtpCommand (out) A pointer to a handle that is created if a valid data socket is opened. The fExpectResponse parameter must be set to TRUE for phFtpCommand to be filled.

.

[DllImport("wininet.dll", SetLastError=true, CharSet=CharSet.Auto)]

.

  <DllImport("wininet.dll", SetLastError := True, CharSet := CharSet.Auto)> _

.

[DllImport("wininet.dll", SetLastError = true, CharSet = CharSet.Auto)]

.

[DllImport("wininet.dll", SetLastError = true, CharSet = CharSet.Auto)]

.

[DllImport("wininet.dll", SetLastError = true, CharSet = CharSet.Auto)]

.

[DllImport("wininet.dll", SetLastError = true, CharSet = CharSet.Auto)]

.

Useful flags setting for binary download: INTERNET_FLAG_TRANSFER_BINARY + INTERNET_FLAG_RELOAD

.

    [DllImport("wininet.dll", EntryPoint = "InternetConnectW", CharSet = CharSet.Auto, SetLastError = true)]

.

    [DllImport("wininet.dll", EntryPoint = "InternetOpenW", CharSet = CharSet.Auto, SetLastError = true)]

.

    [DllImport("wininet.dll", EntryPoint = "FtpGetFile", SetLastError = true, CharSet = CharSet.Auto)]

.

    [DllImport("wininet.dll", EntryPoint = "FtpOpenFile", SetLastError = true, CharSet = CharSet.Auto)]

.

    public ushort FTPPort { get; set; }

.

    public string FTPSite { get; set; }

.

    public string FTPUsername { get; set; }

.

    public string FTPPassword { get; set; }

.

        public string SourceFileName { get; set; }

.

        public string DesctinationFileName { get; set; }

.

        public FTPTransferType TransferType { get; set; }

.

[DllImport("wininet.dll", SetLastError=true, CharSet=CharSet.Auto)]

.

[DllImport("wininet.dll", SetLastError=true, CharSet = CharSet.Auto)]

.

[DllImport("wininet.dll", CharSet = CharSet.Auto)]

.

[DllImport("wininet.dll", CharSet=CharSet.Auto, SetLastError=true)]

.

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

.

Dim changed As Boolean = FtpSetCurrentDirectory(hINetConn, changePath)

.
Documentation
[FtpSetCurrentDirectory] on MSDN
.

[DllImport("wininet.dll", SetLastError=true)]

.

[DllImport("wininet.dll", SetLastError=true)]

.

[DllImport("wininet.dll", CharSet = CharSet.Auto, SetLastError = true)]

.

[DllImport("wininet.dll", SetLastError=true)]

.

[DllImport("wininet.dll", SetLastError=true)]

.

[DllImport("wininet.dll", SetLastError=true)]

.

[DllImport("wininet.dll", SetLastError = true)]

.

[DllImport("wininet.dll", SetLastError = true)]

.

[DllImport("wininet.dll", SetLastError=true)]

.

[DllImport("wininet.dll", SetLastError=true, CharSet=CharSet.Auto)]

.

    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.

.

    Address of a null-terminated string that contains the password to use to log on. If both lpszPassword and lpszUsername are NULL, the function uses the default anonymous password. In the case of FTP, the default anonymous password is the user's e-mail name. If lpszPassword is NULL, but lpszUsername is not NULL, the function uses a blank password. The following table describes the behavior for the four possible settings of lpszUsername and lpszPassword:

.

[DllImport("wininet.dll", SetLastError = true, CharSet = CharSet.Auto)]

.

///     is connected.If FALSE is returned, the INTERNET_CONNECTION_CONFIGURED flag may be set to indicate that autodial is

.

[DllImport("wininet.dll", SetLastError=true)]

.

   [DllImport("wininet.dll", SetLastError = true)]

.

[DllImport("wininet.dll", CharSet = CharSet.Auto, SetLastError = true)]

.

    [DllImport("wininet.dll", CharSet = CharSet.Auto, SetLastError = true)]

.

[DllImport("wininet.dll", CharSet = CharSet.Auto, SetLastError = true)]

.

[DllImport("wininet.dll", SetLastError=true)]

.

[DllImport("wininet.dll", SetLastError=true, CharSet=CharSet.Auto)]

.

[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]

.

    /// Connection name to set/query options

.

    /// Number of options to set/query

.

[DllImport("wininet.dll", SetLastError=true)]

.
Summary
Used to query Windows' current Internet proxy settings.
.

[DllImport("wininet.dll", SetLastError=true)]

.

<DllImport("wininet.dll", SetLastError:=True)> Shared Function InternetQueryOption(ByVal hInternet As IntPtr, ByVal dwOption As UInteger, ByVal  lpBuffer() As Char, ByRef lpdwBufferLength As Integer) As Boolean

.

In order to set new proxy settings use InternetSetOption.

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


 
Access PInvoke.net directly from VS: