home *** CD-ROM | disk | FTP | other *** search
/ Team Palmtops 7 / Palmtops_numero07.iso / WinCE / SDKWindowsCE / HandHeldPCPro30 / sdk.exe / Jupiter SDK / data1.cab / Emulation_Include_Files / winreg.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-02-19  |  5.0 KB  |  129 lines

  1. /*++
  2.  
  3. Copyright (c) 1995-1998 Microsoft Corporation
  4.  
  5. Module Name:
  6.  
  7.     Winreg.h
  8.  
  9. Abstract:
  10.  
  11.     This module contains the function prototypes and constant, type and
  12.     structure definitions for the WINCE Implementeation of the Windows
  13.     32-Bit Registry API.
  14.  
  15. --*/
  16.  
  17. #ifndef _WINREG_H_
  18. #define _WINREG_H_
  19.  
  20.  
  21.  
  22. //
  23. // Type definitions.
  24. //
  25.  
  26. #ifdef __cplusplus
  27. extern "C" {
  28. #endif
  29. //    This is going outside of CESYSGEN since a shell structure uses it.
  30. typedef HANDLE HKEY, *PHKEY;
  31.  
  32. #ifdef __cplusplus
  33. }
  34. #endif
  35.  
  36.  
  37.  
  38. // @CESYSGEN IF FILESYS_FSREG || FILESYS_FSRGLITE
  39.  
  40. #ifdef __cplusplus
  41. extern "C" {
  42. #endif
  43.  
  44. typedef ACCESS_MASK REGSAM;
  45.  
  46. //
  47. // Type definitions.
  48. //
  49.  
  50.  
  51. //
  52. // Reserved Key Handles.
  53. //
  54.  
  55. #define HKEY_CLASSES_ROOT           (( HKEY ) 0x80000000 )
  56. #define HKEY_CURRENT_USER           (( HKEY ) 0x80000001 )
  57. #define HKEY_LOCAL_MACHINE          (( HKEY ) 0x80000002 )
  58. #define HKEY_USERS                  (( HKEY ) 0x80000003 )
  59.  
  60. //
  61. // Default values for parameters that do not exist in the Win 3.1
  62. // compatible APIs.
  63. //
  64.  
  65. #define WIN31_CLASS                 NULL
  66.  
  67. //
  68. // API Prototypes.
  69. //
  70.  
  71. WINADVAPI LONG APIENTRY RegCloseKey(HKEY hKey);
  72. WINADVAPI LONG APIENTRY RegCreateKeyExA(HKEY hKey, LPCSTR lpSubKey, DWORD Reserved, LPSTR lpClass, DWORD dwOptions, REGSAM samDesired, LPSECURITY_ATTRIBUTES lpSecurityAttributes, PHKEY phkResult, LPDWORD lpdwDisposition);
  73. WINADVAPI LONG APIENTRY RegCreateKeyExW(HKEY hKey, LPCWSTR lpSubKey, DWORD Reserved, LPWSTR lpClass, DWORD dwOptions, REGSAM samDesired, LPSECURITY_ATTRIBUTES lpSecurityAttributes, PHKEY phkResult, LPDWORD lpdwDisposition);
  74. WINADVAPI LONG APIENTRY RegDeleteKeyA (HKEY hKey, LPCSTR lpSubKey);
  75. WINADVAPI LONG APIENTRY RegDeleteKeyW (HKEY hKey, LPCWSTR lpSubKey);
  76. WINADVAPI LONG APIENTRY RegDeleteValueA(HKEY hKey, LPCSTR lpValueName);
  77. WINADVAPI LONG APIENTRY RegDeleteValueW(HKEY hKey, LPCWSTR lpValueName);
  78. WINADVAPI LONG APIENTRY RegEnumValueA(HKEY hKey, DWORD dwIndex, LPSTR lpValueName, LPDWORD lpcbValueName, LPDWORD lpReserved, LPDWORD lpType, LPBYTE lpData, LPDWORD lpcbData);
  79. WINADVAPI LONG APIENTRY RegEnumValueW(HKEY hKey, DWORD dwIndex, LPWSTR lpValueName, LPDWORD lpcbValueName, LPDWORD lpReserved, LPDWORD lpType, LPBYTE lpData, LPDWORD lpcbData);
  80. WINADVAPI LONG APIENTRY RegEnumKeyExA(HKEY hKey, DWORD dwIndex, LPSTR lpName, LPDWORD lpcbName, LPDWORD lpReserved, LPSTR lpClass, LPDWORD lpcbClass, PFILETIME lpftLastWriteTime);
  81. WINADVAPI LONG APIENTRY RegEnumKeyExW(HKEY hKey, DWORD dwIndex, LPWSTR lpName, LPDWORD lpcbName, LPDWORD lpReserved, LPWSTR lpClass, LPDWORD lpcbClass, PFILETIME lpftLastWriteTime);
  82. WINADVAPI LONG APIENTRY RegOpenKeyExA(HKEY hKey, LPCSTR lpSubKey, DWORD ulOptions, REGSAM samDesired, PHKEY phkResult);
  83. WINADVAPI LONG APIENTRY RegOpenKeyExW(HKEY hKey, LPCWSTR lpSubKey, DWORD ulOptions, REGSAM samDesired, PHKEY phkResult);
  84. WINADVAPI LONG APIENTRY RegQueryInfoKeyA (HKEY hKey, LPSTR lpClass, LPDWORD lpcbClass, LPDWORD lpReserved, LPDWORD lpcSubKeys, LPDWORD lpcbMaxSubKeyLen, LPDWORD lpcbMaxClassLen, LPDWORD lpcValues, LPDWORD lpcbMaxValueNameLen, LPDWORD lpcbMaxValueLen, LPDWORD lpcbSecurityDescriptor, PFILETIME lpftLastWriteTime);
  85. WINADVAPI LONG APIENTRY RegQueryInfoKeyW (HKEY hKey, LPWSTR lpClass, LPDWORD lpcbClass, LPDWORD lpReserved, LPDWORD lpcSubKeys, LPDWORD lpcbMaxSubKeyLen, LPDWORD lpcbMaxClassLen, LPDWORD lpcValues, LPDWORD lpcbMaxValueNameLen, LPDWORD lpcbMaxValueLen, LPDWORD lpcbSecurityDescriptor, PFILETIME lpftLastWriteTime);
  86. WINADVAPI LONG APIENTRY RegQueryValueExA (HKEY hKey, LPCSTR lpValueName, LPDWORD lpReserved, LPDWORD lpType, LPBYTE lpData, LPDWORD lpcbData);
  87. WINADVAPI LONG APIENTRY RegQueryValueExW (HKEY hKey, LPCWSTR lpValueName, LPDWORD lpReserved, LPDWORD lpType, LPBYTE lpData, LPDWORD lpcbData);
  88. WINADVAPI LONG APIENTRY RegSetValueExA (HKEY hKey, LPCSTR lpValueName, DWORD Reserved, DWORD dwType, CONST BYTE* lpData, DWORD cbData);
  89. WINADVAPI LONG APIENTRY RegSetValueExW (HKEY hKey, LPCWSTR lpValueName, DWORD Reserved, DWORD dwType, CONST BYTE* lpData, DWORD cbData);
  90. WINADVAPI LONG APIENTRY RegFlushKey (HKEY hKey);
  91.  
  92. #ifdef UNICODE
  93. #define RegCreateKeyEx  RegCreateKeyExW
  94. #define RegDeleteKey  RegDeleteKeyW
  95. #define RegDeleteValue  RegDeleteValueW
  96. #define RegEnumValue  RegEnumValueW
  97. #define RegEnumKeyEx  RegEnumKeyExW
  98. #define RegOpenKeyEx  RegOpenKeyExW
  99. #define RegQueryInfoKey  RegQueryInfoKeyW
  100. #define RegQueryValueEx  RegQueryValueExW
  101. #define RegSetValueEx  RegSetValueExW
  102. #else
  103. #define RegCreateKeyEx  RegCreateKeyExA
  104. #define RegDeleteKey  RegDeleteKeyA
  105. #define RegDeleteValue  RegDeleteValueA
  106. #define RegEnumValue  RegEnumValueA
  107. #define RegEnumKeyEx  RegEnumKeyExA
  108. #define RegOpenKeyEx  RegOpenKeyExA
  109. #define RegQueryInfoKey  RegQueryInfoKeyA
  110. #define RegQueryValueEx  RegQueryValueExA
  111. #define RegSetValueEx  RegSetValueExA
  112. #endif
  113.  
  114. #ifdef __cplusplus
  115. }
  116. #endif
  117.  
  118. #ifdef WINCEOEM
  119. #include <pwinreg.h>
  120. #ifdef WINCEMACRO
  121. #include <mwinreg.h>    // internal defines 
  122. #endif
  123. #endif
  124.  
  125. // @CESYSGEN ENDIF
  126.  
  127. #endif // _WINREG_
  128.  
  129.