Commit Graph

258 Commits

Author SHA1 Message Date
Mariusz Pluciński 1c7240ba4e shell32: Add IKnownFolder::SetPath() implementation. 2011-06-24 12:11:57 -05:00
Mariusz Pluciński 5e90301bc2 shell32: Add implementation of IKnownFolder::GetCategory. 2011-06-24 12:11:53 -05:00
Mariusz Pluciński c9b70e6650 shell32: Add IKnownFolder::GetPath support. 2011-06-22 16:21:11 +02:00
Mariusz Pluciński 4fd24bc20e shell32: Fix typo. 2011-06-22 16:20:57 +02:00
Mariusz Pluciński ed29ff8c3b shell32: Add support of registry-registered folders to IKnownFolderManager::GetFolder. 2011-06-22 16:20:47 +02:00
Mariusz Pluciński c5bf1977f2 shell32: Add IKnownFolderManager::UnregisterFolder implementation. 2011-06-22 16:20:26 +02:00
Mariusz Pluciński 7a3b53ab68 shell32: Add IKnownFolderManager::RegisterFolder implementation. 2011-06-22 16:20:19 +02:00
Alexandre Julliard 2afe205ebd shell32: Convert dll registration to the IRegistrar mechanism. 2011-01-19 20:36:57 +01:00
Hans Leidekker e7e1ec62c7 shell32: Add stub implementations of IKnownFolder and IKnownFolderManager. 2010-09-23 12:06:18 +02:00
Alexandre Julliard c15b376a15 shell32: Map the x86 version of the folder to the appropriate path depending on Wow64 mode. 2010-09-21 14:11:27 +02:00
Hans Leidekker 9f4d6c6edc shell32: Support FOLDERID_LocalAppDataLow. 2010-09-18 13:06:10 +02:00
Hans Leidekker 859a1d0d44 shell32: Implement SHGetFolderPathEx. 2010-09-14 12:51:42 -05:00
Hans Leidekker 678c677690 shell32: Implement SHGetKnownFolderPath. 2010-09-14 12:51:27 -05:00
Hans Leidekker 02e38f3066 shell32: Add support for CSIDL_PROGRAM_FILESX86 and CSIDL_PROGRAM_FILES_COMMONX86. 2010-09-13 10:59:27 -05:00
Louis Lenders dd1a47093e shell32: Add stubbed SHGetKnownFolderPath. 2010-09-02 18:05:23 +02:00
Huw Davies a0126ec1ca shell32: Mask out the CSIDL_ flags. 2010-03-05 15:21:27 +01:00
Alexandre Julliard 49be8db6b1 shell32: Put the temp directory inside the user profile directory. 2010-01-28 15:30:13 +01:00
Akihiro Sagawa c6a947d2ec shell32: Use IDS_DESKTOPDIRECTORY for CSIDL_COMMON_DESKTOPDIRECTORY. 2009-08-10 13:10:30 +02:00
Austin English c68a20fb80 shell32: Adjust shell folders to more closely match Windows. 2009-07-20 12:21:16 +02:00
Alexandre Julliard 43e90c8ff7 shell32: Add support for the CSIDL_SYSTEMX86 folder. 2009-07-07 11:47:58 +02:00
Alexandre Julliard 853d993830 shell32: Default to the more modern location for the user profile directory. 2009-02-17 13:50:07 +01:00
Alexandre Julliard 1abff5afef shell32: Make some functions static. 2008-12-03 12:09:38 +01:00
Dmitry Timoshkov 6b4762086a shell32: Make some data static const. 2008-11-12 11:49:12 +01:00
Francois Gouget eb16f43bdf Add some API documentation stubs to make winapi_check happy. 2008-07-28 11:34:45 +02:00
Kirill K. Smirnov de3afabf08 shell32: Avoid usage of undefined xdg_results variable, since XDG_UserDirLookup() always corrupts it. 2008-07-21 14:35:56 +02:00
Alexandre Julliard 7c25ab8a07 shell32: Set the correct default for shell folders relative to the windows directory. 2008-05-06 15:50:10 +02:00
Alexandre Julliard 93e775a8b7 shell32: Avoid traces that use size_t. 2008-04-25 17:01:50 +02:00
Stefan Leichter a629a4199e shell32: Implement SHGetFolderPathAndSubDirA/W. 2008-04-21 14:21:37 +02:00
Ge van Geldorp 35d7f70612 shell32: Support getting the shell folder path for users other than the current user and the default user. 2008-03-27 11:29:42 +01:00
Lei Zhang b8cbd8bd87 shell32: Use xdg well known directories for desktop folder symbolic link. 2008-03-12 12:20:01 +01:00
Lei Zhang 78f5db2b51 shell32: Use xdg well known directories for my_xxx folder symbolic links. 2008-03-12 12:19:21 +01:00
Lei Zhang 5637c779d2 shell32: Remove unused variable. 2008-03-05 11:21:24 +01:00
James Hawkins 26ad93947b janitorial: Remove links to any microsoft site. 2008-03-01 12:04:09 +01:00
Lei Zhang 4dda7c6371 shell32: Don't crash if $HOME is not set. 2007-11-13 13:33:26 +01:00
Lei Zhang 70c75dcd0d shell32: rename My Video to My Videos. 2007-11-13 13:33:21 +01:00
Alexandre Julliard 0faf3f8a1a Avoid non-portable Unix mode bits macros. 2007-07-31 13:18:03 +02:00
Francois Gouget aab5e5856e Don't put single quotes around '%s' when using the debugstr_*() functions. 2007-01-18 12:55:50 +01:00
Andrew Talbot fdd9a4e2a7 shell32: Cast-qual warnings fix. 2006-11-15 11:32:38 +01:00
Hans Leidekker 89e1d29482 shell32: Win64 printf format warning fixes. 2006-10-09 12:45:02 +02:00
Andrew Talbot 30806fc00c shell32: Cast-qual warnings fix. 2006-10-02 11:55:26 +02:00
Stefan Huehner 998e256c82 Fix some -Wstrict-prototype warnings () -> (void). 2006-08-21 12:06:26 +02:00
Vitaliy Margolen a3aa7cf033 shell32: Add Fonts to user's shell folders list. 2006-06-02 10:52:33 +02:00
Jonathan Ernst 360a3f9142 Update the address of the Free Software Foundation. 2006-05-23 14:11:13 +02:00
Michael Jung d7326ca7e5 shell32: Return a GUID pidl for CSIDL_PERSONAL in SHGetFolderLocation.
The tests (shellpath.c/testPersonal) already show that it can be either 
PT_FOLDER or PT_GUID. It's PT_GUID on WinXP.
2006-02-14 11:35:12 +01:00
Michael Jung 77474f8a14 shell32: Create $HOME targeted symbolic links during SHELL_RegisterFolders. 2006-02-02 13:28:29 +01:00
Michael Jung 7a893cbe7a shell32: Get rid of the magic MyDocuments->$HOME mapping code. 2006-02-02 13:27:42 +01:00
Aric Stewart 265c8a5d73 shell32: Update shellpaths My Pictures, My Video, My Music to be under
$HOME, with a number of fallbacks.
2006-01-19 12:43:14 +01:00
Vitaliy Margolen c99880d955 shell32: Create Local AppData for user profile.
Move history and internet tmp files to Local Settings.
2006-01-04 14:48:59 +01:00
Stefan Leichter a4af4b95b5 shell32: Fix return value of PathProcessCommand. 2005-12-16 12:41:11 +01:00
Markus Gömmel ab86f8cde3 Added CSIDL_MYVIDEO|MYPICTURES|MYMUSIC to _SHRegisterUserShellFolders. 2005-11-30 18:27:06 +01:00
Francois Gouget 6d442aeb34 Assorted spelling fixes. 2005-11-23 20:14:43 +01:00
Markus Amsler 671738d5c1 Improve c2man Documented-Total count. Changes:
- add missing description
- add missing returns section
- complete missing A/W pairs
- reformate comments, to match c2man requirements
2005-11-10 11:15:22 +00:00
Richard Cohen e1f752f704 Don't hardcode "windows" directory.
Make "My Pictures" etc. point to $HOME.
2005-10-10 10:29:53 +00:00
Jonathan Ernst 3eaad00da9 First creation of registry entries missed AppData. 2005-10-07 15:01:32 +00:00
Juan Lang 8630b8ab6e Use wine_get_dos_file_name rather than relying on GetFullPathNameW
hack.
2005-10-04 15:50:35 +00:00
Kevin Koltzau 95a173a52b Fix warnings in 64bit. 2005-09-02 11:32:17 +00:00
Juan Lang 4571d0187f Set default for "My Documents" to $HOME, and "Desktop" to ~/Desktop. 2005-06-02 19:39:24 +00:00
Peter Berg Larsen 6e3bcb5a54 Replace strncpy with memcpy or lstrcpyn. 2005-04-18 10:30:55 +00:00
Juan Lang 2786964da2 Correct registering shell folders (values in Shell Folders key weren't
getting written).
2005-03-16 11:37:46 +00:00
Mike McCormack 2c8367a3de Use lstrcmpiA in preference to strcasecmp. 2005-03-07 11:05:03 +00:00
Marcus Meissner 30ed10004b Output some more informations.
Mark one global variable static.
2005-02-14 11:07:55 +00:00
Francois Gouget 4d801b66e6 Assorted spelling fixes. 2005-02-10 19:19:35 +00:00
Aric Stewart 990ea44e98 Implementation of PathCleanupSpec. 2004-11-04 04:54:08 +00:00
Fabrice Ménard 7ce764669e Check the type of error returned by SHCreateDirectoryExW. 2004-11-02 05:22:39 +00:00
Rolf Kalbermatter e50a27de04 Use SHCreateDirectoryEx function instead of doing explicit recursive
directory creation.
2004-10-28 20:58:51 +00:00
Juan Lang c639af64be _SHExpandEnvironmentStrings should return input string if no % found
to expand, and should call ExpandEnvironmentStringsW if it doesn't
handle an environment variable directly.  Based on a patch from Dan
Kegel.
2004-10-27 21:17:30 +00:00
Juan Lang 4a6a898e2d Avoid copying invalid data on error. 2004-10-25 21:53:18 +00:00
Alexandre Julliard 2d2e2e1e55 Avoid copying invalid data on error. 2004-10-22 20:26:23 +00:00
Juan Lang 9cbc42bbae - the correct registry location to override is User Shell Folders, not
Shell Folders
- if User Shell Folders doesn't exist in HKCU, HKLM should be tried
- SHGetSpecialFolderPath should call SHGetFolderPath, not vice-versa
- the default values should be localizable
- some of the parameter checking and returned LPITEMIDLISTs were a bit
  off
