home *** CD-ROM | disk | FTP | other *** search
/ Team Palmtops 7 / Palmtops_numero07.iso / WinCE / SDKWindowsCE / AutoPC / apcsdk10.exe / data1.cab / Emulation_Include_Files / winreg.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-05-13  |  3.5 KB  |  119 lines

  1. /*++
  2.  
  3. Copyright (c) 1995 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
  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 RegCreateKeyExW(HKEY hKey, LPCWSTR lpSubKey, DWORD Reserved, LPWSTR lpClass, DWORD dwOptions, REGSAM samDesired, LPSECURITY_ATTRIBUTES lpSecurityAttributes, PHKEY phkResult, LPDWORD lpdwDisposition);
  73. WINADVAPI LONG APIENTRY RegDeleteKeyW (HKEY hKey, LPCWSTR lpSubKey);
  74. WINADVAPI LONG APIENTRY RegDeleteValueW(HKEY hKey, LPCWSTR lpValueName);
  75. WINADVAPI LONG APIENTRY RegEnumValueW(HKEY hKey, DWORD dwIndex, LPWSTR lpValueName, LPDWORD lpcbValueName, LPDWORD lpReserved, LPDWORD lpType, LPBYTE lpData, LPDWORD lpcbData);
  76. WINADVAPI LONG APIENTRY RegEnumKeyExW(HKEY hKey, DWORD dwIndex, LPWSTR lpName, LPDWORD lpcbName, LPDWORD lpReserved, LPWSTR lpClass, LPDWORD lpcbClass, PFILETIME lpftLastWriteTime);
  77. WINADVAPI LONG APIENTRY RegOpenKeyExW(HKEY hKey, LPCWSTR lpSubKey, DWORD ulOptions, REGSAM samDesired, PHKEY phkResult);
  78. 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);
  79. WINADVAPI LONG APIENTRY RegQueryValueExW (HKEY hKey, LPCWSTR lpValueName, LPDWORD lpReserved, LPDWORD lpType, LPBYTE lpData, LPDWORD lpcbData);
  80. WINADVAPI LONG APIENTRY RegSetValueExW (HKEY hKey, LPCWSTR lpValueName, DWORD Reserved, DWORD dwType, CONST BYTE* lpData, DWORD cbData);
  81.  
  82. #ifdef UNICODE
  83. #define RegCreateKeyEx  RegCreateKeyExW
  84. #define RegDeleteKey  RegDeleteKeyW
  85. #define RegDeleteValue  RegDeleteValueW
  86. #define RegEnumValue  RegEnumValueW
  87. #define RegEnumKeyEx  RegEnumKeyExW
  88. #define RegOpenKeyEx  RegOpenKeyExW
  89. #define RegQueryInfoKey  RegQueryInfoKeyW
  90. #define RegQueryValueEx  RegQueryValueExW
  91. #define RegSetValueEx  RegSetValueExW
  92. #else
  93. #define RegCreateKeyEx  RegCreateKeyExA
  94. #define RegDeleteKey  RegDeleteKeyA
  95. #define RegDeleteValue  RegDeleteValueA
  96. #define RegEnumValue  RegEnumValueA
  97. #define RegEnumKeyEx  RegEnumKeyExA
  98. #define RegOpenKeyEx  RegOpenKeyExA
  99. #define RegQueryInfoKey  RegQueryInfoKeyA
  100. #define RegQueryValueEx  RegQueryValueExA
  101. #define RegSetValueEx  RegSetValueExA
  102. #endif
  103.  
  104. #ifdef __cplusplus
  105. }
  106. #endif
  107.  
  108. #ifdef WINCEOEM
  109. #include <pwinreg.h>
  110. #ifdef WINCEMACRO
  111. #include <mwinreg.h>    // internal defines 
  112. #endif
  113. #endif
  114.  
  115. // @CESYSGEN ENDIF
  116.  
  117. #endif // _WINREG_
  118.  
  119.