コード例 #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);
コード例 #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);
コード例 #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);
コード例 #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);
コード例 #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);
コード例 #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);
コード例 #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);
コード例 #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);
コード例 #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);
コード例 #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);
コード例 #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);
コード例 #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);
コード例 #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);
コード例 #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);
コード例 #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);
コード例 #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);
コード例 #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);
コード例 #18
0
ファイル: UnsafeNativeMethods.cs プロジェクト: jnm2/corefx
 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);
コード例 #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);
コード例 #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);
コード例 #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);
コード例 #22
0
 internal static extern /*SQLRETURN*/ ODBC32.RetCode SQLCancel(
     /*SQLHSTMT*/ OdbcStatementHandle StatementHandle);
コード例 #23
0
 internal static extern /*SQLRETURN*/ ODBC32.RetCode SQLSetStmtAttrW(
     /*SQLHSTMT*/ OdbcStatementHandle StatementHandle,
     /*SQLINTEGER*/ int Attribute,
     /*SQLPOINTER*/ IntPtr Value,
     /*SQLINTEGER*/ int StringLength);
コード例 #24
0
 internal static extern /*SQLRETURN*/ ODBC32.RetCode SQLPrepareW(
     /*SQLHSTMT*/ OdbcStatementHandle StatementHandle,
     [In, MarshalAs(UnmanagedType.LPWStr)]
     /*SQLCHAR* */ string StatementText,
     /*SQLINTEGER*/ int TextLength);
コード例 #25
0
 internal static extern /*SQLRETURN*/ ODBC32.RetCode SQLNumResultCols(
     /*SQLHSTMT*/ OdbcStatementHandle StatementHandle,
     /*SQLSMALLINT* */ out short ColumnCount);
コード例 #26
0
 internal static extern /*SQLRETURN*/ ODBC32.RetCode SQLMoreResults(
     /*SQLHSTMT*/ OdbcStatementHandle StatementHandle);
コード例 #27
0
 internal static extern /*SQLRETURN*/ ODBC32.RetCode SQLGetTypeInfo(
     /*SQLHSTMT*/ OdbcStatementHandle StatementHandle,
     /*SQLSMALLINT*/ short fSqlType);
コード例 #28
0
 internal static extern /*SQLRETURN*/ ODBC32.RetCode SQLCloseCursor(
     /*SQLHSTMT*/ OdbcStatementHandle StatementHandle);
コード例 #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);
コード例 #30
0
 internal static extern /*SQLRETURN*/ ODBC32.RetCode SQLRowCount(
     /*SQLHSTMT*/ OdbcStatementHandle StatementHandle,
     /*SQLLEN* */ out IntPtr RowCount);