Ejemplo n.º 1
0
 internal static extern /*SQLRETURN*/ ODBC32.RetCode SQLBindCol(
     /*SQLHSTMT*/ OdbcStatementHandle StatementHandle,
     /*SQLUSMALLINT*/ ushort ColumnNumber,
     /*SQLSMALLINT*/ ODBC32.SQL_C TargetType,
     /*SQLPOINTER*/ IntPtr TargetValue,
     /*SQLLEN*/ IntPtr BufferLength,
     /*SQLLEN* */ IntPtr StrLen_or_Ind);
Ejemplo n.º 2
0
 internal static extern /*SQLRETURN*/ ODBC32.RetCode SQLGetData(
     /*SQLHSTMT*/ OdbcStatementHandle StatementHandle,
     /*SQLUSMALLINT*/ ushort ColumnNumber,
     /*SQLSMALLINT*/ ODBC32.SQL_C TargetType,
     /*SQLPOINTER*/ CNativeBuffer TargetValue,
     /*SQLLEN*/ IntPtr BufferLength, // sql.h differs from MSDN
                                     /*SQLLEN* */ out IntPtr StrLen_or_Ind);
Ejemplo n.º 3
0
 internal static extern /*SQLRETURN*/ ODBC32.RetCode SQLProceduresW(
     /*SQLHSTMT*/ OdbcStatementHandle StatementHandle,
     [In, MarshalAs(UnmanagedType.LPWStr)] /*SQLCHAR* */ string CatalogName,
     /*SQLSMALLINT*/ short NameLen1,
     [In, MarshalAs(UnmanagedType.LPWStr)] /*SQLCHAR* */ string SchemaName,
     /*SQLSMALLINT*/ short NameLen2,
     [In, MarshalAs(UnmanagedType.LPWStr)] /*SQLCHAR* */ string ProcName,
     /*SQLSMALLINT*/ short NameLen3);
Ejemplo n.º 4
0
 internal static partial ODBC32.SQLRETURN SQLProceduresW(
     /*SQLHSTMT*/ OdbcStatementHandle StatementHandle,
     /*SQLCHAR* */ string CatalogName,
     /*SQLSMALLINT*/ short NameLen1,
     /*SQLCHAR* */ string SchemaName,
     /*SQLSMALLINT*/ short NameLen2,
     /*SQLCHAR* */ string ProcName,
     /*SQLSMALLINT*/ short NameLen3);
Ejemplo n.º 5
0
 internal static partial ODBC32.SQLRETURN SQLPrimaryKeysW(
     /*SQLHSTMT*/ OdbcStatementHandle StatementHandle,
     /*SQLCHAR* */ string?CatalogName,
     /*SQLSMALLINT*/ short NameLen1,
     /*SQLCHAR* */ string?SchemaName,
     /*SQLSMALLINT*/ short NameLen2,
     /*SQLCHAR* */ string TableName,
     /*SQLSMALLINT*/ short NameLen3);
Ejemplo n.º 6
0
 internal static extern /*SQLRETURN*/ ODBC32.RetCode SQLProceduresW(
     /*SQLHSTMT*/ OdbcStatementHandle StatementHandle,
     /*SQLCHAR* */ string CatalogName,
     /*SQLSMALLINT*/ Int16 NameLen1,
     /*SQLCHAR* */ string SchemaName,
     /*SQLSMALLINT*/ Int16 NameLen2,
     /*SQLCHAR* */ string ProcName,
     /*SQLSMALLINT*/ Int16 NameLen3);
Ejemplo n.º 7
0
 internal static extern /*SQLRETURN*/ ODBC32.RetCode SQLPrimaryKeysW(
     /*SQLHSTMT*/ OdbcStatementHandle StatementHandle,
     /*SQLCHAR* */ string CatalogName,
     /*SQLSMALLINT*/ short NameLen1,
     /*SQLCHAR* */ string SchemaName,
     /*SQLSMALLINT*/ short NameLen2,
     /*SQLCHAR* */ string TableName,
     /*SQLSMALLINT*/ short NameLen3);
Ejemplo n.º 8
0
 internal static extern /*SQLRETURN*/ ODBC32.RetCode SQLColAttributeW(
     /*SQLHSTMT*/ OdbcStatementHandle StatementHandle,
     /*SQLUSMALLINT*/ short ColumnNumber,
     /*SQLUSMALLINT*/ short FieldIdentifier,
     /*SQLPOINTER*/ CNativeBuffer CharacterAttribute,
     /*SQLSMALLINT*/ short BufferLength,
     /*SQLSMALLINT* */ out short StringLength,
     /*SQLPOINTER*/ out IntPtr NumericAttribute);
