| Allegro CL version 10.1 Unrevised from 10.0 to 10.1. 10.0 version |
Arguments: directory-identifier &key create
This function finds a special Windows directory such as the My Documents folder or the Start Menu folder. This is useful if an application needs to find files in one of these special folders or to place files there.
Two values are returned. The first value is the directory pathname if
it was found, or nil
otherwise.
The second value indicates the status of the requested directory. If
the directory was found, then the second value is nil
. If the directory specifier is valid on this
version of Windows but the directory itself does not exist, then the
second value will be :not-found
. If the directory
specifier is not valid on this version of Windows, then the second
value will be :invalid
. If some other error code is
returned then the second value will be :unknown
.
directory-identifier should be one of the keywords listed below, or the SHGetFolderPath integer constant to which it corresponds.
If create is true and the requested directory is valid on this version of Windows but does not exist, then Windows will be asked to create the directory. It may not actually create it, however. If it does create the directory, its path will be returned.
Here are the possible keyword values for the directory-identifier argument. For their meanings, look up the Windows API function SHGetFolderPath at http://msdn.com and refer to the similarly named "CSIDL" constants.
Copyright (c) 1998-2022, Franz Inc. Lafayette, CA., USA. All rights reserved.
This page was not revised from the 10.0 page.
Created 2019.8.20.
| Allegro CL version 10.1 Unrevised from 10.0 to 10.1. 10.0 version |