Changeset 4121 for trunk/src/shell32/shellpath.c
- Timestamp:
- Aug 30, 2000, 3:54:57 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/shell32/shellpath.c
r4088 r4121 1 /* $Id: shellpath.c,v 1.1 2000-08-24 12:01:42 sandervl Exp $ */ 2 1 /* $Id: shellpath.c,v 1.2 2000-08-30 13:51:02 sandervl Exp $ */ 3 2 /* 4 * Win32 SHELL32 for OS/25 *6 * Copyright 1997 Marcus Meissner7 * Copyright 1999 Patrick Haller (haller@zebra.fh-weingarten.de)8 * Project Odin Software License can be found in LICENSE.TXT9 *10 3 * Path Functions 11 *12 * NOTE: SHGetSpecialFolderPathA: StartMenu changed in 'Start Menu'13 * Odin changes in #ifdef __WIN32OS2__ statements!14 4 * 15 5 * Many of this functions are in SHLWAPI.DLL also 16 6 * 17 * Corel WINE 20000324 level (without CRTDLL_* calls) 18 */ 19 20 21 /***************************************************************************** 22 * Includes * 23 *****************************************************************************/ 24 7 */ 8 #ifdef __WIN32OS2__ 9 #define ICOM_CINTERFACE 1 25 10 #include <odin.h> 26 #include <odinwrap.h> 27 #include <os2sel.h> 28 11 #endif 29 12 #include <string.h> 30 13 #include <ctype.h> 31 #include <wctype.h>32 #define HAVE_WCTYPE_H33 #include <odin.h>34 35 #define ICOM_CINTERFACE 136 #define CINTERFACE 137 38 14 #include "debugtools.h" 39 15 #include "winnls.h" 40 #include "winversion.h"41 16 #include "winreg.h" 42 #include "crtdll.h"43 17 44 18 #include "shlobj.h" 45 19 #include "shell32_main.h" 46 #include <shlwapi.h> 47 #include <wine/undocshell.h> 48 49 #include <heapstring.h> 50 #include <misc.h> 51 52 53 ODINDEBUGCHANNEL(SHELL32-SHELLPATH) 54 20 #include "windef.h" 21 #include "options.h" 22 #include "wine/undocshell.h" 23 #include "wine/unicode.h" 24 #include "shlwapi.h" 25 26 DEFAULT_DEBUG_CHANNEL(shell); 55 27 56 28 #define isSlash(x) ((x)=='\\' || (x)=='/') … … 509 481 return TRUE; 510 482 } 511 483 #ifdef __WIN32OS2__ 512 484 /************************************************************************* 513 485 * PathYetAnotherMakeUniqueNameA [SHELL32.75] … … 537 509 return PathYetAnotherMakeUniqueNameA(lpszBuffer, lpszPathName, lpszShortName,lpszLongName); 538 510 } 539 511 #endif 540 512 541 513 /* … … 554 526 555 527 /************************************************************************* 556 * PathCleanupSpecA [SHELL32.171]557 */558 DWORD WINAPI PathCleanupSpecA(LPSTR x, LPSTR y)559 {560 FIXME("(%p %s, %p %s) stub\n",x,debugstr_a(x),y,debugstr_a(y));561 return TRUE;562 }563 564 /*************************************************************************565 * PathCleanupSpecA [SHELL32]566 */567 DWORD WINAPI PathCleanupSpecW(LPWSTR x, LPWSTR y)568 {569 FIXME("(%p %s, %p %s) stub\n",x,debugstr_w(x),y,debugstr_w(y));570 return TRUE;571 }572 573 /*************************************************************************574 528 * PathCleanupSpecAW [SHELL32] 575 529 */ 576 530 DWORD WINAPI PathCleanupSpecAW (LPVOID x, LPVOID y) 577 531 { 578 if (VERSION_OsIsUnicode()) 579 return PathCleanupSpecW(x,y); 580 return PathCleanupSpecA(x,y); 532 FIXME("(%p, %p) stub\n",x,y); 533 return TRUE; 581 534 } 582 535 … … 674 627 FIXME("(%s, %p, 0x%04lx, 0x%04lx) stub\n", 675 628 debugstr_w(lpszPath), lpszBuff, dwBuffSize, dwFlags); 676 lstrcpyW(lpszBuff, lpszPath);629 strcpyW(lpszBuff, lpszPath); 677 630 return 0; 678 631 } … … 705 658 } 706 659 660 707 661 /************************************************************************* 708 662 * SHGetSpecialFolderPathA [SHELL32.175] … … 804 758 hRootKey = HKEY_CURRENT_USER; 805 759 strcpy(szValueName, "Programs"); 806 strcpy(szDefaultPath, "Start 760 strcpy(szDefaultPath, "StartMenu\\Programs"); 807 761 break; 808 762 … … 827 781 case CSIDL_STARTMENU: 828 782 hRootKey = HKEY_CURRENT_USER; 829 #ifdef __WIN32OS2__830 strcpy(szValueName, "Start Menu");831 strcpy(szDefaultPath, "Start Menu");832 #else833 783 strcpy(szValueName, "StartMenu"); 834 784 strcpy(szDefaultPath, "StartMenu"); 835 #endif836 785 break; 837 786 838 787 case CSIDL_COMMON_STARTMENU: 839 788 hRootKey = HKEY_LOCAL_MACHINE; 840 strcpy(szValueName, "Common StartMenu"); //TODO: Start Menu? 841 #ifdef __WIN32OS2__ 789 strcpy(szValueName, "Common StartMenu"); 842 790 strcpy(szDefaultPath, "StartMenu"); 843 #else844 strcpy(szDefaultPath, "Start Menu");845 #endif846 791 break; 847 792
Note:
See TracChangeset
for help on using the changeset viewer.