FolderID property

Project: Shell Folders Unit.

Unit: PJShellFolders.

Class: TPJSpecialFolderInfo

Applies to: ~>2.0

property FolderID: Integer;

Description

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.