2004-10-21 19:59:46 +00:00
Alexandre Julliard ed19983d65 Fixed typo in ProgramsW.
Changed the case of windows and system directories to match the
directories we create by default.
2004-10-04 20:49:51 +00:00
Francois Gouget bc371a83ec Fix CSIDL_COMMON_{STARTMENU,PROGRAMS,DESKTOPDIRECTORY} so they all use
paths in 'All Users' like CSIDL_COMMON_STARTUP.
The CSIDL_COMMON_PROGRAMS fix solves many menu creation problems.
2004-09-21 20:05:54 +00:00
Huw Davies 0af47c8080 Unicodify a load of strings. 2004-08-20 19:57:50 +00:00
Vincent Béron 6fae1ce6fd Don't hardcode c:\windows paths in msi.dll. 2004-08-18 23:41:10 +00:00
Aric Stewart 3d9fb73909 Make sure that the size of the buffer passed to RegSetValueExW is in
bytes not WCHARs.
2004-05-28 19:28:41 +00:00
Juan Lang f3301c6ba9 - comment fixes
- improved error checking and conformance with Windows
- remove some spurious error messages
2004-04-07 19:45:48 +00:00
Juan Lang 452ddeb3e2 Use symbolic constants for magic numbers in SHGetFolderPathW, avoid
doing MultiByteToWideChar on values that don't need it,
2004-04-05 23:13:20 +00:00
Kevin Koltzau 33a6215dc3 Added support for CSIDL_RESOURCES path. 2004-04-01 02:01:33 +00:00
Kevin Koltzau 6eb4b2f694 Fill unused gap to fix lookups past CSIDL_CONNECTIONS. 2004-02-24 00:58:20 +00:00
Patrik Stridvall ede82e3055 Fixed some issues found by winapi_check. 2004-02-20 20:19:23 +00:00
Martin Fuchs 703676f533 - define additional shell paths for CSIDL_... constants
- remove some superfluous commas
2004-01-26 20:09:10 +00:00
Rolf Kalbermatter 7af8b13f11 Implement PathGetShortPathA/W and change its prototype to match the
documentation on MSDN.
2004-01-21 23:51:57 +00:00
Martin Fuchs e6ab6bdcd7 Corrected definition of PathYetAnotherMakeUniqueName(). 2004-01-16 23:04:41 +00:00
Filip Navara c4dd56bc25 - Moved actual code from SHGetSpecialFolderPathA to SHGetFolderPathW,
adjusted and unicodified it.
- Rewrote SHGetFolderPathA to call SHGetFolderPathW.
- Rewrote SHGetSpecialFolderPath[AW] to call SHGetFolderPath[AW].
2004-01-16 04:46:36 +00:00
Francois Gouget cd1a13b00e If using the default values, also set dwType to REG_SZ as our default
strings don't need to be expanded (found by Valgrind).
2003-11-20 04:21:12 +00:00
Rolf Kalbermatter 76f13deb26 Use INVALID_FILE_ATTRIBUTES to test for failure of
GetFileAttributesA/W and not -1 or 0xFFFFFFFF.
2003-10-16 19:12:49 +00:00
Mike McCormack 73756ce844 Change a MESSAGE about creating a directory to a TRACE. 2003-10-02 04:27:21 +00:00
Rolf Kalbermatter 82f46ab1c3 Added IsLFNDriveA/W/AW exports and two more stubs. 2003-09-30 00:19:44 +00:00
Rolf Kalbermatter 7ffcb0ea98 Change parameter in SHGetSpecialFolderPathA/W to int as documented in
MSDN.
Add some more definitions and move SHGetDesktopFolder() from
wine/obj_shellfolder.h to here.
2003-09-08 18:47:10 +00:00
Alexandre Julliard e37c6e18d0 Fixed header dependencies to be fully compatible with the Windows
headers (with help from Dimitrie O. Paun).
2003-09-05 23:08:26 +00:00
Alexandre Julliard 864ca06832 winnls.h must not include winbase.h. 2003-08-20 18:22:31 +00:00
Paul Rupe ae379a44fd Add CSIDL_PROFILES. Improved logging for non-existent CSIDL values. 2003-03-17 04:42:45 +00:00
Johan Dahlin 991fd85d2f Make shell32 compile with -DSTRICT. 2002-11-21 23:56:42 +00:00
Jeff Smith a3763b9bc8 PathIsExe: corrected and added executable types. 2002-09-30 19:01:20 +00:00
Michael Stefaniuc 1ad2087e38 Convert HKEY to a void*. 2002-09-24 03:09:12 +00:00
Patrik Stridvall 9aab47ed24 MSVC compatibility fixes. 2002-08-28 23:42:34 +00:00
Gregg Mattinson 2e38a17021 Void functions can't return a value, even if it is the return value
from another void function.
2002-07-03 01:20:07 +00:00
Vincent Béron 9a62491660 Removed trailing whitespace. 2002-05-31 23:06:46 +00:00
Jon Griffiths c90aa7b665 Update shell xxxAW wrapper prototypes for fixed SHLWAPI functions. 2002-03-20 01:33:39 +00:00
Alexandre Julliard 0799c1a780 Added LGPL standard comment, and copyright notices where necessary.
Global replacement of debugtools.h by wine/debug.h.
2002-03-09 23:29:33 +00:00
Eric Kohl e4d4f2d59f Added location of local application data. 2002-01-29 18:19:59 +00:00
Jon Griffiths 603f20fc0e Add exclusion defs & remaining funcs, remove internal types &
obj_base.h (sync with win version), fixed a number of function
prototypes.
2001-12-11 00:30:17 +00:00
Chris Green 151fdd7c82 Added names of the "missing" paths for SHGetSpecialFolderPathA. 2001-10-10 02:48:29 +00:00
Alexandre Julliard 3954117ce4 Moved undocshell.h to dlls/shell32. Removed shell16.h. 2001-08-16 18:49:56 +00:00
Uwe Bonnes 97ac961214 PathGetExtensionAW has three arguments. 2001-08-15 23:20:21 +00:00
Alexandre Julliard fa7ae72060 Fixed loop termination check in PathIsExeW. 2001-08-08 23:24:15 +00:00
Patrik Stridvall 044855c6ec Documentation fixes. 2001-07-11 18:56:41 +00:00
Patrik Stridvall 01d5e5b071 Documentation fixes. 2001-07-02 19:59:40 +00:00
Patrik Stridvall 8b216b3d02 Documentation ordinal fixes. 2001-06-19 18:20:47 +00:00
Marcus Meissner 657d9f9ca8 The shell special folder path creation did not mkdir the last
component of the path if it did not end with \.
2001-05-18 20:58:57 +00:00
Eric Kohl 76df432757 SHGetSpecialFolderPathA must be able to create a full path if it
doesn't exist.
2001-03-19 19:14:00 +00:00
Andreas Mohr c9cf70d448 Some more cleanups. 2001-01-26 20:40:50 +00:00
Huw D M Davies 62519abbaf Moved all the documented shlwapi functions out of undocshell.h into
shlwapi.h.  Nothing but files in dlls/shell32 will now include
undocshell.h.
2001-01-07 21:50:52 +00:00
Patrik Stridvall 00b86a9b04 Fixed some issues found by winapi_check. 2000-12-16 21:55:05 +00:00
Andreas Mohr 4dc1892a06 Move all values of SHGetSpecialFolderPathA into an array, add some
other registry locations and improve the number of supported CSIDLs.
2000-12-13 01:49:04 +00:00
Patrik Stridvall 2b3aa616e8 Added/modified documentation for function arguments. 2000-12-01 23:58:28 +00:00
Alexandre Julliard ef57e18f99 Removed some unnecessary includes. 2000-12-01 21:32:55 +00:00
Alexandre Julliard 24a62ab9b0 Got rid of the Wine internal lstrcpy* functions and of winestring.h. 2000-11-28 22:40:56 +00:00
Martin Pilka ea31358c0f "StartMenu" --> "Start Menu", "Startup" --> "StartUp". 2000-10-26 19:35:38 +00:00
Alexandre Julliard 072dfb57e3 Removed inclusion of wine/winestring.h from winbase.h and added it to
the C files that need it.
2000-09-25 23:30:56 +00:00
Alexandre Julliard d586dc99be Replaced VERSION_* calls by exported API equivalents. 2000-08-14 14:35:01 +00:00
Alexandre Julliard 6430d93aa6 Moved shlwapi routines from shell32.dll to shlwapi.dll. 2000-07-26 17:51:32 +00:00
Patrik Stridvall e03fe5a420 Fixed some issues found by winapi_check. 2000-07-15 21:32:26 +00:00
Juergen Schmied 1dbf403db4 - many new Path* stubs
- many bugfixes
- class functions expanding environments variables now
2000-06-24 12:56:08 +00:00
Patrik Stridvall b167d4b21c Fixed some issues found by winapi_check. 2000-06-23 15:47:36 +00:00
Juergen Schmied 13d74c5f0a - new dll shfolder.dll
- small fixes
2000-06-13 03:45:52 +00:00
Alexandre Julliard 5ea22474bb Use the Unicode string functions from wine/unicode.h instead of the
crtdll ones.
2000-06-13 01:10:29 +00:00
Patrik Stridvall a831f2a1e7 Fixed some warnings. 2000-06-11 20:03:17 +00:00
Dmitry Timoshkov 0072c88111 Implement NTDLL.towupper and NTDLL.towlower using already existing
case conversion tables. Replace all direct calls to towupper/towlower
either to NTDLL for core or to CRTDLL if latter already used in the
non core dll.
2000-06-08 20:05:18 +00:00
Uwe Bonnes 4c5af80c6a PathFindNextComponent: return pointer to NULL and not NULL. 2000-06-07 03:14:40 +00:00
Juergen Schmied 0d18aad17a - New (some stubs): SHGetFolderLocation, PathAddExtension,
PathIsUNCServer, PathIsUNCServerShare, PathMakePretty,
  SHCreateShellPalette, SHOpenRegStream, SHOpenRegStream2
