ShellSpecialFolderConstants enumeration
Applies to: desktop apps only
Specifies unique, system-independent values that identify special folders. These folders are frequently used by applications but which may not have the same name or location on any given system. For example, the system folder can be "C:\Windows" on one system and "C:\Winnt" on another.
Syntax
typedef enum {
ssfALTSTARTUP = 0x1d,
ssfAPPDATA = 0x1a,
ssfBITBUCKET = 0x0a,
ssfCOMMONALTSTARTUP = 0x1e,
ssfCOMMONAPPDATA = 0x23,
ssfCOMMONDESKTOPDIR = 0x19,
ssfCOMMONFAVORITES = 0x1f,
ssfCOMMONPROGRAMS = 0x17,
ssfCOMMONSTARTMENU = 0x16,
ssfCOMMONSTARTUP = 0x18,
ssfCONTROLS = 0x03,
ssfCOOKIES = 0x21,
ssfDESKTOP = 0x00,
ssfDESKTOPDIRECTORY = 0x10,
ssfDRIVES = 0x11,
ssfFAVORITES = 0x06,
ssfFONTS = 0x14,
ssfHISTORY = 0x22,
ssfINTERNETCACHE = 0x20,
ssfLOCALAPPDATA = 0x1c,
ssfMYPICTURES = 0x27,
ssfNETHOOD = 0x13,
ssfNETWORK = 0x12,
ssfPERSONAL = 0x05,
ssfPRINTERS = 0x04,
ssfPRINTHOOD = 0x1b,
ssfPROFILE = 0x28,
ssfPROGRAMFILES = 0x26,
ssfPROGRAMFILESx86 = 0x30,
ssfPROGRAMS = 0x02,
ssfRECENT = 0x08,
ssfSENDTO = 0x09,
ssfSTARTMENU = 0x0b,
ssfSTARTUP = 0x07,
ssfSYSTEM = 0x25,
ssfSYSTEMx86 = 0x29,
ssfTEMPLATES = 0x15,
ssfWINDOWS = 0x24
} ShellSpecialFolderConstants;
Constants
- ssfALTSTARTUP
-
0x1d (29). File system directory that corresponds to the user's non-localized Startup program group.
- ssfAPPDATA
-
0x1a (26). Version 4.71. File system directory that serves as a common repository for application-specific data. A typical path is C:\Documents and Settings\username\Application Data.
- ssfBITBUCKET
-
0x0a (10). Virtual folder that contains the objects in the user's Recycle Bin.
- ssfCOMMONALTSTARTUP
-
0x1e (30). File system directory that corresponds to the non-localized Startup program group for all users. Valid only for Windows NT systems.
- ssfCOMMONAPPDATA
-
0x23 (35). Version 5.0. Application data for all users. A typical path is C:\Documents and Settings\All Users\Application Data.
- ssfCOMMONDESKTOPDIR
-
0x19 (25). File system directory that contains files and folders that appear on the desktop for all users. A typical path is C:\Documents and Settings\All Users\Desktop. Valid only for Windows NT systems.
- ssfCOMMONFAVORITES
-
0x1f (31). File system directory that serves as a common repository for the favorite URLs shared by all users. Valid only for Windows NT systems.
- ssfCOMMONPROGRAMS
-
0x17 (23). File system directory that contains the directories for the common program groups that appear on the Start menu for all users. A typical path is C:\Documents and Settings\All Users\Start Menu\Programs. Valid only for Windows NT systems.
- ssfCOMMONSTARTMENU
-
0x16 (22). File system directory that contains the programs and folders that appear on the Start menu for all users. A typical path is C:\Documents and Settings\All Users\Start Menu. Valid only for Windows NT systems.
- ssfCOMMONSTARTUP
-
0x18 (24). File system directory that contains the programs that appear in the Startup folder for all users. A typical path is C:\Documents and Settings\All Users\Microsoft\Windows\Start Menu\Programs\StartUp. Valid only for Windows NT systems.
- ssfCONTROLS
-
0x03 (3). Virtual folder that contains icons for the Control Panel applications.
- ssfCOOKIES
-
0x21 (33). File system directory that serves as a common repository for Internet cookies. A typical path is C:\Documents and Settings\username\Application Data\Microsoft\Windows\Cookies.
- ssfDESKTOP
-
0x00 (0). Windows desktop—the virtual folder that is the root of the namespace.
- ssfDESKTOPDIRECTORY
-
0x10 (16). File system directory used to physically store the file objects that are displayed on the desktop. It is not to be confused with the desktop folder itself, which is a virtual folder. A typical path is C:\Documents and Settings\username\Desktop.
- ssfDRIVES
-
0x11 (17). My Computer—the virtual folder that contains everything on the local computer: storage devices, printers, and Control Panel. This folder can also contain mapped network drives.
- ssfFAVORITES
-
0x06 (6). File system directory that serves as a common repository for the user's favorite URLs. A typical path is C:\Documents and Settings\username\Favorites.
- ssfFONTS
-
0x14 (20). Virtual folder that contains installed fonts. A typical path is C:\Windows\Fonts.
- ssfHISTORY
-
0x22 (34). File system directory that serves as a common repository for Internet history items.
- ssfINTERNETCACHE
-
0x20 (32). File system directory that serves as a common repository for temporary Internet files. A typical path is C:\Users\username\AppData\Local\Microsoft\Windows\Temporary Internet Files.
- ssfLOCALAPPDATA
-
0x1c (28). Version 5.0. File system directory that serves as a data repository for local (non-roaming) applications. A typical path is C:\Users\username\AppData\Local.
- ssfMYPICTURES
-
0x27 (39). My Pictures folder. A typical path is C:\Users\username\Pictures.
- ssfNETHOOD
-
0x13 (19). A file system folder that contains any link objects in the My Network Places virtual folder. It is not the same as ssfNETWORK, which represents the network namespace root. A typical path is C:\Users\username\AppData\Roaming\Microsoft\Windows\Network Shortcuts.
- ssfNETWORK
-
0x12 (18). Network Neighborhood—the virtual folder that represents the root of the network namespace hierarchy.
- ssfPERSONAL
-
0x05 (5). File system directory that serves as a common repository for a user's documents. A typical path is C:\Users\username\Documents.
- ssfPRINTERS
-
0x04 (4). Virtual folder that contains installed printers.
- ssfPRINTHOOD
-
0x1b (27). File system directory that contains any link objects in the Printers virtual folder. A typical path is C:\Users\username\AppData\Roaming\Microsoft\Windows\Printer Shortcuts.
- ssfPROFILE
-
0x28 (40). Version 5.0. User's profile folder.
- ssfPROGRAMFILES
-
0x26 (38). Version 5.0. Program Files folder. A typical path is C:\Program Files.
- ssfPROGRAMFILESx86
-
0x30 (48). Version 6.0. Program Files folder. A typical path is C:\Program Files, or C:\Program Files (X86) on a 64-bit computer.
- ssfPROGRAMS
-
0x02 (2). File system directory that contains the user's program groups (which are also file system directories). A typical path is C:\Users\username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs.
- ssfRECENT
-
0x08 (8). File system directory that contains the user's most recently used documents. A typical path is C:\Users\username\AppData\Roaming\Microsoft\Windows\Recent.
- ssfSENDTO
-
0x09 (9). File system directory that contains Send To menu items. A typical path is C:\Users\username\AppData\Roaming\Microsoft\Windows\SendTo.
- ssfSTARTMENU
-
0x0b (11). File system directory that contains Start menu items. A typical path is C:\Users\username\AppData\Roaming\Microsoft\Windows\Start Menu.
- ssfSTARTUP
-
0x07 (7). File system directory that corresponds to the user's Startup program group. The system starts these programs whenever any user first logs into their profile after a reboot. A typical path is C:\Users\username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\StartUp.
- ssfSYSTEM
-
0x25 (37). Version 5.0. The System folder. A typical path is C:\Windows\System32.
- ssfSYSTEMx86
-
0x29 (41). Version 5.0. System folder. A typical path is C:\Windows\System32, or C:\Windows\Syswow32 on a 64-bit computer.
- ssfTEMPLATES
-
0x15 (21). File system directory that serves as a common repository for document templates.
- ssfWINDOWS
-
0x24 (36). Version 5.0. Windows directory. This corresponds to the %windir% or %SystemRoot% environment variables. A typical path is C:\Windows.
Remarks
The values in this enumeration are equivalent to their corresponding CSIDL or KNOWNFOLDERID values, used in C++ applications. They supersede the use of environment variables for this purpose. Note that not all CSIDL or KNOWNFOLDERID values have an equivalent value in ShellSpecialFolderConstants.
Note Where a constant identifies a file system folder, a commonly used path on Windows Vista systems is given as an example. However, there is no guarantee that this path will be used on any particular system, including Windows Vista systems.
Requirements
|
Header |
|
|---|---|
|
IDL |
|
See also
Send comments about this topic to Microsoft
Build date: 3/7/2012
- 6/21/2010
- Matthew Hendy
- 6/21/2010
- Matthew Hendy
- 6/18/2009
- The Angry Technician
- 6/20/2009
- Thomas Lee