Sign in Join
FPDoc Onlineexperiment

WinDirs unit

Get names of special directories under windows.

This unit contains only one function: GetWindowsSpecialDir. It is a simple pascal wrapper around the shfolder.dll library, and is available under Windows only.

Procedures and functions

ConvertCSIDLtoFOLDERIDfunction
ConvertFOLDERIDtoCSIDLfunction
GetWindowsSpecialDirfunctionGet the location of a special directory.
GetWindowsSpecialDirUnicodefunction
GetWindowsSystemDirectoryfunction
GetWindowsSystemDirectoryUnicodefunction

Constants

CSIDL_ADMINTOOLSconstantID for the personal "Start Menu\Programs\Administrative tools" folder (In the user's personal folder).
CSIDL_APPDATAconstantID for the roaming "Application Data" folder (in the user's personal folder).
CSIDL_CDBURN_AREAconstantID for the personal "Local Settings\Application Data\Microsoft\CD Burning" folder (Under "All users" folder).
CSIDL_COMMON_ADMINTOOLSconstantID for the common "Start Menu\Programs\Administrative tools" folder (Under "All users" folder).
CSIDL_COMMON_APPDATAconstantID for the common "Application Data" folder (Under "All users" folder).
CSIDL_COMMON_DESKTOPDIRECTORYconstantID for the public "Desktop" folder (Under "All users" folder).
CSIDL_COMMON_DOCUMENTSconstantID for the common "Documents" folder (Under "All users" folder).
CSIDL_COMMON_FAVORITESconstantID for the public "Favorites" folder (Under "All users" folder).
CSIDL_COMMON_MUSICconstantID for the common "Documents\My Music" folder (Under "All users" folder).
CSIDL_COMMON_PICTURESconstantID for the common "Documents\My Pictures" folder (Under "All users" folder).
CSIDL_COMMON_PROGRAMSconstantID for the public "Programs" folder (Under "All users" Start menu folder).
CSIDL_COMMON_STARTMENUconstantID for the public "Start Menu" folder (Under "All users").
CSIDL_COMMON_STARTUPconstantID for the public "Startup" folder (Under "All users\Start menu\Programs" folder).
CSIDL_COMMON_TEMPLATESconstantID for the common "Templates" folder (Under "All users" folder).
CSIDL_COMMON_VIDEOconstantID for the common "Documents\My Video" folder (Under "All users" folder).
CSIDL_COOKIESconstantID for the "Cookies" folder (in the user's personal folder).
CSIDL_DESKTOPDIRECTORYconstantID for the "Desktop" folder (in the user's personal folder).
CSIDL_FAVORITESconstantID for the "Favourites" folder (in the user's personal folder).
CSIDL_FLAG_CREATEconstantFlag to specify if the requested folder must be created if it didn't exist yet.
CSIDL_FONTSconstant
CSIDL_HISTORYconstantID for the "History" folder (in the user's personal folder).
CSIDL_INTERNET_CACHEconstantID for the "Temporary Internet Files" folder (in the user's personal folder).
CSIDL_LOCAL_APPDATAconstantID for the local "Application Data" folder (in the user's personal folder).
CSIDL_MYMUSICconstantID for the "My Music" folder (in the user's personal folder).
CSIDL_MYPICTURESconstantID for the "My Pictures" folder (in the user's personal folder).
CSIDL_MYVIDEOconstantID for the "My Videos" folder (in the user's personal folder).
CSIDL_NETHOODconstantID for the "Nethood" folder (in the user's personal folder).
CSIDL_PERSONALconstantID for the "My Documents" folder (in the user's personal folder).
CSIDL_PRINTHOODconstantID for the "Printhood" folder (in the user's personal folder).
CSIDL_PROFILEconstantID for the user's personal folder.
CSIDL_PROFILESconstantID for the parent folder for the user's folders.
CSIDL_PROGRAM_FILESconstantID for the "Program Files" folder (alias for CSIDL_PROGRAMS).
CSIDL_PROGRAM_FILES_COMMONconstantID for the Common folder under the "Program Files" folder.
CSIDL_PROGRAMSconstantID for the "Program files" folder.
CSIDL_RECENTconstantID for the "Recent" folder (in the user's personal folder).
CSIDL_SENDTOconstantID for the "Send to" folder (in the user's personal folder).
CSIDL_STARTMENUconstantID for the "Start menu" folder (in the user's personal folder).
CSIDL_STARTUPconstantID for the "Startup" menu folder (in the user's personal folder).
CSIDL_SYSTEMconstantID for the Windows System32 dir.
CSIDL_TEMPLATESconstantID for the "Templates" folder (in the user's personal folder).
CSIDL_WINDOWSconstantID for the Windows installation dir.
FOLDERID_AccountPicturesconstant
FOLDERID_AddNewProgramsconstant
FOLDERID_AdminToolsconstant
FOLDERID_AllAppModsconstant
FOLDERID_AppCapturesconstant
FOLDERID_AppDataDesktopconstant
FOLDERID_AppDataDocumentsconstant
FOLDERID_AppDataFavoritesconstant
FOLDERID_AppDataProgramDataconstant
FOLDERID_ApplicationShortcutsconstant
FOLDERID_AppsFolderconstant
FOLDERID_AppUpdatesconstant
FOLDERID_CameraRollconstant
FOLDERID_CameraRollLibraryconstant
FOLDERID_CDBurningconstant
FOLDERID_ChangeRemoveProgramsconstant
FOLDERID_CommonAdminToolsconstant
FOLDERID_CommonOEMLinksconstant
FOLDERID_CommonProgramsconstant
FOLDERID_CommonStartMenuconstant
FOLDERID_CommonStartMenuPlacesconstant
FOLDERID_CommonStartupconstant
FOLDERID_CommonTemplatesconstant
FOLDERID_ComputerFolderconstant
FOLDERID_ConflictFolderconstant
FOLDERID_ConnectionsFolderconstant
FOLDERID_Contactsconstant
FOLDERID_ControlPanelFolderconstant
FOLDERID_Cookiesconstant
FOLDERID_CurrentAppModsconstant
FOLDERID_Desktopconstant
FOLDERID_DevelopmentFilesconstant
FOLDERID_Deviceconstant
FOLDERID_DeviceMetadataStoreconstant
FOLDERID_Documentsconstant
FOLDERID_DocumentsLibraryconstant
FOLDERID_Downloadsconstant
FOLDERID_Favoritesconstant
FOLDERID_Fontsconstant
FOLDERID_Gamesconstant
FOLDERID_GameTasksconstant
FOLDERID_Historyconstant
FOLDERID_HomeGroupconstant
FOLDERID_HomeGroupCurrentUserconstant
FOLDERID_ImplicitAppShortcutsconstant
FOLDERID_InternetCacheconstant
FOLDERID_InternetFolderconstant
FOLDERID_Librariesconstant
FOLDERID_Linksconstant
FOLDERID_LocalAppDataconstant
FOLDERID_LocalAppDataLowconstant
FOLDERID_LocalDocumentsconstant
FOLDERID_LocalDownloadsconstant
FOLDERID_LocalizedResourcesDirconstant
FOLDERID_LocalMusicconstant
FOLDERID_LocalPicturesconstant
FOLDERID_LocalVideosconstant
FOLDERID_Musicconstant
FOLDERID_MusicLibraryconstant
FOLDERID_NetHoodconstant
FOLDERID_NetworkFolderconstant
FOLDERID_Objects3Dconstant
FOLDERID_OneDriveconstant
FOLDERID_OriginalImagesconstant
FOLDERID_PhotoAlbumsconstant
FOLDERID_Picturesconstant
FOLDERID_PicturesLibraryconstant
FOLDERID_Playlistsconstant
FOLDERID_PrintersFolderconstant
FOLDERID_PrintHoodconstant
FOLDERID_Profileconstant
FOLDERID_ProgramDataconstant
FOLDERID_ProgramFilesconstant
FOLDERID_ProgramFilesCommonconstant
FOLDERID_ProgramFilesCommonX64constant
FOLDERID_ProgramFilesCommonX86constant
FOLDERID_ProgramFilesX64constant
FOLDERID_ProgramFilesX86constant
FOLDERID_Programsconstant
FOLDERID_Publicconstant
FOLDERID_PublicDesktopconstant
FOLDERID_PublicDocumentsconstant
FOLDERID_PublicDownloadsconstant
FOLDERID_PublicGameTasksconstant
FOLDERID_PublicLibrariesconstant
FOLDERID_PublicMusicconstant
FOLDERID_PublicPicturesconstant
FOLDERID_PublicRingtonesconstant
FOLDERID_PublicUserTilesconstant
FOLDERID_PublicVideosconstant
FOLDERID_QuickLaunchconstant
FOLDERID_Recentconstant
FOLDERID_RecordedCallsconstant
FOLDERID_RecordedTVLibraryconstant
FOLDERID_RecycleBinFolderconstant
FOLDERID_ResourceDirconstant
FOLDERID_RetailDemoconstant
FOLDERID_Ringtonesconstant
FOLDERID_RoamedTileImagesconstant
FOLDERID_RoamingAppDataconstant
FOLDERID_RoamingTilesconstant
FOLDERID_SampleMusicconstant
FOLDERID_SamplePicturesconstant
FOLDERID_SamplePlaylistsconstant
FOLDERID_SampleVideosconstant
FOLDERID_SavedGamesconstant
FOLDERID_SavedPicturesconstant
FOLDERID_SavedPicturesLibraryconstant
FOLDERID_SavedSearchesconstant
FOLDERID_Screenshotsconstant
FOLDERID_SEARCH_CSCconstant
FOLDERID_SEARCH_MAPIconstant
FOLDERID_SearchHistoryconstant
FOLDERID_SearchHomeconstant
FOLDERID_SearchTemplatesconstant
FOLDERID_SendToconstant
FOLDERID_SidebarDefaultPartsconstant
FOLDERID_SidebarPartsconstant
FOLDERID_SkyDriveconstant
FOLDERID_SkyDriveCameraRollconstant
FOLDERID_SkyDriveDocumentsconstant
FOLDERID_SkyDriveMusicconstant
FOLDERID_SkyDrivePicturesconstant
FOLDERID_StartMenuconstant
FOLDERID_StartMenuAllProgramsconstant
FOLDERID_Startupconstant
FOLDERID_SyncManagerFolderconstant
FOLDERID_SyncResultsFolderconstant
FOLDERID_SyncSetupFolderconstant
FOLDERID_Systemconstant
FOLDERID_SystemX86constant
FOLDERID_Templatesconstant
FOLDERID_UserPinnedconstant
FOLDERID_UserProfilesconstant
FOLDERID_UserProgramFilesconstant
FOLDERID_UserProgramFilesCommonconstant
FOLDERID_UsersFilesconstant
FOLDERID_UsersLibrariesconstant
FOLDERID_Videosconstant
FOLDERID_VideosLibraryconstant
FOLDERID_Windowsconstant
KF_FLAG_CREATEconstant
KF_FLAG_DEFAULTconstant

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.