home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / include / msregdb.h < prev    next >
C/C++ Source or Header  |  1998-04-25  |  2KB  |  53 lines

  1. #ifndef STF_LITE
  2.  
  3.  
  4. #define REG_DB_ENABLED
  5.  
  6. #ifdef WIN16
  7. #define REG_SZ                1
  8. #define HKEY_CLASSES_ROOT     1
  9. #define ERROR_SUCCESS         0
  10. #endif
  11.  
  12. #define GRC_API_FAILED        104
  13.  
  14. extern int   APIENTRY EercErrorHandler(int grc, int fVital, LPSTR sz1,
  15.                 LPSTR sz2, LPSTR sz3);
  16.  
  17.  
  18. extern BOOL  FInitRegDb(void);
  19.  
  20. #ifdef WIN16
  21. extern LONG  APIENTRY RegOpenKey(LONG hKey, LPSTR szSubKey, LPSTR phkResult);
  22. extern LONG  APIENTRY RegCreateKey(LONG hKey, LPSTR szSubKey,
  23.                 LPSTR phkResult);
  24. extern LONG  APIENTRY RegDeleteKey(LONG hKey, LPSTR szSubKey);
  25. extern LONG  APIENTRY RegCloseKey(LONG hKey);
  26. extern LONG  APIENTRY RegQueryValue(LONG hKey, LPSTR szSubKey, LPSTR szValue,
  27.                 LPSTR lpcb);
  28. extern LONG  APIENTRY RegSetValue(LONG hKey, LPSTR szSubKey, LONG dwType,
  29.                 LPSTR szValue, LONG cbValue);
  30. extern LONG  APIENTRY RegEnumKey(LONG hKey, LONG dwIndex, LPSTR szBuffer,
  31.                 LONG dwBufferSize);
  32. #endif
  33.  
  34.  
  35. extern void  CreateRegKey(LPSTR szKey);
  36. extern void  CreateRegKeyValue(LPSTR szKey, LPSTR szValue);
  37. extern void  SetRegKeyValue(LPSTR szKey, LPSTR szValue);
  38. extern void  DeleteRegKey(LPSTR szKey);
  39. extern LPSTR GetRegKeyValue(LPSTR szKey, LPSTR zsBuf, int cbBuf);
  40. extern int   DoesRegKeyExist(LPSTR szKey);
  41.  
  42.  
  43. #ifdef WIN32
  44. extern void   CreateRegKeyEx(HKEY hKey, LPCSTR szKey);
  45. extern void   CreateRegKeyValueEx(HKEY hKey, LPCSTR szKey, LPSTR szValueName, DWORD dwType, LPBYTE lpValueData, DWORD dwDataLen);
  46. extern void   SetRegKeyValueEx(HKEY hKey, LPCSTR szKey, LPSTR szValueName, DWORD dwType, LPBYTE szValueData, DWORD dwDataLen);
  47. extern void   DeleteRegKeyEx(HKEY hKey, LPCSTR szKey);
  48. extern LONG   GetRegKeyValueEx(HKEY hKey, LPCSTR szKey, LPSTR szValueName, LPDWORD lpdwType, LPBYTE lpBuf, DWORD cbBuf);
  49. extern int    DoesRegKeyExistEx(HKEY hKey, LPCSTR szKey);
  50. extern BOOL   DeleteAllSubKeys(HKEY hKey, LPCSTR szKey);
  51. #endif
  52. #endif  /* !STF_LITE */
  53.