- Many string functions implemented
- Some stubs for exports by ordinal
2000-06-01 23:25:44 +00:00
Juergen Schmied 51c74d82a9 Complete cleanup, bugfixes.
New: PathStripPath, PathMakeUniqueName, PathStripToRoot,
PathGetShortPath, PathParseIconLocation, PathRemoveExtension,
PathRemoveArgs, PathAppend, PathBuildRoot, PathCanonicalize,
PathFindNextComponent, PathRemoveFileSpec.
2000-04-28 20:23:46 +00:00
Patrik Stridvall 54fe8380a1 Fixed some issues reported by winapi_check. 2000-04-06 20:21:16 +00:00
Patrik Stridvall 2d6457c11a Added/fixed some documentation reported by winapi_check. 2000-03-28 20:22:59 +00:00
Patrik Stridvall fcfacb95a7 Added/fixed some documentation reported by winapi_check. 2000-03-24 20:46:04 +00:00
Juergen Schmied 2ff02949c6 Stub PathIsDirectory. 2000-02-26 18:46:03 +00:00
Alexandre Julliard 3712c46511 Stephane Lussier
Implemented PathIsURLA and modified ShellExecute16 to be able to load URL
2000-02-20 18:43:44 +00:00
Juergen Schmied 6d17c61096 Small fixes. 2000-01-04 00:33:56 +00:00
Francois Gouget e73b8b84ba Wrapped some strings in a debugstr_* call.
Replaced some calls to debugstr_{a,w} by debugstr_{a,w}n.
Removed redundant 'L's for Unicode strings.
Tried to harmonize the traces a little bit.
1999-12-26 00:40:37 +00:00
Juergen Schmied afe53ed99d - made IShellFolder a aggregable object
- SHCoCreateInstance can create CSIDL_FSFolder now
- browsing into folders on the desktop implemented
- corrected returnvalue of Ico_ExtractIconEx
- fixed SHGetDataFromIDList to return data of simple pidls
1999-11-23 22:31:18 +00:00
Jim Aston 2f2c817a55 Added a few stubs. 1999-10-23 18:54:21 +00:00
Niclas Karlsson e4f61b6359 Fixed pattern matching in PathMatchSpecA/W 1999-09-10 13:57:13 +00:00
Juergen Schmied eac255cd31 More use of rc files for strings and menus, fixes. First internal
icons.
1999-08-15 14:31:36 +00:00
Alexandre Julliard 89f079bfd1 Replaced a few calls to lstr* functions by their CRTDLL or libc
equivalent.
1999-08-08 18:54:47 +00:00
Juergen Schmied 8ddda03d4a Implemented SHGetSpecialFolderPathA. 1999-07-25 12:23:15 +00:00
Juergen Schmied c4804be139 Small fixes. 1999-07-10 11:56:34 +00:00
Alexandre Julliard a099a555c3 Converted to the new debug interface, using script written by Patrik
Stridvall.
1999-06-12 15:45:58 +00:00
Juergen Schmied fe2e7c5f3f Prevent crash in stub of SheGetDirW. 1999-05-17 15:35:42 +00:00
Patrik Stridvall b4b9fae671 New debug scheme with explicit debug channels declaration. 1999-04-19 14:56:29 +00:00
Juergen Schmied dd153f1727 - mostly cleanup after the renaming
- implemented SHILCreateFromPath
- small changed to SHGetFileInfo
1999-03-13 17:10:36 +00:00
Alexandre Julliard a396029270 Large-scale renaming of all Win32 functions and types to use the
standard Windows names.
1999-02-26 11:11:13 +00:00