dinput: Enumerate user format object forwards.
[wine.git] / dlls / msado15 / msado15_private.h
blobbb55eaaa3aaddc2be46f462453637ce5b1e6d7f7
1 /*
2 * Copyright 2019 Hans Leidekker for CodeWeavers
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #ifndef _WINE_MSADO15_PRIVATE_H_
20 #define _WINE_MSADO15_PRIVATE_H_
22 #define MAKE_ADO_HRESULT( err ) MAKE_HRESULT( SEVERITY_ERROR, FACILITY_CONTROL, err )
24 HRESULT Command_create( void ** ) DECLSPEC_HIDDEN;
25 HRESULT Connection_create( void ** ) DECLSPEC_HIDDEN;
26 HRESULT Recordset_create( void ** ) DECLSPEC_HIDDEN;
27 HRESULT Stream_create( void ** ) DECLSPEC_HIDDEN;
29 static inline void *heap_realloc_zero( void *mem, SIZE_T len )
31 if (!mem) return HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, len );
32 return HeapReAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, mem, len );
35 static inline WCHAR *strdupW( const WCHAR *src )
37 WCHAR *dst;
38 if (!src) return NULL;
39 if ((dst = heap_alloc( (lstrlenW( src ) + 1) * sizeof(*dst) ))) lstrcpyW( dst, src );
40 return dst;
43 typedef enum tid_t {
44 ADORecordsetConstruction_tid,
45 Command_tid,
46 Connection_tid,
47 Field_tid,
48 Fields_tid,
49 Properties_tid,
50 Recordset_tid,
51 Stream_tid,
52 LAST_tid
53 } tid_t;
55 HRESULT get_typeinfo(tid_t tid, ITypeInfo **typeinfo) DECLSPEC_HIDDEN;
57 #endif /* _WINE_MSADO15_PRIVATE_H_ */