Ignore:
Timestamp:
Jun 12, 2000, 10:09:48 AM (25 years ago)
Author:
phaller
Message:

.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/shlwapi/reg.cpp

    r3539 r3687  
    1 /* $Id: reg.cpp,v 1.1 2000-05-15 02:43:16 phaller Exp $ */
     1/* $Id: reg.cpp,v 1.2 2000-06-12 08:09:39 phaller Exp $ */
    22
    33/*
     
    3737
    3838ODINDEBUGCHANNEL(SHLWAPI-REG)
     39
     40
     41/*****************************************************************************
     42 * Name      : DWORD SHRegCreateUSKeyA
     43 * Purpose   :
     44 * Parameters:
     45 * Variables :
     46 * Result    :
     47 * Remark    : SHLWAPI.594 SHLWAPI.SHRegCreateUSKeyA
     48 * Status    : UNTESTED
     49 *
     50 * Author    : Patrick Haller [Wed, 1999/12/29 23:02]
     51 *****************************************************************************/
     52
     53ODINFUNCTION5(DWORD,  SHRegCreateUSKeyA,
     54              LPSTR,  lpszKeyName,
     55              DWORD,  arg1,
     56              DWORD,  arg2,
     57              DWORD,  arg3,
     58              DWORD,  arg4)
     59{
     60  dprintf(("not implemented\n"));
     61  return 0;
     62}
     63
     64
     65/*****************************************************************************
     66 * Name      : DWORD SHRegCreateUSKeyW
     67 * Purpose   :
     68 * Parameters:
     69 * Variables :
     70 * Result    :
     71 * Remark    : SHLWAPI.595 SHLWAPI.SHRegCreateUSKeyW
     72 * Status    : UNTESTED
     73 *
     74 * Author    : Patrick Haller [Wed, 1999/12/29 23:02]
     75 *****************************************************************************/
     76
     77ODINFUNCTION5(DWORD,  SHRegCreateUSKeyW,
     78              LPWSTR, lpszKeyName,
     79              DWORD,  arg1,
     80              DWORD,  arg2,
     81              DWORD,  arg3,
     82              DWORD,  arg4)
     83{
     84  char szBuffer[256];
     85 
     86  // convert unicode to ascii
     87  if (0 == WideCharToMultiByte(0,
     88                               0,
     89                               lpszKeyName,
     90                               -1,
     91                               szBuffer,
     92                               sizeof(szBuffer),
     93                               0,
     94                               0))
     95    return GetLastError();
     96 
     97  return SHRegCreateUSKeyA(szBuffer,
     98                         arg1,
     99                         arg2,
     100                         arg3,
     101                         arg4);
     102}
    39103
    40104
     
    160224
    161225
     226/*****************************************************************************
     227 * Name      : DWORD SHRegSetUSValueA
     228 * Purpose   :
     229 * Parameters:
     230 * Variables :
     231 * Result    :
     232 * Remark    : SHLWAPI.SHRegSetUSValueA SHLWAPI.615
     233 * Status    : UNTESTED
     234 *
     235 * Author    : Patrick Haller [Wed, 1999/12/29 23:02]
     236 *****************************************************************************/
     237
     238ODINFUNCTION6(LONG,    SHRegSetUSValueA,
     239              HKEY,    hKey,
     240              DWORD,   arg2,
     241              DWORD,   arg3,
     242              DWORD,   arg4,
     243              DWORD,   arg5,
     244              DWORD,   arg6)
     245{
     246  LONG rc;
     247 
     248#if 0
     249  rc = SHRegCreateUSKeyA(hKey,
     250                         3,
     251                         0,
     252                         &hKey);
     253  if (rc == ERROR_SUCCESS)
     254  {
     255    rc = SHRegWriteUSValueA(hKey,
     256                            arg2,
     257                            arg3,
     258                            arg4,
     259                            arg5,
     260                            arg6);
     261    SHRegCloseUSKey(hKey);
     262  }
     263#endif
     264 
     265  return rc;
     266}
     267
     268
     269
     270
     271/*****************************************************************************
     272 * Name      : DWORD SHRegSetUSValueW
     273 * Purpose   :
     274 * Parameters:
     275 * Variables :
     276 * Result    :
     277 * Remark    : SHLWAPI.SHRegSetUSValueW SHLWAPI.616
     278 * Status    : UNTESTED
     279 *
     280 * Author    : Patrick Haller [Wed, 1999/12/29 23:02]
     281 *****************************************************************************/
     282
     283ODINFUNCTION6(LONG,    SHRegSetUSValueW,
     284              HKEY,    hKey,
     285              DWORD,   arg2,
     286              DWORD,   arg3,
     287              DWORD,   arg4,
     288              DWORD,   arg5,
     289              DWORD,   arg6)
     290{
     291  LONG rc;
     292 
     293#if 0
     294  rc = SHRegCreateUSKeyW(hKey,
     295                         3,
     296                         0,
     297                         &hKey);
     298  if (rc == ERROR_SUCCESS)
     299  {
     300    rc = SHRegWriteUSValueW(hKey,
     301                            arg2,
     302                            arg3,
     303                            arg4,
     304                            arg5,
     305                            arg6);
     306    SHRegCloseUSKey(hKey);
     307  }
     308#endif
     309 
     310  return rc;
     311}
     312
     313
Note: See TracChangeset for help on using the changeset viewer.