Ignore:
Timestamp:
Sep 15, 2001, 11:26:26 AM (24 years ago)
Author:
sandervl
Message:

restored old version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/shell32/shellreg.c

    r6650 r6709  
    1 /* $Id: shellreg.c,v 1.3 2001-09-05 13:46:58 bird Exp $ */
    21/*
    3     Shell Registry Access
     2        Shell Registry Access
    43*/
    54#include <string.h>
     
    1817
    1918/*************************************************************************
    20  * SHRegOpenKeyA                [SHELL32.506]
     19 * SHRegOpenKeyA                                [SHELL32.506]
    2120 *
    2221 */
    2322HRESULT WINAPI SHRegOpenKeyA(
    24     HKEY hKey,
    25     LPSTR lpSubKey,
    26     LPHKEY phkResult)
    27 {
    28     TRACE("(0x%08x, %s, %p)\n", hKey, debugstr_a(lpSubKey), phkResult);
    29     return RegOpenKeyA(hKey, lpSubKey, phkResult);
    30 }
    31 
    32 /*************************************************************************
    33  * SHRegOpenKeyW                [NT4.0:SHELL32.507]
     23        HKEY hKey,
     24        LPSTR lpSubKey,
     25        LPHKEY phkResult)
     26{
     27        TRACE("(0x%08x, %s, %p)\n", hKey, debugstr_a(lpSubKey), phkResult);
     28        return RegOpenKeyA(hKey, lpSubKey, phkResult);
     29}
     30
     31/*************************************************************************
     32 * SHRegOpenKeyW                                [NT4.0:SHELL32.507]
    3433 *
    3534 */
    3635HRESULT WINAPI SHRegOpenKeyW (
    37     HKEY hkey,
    38     LPCWSTR lpszSubKey,
    39     LPHKEY retkey)
    40 {
    41     WARN("0x%04x %s %p\n",hkey,debugstr_w(lpszSubKey),retkey);
    42     return RegOpenKeyW( hkey, lpszSubKey, retkey );
     36        HKEY hkey,
     37        LPCWSTR lpszSubKey,
     38        LPHKEY retkey)
     39{
     40        WARN("0x%04x %s %p\n",hkey,debugstr_w(lpszSubKey),retkey);
     41        return RegOpenKeyW( hkey, lpszSubKey, retkey );
    4342}
    4443
     
    4847 */
    4948HRESULT WINAPI SHRegQueryValueExA(
    50     HKEY hkey,
    51     LPSTR lpValueName,
    52     LPDWORD lpReserved,
    53     LPDWORD lpType,
    54     LPBYTE lpData,
    55     LPDWORD lpcbData)
    56 {
    57     TRACE("0x%04x %s %p %p %p %p\n", hkey, lpValueName, lpReserved, lpType, lpData, lpcbData);
    58     return RegQueryValueExA (hkey, lpValueName, lpReserved, lpType, lpData, lpcbData);
    59 }
    60 
    61 /*************************************************************************
    62  * SHRegQueryValueW             [NT4.0:SHELL32.510]
     49        HKEY hkey,
     50        LPSTR lpValueName,
     51        LPDWORD lpReserved,
     52        LPDWORD lpType,
     53        LPBYTE lpData,
     54        LPDWORD lpcbData)
     55{
     56        TRACE("0x%04x %s %p %p %p %p\n", hkey, lpValueName, lpReserved, lpType, lpData, lpcbData);
     57        return RegQueryValueExA (hkey, lpValueName, lpReserved, lpType, lpData, lpcbData);
     58}
     59
     60/*************************************************************************
     61 * SHRegQueryValueW                             [NT4.0:SHELL32.510]
    6362 *
    6463 */
    6564HRESULT WINAPI SHRegQueryValueW(
    66     HKEY hkey,
    67     LPWSTR lpszSubKey,
    68     LPWSTR lpszData,
    69     LPDWORD lpcbData )
    70 {
    71     WARN("0x%04x %s %p %p semi-stub\n",
    72         hkey, debugstr_w(lpszSubKey), lpszData, lpcbData);
    73     return RegQueryValueW( hkey, lpszSubKey, lpszData, lpcbData );
    74 }
    75 
    76 /*************************************************************************
    77  * SHRegQueryValueExW   [NT4.0:SHELL32.511]
    78  *
    79  * FIXME
     65        HKEY hkey,
     66        LPWSTR lpszSubKey,
     67        LPWSTR lpszData,
     68        LPDWORD lpcbData )
     69{
     70        WARN("0x%04x %s %p %p semi-stub\n",
     71                hkey, debugstr_w(lpszSubKey), lpszData, lpcbData);
     72        return RegQueryValueW( hkey, lpszSubKey, lpszData, lpcbData );
     73}
     74
     75/*************************************************************************
     76 * SHRegQueryValueExW   [NT4.0:SHELL32.511]
     77 *
     78 * FIXME 
    8079 *  if the datatype REG_EXPAND_SZ then expand the string and change
    81  *  *pdwType to REG_SZ.
     80 *  *pdwType to REG_SZ. 
    8281 */
    8382HRESULT WINAPI SHRegQueryValueExW (
    84     HKEY hkey,
    85     LPWSTR pszValue,
    86     LPDWORD pdwReserved,
    87     LPDWORD pdwType,
    88     LPVOID pvData,
    89     LPDWORD pcbData)
    90 {
    91     DWORD ret;
    92     WARN("0x%04x %s %p %p %p %p semi-stub\n",
    93         hkey, debugstr_w(pszValue), pdwReserved, pdwType, pvData, pcbData);
    94     ret = RegQueryValueExW ( hkey, pszValue, pdwReserved, pdwType, pvData, pcbData);
    95     return ret;
     83        HKEY hkey,
     84        LPWSTR pszValue,
     85        LPDWORD pdwReserved,
     86        LPDWORD pdwType,
     87        LPVOID pvData,
     88        LPDWORD pcbData)
     89{
     90        DWORD ret;
     91        WARN("0x%04x %s %p %p %p %p semi-stub\n",
     92                hkey, debugstr_w(pszValue), pdwReserved, pdwType, pvData, pcbData);
     93        ret = RegQueryValueExW ( hkey, pszValue, pdwReserved, pdwType, pvData, pcbData);
     94        return ret;
    9695}
    9796
     
    10099 */
    101100HRESULT WINAPI SHRegDeleteKeyA(
    102     HKEY hkey,
    103     LPCSTR pszSubKey)
    104 {
    105     FIXME("hkey=0x%08x, %s\n", hkey, debugstr_a(pszSubKey));
     101        HKEY hkey,
     102        LPCSTR pszSubKey)
     103{
     104        FIXME("hkey=0x%08x, %s\n", hkey, debugstr_a(pszSubKey));
    106105#ifdef __WIN32OS2__
    107106        return RegDeleteKeyA(hkey,pszSubKey);
    108107#else
    109     return 0;
     108        return 0;
    110109#endif
    111110}
     
    115114 */
    116115HRESULT WINAPI SHRegDeleteKeyW(
    117     HKEY hkey,
    118     LPCWSTR pszSubKey)
    119 {
    120     FIXME("hkey=0x%08x, %s\n", hkey, debugstr_w(pszSubKey));
     116        HKEY hkey,
     117        LPCWSTR pszSubKey)
     118{
     119        FIXME("hkey=0x%08x, %s\n", hkey, debugstr_w(pszSubKey));
    121120#ifdef __WIN32OS2__
    122121        return RegDeleteKeyW(hkey,pszSubKey);
    123122#else
    124     return 0;
     123        return 0;
    125124#endif
    126125}
    127126
    128127/*************************************************************************
    129  * SHRegCloseKey            [NT4.0:SHELL32.505]
     128 * SHRegCloseKey                        [NT4.0:SHELL32.505]
    130129 *
    131130 */
    132131HRESULT WINAPI SHRegCloseKey (HKEY hkey)
    133132{
    134     TRACE("0x%04x\n",hkey);
    135     return RegCloseKey( hkey );
     133        TRACE("0x%04x\n",hkey);
     134        return RegCloseKey( hkey );
    136135}
    137136
Note: See TracChangeset for help on using the changeset viewer.