Ejemplo n.º 9
0
 internal static partial ODBC32.SQLRETURN SQLStatisticsW(
     /*SQLHSTMT*/ OdbcStatementHandle StatementHandle,
     /*SQLCHAR* */ string?CatalogName,
     /*SQLSMALLINT*/ short NameLen1,
     /*SQLCHAR* */ string?SchemaName,
     /*SQLSMALLINT*/ short NameLen2,
     /*SQLCHAR* */ IntPtr TableName, // IntPtr instead of string because callee may mutate contents
     /*SQLSMALLINT*/ short NameLen3,
     /*SQLUSMALLINT*/ short Unique,
     /*SQLUSMALLINT*/ short Reserved);
Ejemplo n.º 10
0
 internal static extern /*SQLRETURN*/ ODBC32.RetCode SQLColumnsW(
     /*SQLHSTMT*/ OdbcStatementHandle StatementHandle,
     /*SQLCHAR* */ string CatalogName,
     /*SQLSMALLINT*/ Int16 NameLen1,
     /*SQLCHAR* */ string SchemaName,
     /*SQLSMALLINT*/ Int16 NameLen2,
     /*SQLCHAR* */ string TableName,
     /*SQLSMALLINT*/ Int16 NameLen3,
     /*SQLCHAR* */ string ColumnName,
     /*SQLSMALLINT*/ Int16 NameLen4);
Ejemplo n.º 11
0
 internal static extern /*SQLRETURN*/ ODBC32.RetCode SQLStatisticsW(
     /*SQLHSTMT*/ OdbcStatementHandle StatementHandle,
     /*SQLCHAR* */ string CatalogName,
     /*SQLSMALLINT*/ Int16 NameLen1,
     /*SQLCHAR* */ string SchemaName,
     /*SQLSMALLINT*/ Int16 NameLen2,
     /*SQLCHAR* */ string TableName,
     /*SQLSMALLINT*/ Int16 NameLen3,
     /*SQLUSMALLINT*/ Int16 Unique,
     /*SQLUSMALLINT*/ Int16 Reserved);
Ejemplo n.º 12
0
 internal static partial ODBC32.SQLRETURN SQLTablesW(
     /*SQLHSTMT*/ OdbcStatementHandle StatementHandle,
     /*SQLCHAR* */ string CatalogName,
     /*SQLSMALLINT*/ short NameLen1,
     /*SQLCHAR* */ string SchemaName,
     /*SQLSMALLINT*/ short NameLen2,
     /*SQLCHAR* */ string TableName,
     /*SQLSMALLINT*/ short NameLen3,
     /*SQLCHAR* */ string TableType,
     /*SQLSMALLINT*/ short NameLen4);
Ejemplo n.º 13
0
 internal static extern /*SQLRETURN*/ ODBC32.RetCode SQLProcedureColumnsW(
     /*SQLHSTMT*/ OdbcStatementHandle StatementHandle,
     /*SQLCHAR* */ string?CatalogName,
     /*SQLSMALLINT*/ short NameLen1,
     /*SQLCHAR* */ string?SchemaName,
     /*SQLSMALLINT*/ short NameLen2,
     /*SQLCHAR* */ string?ProcName,
     /*SQLSMALLINT*/ short NameLen3,
     /*SQLCHAR* */ string?ColumnName,
     /*SQLSMALLINT*/ short NameLen4);
Ejemplo n.º 14
0
 internal static extern /*SQLRETURN*/ ODBC32.RetCode SQLBindParameter(
     /*SQLHSTMT*/ OdbcStatementHandle StatementHandle,
     /*SQLUSMALLINT*/ ushort ParameterNumber,
     /*SQLSMALLINT*/ short ParamDirection,
     /*SQLSMALLINT*/ ODBC32.SQL_C SQLCType,
     /*SQLSMALLINT*/ short SQLType,
     /*SQLULEN*/ IntPtr cbColDef,
     /*SQLSMALLINT*/ IntPtr ibScale,
     /*SQLPOINTER*/ HandleRef rgbValue,
     /*SQLLEN*/ IntPtr BufferLength,
     /*SQLLEN* */ HandleRef StrLen_or_Ind);
