changeset 9965:692c4467da42

cygwin support patch by Sascha Sommer
author alex
date Mon, 21 Apr 2003 20:13:21 +0000
parents 6454a2ba2e33
children 9aeb20839969
files loader/registry.c loader/registry.h
diffstat 2 files changed, 14 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/loader/registry.c	Mon Apr 21 20:12:43 2003 +0000
+++ b/loader/registry.c	Mon Apr 21 20:13:21 2003 +0000
@@ -350,7 +350,7 @@
 	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 @@
 
     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 @@
     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 @@
     }
     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 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 @@
     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 @@
     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)
 {
--- a/loader/registry.h	Mon Apr 21 20:12:43 2003 +0000
+++ b/loader/registry.h	Mon Apr 21 20:13:21 2003 +0000
@@ -14,23 +14,23 @@
 
 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