Changeset 3243 for trunk/src/shell32/shellpath.cpp
- Timestamp:
- Mar 26, 2000, 6:34:57 PM (25 years ago)
- 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:51cbratschi Exp $ */1 /* $Id: shellpath.cpp,v 1.7 2000-03-26 16:34:52 cbratschi Exp $ */ 2 2 3 3 /* … … 12 12 * Many of this functions are in SHLWAPI.DLL also 13 13 * 14 * Corel WINE 20000324 level (without CRTDLL_* calls) 14 15 */ 15 16 … … 47 48 ODINDEBUGCHANNEL(SHELL32-SHELLPATH) 48 49 50 /* Supported protocols for PathIsURL */ 51 LPSTR SupportedProtocol[] = {"http","https","ftp","gopher","file","mailto",""}; 49 52 50 53 /************************************************************************* … … 56 59 if (*(x+1)==':' && *(x+2)=='\\') /* "X:\" */ 57 60 return 1; 58 if (*x=='\\' ) /* "\" */59 return 0;61 if (*x=='\\' || *x=='/') /* "\" */ 62 return 1; 60 63 if (x[0]=='\\' && x[1]=='\\') /* UNC "\\<xx>\" */ 61 64 { int foundbackslash = 0; … … 75 78 if (*(x+1)==':' && *(x+2)=='\\') /* "X:\" */ 76 79 return 1; 77 if (*x == (WCHAR) '\\' ) /* "\" */78 return 0;80 if (*x == (WCHAR) '\\' || *x == (WCHAR) '/') /* "\" */ 81 return 1; 79 82 if (x[0]==(WCHAR)'\\' && x[1]==(WCHAR)'\\') /* UNC "\\<xx>\" */ 80 83 { int foundbackslash = 0; … … 817 820 ODINFUNCTION1(HRESULT, PathGetDriveNumberW, 818 821 LPWSTR, u) 819 { 822 { FIXME("%s stub\n",debugstr_a(u)); 820 823 return 0; 821 824 } … … 965 968 FIXME("%p(%s) %p 0x%04lx 0x%04lx stub\n", 966 969 lpCommand, lpCommand, v, w,x ); 970 lstrcpyA(v,lpCommand); 967 971 return 0; 968 972 } … … 1085 1089 hRootKey = HKEY_CURRENT_USER; 1086 1090 strcpy(szValueName, "Programs"); 1087 strcpy(szDefaultPath, "Sta trMenu\\Programs");1091 strcpy(szDefaultPath, "StartMenu\\Programs"); 1088 1092 break; 1089 1093 … … 1239 1243 } 1240 1244 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 1255 BOOL 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 1286 DWORD 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 1300 DWORD 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 1316 LONG 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 1332 LONG 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.