fa8f098c86862524a4651a5df95ef42e462548f3
[reactos.git] / reactos / dll / directx / d3d9 / d3d9_helpers.h
1 /*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS ReactX
4 * FILE: dll/directx/d3d9/d3d9_helpers.h
5 * PURPOSE: d3d9.dll helper functions
6 * PROGRAMERS: Gregor Brunmar <gregor (dot) brunmar (at) home (dot) se>
7 */
8 #ifndef _D3D9_HELPERS_H_
9 #define _D3D9_HELPERS_H_
10
11 #include "d3d9_private.h"
12
13 /* Convert a IDirect3D9 pointer safely to the internal implementation struct */
14 LPDIRECT3D9_INT impl_from_IDirect3D9(LPDIRECT3D9 iface);
15
16 /* Reads a registry value if it's of the correct value type */
17 BOOL ReadRegistryValue(IN DWORD ValueType, IN LPCSTR ValueName, OUT LPBYTE DataBuffer, IN OUT LPDWORD DataBufferSize);
18
19 /* Formats debug strings */
20 HRESULT FormatDebugString(IN OUT LPSTR Buffer, IN LONG BufferSize, IN LPCSTR FormatString, ... );
21
22 /* Creates a Direct3D9 object */
23 HRESULT CreateD3D9(OUT LPDIRECT3D9 *ppDirect3D9);
24
25 #endif // _D3D9_HELPERS_H_