Ejemplo n.º 15
0
        internal static partial /*SQLRETURN*/ ODBC32.SQLRETURN SQLBindCol(
            /*SQLHSTMT*/ OdbcStatementHandle StatementHandle,
            /*SQLUSMALLINT*/ ushort ColumnNumber,
            /*SQLSMALLINT*/ ODBC32.SQL_C TargetType,
            /*SQLPOINTER*/
#if NET7_0_OR_GREATER
            [MarshalUsing(typeof(HandleRefMarshaller))]
#endif
            HandleRef TargetValue,
            /*SQLLEN*/ IntPtr BufferLength,
            /*SQLLEN* */ IntPtr StrLen_or_Ind);
Ejemplo n.º 16
0
 internal static extern /*SQLRETURN*/ ODBC32.RetCode SQLSpecialColumnsW(
     /*SQLHSTMT*/ OdbcStatementHandle StatementHandle,
     /*SQLUSMALLINT*/ ODBC32.SQL_SPECIALCOLS IdentifierType,
     /*SQLCHAR* */ string CatalogName,
     /*SQLSMALLINT*/ Int16 NameLen1,
     /*SQLCHAR* */ string SchemaName,
     /*SQLSMALLINT*/ Int16 NameLen2,
     /*SQLCHAR* */ string TableName,
     /*SQLSMALLINT*/ Int16 NameLen3,
     /*SQLUSMALLINT*/ ODBC32.SQL_SCOPE Scope,
     /*SQLUSMALLINT*/ ODBC32.SQL_NULLABILITY Nullable);
Ejemplo n.º 17
0
 internal static partial ODBC32.SQLRETURN SQLSpecialColumnsW(
     /*SQLHSTMT*/ OdbcStatementHandle StatementHandle,
     /*SQLUSMALLINT*/ ODBC32.SQL_SPECIALCOLS IdentifierType,
     /*SQLCHAR* */ string?CatalogName,
     /*SQLSMALLINT*/ short NameLen1,
     /*SQLCHAR* */ string?SchemaName,
     /*SQLSMALLINT*/ short NameLen2,
     /*SQLCHAR* */ string TableName,
     /*SQLSMALLINT*/ short NameLen3,
     /*SQLUSMALLINT*/ ODBC32.SQL_SCOPE Scope,
     /*SQLUSMALLINT*/ ODBC32.SQL_NULLABILITY Nullable);
Ejemplo n.º 18
0
 internal static extern /*SQLRETURN*/ ODBC32.RetCode SQLPrimaryKeysW(
     /*SQLHSTMT*/ OdbcStatementHandle StatementHandle,
     [In, MarshalAs(UnmanagedType.LPWStr)]
     /*SQLCHAR* */ string CatalogName,
     /*SQLSMALLINT*/ Int16 NameLen1,
     [In, MarshalAs(UnmanagedType.LPWStr)]
     /*SQLCHAR* */ string SchemaName,
     /*SQLSMALLINT*/ Int16 NameLen2,
     [In, MarshalAs(UnmanagedType.LPWStr)]
     /*SQLCHAR* */ string TableName,
     /*SQLSMALLINT*/ Int16 NameLen3);
Ejemplo n.º 19
0
 internal static extern /*SQLRETURN*/ ODBC32.RetCode SQLStatisticsW(
     /*SQLHSTMT*/ OdbcStatementHandle StatementHandle,
     [In, MarshalAs(UnmanagedType.LPWStr)]
     /*SQLCHAR* */ string CatalogName,
     /*SQLSMALLINT*/ short NameLen1,
     [In, MarshalAs(UnmanagedType.LPWStr)]
     /*SQLCHAR* */ string SchemaName,
     /*SQLSMALLINT*/ short NameLen2,
     [In, MarshalAs(UnmanagedType.LPWStr)]
     /*SQLCHAR* */ string TableName,
     /*SQLSMALLINT*/ short NameLen3,
     /*SQLUSMALLINT*/ short Unique,
     /*SQLUSMALLINT*/ short Reserved);
