Changeset 3942 for trunk/src


Ignore:
Timestamp:
Aug 2, 2000, 10:18:25 PM (25 years ago)
Author:
bird
Message:

Function status corrections.

Location:
trunk/src
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ole32/ole2impl.cpp

    r3176 r3942  
    1 /* $Id: ole2impl.cpp,v 1.1 2000-03-21 00:28:32 davidr Exp $ */
     1/* $Id: ole2impl.cpp,v 1.2 2000-08-02 20:18:22 bird Exp $ */
    22/*
    33 * Ole 2 Create functions implementation
     
    55 * Copyright (C) 1999-2000 Abey George
    66 */
    7 /* 
    8  * 
     7/*
     8 *
    99 * Project Odin Software License can be found in LICENSE.TXT
    10  * 
     10 *
    1111 */
    12 /* 
     12/*
    1313 * Ported from Wine 20/03/00
    14  * 
     14 *
    1515 * Copyright 1999 David J. Raison
    1616 *
     
    2525#define MAX_CLIPFORMAT_NAME   80
    2626
    27 /******************************************************************************
    28  * Function : OleQueryCreateFromData [OLE32.117]
    29  * Author   : Abey George
     27/**
     28 * [OLE32.117]
    3029 * Checks whether an object can become an embedded object.
    3130 * the clipboard or OLE drag and drop.
    32  * Returns  : S_OK - Format that supports Embedded object creation are present.
    33  *            OLE_E_STATIC - Format that supports static object creation are present.
    34  *            S_FALSE - No acceptable format is available.
     31 * @author      Abey George
     32 * @returns     S_OK - Format that supports Embedded object creation are present.
     33 *              OLE_E_STATIC - Format that supports static object creation are present.
     34 *              S_FALSE - No acceptable format is available.
    3535 */
    3636
     
    7272}
    7373
    74 /******************************************************************************
    75  * Function : OleCreateFromData        [OLE32.92]
    76  * Author   : Abey George
     74/**
    7775 * Creates an embedded object from data transfer object retrieved from
    7876 * the clipboard or OLE drag and drop.
    79  * Returns  : S_OK - Embedded object was created successfully.
    80  *            OLE_E_STATIC - OLE can create only a static object
    81  *            DV_E_FORMATETC - No acceptable format is available (only error return code)
    82  * TODO : CF_FILENAME, CF_EMBEDEDOBJECT formats. Parameter renderopt is currently ignored.
     77 * [OLE32.92]
     78 * @author      Abey George
     79 * @returns     S_OK - Embedded object was created successfully.
     80 *              OLE_E_STATIC - OLE can create only a static object
     81 *              DV_E_FORMATETC - No acceptable format is available (only error return code)
     82 * @remark      TODO : CF_FILENAME, CF_EMBEDEDOBJECT formats. Parameter renderopt is currently ignored.
    8383 */
    8484
  • trunk/src/rpcrt4/string.cpp

    r3317 r3942  
    1 /* $Id: string.cpp,v 1.2 2000-04-04 19:49:03 davidr Exp $ */
     1/* $Id: string.cpp,v 1.3 2000-08-02 20:18:23 bird Exp $ */
    22/*
    33 * RPCRT4 library
     
    55 *
    66 * 2000/02/05
    7  * 
     7 *
    88 * Copyright 2000 David J. Raison
    9  * 
     9 *
    1010 * Project Odin Software License can be found in LICENSE.TXT
    11  * 
     11 *
    1212 */
    1313
     
    1919RPCRTAPI RPC_STATUS RPC_ENTRY
    2020RpcStringFreeA (
    21     IN OUT unsigned char __RPC_FAR * __RPC_FAR * String
     21    IN OUT unsigned char __RPC_FAR * __RPC_FAR * String OPTIONAL
    2222    )
    2323{
    2424    dprintf(("RPCRT4: %s", __FUNCTION__));
    25    
     25
    2626    HeapFree(GetProcessHeap(), 0, *String);
    27    
     27
    2828    return RPC_S_OK;
    2929}
     
    3939{
    4040    dprintf(("RPCRT4: %s", __FUNCTION__));
    41    
     41
    4242    HeapFree(GetProcessHeap(), 0, *String);
    43    
     43
    4444    return RPC_S_OK;
    4545}
  • trunk/src/shlwapi/ordinal.cpp

    r3688 r3942  
    1 /* $Id: ordinal.cpp,v 1.3 2000-06-12 11:35:13 phaller Exp $ */
     1/* $Id: ordinal.cpp,v 1.4 2000-08-02 20:18:23 bird Exp $ */
    22
    33/*
     
    123123/*****************************************************************************
    124124 * Name      : SHLWAPI_3
    125  * Purpose   : 
    126  * Parameters: 
    127  * Variables :
    128  * Result    : 
    129  * Remark    :
    130  * Status    : UNTESTED
     125 * Purpose   :
     126 * Parameters:
     127 * Variables :
     128 * Result    :
     129 * Remark    :
     130 * Status    : STUB UNTESTED
    131131 *
    132132 * Author    : Patrick Haller [Sun, 2000/06/10 04:02]
     
    141141  return TRUE;
    142142
    143 #if 0 
     143#if 0
    144144  if (lpPath == NULL)                return FALSE;
    145145  if (PathIsUNCServerA(lpPath))      return FALSE;
    146146  if (PathIsUNCServerShareA(lpPath)) return FALSE;
    147  
     147
    148148  if (lpFile == NULL)
    149149    return PathFileExistsA(lpPath);
     
    156156    return FALSE;
    157157  }
    158  
     158
    159159  return FALSE;
    160160#endif
     
    164164/*****************************************************************************
    165165 * Name      : SHLWAPI_4
    166  * Purpose   : 
    167  * Parameters: 
    168  * Variables :
    169  * Result    : 
    170  * Remark    :
    171  * Status    : UNTESTED
     166 * Purpose   :
     167 * Parameters:
     168 * Variables :
     169 * Result    :
     170 * Remark    :
     171 * Status    : STUB UNTESTED
    172172 *
    173173 * Author    : Patrick Haller [Sun, 2000/06/10 04:02]
     
    179179{
    180180  dprintf(("not properly implemented"));
    181  
     181
    182182  return TRUE;
    183183
     
    186186  if (PathIsUNCServerW(lpPath))      return FALSE;
    187187  if (PathIsUNCServerShareW(lpPath)) return FALSE;
    188  
     188
    189189  if (lpFile == NULL)
    190190    return PathFileExtensionW(lpPath);
     
    197197    return FALSE;
    198198  }
    199  
     199
    200200  return FALSE;
    201201#endif
     
    219219              LPSTR, lpDirectories,
    220220              DWORD, dwUnknown)
    221              
     221
    222222{
    223223  dprintf(("not implemented"));
     
    243243              DWORD, arg1,
    244244              DWORD, arg2)
    245              
     245
    246246{
    247247  dprintf(("not implemented"));
     
    270270  LPVOID lpMap;
    271271  DWORD  dwResult;
    272  
     272
    273273  dprintf(("not implemented"));
    274  
     274
    275275  // create mapping
    276276  hMap = CreateFileMappingA(-1,
     
    282282  if (hMap == NULL)
    283283    return FALSE;
    284  
     284
    285285  // now map the thing
    286286  lpMap = MapViewOfFile(hMap,
     
    294294    return FALSE;
    295295  }
    296  
     296
    297297  /*  @@@PH copy someting into the shared segment */
    298  
     298
    299299  UnmapViewOfFile(lpMap);
    300300  dwResult = SHLWAPI_11(hMap,
     
    327327  HANDLE hHandle;
    328328  LPVOID lpBase;
    329  
     329
    330330  hHandle = SHLWAPI_11(hMap,
    331331                       arg1,
     
    339339                         0);
    340340  CloseHandle(hHandle);
    341  
     341
    342342  if (lpBase == NULL)
    343343    return NULL;
     
    348348
    349349/*****************************************************************************
    350  * Name      : 
    351  * Purpose   : 
    352  * Parameters: 
    353  * Variables :
    354  * Result    : 
    355  * Remark    :
    356  * Status    : UNTESTED
     350 * Name      :
     351 * Purpose   :
     352 * Parameters:
     353 * Variables :
     354 * Result    :
     355 * Remark    :
     356 * Status    : COMPLETELY IMPLEMENTED UNTESTED
    357357 *
    358358 * Author    : Patrick Haller [Sun, 2000/06/09 04:47]
     
    368368/*****************************************************************************
    369369 * Name      : ???
    370  * Purpose   : 
    371  * Parameters: 
    372  * Variables :
    373  * Result    : 
    374  * Remark    :
    375  * Status    : UNTESTED
     370 * Purpose   :
     371 * Parameters:
     372 * Variables :
     373 * Result    :
     374 * Remark    :
     375 * Status    : COMPLETELY IMPLEMENTED UNTESTED
    376376 *
    377377 * Author    : Patrick Haller [Sun, 2000/06/09 04:47]
     
    383383{
    384384  HANDLE hHandle;
    385  
     385
    386386  hHandle = SHLWAPI_11(hMap,
    387387                       arg1,
     
    394394
    395395/*****************************************************************************
    396  * Name      : 
     396 * Name      :
    397397 * Purpose   : Duplicate the handle to the shell shared segment
    398  * Parameters: 
    399  * Variables :
    400  * Result    : 
     398 * Parameters:
     399 * Variables :
     400 * Result    :
    401401 * Remark    : SHLWAPI.11 - wrong implementation, check again
    402402 * Status    : UNTESTED STUB
     
    413413{
    414414  dprintf(("not implemented, explorer.exe will trap now"));
    415  
     415
    416416  DWORD  dwMyPID = GetCurrentProcessId();
    417417  HANDLE hProcess;
     
    419419  HANDLE hTargetProcessHandle = dwProcessDest;
    420420  BOOL   fResult;
    421  
     421
    422422  // open desired process
    423423  if (dwMyPID == dwProcessDest)
     
    427427                            FALSE,
    428428                            dwProcessDest);
    429  
     429
    430430  // verify result
    431431  if (hProcess == NULL)
    432432    return 0;
    433  
     433
    434434  // duplicate handle
    435435  fResult = DuplicateHandle(hProcess,
     
    441441                            dwFlag | 0x02);
    442442  //CloseHandle()
    443  
     443
    444444  return fResult;
    445445}
     
    471471 * Name      : ???
    472472 * Purpose   : Unknown (used by explorer.exe)
    473  * Parameters: 
     473 * Parameters:
    474474 * Variables :
    475475 * Result    : Unknown
     
    609609 * Result    :
    610610 * Remark    : SHLWAPI.19
    611  * Status    : UNTESTED
     611 * Status    : COMPLETELY IMPLEMENTED ? UNTESTED
    612612 *
    613613 * Author    : Patrick Haller [Sun, 2000/06/09 04:47]
     
    690690/*****************************************************************************
    691691 * Name      : SHLWAPI_23
    692  * Purpose   : 
    693  * Parameters: 
     692 * Purpose   :
     693 * Parameters:
    694694 * Variables :
    695695 * Result    : returns strlen(str)
     
    706706{
    707707    char xguid[80];
    708    
     708
    709709    TRACE("(%s %p 0x%08x)stub\n", debugstr_guid(guid), str, cmax);
    710    
     710
    711711    if (WINE_StringFromCLSID(guid,xguid)) return 0;
    712712    if (strlen(xguid)>=cmax) return 0;
     
    735735/*****************************************************************************
    736736 * Name      : SHLWAPI_28
    737  * Purpose   : 
    738  * Parameters: 
    739  * Variables :
    740  * Result    : 
     737 * Purpose   :
     738 * Parameters:
     739 * Variables :
     740 * Result    :
    741741 * Remark    :
    742742 * Status    : UNTESTED STUB
     
    757757 * Name      : SHLWAPI_30
    758758 * Purpose   : Check for whitespace in ascii and unicode ?
    759  * Parameters: 
    760  * Variables :
    761  * Result    : 
    762  * Remark    :
    763  * Status    : UNTESTED
     759 * Parameters:
     760 * Variables :
     761 * Result    :
     762 * Remark    :
     763 * Status    : COMPLETELY IMPLEMENTED ? UNTESTED
    764764 *
    765765 * Author    : Patrick Haller [Sun, 2000/06/10 04:02]
     
    788788 * Result    : case-sensitive comparsion result between the two strings
    789789 * Remark    : SHLWAPI.158
    790  * Status    : UNTESTED
     790 * Status    : COMPLETELY IMPLEMENTED UNTESTED
    791791 *
    792792 * Author    : Patrick Haller [Sun, 2000/06/10 04:02]
     
    809809 * Result    : case-insensitive comparsion result between the two strings
    810810 * Remark    : SHLWAPI.158
    811  * Status    : UNTESTED
     811 * Status    : COMPLETELY IMPLEMENTED UNTESTED
    812812 *
    813813 * Author    : Patrick Haller [Sun, 2000/06/10 04:02]
     
    821821  WCHAR ch2;
    822822  int   res;
    823  
     823
    824824  for (;
    825        
     825
    826826       *lpStr1 != 0;
    827        
     827
    828828       lpStr1++,
    829829       lpStr2++)
     
    831831    ch1 = *lpStr1;
    832832    ch2 = *lpStr2;
    833    
     833
    834834    /* ignore case of characters */
    835835    if ( (ch1 >= 'A') && (ch1 <= 'Z')) ch1 += 0x20;
    836836    if ( (ch2 >= 'A') && (ch2 <= 'Z')) ch1 += 0x20;
    837    
     837
    838838    /* compare characters */
    839839    res = ch1 - ch2;
     
    841841      return res;
    842842  }
    843  
     843
    844844  /* OK, strings compared til end of string1 */
    845845  return 0;
     
    849849/*****************************************************************************
    850850 * Name      : DWORD SHLWAPI_160
    851  * Purpose   : 
    852  * Parameters: 
    853  * Variables :
    854  * Result    : 
     851 * Purpose   :
     852 * Parameters:
     853 * Variables :
     854 * Result    :
    855855 * Remark    : SHLWAPI.160
    856856 * Status    : UNTESTED STUB
     
    876876{
    877877  IUnknown *lpUnknown;
    878  
     878
    879879  if (lplpUnknown == NULL)
    880880    return 0;
    881  
     881
    882882  lpUnknown = *lplpUnknown;
    883883  if (lpUnknown == NULL)
    884884    return 0;
    885  
     885
    886886  *lplpUnknown = NULL; // kill object pointer
    887  
     887
    888888  // and still call the object's release method
    889889  return IUnknown_Release(lpUnknown);
     
    899899 * Result    : lpStr + 2 or NULL
    900900 * Remark    : SHLWAPI.170
    901  * Status    : UNTESTED
     901 * Status    : COMPLETELY IMPLEMENTED UNTESTED
    902902 *
    903903 * Author    : Patrick Haller [Sun, 2000/06/10 04:02]
     
    919919 * Name      : SHLWAPI_185
    920920 * Purpose   : some M$ nag screen ?
    921  * Parameters: 
    922  * Variables :
    923  * Result    : 
     921 * Parameters:
     922 * Variables :
     923 * Result    :
    924924 * Remark    : SHLWAPI.185
    925  * Status    : UNTESTED
     925 * Status    : COMPLETELY IMPLEMENTED UNTESTED
    926926 *
    927927 * Author    : Patrick Haller [Sun, 2000/06/10 04:02]
     
    938938  BOOL  fDontShow;
    939939  WCHAR szValueNameW[256];
    940  
     940
    941941  fDontShow = SHRegGetBoolUSValueA("Software\\Microsoft\\Windows\\CurrentVersion\\"
    942942                                   "Explorer\\DontShowMeThisDialogAgain",
     
    946946  if (fDontShow == FALSE)
    947947    return dwDefault;
    948  
     948
    949949  int iLength1 = lstrlenA(lpStr1)+1;
    950950  HLOCAL hLocal1 = LocalAlloc(LMEM_ZEROINIT,
     
    952952  if (hLocal1 == NULL)
    953953    return dwDefault;
    954  
     954
    955955  int iLength2 = lstrlenA(lpStr2)+1;
    956956  HLOCAL hLocal2 = LocalAlloc(LMEM_ZEROINIT,
     
    961961    return dwDefault;
    962962  }
    963  
     963
    964964#if 0
    965965  // convert all ascii values to Unicode
     
    967967  SHLWAPI_215(lpStr2, (LPWSTR)hLocal2, iLength2);
    968968  SHLWAPI_215(lpstrValueName,  szValueNameW, 256);
    969  
     969
    970970  // do something
    971971  dwDefault = SHLWAPI_191(arg0,
     
    975975              szValueNameW);
    976976#endif
    977  
     977
    978978  if (hLocal1)
    979979    LocalFree(hLocal1);
    980  
     980
    981981  if (hLocal2)
    982982    LocalFree(hLocal2);
    983  
     983
    984984  return dwDefault;
    985985}
     
    989989 * Name      : SHLWAPI_191
    990990 * Purpose   : display some M$ nag screen if enabled
    991  * Parameters: 
    992  * Variables :
    993  * Result    : 
     991 * Parameters:
     992 * Variables :
     993 * Result    :
    994994 * Remark    : SHLWAPI.191
    995  * Status    : UNTESTED
     995 * Status    : COMPLETELY IMPLEMENTED ? UNTESTED
    996996 *
    997997 * Author    : Patrick Haller [Sun, 2000/06/10 04:02]
     
    10131013  if (rc == FALSE)
    10141014    return dwDefault;
    1015  
     1015
    10161016  static HINSTANCE hShellInstance; // @@@PH where to put / initialize?
    1017  
     1017
    10181018#if 0
    10191019  struct
     
    10241024    DWORD s4;
    10251025  } sInit;
    1026  
     1026
    10271027  sInit.s1 = "software...";
    10281028  sInit.s2 = arg1;
    10291029  sInit.s3 = arg2;
    10301030  sInit.s4 = arg3;
    1031  
     1031
    10321032  return DialogBoxParamW(hShellInstance,
    10331033                         0x1200,          // some template
     
    10501050  HDC hdc;
    10511051  DWORD ret;
    1052  
     1052
    10531053  hdc = GetDC(0);
    10541054  ret = GetDeviceCaps(hdc, BITSPIXEL) * GetDeviceCaps(hdc, PLANES);
     
    10611061 * Name      : BOOL SHLWAPI_197
    10621062 * Purpose   : Set text background?
    1063  * Parameters: 
    1064  * Variables :
    1065  * Result    : 
     1063 * Parameters:
     1064 * Variables :
     1065 * Result    :
    10661066 * Remark    : SHLWAPI.197
    1067  * Status    : UNTESTED
     1067 * Status    : COMPLETELY IMPLEMENTED ? UNTESTED
    10681068 *
    10691069 * Author    : Patrick Haller [Sun, 2000/06/10 04:02]
     
    10771077  COLORREF crOld;
    10781078  BOOL     res;
    1079  
     1079
    10801080  crOld = SetBkColor(hdc, crColor);
    10811081  res = ExtTextOutA(hdc,
     
    10881088                    0);
    10891089  SetBkColor(hdc, crOld);
    1090  
     1090
    10911091  return res;
    10921092}
     
    11191119  strcpy( lpstrName,"shell.");
    11201120  WINE_StringFromCLSID(guid, lpstrName + strlen(lpstrName));
    1121  
     1121
    11221122  FIXME("(%s) stub\n", lpstrName);
    11231123  return CreateSemaphoreA(NULL,0, 0x7fffffff, lpstrName);
     
    11351135{
    11361136  LONG oldCount;
    1137  
     1137
    11381138  FIXME("(0x%08x) stub\n",handle);
    1139  
     1139
    11401140  ReleaseSemaphore( handle, 1, &oldCount);
    11411141  WaitForSingleObject( handle, 0 );
     
    11521152{
    11531153  WNDCLASSW wndClass;
    1154  
     1154
    11551155  if (GetClassInfoW(lpWndClass->hInstance,
    11561156                    (LPWSTR)lpWndClass->lpszClassName,
     
    11651165 * Name      : SHLWAPI_240
    11661166 * Purpose   : universal window procedure
    1167  * Parameters: 
    1168  * Variables :
    1169  * Result    : 
     1167 * Parameters:
     1168 * Variables :
     1169 * Result    :
    11701170 * Remark    : SHLWAPI.240
    1171  * Status    : UNTESTED
     1171 * Status    : COMPLETELY IMPLEMENTED ? UNTESTED
    11721172 *
    11731173 * Author    : Patrick Haller [Sun, 2000/06/10 04:02]
     
    12011201 * Name      : SHLWAPI_243
    12021202 * Purpose   : does something critical, even with performance counters
    1203  * Parameters: 
    1204  * Variables :
    1205  * Result    : 
     1203 * Parameters:
     1204 * Variables :
     1205 * Result    :
    12061206 * Remark    : SHLWAPI.243
    1207  * Status    : UNTESTED
     1207 * Status    : STUB UNTESTED
    12081208 *
    12091209 * Author    : Patrick Haller [Sun, 2000/06/10 04:02]
     
    12621262/*************************************************************************
    12631263*      SHLWAPI_276 [SHLWAPI]
     1264
    12641265* dynamically load SHELL32.DllGetVersion
    12651266*
     
    13141315 * Name      : SHLWAPI_364
    13151316 * Purpose   : call lstrcpynA
    1316  * Parameters: 
    1317  * Variables :
    1318  * Result    : 
     1317 * Parameters:
     1318 * Variables :
     1319 * Result    :
    13191320 * Remark    : SHLWAPI.364
    1320  * Status    : UNTESTED
    1321  *
    1322  * Author    : 
     1321 * Status    : COMPLETELY IMPLEMENTED ? UNTESTED
     1322 *
     1323 * Author    :
    13231324 *****************************************************************************/
    13241325
     
    13321333            lpStr1,
    13331334            nLength);
    1334  
     1335
    13351336  return 1;
    13361337}
     
    13401341 * Name      : DWORD SHLWAPI_376
    13411342 * Purpose   : Try to determine user interface language
    1342  * Parameters: 
    1343  * Variables :
    1344  * Result    : 
     1343 * Parameters:
     1344 * Variables :
     1345 * Result    :
    13451346 * Remark    : SHLWAPI.366
    1346  * Status    : UNTESTED
     1347 * Status    : PARTIALLY IMPLEMENTED UNTESTED
    13471348 *
    13481349 * Author    : Patrick Haller [Sun, 2000/06/10 04:02]
     
    13581359   * - etc.
    13591360   */
    1360  
     1361
    13611362  return 0x0409; // @@@PH maybe this is 'nuf for now.
    13621363}
     
    13741375  static BOOL flagSHLWAPI_377Initialized       = FALSE;
    13751376  static BOOL flagInternetExplorerCheckVersion = FALSE;
    1376  
     1377
    13771378  dprintf(("not (properly) implemented.\n"));
    1378  
     1379
    13791380  char szModuleName[260]; // MAXPATHLEN
    13801381  HMODULE hModLanguage;
    1381  
     1382
    13821383  // initialize this subsystem
    13831384  if (flagSHLWAPI_377Initialized == FALSE)
    13841385  {
    13851386    flagSHLWAPI_377Initialized = TRUE;
    1386    
     1387
    13871388    flagInternetExplorerCheckVersion =
    13881389    SHRegGetBoolUSValueA("Software\\Microsoft\\Internet Explorer\\International",
     
    13911392                         1);
    13921393  }
    1393  
     1394
    13941395  if (lpstrModule == NULL) // Garbage in - garbage out
    13951396    return 0;
    1396  
     1397
    13971398  if (0 == GetModuleFileNameA(hModule,
    13981399                              szModuleName,
     
    14101411  }
    14111412
    1412  
     1413
    14131414  return hModLanguage;
    14141415}
     
    14181419 * Name      : DWORD SHLWAPI_437
    14191420 * Purpose   : Determine product version and options
    1420  * Parameters: 
    1421  * Variables :
    1422  * Result    : 
     1421 * Parameters:
     1422 * Variables :
     1423 * Result    :
    14231424 * Remark    : SHLWAPI.437
    14241425 * Status    : UNTESTED
     
    14391440  static BOOL           flagIsProductDatacenter       = FALSE;
    14401441  static OSVERSIONINFOA osVersionInfo;
    1441  
     1442
    14421443  HKEY          hKeyOptions;
    14431444  DWORD         dwKeyType;
    14441445  char          szBuffer[260]; // MAX_PATH_LEN
    14451446  DWORD         dwDataLength;
    1446  
     1447
    14471448  dprintf(("not (properly) implemented.\n"));
    1448  
     1449
    14491450  if (flagProductOptionsInitialized == FALSE)
    14501451  {
    14511452    // set to TRUE regardless of subsequent errors
    14521453    flagProductOptionsInitialized = TRUE;
    1453    
     1454
    14541455    // initialize required structures
    14551456    osVersionInfo.dwOSVersionInfoSize = 0x9c;
     
    14591460      GetVersionExA(&osVersionInfo);
    14601461    }
    1461    
     1462
    14621463    LONG rc = RegOpenKeyExA(HKEY_LOCAL_MACHINE,
    14631464                           REG_PRODUCTOPTIONS,
     
    14791480      if (StrStrIA(szBuffer, REG_OPTIONS_DATACENTER) != 0)
    14801481        flagIsProductDatacenter = TRUE;
    1481      
     1482
    14821483      RegCloseKey(hKeyOptions);
    14831484    }
    14841485  }
    1485  
     1486
    14861487  // OK, now to the usual work ...
    14871488  switch (nFunction)
     
    14931494      else
    14941495        return 0;
    1495    
     1496
    14961497    // is platform NT
    14971498    case 1:
     
    15001501      else
    15011502        return 0;
    1502    
     1503
    15031504    // is  platform Windows 95/98/xx ?
    15041505    case 2:
     
    15091510      else
    15101511        return 0;
    1511    
     1512
    15121513    // is platform NT4 or better?
    15131514    case 3:
     
    15181519      else
    15191520        return 0;
    1520    
     1521
    15211522    // is platform Win2000 or better?
    15221523    case 4:
     
    15271528      else
    15281529        return 0;
    1529    
     1530
    15301531    // at least Windows 4.10 ?
    15311532    case 5:
     
    15381539          if (osVersionInfo.dwMinorVersion >= 10)
    15391540            return 1;
    1540    
     1541
    15411542      return 0;
    1542    
     1543
    15431544    // is platform Windows98 GA ?
    15441545    case 6:
     
    15501551      else
    15511552        return 0;
    1552    
     1553
    15531554    // is platform some specific CSD ?
    15541555    case 7:
     
    15591560      else
    15601561        return 0;
    1561    
     1562
    15621563    case 9:
    15631564      //@@@PH incorrect
     
    15681569      else
    15691570        return 0;
    1570  
     1571
    15711572    case 10:
    15721573      //@@@PH incorrect
     
    15751576      else
    15761577        return 0;
    1577    
     1578
    15781579    case 11:
    15791580      //@@@PH incorrect
     
    15821583      else
    15831584        return 0;
    1584          
     1585
    15851586    // @@@PH: Oops, wazzup there ?
    15861587    case 12:
    15871588      return GetSystemMetrics(4096);
    15881589  }
    1589  
     1590
    15901591  return 0;
    15911592}
     
    15941595/*****************************************************************************
    15951596 * Name      : SHIsLowMemoryMachine
    1596  * Purpose   : 
     1597 * Purpose   :
    15971598 * Parameters: BOOL fRetest - TRUE if testing shall be repeated
    15981599 *                          - FALSE if cached result is to be used
     
    16011602 *             1 - machine is memory-constrained
    16021603 * Remark    : SHLWAPI.584
    1603  * Status    : UNTESTED
     1604 * Status    : COMPLETELY IMPLEMENTED ? UNTESTED
    16041605 *
    16051606 * Author    : Patrick Haller [Mon, 2000/06/11 02:02]
     
    16121613  static int          flagIsLowMemoryMachine = -1;
    16131614         ULONG        ulMem;
    1614  
     1615
    16151616  // use cached result?
    16161617  if ( (fRetest == TRUE) ||
     
    16231624    else
    16241625      ulMem = 0x0800000; // ascii operation mode
    1625    
     1626
    16261627    // enough memory?
    16271628    if (memBuffer.dwTotalPhys <= ulMem)
     
    16301631      flagIsLowMemoryMachine = 0;
    16311632  }
    1632  
     1633
    16331634  return flagIsLowMemoryMachine;
    16341635}
  • trunk/src/shlwapi/pathcpp.cpp

    r3562 r3942  
    1 /* $Id: pathcpp.cpp,v 1.2 2000-05-19 12:10:04 sandervl Exp $ */
     1/* $Id: pathcpp.cpp,v 1.3 2000-08-02 20:18:23 bird Exp $ */
    22
    33/*
     
    5151 * Result    : unknown
    5252 * Remark    : SHLWAPI.PathSkipRootA
    53  * Status    : UNTESTED
     53 * Status    : COMPLETELY IMPLEMENTED ? UNTESTED
    5454 *
    5555 * Author    : Patrick Haller [Mon, 2000/01/31 23:02]
     
    8787 * Result    : unknown
    8888 * Remark    : SHLWAPI.PathSkipRootW
    89  * Status    : UNTESTED
     89 * Status    : STUB UNTESTED
    9090 *
    9191 * Author    : Patrick Haller [Mon, 2000/01/31 23:02]
  • trunk/src/shlwapi/reg.cpp

    r3688 r3942  
    1 /* $Id: reg.cpp,v 1.3 2000-06-12 11:35:14 phaller Exp $ */
     1/* $Id: reg.cpp,v 1.4 2000-08-02 20:18:23 bird Exp $ */
    22
    33/*
     
    4141/*****************************************************************************
    4242 * Name      : DWORD SHRegCreateUSKeyA
    43  * Purpose   : 
    44  * Parameters: 
    45  * Variables :
    46  * Result    : 
     43 * Purpose   :
     44 * Parameters:
     45 * Variables :
     46 * Result    :
    4747 * Remark    : SHLWAPI.594 SHLWAPI.SHRegCreateUSKeyA
    48  * Status    : UNTESTED
     48 * Status    : STUB UNTESTED
    4949 *
    5050 * Author    : Patrick Haller [Wed, 1999/12/29 23:02]
     
    6565/*****************************************************************************
    6666 * Name      : DWORD SHRegCreateUSKeyW
    67  * Purpose   : 
    68  * Parameters: 
    69  * Variables :
    70  * Result    : 
     67 * Purpose   :
     68 * Parameters:
     69 * Variables :
     70 * Result    :
    7171 * Remark    : SHLWAPI.595 SHLWAPI.SHRegCreateUSKeyW
    72  * Status    : UNTESTED
     72 * Status    : STUB UNTESTED
    7373 *
    7474 * Author    : Patrick Haller [Wed, 1999/12/29 23:02]
     
    8383{
    8484  char szBuffer[256];
    85  
     85
    8686  // convert unicode to ascii
    8787  if (0 == WideCharToMultiByte(0,
     
    9494                               0))
    9595    return GetLastError();
    96  
     96
    9797  return SHRegCreateUSKeyA(szBuffer,
    9898                         arg1,
     
    175175 * Result    : unknown
    176176 * Remark    : SHLWAPI.SHRegGetBoolUSValueA
    177  * Status    : UNTESTED
     177 * Status    : COMPLETELY IMPLEMENTED ? UNTESTED
    178178 *
    179179 * Author    : Patrick Haller [Wed, 1999/12/29 23:02]
     
    189189  DWORD dwLength = sizeof(szBuffer);
    190190  LONG  rc;
    191  
     191
    192192  dprintf(("subkey=%s, value=%s\n",
    193193           pszSubKey,
    194194           pszValue));
    195  
     195
    196196  rc = SHRegGetUSValueA(pszSubKey,
    197197                        pszValue,
     
    204204  if (rc != ERROR_SUCCESS)
    205205    return rc;
    206  
     206
    207207  if (lstrcmpiA("YES",
    208208                szBuffer) == 0)
     
    220220                szBuffer) == 0)
    221221    return 0;
    222  
    223  
     222
     223
    224224  return ERROR_SUCCESS;  /* return success */
    225225}
     
    233233 * Result    : unknown
    234234 * Remark    : SHLWAPI.SHRegGetBoolUSValueW
    235  * Status    : UNTESTED
     235 * Status    : STUB UNTESTED
    236236 *
    237237 * Author    : Patrick Haller [Wed, 1999/12/29 23:02]
     
    255255/*****************************************************************************
    256256 * Name      : DWORD SHRegSetUSValueA
    257  * Purpose   : 
    258  * Parameters: 
    259  * Variables :
    260  * Result    : 
     257 * Purpose   :
     258 * Parameters:
     259 * Variables :
     260 * Result    :
    261261 * Remark    : SHLWAPI.SHRegSetUSValueA SHLWAPI.615
    262  * Status    : UNTESTED
     262 * Status    : STUB UNTESTED
    263263 *
    264264 * Author    : Patrick Haller [Wed, 1999/12/29 23:02]
     
    274274{
    275275  LONG rc;
    276  
     276
    277277#if 0
    278278  rc = SHRegCreateUSKeyA(hKey,
     
    291291  }
    292292#endif
    293  
     293
    294294  return rc;
    295295}
     
    300300/*****************************************************************************
    301301 * Name      : DWORD SHRegSetUSValueW
    302  * Purpose   : 
    303  * Parameters: 
    304  * Variables :
    305  * Result    : 
     302 * Purpose   :
     303 * Parameters:
     304 * Variables :
     305 * Result    :
    306306 * Remark    : SHLWAPI.SHRegSetUSValueW SHLWAPI.616
    307  * Status    : UNTESTED
     307 * Status    : STUB UNTESTED
    308308 *
    309309 * Author    : Patrick Haller [Wed, 1999/12/29 23:02]
     
    319319{
    320320  LONG rc;
    321  
     321
    322322#if 0
    323323  rc = SHRegCreateUSKeyW(hKey,
     
    336336  }
    337337#endif
    338  
     338
    339339  return rc;
    340340}
  • trunk/src/shlwapi/string.cpp

    r3700 r3942  
    1  /* $Id: string.cpp,v 1.5 2000-06-13 18:14:21 phaller Exp $ */
     1 /* $Id: string.cpp,v 1.6 2000-08-02 20:18:24 bird Exp $ */
    22
    33/*
     
    7171/*****************************************************************************
    7272 * Name      : ChrCmpIA
    73  * Purpose   : 
    74  * Parameters: 
    75  * Variables :
    76  * Result    : 
    77  * Remark    : 
    78  * Status    : UNTESTED
     73 * Purpose   :
     74 * Parameters:
     75 * Variables :
     76 * Result    :
     77 * Remark    :
     78 * Status    : PARTIALLY IMPLEMENTED UNTESTED
    7979 *
    8080 * Author    : Patrick Haller [Wed, 1999/12/29 09:00]
     
    8686{
    8787  // Note: IsDBCSLeadByte ignored !
    88  
     88
    8989  if ( (ch1 >= 'A') && (ch1 <= 'Z') ) ch1 |= 0x20;
    9090  if ( (ch2 >= 'A') && (ch2 <= 'Z') ) ch2 |= 0x20;
    91  
     91
    9292  return ch1 - ch2;
    9393}
     
    375375 *             the string if successful, or NULL otherwise.
    376376 * Remark    : SHELL32.
    377  * Status    : UNTESTED UNKNOWN
     377 * Status    : COMPLETELY IMPLEMENTED UNTESTED UNKNOWN
    378378 *
    379379 * Author    : Patrick Haller [Wed, 1999/12/29 09:00]
     
    408408 *             the string if successful, or NULL otherwise.
    409409 * Remark    : SHELL32.
    410  * Status    : UNTESTED UNKNOWN
     410 * Status    : COMPLETELY IMPLEMENTED UNTESTED UNKNOWN
    411411 *
    412412 * Author    : Patrick Haller [Wed, 1999/12/29 09:00]
     
    441441 *             substring if successful, or NULL otherwise.
    442442 * Remark    : SHELL32.
    443  * Status    : UNTESTED UNKNOWN
     443 * Status    : COMPLETELY IMPLEMENTED UNTESTED UNKNOWN
    444444 *
    445445 * Author    : Patrick Haller [Wed, 1999/12/29 09:00]
     
    487487 *             substring if successful, or NULL otherwise.
    488488 * Remark    : SHELL32.
    489  * Status    : UNTESTED UNKNOWN
     489 * Status    : COMPLETELY IMPLEMENTED UNTESTED UNKNOWN
    490490 *
    491491 * Author    : Patrick Haller [Wed, 1999/12/29 09:00]
     
    578578        }
    579579        lstrcpynA (pszBuf, buf, cchBuf);
    580         return pszBuf; 
     580        return pszBuf;
    581581}
    582582
     
    600600        }
    601601        lstrcpynAtoW (pszBuf, buf, cchBuf);
    602         return pszBuf; 
     602        return pszBuf;
    603603}
    604604
     
    607607 * Name      : StrCpyA
    608608 * Purpose   : copy a string
    609  * Parameters: 
    610  * Variables :
    611  * Result    : 
     609 * Parameters:
     610 * Variables :
     611 * Result    :
    612612 * Remark    : not exported ?
    613  * Status    : UNTESTED 
    614  *
    615  * Author    : 
     613 * Status    : UNTESTED
     614 *
     615 * Author    :
    616616 *****************************************************************************/
    617617
     
    628628 * Name      : StrCpyW
    629629 * Purpose   : copy a wide-character string
    630  * Parameters: 
    631  * Variables :
    632  * Result    : 
     630 * Parameters:
     631 * Variables :
     632 * Result    :
    633633 * Remark    : SHLWAPI.642
    634  * Status    : UNTESTED
    635  *
    636  * Author    : 
     634 * Status    : COMPLETELY IMPLEMENTED UNTESTED
     635 *
     636 * Author    :
    637637 *****************************************************************************/
    638638
     
    649649 * Name      : StrDupA
    650650 * Purpose   : duplicate a string on the local heap
    651  * Parameters: 
    652  * Variables :
    653  * Result    : 
     651 * Parameters:
     652 * Variables :
     653 * Result    :
    654654 * Remark    : SHLWAPI.644
    655  * Status    : UNTESTED
    656  *
    657  * Author    : 
     655 * Status    : COMPLETELY IMPLEMENTED UNTESTED
     656 *
     657 * Author    :
    658658 *****************************************************************************/
    659659
     
    667667    StrCpyA((LPSTR)hLocal,
    668668            lpStr);
    669  
     669
    670670  return (LPSTR)hLocal;
    671671}
     
    675675 * Name      : StrDupW
    676676 * Purpose   : duplicate a wide-characters string on the local heap
    677  * Parameters: 
    678  * Variables :
    679  * Result    : 
     677 * Parameters:
     678 * Variables :
     679 * Result    :
    680680 * Remark    : SHLWAPI.645
    681  * Status    : UNTESTED
    682  *
    683  * Author    : 
     681 * Status    : COMPLETELY IMPLEMENTED UNTESTED
     682 *
     683 * Author    :
    684684 *****************************************************************************/
    685685
     
    693693    StrCpyW((LPWSTR)hLocal,
    694694            lpStr);
    695  
     695
    696696  return (LPWSTR)hLocal;
    697697}
  • trunk/src/shlwapi/url.cpp

    r3849 r3942  
    1 /* $Id: url.cpp,v 1.4 2000-07-18 18:00:01 bird Exp $ */
     1/* $Id: url.cpp,v 1.5 2000-08-02 20:18:24 bird Exp $ */
    22
    33/*
     
    139139 *             second flag guarantees that, if no valid scheme can be
    140140 *             determined, the function will apply the default scheme to the URL.
    141  * Status    : UNTESTED
     141 * Status    : PARTIALLY IMPLEMENTED UNTESTED
    142142 *
    143143 * Author    : Patrick Haller [Thu, 2000/04/20 19:46]
     
    161161
    162162
     163/**
     164 * @status      partially
     165 */
    163166ODINFUNCTION4(HRESULT, UrlApplySchemeW,
    164167              LPCWSTR, pszIn,
     
    254257
    255258
     259/**
     260 * @status      stub
     261 */
    256262ODINFUNCTION4(HRESULT, UrlCanonicalizeW,
    257263              LPCWSTR, pszUrl,
     
    321327 *             Other errors A standard OLE error value is returned.
    322328 * Remark    : SHLWAPI.
    323  * Status    : UNTESTED
     329 * Status    : STUB UNTESTED
    324330 *
    325331 * Author    : Patrick Haller [Tue, 2000/04/25 02:02]
     
    339345
    340346
     347/**
     348 * @status      stub
     349 */
    341350ODINFUNCTION5(HRESULT, UrlCombineW,
    342351              LPCWSTR, pszBase,
     
    370379 *             with UrlCanonicalize. Then, compare the canonicalized URLs with
    371380 *             UrlCompare.
    372  * Status    : UNTESTED
     381 * Status    : PARTIALLY IMPLEMENTED UNTESTED
    373382 *
    374383 * Author    : Patrick Haller [Tue, 2000/04/25 02:02]
     
    386395}
    387396
     397/**
     398 * @status      stub
     399 */
    388400ODINFUNCTION3(int,     UrlCompareW,
    389401              LPCWSTR, pszURL1,
     
    410422 *             returns S_OK if successful or a standard OLE error value if not.
    411423 * Remark    : SHLWAPI.
    412  * Status    : UNTESTED
     424 * Status    : STUB UNTESTED
    413425 *
    414426 * Author    : Patrick Haller [Tue, 2000/04/25 02:02]
     
    427439
    428440
     441/**
     442 * @status      stub
     443 */
    429444ODINFUNCTION4(HRESULT,UrlCreateFromPathW,
    430445              LPCWSTR,pszPath,
     
    490505 *             during transport across the internet. This functions converts
    491506 *             unsafe characters into their equivalent "%xy" escape sequences.
    492  * Status    : UNTESTED
     507 * Status    : STUB UNTESTED
    493508 *
    494509 * Author    : Patrick Haller [Tue, 2000/04/25 02:02]
     
    507522
    508523
     524/**
     525 * @status      stub
     526 */
    509527ODINFUNCTION4(HRESULT, UrlEscapeW,
    510528              LPCWSTR, pszURL,
     
    531549 *             character. If a file URL has a query string, the returned
    532550 *             string includes the query string.
    533  * Status    : UNTESTED
     551 * Status    : STUB UNTESTED
    534552 *
    535553 * Author    : Patrick Haller [Tue, 2000/04/25 02:02]
     
    545563
    546564
     565/**
     566 * @status      stub
     567 */
    547568ODINFUNCTION1(LPCWSTR, UrlGetLocationW,
    548569              LPCWSTR, pszURL)
     
    590611 *             the buffer must be able to contain, including the terminating
    591612 *             NULL character. Otherwise, an OLE error value is returned.
    592  * Status    : UNTESTED
     613 * Status    : STUB UNTESTED
    593614 *
    594615 * Author    : Patrick Haller [Tue, 2000/04/25 02:02]
     
    608629
    609630
     631/**
     632 * @status      stub
     633 */
    610634ODINFUNCTION5(HRESULT, UrlGetPartW,
    611635              LPCWSTR, pszIn,
     
    638662 *             pbHash = (LPBYTE)&dwHashedValue, where dwHashedValue is a
    639663 *             DWORD buffer.
    640  * Status    : UNTESTED
     664 * Status    : STUB UNTESTED
    641665 *
    642666 * Author    : Patrick Haller [Tue, 2000/04/25 02:02]
     
    654678
    655679
     680/**
     681 * @status      stub
     682 */
    656683ODINFUNCTION3(HRESULT,UrlHashW,
    657684              LPCWSTR,pszURL,
     
    685712 *             or FALSE otherwise.
    686713 * Remark    : SHLWAPI.
    687  * Status    : UNTESTED
     714 * Status    : STUB UNTESTED
    688715 *
    689716 * Author    : Patrick Haller [Tue, 2000/04/25 02:02]
     
    700727
    701728
     729/**
     730 * @status      stub
     731 */
    702732ODINFUNCTION2(BOOL,    UrlIsW,
    703733              LPCWSTR, pszUrl,
     
    718748 *             A No History URL is a URL that browsers typically do not
    719749 *             include in their navigation history.
    720  * Status    : UNTESTED
     750 * Status    : STUB UNTESTED
    721751 *
    722752 * Author    : Patrick Haller [Tue, 2000/04/25 02:02]
     
    730760
    731761
     762/**
     763 * @status      stub
     764 */
    732765ODINFUNCTION1(BOOL,   UrlIsNoHistoryW,
    733766              LPCWSTR,pszURL)
     
    749782 *             URL. Opaque URLs cannot be separated into the standard
    750783 *             URL heirarchy.
    751  * Status    : UNTESTED
     784 * Status    : STUB UNTESTED
    752785 *
    753786 * Author    : Patrick Haller [Tue, 2000/04/25 02:02]
     
    761794
    762795
     796/**
     797 * @status      stub
     798 */
    763799ODINFUNCTION1(BOOL,   UrlIsOpaqueW,
    764800              LPCWSTR,pszURL)
     
    814850 * Remark    : SHLWAPI.UrlUnEscape
    815851 *             An escape sequence has the form "%xy".
    816  * Status    : UNTESTED
     852 * Status    : STUB UNTESTED
    817853 *
    818854 * Author    : Patrick Haller [Tue, 2000/04/25 02:02]
     
    831867
    832868
     869/**
     870 * @status      stub
     871 */
    833872ODINFUNCTION4(HRESULT,UrlUnescapeW,
    834873              LPWSTR, pszURL,
  • trunk/src/user32/user32.cpp

    r3662 r3942  
    1 /* $Id: user32.cpp,v 1.83 2000-06-07 14:51:28 sandervl Exp $ */
     1/* $Id: user32.cpp,v 1.84 2000-08-02 20:18:24 bird Exp $ */
    22
    33/*
     
    12091209 *             see GetOEMCP.
    12101210 * Remark    :
    1211  * Status    : UNTESTED
     1211 * Status    : COMPLETELY IMPLEMENTED UNTESTED
    12121212 *
    12131213 * Author    : Patrick Haller [Thu, 1998/02/26 11:55]
  • trunk/src/user32/window.cpp

    r3766 r3942  
    1 /* $Id: window.cpp,v 1.71 2000-06-28 18:11:19 sandervl Exp $ */
     1/* $Id: window.cpp,v 1.72 2000-08-02 20:18:25 bird Exp $ */
    22/*
    33 * Win32 window apis for OS/2
     
    367367    if(hwndNewParent == HWND_DESKTOP) {
    368368        hwndNewParent = GetDesktopWindow();
    369     } 
     369    }
    370370    else {
    371371        parent = Win32BaseWindow::GetWindowFromHandle(hwndNewParent);
     
    10811081        /* If the atom doesn't exist, then no class */
    10821082        /* with this name exists either. */
    1083         if (!(atom = GlobalFindAtomA( lpszClass ))) 
     1083        if (!(atom = GlobalFindAtomA( lpszClass )))
    10841084        {
    10851085            SetLastError(ERROR_CANNOT_FIND_WND_CLASS);
     
    12091209/***********************************************************************
    12101210 *           DeferWindowPos   (USER32.128)
    1211  * 
     1211 *
    12121212 * TODO: SvL: Does this need to be thread safe?
    12131213 *
     
    13561356 *             If the function fails, the return value is zero
    13571357 * Remark    :
    1358  * Status    : FULLY IMPLEMENTED AND TESTED
     1358 * Status    : COMPLETELY IMPLEMENTED AND TESTED
    13591359 *
    13601360 * Author    : Rene Pronk [Sun, 1999/08/08 23:30]
Note: See TracChangeset for help on using the changeset viewer.