Ignore:
Timestamp:
Mar 26, 2000, 6:34:57 PM (25 years ago)
Author:
cbratschi
Message:

merged with Corel WINE 20000324

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/shell32/shellpath.cpp

    r3193 r3243  
    1 /* $Id: shellpath.cpp,v 1.6 2000-03-22 16:55:51 cbratschi Exp $ */
     1/* $Id: shellpath.cpp,v 1.7 2000-03-26 16:34:52 cbratschi Exp $ */
    22
    33/*
     
    1212 * Many of this functions are in SHLWAPI.DLL also
    1313 *
     14 * Corel WINE 20000324 level (without CRTDLL_* calls)
    1415 */
    1516
     
    4748ODINDEBUGCHANNEL(SHELL32-SHELLPATH)
    4849
     50/* Supported protocols for PathIsURL */
     51LPSTR SupportedProtocol[] = {"http","https","ftp","gopher","file","mailto",""};
    4952
    5053/*************************************************************************
     
    5659   if (*(x+1)==':' && *(x+2)=='\\')         /* "X:\" */
    5760     return 1;
    58    if (*x=='\\')                         /* "\" */
    59      return 0;
     61   if (*x=='\\' || *x=='/')                         /* "\" */
     62     return 1;
    6063   if (x[0]=='\\' && x[1]=='\\')            /* UNC "\\<xx>\" */
    6164   { int foundbackslash = 0;
     
    7578   if (*(x+1)==':' && *(x+2)=='\\')         /* "X:\" */
    7679     return 1;
    77    if (*x == (WCHAR) '\\')                  /* "\" */
    78      return 0;
     80   if (*x == (WCHAR) '\\' || *x == (WCHAR) '/')                  /* "\" */
     81     return 1;
    7982   if (x[0]==(WCHAR)'\\' && x[1]==(WCHAR)'\\') /* UNC "\\<xx>\" */
    8083   { int foundbackslash = 0;
     
    817820ODINFUNCTION1(HRESULT, PathGetDriveNumberW,
    818821              LPWSTR, u)
    819 {
     822{  FIXME("%s stub\n",debugstr_a(u));
    820823   return 0;
    821824}
     
    965968   FIXME("%p(%s) %p 0x%04lx 0x%04lx stub\n",
    966969   lpCommand, lpCommand, v, w,x );
     970   lstrcpyA(v,lpCommand);
    967971   return 0;
    968972}
     
    10851089       hRootKey = HKEY_CURRENT_USER;
    10861090       strcpy(szValueName, "Programs");
    1087        strcpy(szDefaultPath, "StatrMenu\\Programs");
     1091       strcpy(szDefaultPath, "StartMenu\\Programs");
    10881092       break;
    10891093
     
    12391243}
    12401244
     1245/*
     1246   shlwapi functions that have found their way in because most of
     1247   shlwapi is unimplemented and doesn't have a home.
     1248
     1249   FIXME: move to a more appropriate file( when one exists )
     1250*/
     1251
     1252 /* SHGetValue: Gets a value from the registry */
     1253
     1254
     1255BOOL WINAPI PathIsURLA(LPCSTR lpstrPath)
     1256{
     1257  LPSTR lpstrRes;
     1258  char lpstrFileType[10] = "";
     1259  int iSize;
     1260  int i = 0;
     1261  /* sanity check */
     1262  if(!lpstrPath)
     1263    return FALSE;
     1264
     1265  /* get protocol        */
     1266  /* protocol://location */
     1267  if(!(lpstrRes = strchr(lpstrPath,':')))
     1268  {
     1269    return FALSE;
     1270  }
     1271  iSize = lpstrRes - lpstrPath;
     1272  if(iSize > sizeof(lpstrFileType))
     1273    return FALSE;
     1274
     1275  strncpy(lpstrFileType,lpstrPath,iSize);
     1276
     1277  while(strlen(SupportedProtocol[i]))
     1278  {
     1279    if(!stricmp(lpstrFileType,SupportedProtocol[i++]))
     1280      return TRUE;
     1281  }
     1282
     1283  return FALSE;
     1284}
     1285
     1286DWORD WINAPI SHGetValueA(
     1287    HKEY     hkey,
     1288    LPCSTR   pSubKey,
     1289    LPCSTR   pValue,
     1290    LPDWORD  pwType,
     1291    LPVOID   pvData,
     1292    LPDWORD  pbData
     1293    )
     1294{
     1295    FIXME("(%p),stub!\n", pSubKey);
     1296
     1297        return ERROR_SUCCESS;  /* return success */
     1298}
     1299
     1300DWORD WINAPI SHGetValueW(
     1301    HKEY     hkey,
     1302    LPCWSTR  pSubKey,
     1303    LPCWSTR  pValue,
     1304    LPDWORD  pwType,
     1305    LPVOID   pvData,
     1306    LPDWORD  pbData
     1307    )
     1308{
     1309    FIXME("(%p),stub!\n", pSubKey);
     1310
     1311        return ERROR_SUCCESS;  /* return success */
     1312}
     1313
     1314/* gets a user-specific registry value. */
     1315
     1316LONG WINAPI SHRegGetUSValueA(
     1317    LPCSTR   pSubKey,
     1318    LPCSTR   pValue,
     1319    LPDWORD  pwType,
     1320    LPVOID   pvData,
     1321    LPDWORD  pbData,
     1322    BOOL     fIgnoreHKCU,
     1323    LPVOID   pDefaultData,
     1324    DWORD    wDefaultDataSize
     1325    )
     1326{
     1327    FIXME("(%p),stub!\n", pSubKey);
     1328
     1329        return ERROR_SUCCESS;  /* return success */
     1330}
     1331
     1332LONG WINAPI SHRegGetUSValueW(
     1333    LPCWSTR  pSubKey,
     1334    LPCWSTR  pValue,
     1335    LPDWORD  pwType,
     1336    LPVOID   pvData,
     1337    LPDWORD  pbData,
     1338    BOOL     flagIgnoreHKCU,
     1339    LPVOID   pDefaultData,
     1340    DWORD    wDefaultDataSize
     1341    )
     1342{
     1343    FIXME("(%p),stub!\n", pSubKey);
     1344
     1345        return ERROR_SUCCESS;  /* return success */
     1346}
     1347
Note: See TracChangeset for help on using the changeset viewer.