Ejemplo n.º 20
0
 internal static extern /*SQLRETURN*/ ODBC32.RetCode SQLSpecialColumnsW(
     /*SQLHSTMT*/ OdbcStatementHandle StatementHandle,
     /*SQLUSMALLINT*/ ODBC32.SQL_SPECIALCOLS IdentifierType,
     [In, MarshalAs(UnmanagedType.LPWStr)]
     /*SQLCHAR* */ string CatalogName,
     /*SQLSMALLINT*/ short NameLen1,
     [In, MarshalAs(UnmanagedType.LPWStr)]
     /*SQLCHAR* */ string SchemaName,
     /*SQLSMALLINT*/ short NameLen2,
     [In, MarshalAs(UnmanagedType.LPWStr)]
     /*SQLCHAR* */ string TableName,
     /*SQLSMALLINT*/ short NameLen3,
     /*SQLUSMALLINT*/ ODBC32.SQL_SCOPE Scope,
     /*SQLUSMALLINT*/ ODBC32.SQL_NULLABILITY Nullable);
Ejemplo n.º 21
0
        internal static partial /*SQLRETURN*/ ODBC32.SQLRETURN SQLBindParameter(
            /*SQLHSTMT*/ OdbcStatementHandle StatementHandle,
            /*SQLUSMALLINT*/ ushort ParameterNumber,
            /*SQLSMALLINT*/ short ParamDirection,
            /*SQLSMALLINT*/ ODBC32.SQL_C SQLCType,
            /*SQLSMALLINT*/ short SQLType,
            /*SQLULEN*/ IntPtr cbColDef,
            /*SQLSMALLINT*/ IntPtr ibScale,
            /*SQLPOINTER*/
#if NET7_0_OR_GREATER
            [MarshalUsing(typeof(HandleRefMarshaller))]
#endif
            HandleRef rgbValue,
            /*SQLLEN*/ IntPtr BufferLength,
            /*SQLLEN* */
#if NET7_0_OR_GREATER
            [MarshalUsing(typeof(HandleRefMarshaller))]
#endif
            HandleRef StrLen_or_Ind);
Ejemplo n.º 22
0
 internal static extern /*SQLRETURN*/ ODBC32.RetCode SQLCancel(
     /*SQLHSTMT*/ OdbcStatementHandle StatementHandle);
Ejemplo n.º 23
0
 internal static extern /*SQLRETURN*/ ODBC32.RetCode SQLSetStmtAttrW(
     /*SQLHSTMT*/ OdbcStatementHandle StatementHandle,
     /*SQLINTEGER*/ int Attribute,
     /*SQLPOINTER*/ IntPtr Value,
     /*SQLINTEGER*/ int StringLength);
Ejemplo n.º 24
0
 internal static extern /*SQLRETURN*/ ODBC32.RetCode SQLPrepareW(
     /*SQLHSTMT*/ OdbcStatementHandle StatementHandle,
     [In, MarshalAs(UnmanagedType.LPWStr)]
     /*SQLCHAR* */ string StatementText,
     /*SQLINTEGER*/ int TextLength);
Ejemplo n.º 25
0
 internal static extern /*SQLRETURN*/ ODBC32.RetCode SQLNumResultCols(
     /*SQLHSTMT*/ OdbcStatementHandle StatementHandle,
     /*SQLSMALLINT* */ out short ColumnCount);
Ejemplo n.º 26
0
 internal static extern /*SQLRETURN*/ ODBC32.RetCode SQLMoreResults(
     /*SQLHSTMT*/ OdbcStatementHandle StatementHandle);
Ejemplo n.º 27
0
 internal static extern /*SQLRETURN*/ ODBC32.RetCode SQLGetTypeInfo(
     /*SQLHSTMT*/ OdbcStatementHandle StatementHandle,
     /*SQLSMALLINT*/ short fSqlType);
Ejemplo n.º 28
0
 internal static extern /*SQLRETURN*/ ODBC32.RetCode SQLCloseCursor(
     /*SQLHSTMT*/ OdbcStatementHandle StatementHandle);
Ejemplo n.º 29
0
 internal static extern /*SQLRETURN*/ ODBC32.RetCode SQLGetStmtAttrW(
     /*SQLHSTMT*/ OdbcStatementHandle StatementHandle,
     /*SQLINTEGER*/ ODBC32.SQL_ATTR Attribute,
     /*SQLPOINTER*/ out IntPtr Value,
     /*SQLINTEGER*/ int BufferLength,
     /*SQLINTEGER*/ out int StringLength);
Ejemplo n.º 30
0
 internal static extern /*SQLRETURN*/ ODBC32.RetCode SQLRowCount(
     /*SQLHSTMT*/ OdbcStatementHandle StatementHandle,
     /*SQLLEN* */ out IntPtr RowCount);