Avoid void * arithmetic
[mplayer/glamo.git] / loader / registry.h
blobcf2bb032f4b13cc7044a560c03df930fc0216c74
1 #ifndef AVIFILE_REGISTRY_H
2 #define AVIFILE_REGISTRY_H
4 /********************************************************
6 * Declaration of registry access functions
7 * Copyright 2000 Eugene Kuznetsov (divx@euro.ru)
9 ********************************************************/
12 * Modified for use with MPlayer, detailed changelog at
13 * http://svn.mplayerhq.hu/mplayer/trunk/
14 * $Id$
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
21 void free_registry(void);
23 long __stdcall RegOpenKeyExA(long key, const char* subkey, long reserved,
24 long access, int* newkey);
25 long __stdcall RegCloseKey(long key);
26 long __stdcall RegQueryValueExA(long key, const char* value, int* reserved,
27 int* type, int* data, int* count);
28 long __stdcall RegCreateKeyExA(long key, const char* name, long reserved,
29 void* classs, long options, long security,
30 void* sec_attr, int* newkey, int* status);
31 long __stdcall RegSetValueExA(long key, const char* name, long v1, long v2,
32 const void* data, long size);
34 #ifdef __WINE_WINERROR_H
36 long __stdcall RegEnumKeyExA(HKEY hKey, DWORD dwIndex, LPSTR lpName, LPDWORD lpcbName,
37 LPDWORD lpReserved, LPSTR lpClass, LPDWORD lpcbClass,
38 LPFILETIME lpftLastWriteTime);
39 long __stdcall RegEnumValueA(HKEY hkey, DWORD index, LPSTR value, LPDWORD val_count,
40 LPDWORD reserved, LPDWORD type, LPBYTE data, LPDWORD count);
41 #endif
42 #ifdef __cplusplus
44 #endif
46 #endif // AVIFILE_REGISTRY_H