winehid.sys: Implement handing internal ioctls.
[wine.git] / dlls / oledb32 / oledb_private.h
blob1422b0b58cbe4d98fe4a9f6c755378fe530a322a
1 /* OLE DB Internal header
3 * Copyright 2009 Huw Davies
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
20 HRESULT create_oledb_convert(IUnknown *outer, void **obj) DECLSPEC_HIDDEN;
21 HRESULT create_data_init(IUnknown *outer, void **obj) DECLSPEC_HIDDEN;
22 HRESULT create_error_info(IUnknown *outer, void **obj) DECLSPEC_HIDDEN;
23 HRESULT create_oledb_rowpos(IUnknown *outer, void **obj) DECLSPEC_HIDDEN;
24 HRESULT create_dslocator(IUnknown *outer, void **obj) DECLSPEC_HIDDEN;
26 static inline void *heap_alloc(size_t len)
28 return HeapAlloc(GetProcessHeap(), 0, len);
31 static inline void *heap_alloc_zero(size_t len)
33 return HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, len);
36 static inline void *heap_realloc_zero(void *mem, size_t len)
38 return HeapReAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, mem, len);
41 static inline BOOL heap_free(void *mem)
43 return HeapFree(GetProcessHeap(), 0, mem);