From dfd2b62aa5ee94154125666e7ee568966bba8c57 Mon Sep 17 00:00:00 2001 From: alex Date: Mon, 21 Apr 2003 20:13:21 +0000 Subject: cygwin support patch by Sascha Sommer git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9966 b3059339-0415-0410-9bf9-f77b7e298cf2 --- loader/registry.c | 14 +++++++------- loader/registry.h | 14 +++++++------- 2 files changed, 14 insertions(+), 14 deletions(-) (limited to 'loader') diff --git a/loader/registry.c b/loader/registry.c index 1fe90e0996..10fb6133f5 100644 --- a/loader/registry.c +++ b/loader/registry.c @@ -350,7 +350,7 @@ static reg_handle_t* find_handle_2(long key, const char* subkey) return t; } -long RegOpenKeyExA(long key, const char* subkey, long reserved, long access, int* newkey) +long __stdcall RegOpenKeyExA(long key, const char* subkey, long reserved, long access, int* newkey) { char* full_name; reg_handle_t* t; @@ -380,7 +380,7 @@ long RegOpenKeyExA(long key, const char* subkey, long reserved, long access, int return 0; } -long RegCloseKey(long key) +long __stdcall RegCloseKey(long key) { reg_handle_t *handle; if(key==(long)HKEY_LOCAL_MACHINE) @@ -402,7 +402,7 @@ long RegCloseKey(long key) return 1; } -long RegQueryValueExA(long key, const char* value, int* reserved, int* type, int* data, int* count) +long __stdcall RegQueryValueExA(long key, const char* value, int* reserved, int* type, int* data, int* count) { struct reg_value* t; char* c; @@ -435,7 +435,7 @@ long RegQueryValueExA(long key, const char* value, int* reserved, int* type, int } return 0; } -long RegCreateKeyExA(long key, const char* name, long reserved, +long __stdcall RegCreateKeyExA(long key, const char* name, long reserved, void* classs, long options, long security, void* sec_attr, int* newkey, int* status) { @@ -478,7 +478,7 @@ LONG RegEnumValue( ); */ -long RegEnumValueA(HKEY hkey, DWORD index, LPSTR value, LPDWORD val_count, +long __stdcall RegEnumValueA(HKEY hkey, DWORD index, LPSTR value, LPDWORD val_count, LPDWORD reserved, LPDWORD type, LPBYTE data, LPDWORD count) { // currenly just made to support MSZH & ZLIB @@ -502,7 +502,7 @@ long RegEnumValueA(HKEY hkey, DWORD index, LPSTR value, LPDWORD val_count, return ERROR_NO_MORE_ITEMS; } -long RegSetValueExA(long key, const char* name, long v1, long v2, const void* data, long size) +long __stdcall RegSetValueExA(long key, const char* name, long v1, long v2, const void* data, long size) { struct reg_value* t; char* c; @@ -518,7 +518,7 @@ long RegSetValueExA(long key, const char* name, long v1, long v2, const void* da return 0; } -long RegEnumKeyExA(HKEY hKey, DWORD dwIndex, LPSTR lpName, LPDWORD lpcbName, +long __stdcall RegEnumKeyExA(HKEY hKey, DWORD dwIndex, LPSTR lpName, LPDWORD lpcbName, LPDWORD lpReserved, LPSTR lpClass, LPDWORD lpcbClass, LPFILETIME lpftLastWriteTime) { diff --git a/loader/registry.h b/loader/registry.h index 45a6be692d..45a0903cb8 100644 --- a/loader/registry.h +++ b/loader/registry.h @@ -14,23 +14,23 @@ extern "C" { void free_registry(void); -long RegOpenKeyExA(long key, const char* subkey, long reserved, +long __stdcall RegOpenKeyExA(long key, const char* subkey, long reserved, long access, int* newkey); -long RegCloseKey(long key); -long RegQueryValueExA(long key, const char* value, int* reserved, +long __stdcall RegCloseKey(long key); +long __stdcall RegQueryValueExA(long key, const char* value, int* reserved, int* type, int* data, int* count); -long RegCreateKeyExA(long key, const char* name, long reserved, +long __stdcall RegCreateKeyExA(long key, const char* name, long reserved, void* classs, long options, long security, void* sec_attr, int* newkey, int* status); -long RegSetValueExA(long key, const char* name, long v1, long v2, +long __stdcall RegSetValueExA(long key, const char* name, long v1, long v2, const void* data, long size); #ifdef __WINE_WINERROR_H -long RegEnumKeyExA(HKEY hKey, DWORD dwIndex, LPSTR lpName, LPDWORD lpcbName, +long __stdcall RegEnumKeyExA(HKEY hKey, DWORD dwIndex, LPSTR lpName, LPDWORD lpcbName, LPDWORD lpReserved, LPSTR lpClass, LPDWORD lpcbClass, LPFILETIME lpftLastWriteTime); -long RegEnumValueA(HKEY hkey, DWORD index, LPSTR value, LPDWORD val_count, +long __stdcall RegEnumValueA(HKEY hkey, DWORD index, LPSTR value, LPDWORD val_count, LPDWORD reserved, LPDWORD type, LPBYTE data, LPDWORD count); #endif #ifdef __cplusplus -- cgit v1.2.3