Ignore:
Timestamp:
Sep 5, 2001, 3:54:53 PM (24 years ago)
Author:
bird
Message:

Added $Id:$ keyword.

File:
1 edited

Legend:

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

    r5618 r6650  
     1/* $Id: shellreg.c,v 1.3 2001-09-05 13:46:58 bird Exp $ */
    12/*
    2         Shell Registry Access
     3    Shell Registry Access
    34*/
    45#include <string.h>
     
    1718
    1819/*************************************************************************
    19  * SHRegOpenKeyA                                [SHELL32.506]
     20 * SHRegOpenKeyA                [SHELL32.506]
    2021 *
    2122 */
    2223HRESULT WINAPI SHRegOpenKeyA(
    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]
     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]
    3334 *
    3435 */
    3536HRESULT WINAPI SHRegOpenKeyW (
    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 );
     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 );
    4243}
    4344
     
    4748 */
    4849HRESULT WINAPI SHRegQueryValueExA(
    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]
     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]
    6263 *
    6364 */
    6465HRESULT WINAPI SHRegQueryValueW(
    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 
     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
    7980 *  if the datatype REG_EXPAND_SZ then expand the string and change
    80  *  *pdwType to REG_SZ. 
     81 *  *pdwType to REG_SZ.
    8182 */
    8283HRESULT WINAPI SHRegQueryValueExW (
    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;
     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;
    9596}
    9697
     
    99100 */
    100101HRESULT WINAPI SHRegDeleteKeyA(
    101         HKEY hkey,
    102         LPCSTR pszSubKey)
    103 {
    104         FIXME("hkey=0x%08x, %s\n", hkey, debugstr_a(pszSubKey));
     102    HKEY hkey,
     103    LPCSTR pszSubKey)
     104{
     105    FIXME("hkey=0x%08x, %s\n", hkey, debugstr_a(pszSubKey));
    105106#ifdef __WIN32OS2__
    106107        return RegDeleteKeyA(hkey,pszSubKey);
    107108#else
    108         return 0;
     109    return 0;
    109110#endif
    110111}
     
    114115 */
    115116HRESULT WINAPI SHRegDeleteKeyW(
    116         HKEY hkey,
    117         LPCWSTR pszSubKey)
    118 {
    119         FIXME("hkey=0x%08x, %s\n", hkey, debugstr_w(pszSubKey));
     117    HKEY hkey,
     118    LPCWSTR pszSubKey)
     119{
     120    FIXME("hkey=0x%08x, %s\n", hkey, debugstr_w(pszSubKey));
    120121#ifdef __WIN32OS2__
    121122        return RegDeleteKeyW(hkey,pszSubKey);
    122123#else
    123         return 0;
     124    return 0;
    124125#endif
    125126}
    126127
    127128/*************************************************************************
    128  * SHRegCloseKey                        [NT4.0:SHELL32.505]
     129 * SHRegCloseKey            [NT4.0:SHELL32.505]
    129130 *
    130131 */
    131132HRESULT WINAPI SHRegCloseKey (HKEY hkey)
    132133{
    133         TRACE("0x%04x\n",hkey);
    134         return RegCloseKey( hkey );
     134    TRACE("0x%04x\n",hkey);
     135    return RegCloseKey( hkey );
    135136}
    136137
Note: See TracChangeset for help on using the changeset viewer.