mfreadwrite/reader: Use current stream type to set up sample allocator.
[wine/zf.git] / include / sqlucode.h
blob7e1fb677cce4576be42fa174c1cb6fa555a4862b
1 /*
2 * MS SQL Unicode Definitions
4 * Copyright (C) 2017 Daniel Lehman
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 #ifndef __SQLUCODE_H
22 #define __SQLUCODE_H
24 #include <sqlext.h>
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
30 #define SQL_WCHAR (-8)
31 #define SQL_C_WCHAR SQL_WCHAR
32 #define SQL_WVARCHAR (-9)
33 #define SQL_WLONGVARCHAR (-10)
35 SQLRETURN WINAPI SQLConnectW(SQLHDBC ConnectionHandle,
36 SQLWCHAR *ServerName, SQLSMALLINT NameLength1,
37 SQLWCHAR *UserName, SQLSMALLINT NameLength2,
38 SQLWCHAR *Authentication, SQLSMALLINT NameLength3);
40 SQLRETURN WINAPI SQLDescribeColW(SQLHSTMT StatementHandle,
41 SQLUSMALLINT ColumnNumber, SQLWCHAR *ColumnName,
42 SQLSMALLINT BufferLength, SQLSMALLINT *NameLength,
43 SQLSMALLINT *DataType, SQLULEN *ColumnSize,
44 SQLSMALLINT *DecimalDigits, SQLSMALLINT *Nullable);
46 SQLRETURN WINAPI SQLExecDirectW(SQLHSTMT StatementHandle,
47 SQLWCHAR *StatementText, SQLINTEGER TextLength);
49 SQLRETURN WINAPI SQLGetDiagRecW(SQLSMALLINT HandleType, SQLHANDLE Handle,
50 SQLSMALLINT RecNumber, SQLWCHAR *Sqlstate,
51 SQLINTEGER *NativeError, SQLWCHAR *MessageText,
52 SQLSMALLINT BufferLength, SQLSMALLINT *TextLength);
54 SQLRETURN WINAPI SQLGetInfoW(SQLHDBC ConnectionHandle,
55 SQLUSMALLINT InfoType, SQLPOINTER InfoValue,
56 SQLSMALLINT BufferLength, SQLSMALLINT *StringLength);
58 SQLRETURN WINAPI SQLPrepareW(SQLHSTMT StatementHandle,
59 SQLWCHAR *StatementText, SQLINTEGER TextLength);
61 SQLRETURN WINAPI SQLSetStmtAttrW(SQLHSTMT StatementHandle,
62 SQLINTEGER Attribute, SQLPOINTER Value,
63 SQLINTEGER StringLength);
65 #ifdef __cplusplus
67 #endif
69 #endif