Welcome to the new DelphiDabbler Code Library Documentation.

This is a new site that's currently running on alpha code. There are going to be bugs. If you discover any, please report them on the site's issues page (GitHub account required). Thanks.

Warning: Many URLs are going to change. Refer to the README file to discover which library project's documentation has been completed.

FolderID property

Project: Shell Folders Unit.

Unit: PJShellFolders.

Class: TPJSpecialFolderInfo

Applies to: ~>2.0

property FolderID: Integer;


Setting FolderID to an appropriate CSIDL_ value gets information about a special folder. When the property is set the information about the folder is stored in the component’s run time read only properties.

The default value of FolderID is CSIDL_DESKTOP - the desktop.

If FolderID is set to an unknown value an exception will be raised. Use the IsValidSpecialFolderId function to check a folder ID for validity.