Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "CSIDL" in [All]

coredll

.

    const int CSIDL_PROGRAMS = 2;  // \Windows\Start Menu\Programs

.

    SHGetSpecialFolderPath((IntPtr)0, programs, PlatformUtil.CSIDL_PROGRAMS, 0);

.
Summary
This function retrieves the path of a special folder, identified by its CSIDL. (From MSDN)
.

    const int CSIDL_DESKTOP = 0x0000; //Not supported on Smartphone.

.

    const int CSIDL_FAVORITES = 0x0006; //The file system directory that serves as a common repository for the user's favorite items.

.

    const int CSIDL_FONTS = 0x0014; //The virtual folder that contains fonts.

.

    const int CSIDL_PERSONAL = 0x0005; //The file system directory that serves as a common repository for documents.

.

    const int CSIDL_PROGRAM_FILES = 0x0026; //The program files folder.

.

    const int CSIDL_PROGRAMS = 0x0002; //The file system directory that contains the user's program groups, which are also file system directories.

.

    const int CSIDL_STARTUP = 0x0007; //The file system directory that corresponds to the user's Startup program group. The system starts these programs when a device is powered on.

.

    const int CSIDL_WINDOWS = 0x0024; //The Windows folder.

.

    private string getPath(int folderCSIDL)

.

        SHGetSpecialFolderPath((IntPtr)0, resultPath, folderCSIDL, 0);

Interfaces

.

    void FolderIdFromCsidl ( [In] int nCsidl, out Guid pfid );

.

    void FolderIdToCsidl ( [In] ref Guid rfid, out int pnCsidl );

.

    void FolderIdFromCsidl ( [In] int nCsidl, out Guid pfid );

.

    void FolderIdToCsidl ( [In] ref Guid rfid, out int pnCsidl );

shell32

.

        public enum CSIDL {

.

            CSIDL_DESKTOP           = 0x0000,    // <desktop>

.

            CSIDL_INTERNET          = 0x0001,    // Internet Explorer (icon on desktop)

.

            CSIDL_PROGRAMS          = 0x0002,    // Start Menu\Programs

.

            CSIDL_CONTROLS          = 0x0003,    // My Computer\Control Panel

.

            CSIDL_PRINTERS          = 0x0004,    // My Computer\Printers

.

            CSIDL_PERSONAL          = 0x0005,    // My Documents

.

            CSIDL_FAVORITES         = 0x0006,    // <user name>\Favorites

.

            CSIDL_STARTUP           = 0x0007,    // Start Menu\Programs\Startup

.

            CSIDL_RECENT            = 0x0008,    // <user name>\Recent

.

            CSIDL_SENDTO            = 0x0009,    // <user name>\SendTo

.

            CSIDL_BITBUCKET         = 0x000a,    // <desktop>\Recycle Bin

.

            CSIDL_STARTMENU         = 0x000b,    // <user name>\Start Menu

.

            CSIDL_MYDOCUMENTS           = 0x000c,    // logical "My Documents" desktop icon

.

            CSIDL_MYMUSIC           = 0x000d,    // "My Music" folder

.

            CSIDL_MYVIDEO           = 0x000e,    // "My Videos" folder

.

            CSIDL_DESKTOPDIRECTORY      = 0x0010,    // <user name>\Desktop

.

            CSIDL_DRIVES            = 0x0011,    // My Computer

.

            CSIDL_NETWORK           = 0x0012,    // Network Neighborhood (My Network Places)

.

            CSIDL_NETHOOD           = 0x0013,    // <user name>\nethood

.

            CSIDL_FONTS             = 0x0014,    // windows\fonts

.

            CSIDL_TEMPLATES         = 0x0015,

.

            CSIDL_COMMON_STARTMENU      = 0x0016,    // All Users\Start Menu

.

            CSIDL_COMMON_PROGRAMS       = 0X0017,    // All Users\Start Menu\Programs

.

            CSIDL_COMMON_STARTUP        = 0x0018,    // All Users\Startup

.

            CSIDL_COMMON_DESKTOPDIRECTORY   = 0x0019,    // All Users\Desktop

.

            CSIDL_APPDATA           = 0x001a,    // <user name>\Application Data

.

            CSIDL_PRINTHOOD         = 0x001b,    // <user name>\PrintHood

.

            CSIDL_LOCAL_APPDATA         = 0x001c,    // <user name>\Local Settings\Applicaiton Data (non roaming)

.

            CSIDL_ALTSTARTUP        = 0x001d,    // non localized startup

.

            CSIDL_COMMON_ALTSTARTUP     = 0x001e,    // non localized common startup

.

            CSIDL_COMMON_FAVORITES      = 0x001f,

.

            CSIDL_INTERNET_CACHE        = 0x0020,

.

            CSIDL_COOKIES           = 0x0021,

.

            CSIDL_HISTORY           = 0x0022,

.

            CSIDL_COMMON_APPDATA        = 0x0023,    // All Users\Application Data

.

            CSIDL_WINDOWS           = 0x0024,    // GetWindowsDirectory()

.

            CSIDL_SYSTEM            = 0x0025,    // GetSystemDirectory()

.

            CSIDL_PROGRAM_FILES         = 0x0026,    // C:\Program Files

.

            CSIDL_MYPICTURES        = 0x0027,    // C:\Program Files\My Pictures

.

            CSIDL_PROFILE           = 0x0028,    // USERPROFILE

.

            CSIDL_SYSTEMX86         = 0x0029,    // x86 system directory on RISC

.

            CSIDL_PROGRAM_FILESX86      = 0x002a,    // x86 C:\Program Files on RISC

.

            CSIDL_PROGRAM_FILES_COMMON      = 0x002b,    // C:\Program Files\Common

.

            CSIDL_PROGRAM_FILES_COMMONX86   = 0x002c,    // x86 Program Files\Common on RISC

.

            CSIDL_COMMON_TEMPLATES      = 0x002d,    // All Users\Templates

.

            CSIDL_COMMON_DOCUMENTS      = 0x002e,    // All Users\Documents

.

            CSIDL_COMMON_ADMINTOOLS     = 0x002f,    // All Users\Start Menu\Programs\Administrative Tools

.

            CSIDL_ADMINTOOLS        = 0x0030,    // <user name>\Start Menu\Programs\Administrative Tools

.

            CSIDL_CONNECTIONS           = 0x0031,    // Network and Dial-up Connections

.

            CSIDL_COMMON_MUSIC          = 0x0035,    // All Users\My Music

.

            CSIDL_COMMON_PICTURES       = 0x0036,    // All Users\My Pictures

.

            CSIDL_COMMON_VIDEO          = 0x0037,    // All Users\My Video

.

            CSIDL_CDBURN_AREA           = 0x003b    // USERPROFILE\Local Settings\Application Data\Microsoft\CD Burning

.

Declare Function CSIDL  Lib "shell32.dll" (TODO) As TODO

.
Documentation
CSIDL @msdn on MSDN
.
Summary
CSIDL values provide a unique system-independent way to identify special folders used frequently by applications, but which may not have the same name or location on any given system. For example, the system folder may be "C:\Windows" on one system and "C:\Winnt" on another. These constants are defined in Shlobj.h and Shfolder.h.
.

    /// CSIDL values provide a unique system-independent way to identify special folders used frequently by applications,

.

    /// A CSIDL is used in conjunction with one of four Shell functions, SHGetFolderLocation, SHGetFolderPath,

.

    /// Combine CSIDL_FLAG_CREATE with any of the other CSIDLs to force the creation of the associated folder.

.

    /// The remaining CSIDLs correspond to either file system folders or virtual folders. Where the CSIDL

.

    /// Some CSIDLs can be mapped to an equivalent %VariableName% environment variable. CSIDLs are more reliable,

.

    internal enum CSIDL :int

.

        /// Version 5.0. Combine this CSIDL with any of the following CSIDLs to force the creation of the associated folder.

.

        CSIDL_FLAG_CREATE = 0x8000,

.

        CSIDL_ADMINTOOLS = 0x0030,

.

        CSIDL_ALTSTARTUP = 0x001d,

.

        /// A typical path is C:\Documents and Settings\username\Application Data. This CSIDL is supported by the

.

        CSIDL_APPDATA = 0x001a,

.

        CSIDL_BITBUCKET = 0x000a, // The virtual folder containing the objects in the user's Recycle Bin.

.

        CSIDL_CDBURN_AREA = 0x003b,

.

        CSIDL_COMMON_ADMINTOOLS = 0x002f,

.

        CSIDL_COMMON_ALTSTARTUP = 0x001e,

.

        CSIDL_COMMON_APPDATA = 0x0023,

.

        CSIDL_COMMON_DESKTOPDIRECTORY = 0x0019,

.

        CSIDL_COMMON_DOCUMENTS = 0x002e,

.

        CSIDL_COMMON_FAVORITES = 0x001f,

.

        CSIDL_COMMON_MUSIC = 0x0035,

.

        CSIDL_COMMON_PICTURES = 0x0036,

.

        CSIDL_COMMON_PROGRAMS = 0x0017,

.

        CSIDL_COMMON_STARTMENU = 0x0016,

.

        CSIDL_COMMON_STARTUP = 0x0018,

.

        CSIDL_COMMON_TEMPLATES = 0x002d,

.

        CSIDL_COMMON_VIDEO = 0x0037,

.

        CSIDL_CONTROLS = 0x0003, // The virtual folder containing icons for the Control Panel applications.

.

        CSIDL_COOKIES = 0x0021,

.

        CSIDL_DESKTOP = 0x0000, // The virtual folder representing the Windows desktop, the root of the namespace.

.

        CSIDL_DESKTOPDIRECTORY = 0x0010,

.

        CSIDL_DRIVES = 0x0011,

.

        CSIDL_FAVORITES = 0x0006,

.

        CSIDL_FONTS = 0x0014, // A virtual folder containing fonts. A typical path is C:\Windows\Fonts.

.

        CSIDL_HISTORY = 0x0022, // The file system directory that serves as a common repository for Internet history items.

.

        CSIDL_INTERNET = 0x0001, // A virtual folder representing the Internet.

.

        CSIDL_INTERNET_CACHE = 0x0020,

.

        CSIDL_LOCAL_APPDATA = 0x001c,

.

        CSIDL_MYDOCUMENTS = 0x000c, // Version 6.0. The virtual folder representing the My Documents desktop item.

.

        CSIDL_MYMUSIC = 0x000d,

.

        CSIDL_MYPICTURES = 0x0027,

.

        CSIDL_MYVIDEO = 0x000e,

.

        /// It is not the same as CSIDL_NETWORK, which represents the network namespace root.

.

        CSIDL_NETHOOD = 0x0013,

.

        CSIDL_NETWORK = 0x0012,

.

        /// Version 6.0. The virtual folder representing the My Documents desktop item. This is equivalent to CSIDL_MYDOCUMENTS.

.

        CSIDL_PERSONAL = 0x0005,

.

        CSIDL_PRINTERS = 0x0004, // The virtual folder containing installed printers.

.

        CSIDL_PRINTHOOD = 0x001b,

.

        /// CSIDL_APPDATA or CSIDL_LOCAL_APPDATA.

.

        CSIDL_PROFILE = 0x0028,

.

        CSIDL_PROFILES = 0x003e,

.

        CSIDL_PROGRAM_FILES = 0x0026, // Version 5.0. The Program Files folder. A typical path is C:\Program Files.

.

        CSIDL_PROGRAM_FILES_COMMON = 0x002b,

.

        CSIDL_PROGRAMS = 0x0002,

.

        CSIDL_RECENT = 0x0008,

.

        CSIDL_SENDTO = 0x0009,

.

        CSIDL_STARTMENU = 0x000b,

.

        CSIDL_STARTUP = 0x0007,

.

        CSIDL_SYSTEM = 0x0025, // Version 5.0. The Windows System folder. A typical path is C:\Windows\System32.

.

        CSIDL_TEMPLATES = 0x0015,

.

        CSIDL_WINDOWS = 0x0024

.

Declare Function CSIDL Lib "shell32.dll" (TODO) As TODO

.
Documentation
[CSIDL] on MSDN
.

        // This CSIDL is supported by the redistributable Shfolder.dll

.

        // Version 5.0. Combine this CSIDL with any of the following CSIDLs

.

        // desktop item. This is equivalent to CSIDL_MYDOCUMENTS.

.

    public enum SpecialFolderCSIDL : int

.

        CSIDL_DESKTOP         = 0x0000,    // <desktop>

.

        CSIDL_INTERNET        = 0x0001,    // Internet Explorer (icon on desktop)

.

        CSIDL_PROGRAMS        = 0x0002,    // Start Menu\Programs

.

        CSIDL_CONTROLS        = 0x0003,    // My Computer\Control Panel

.

        CSIDL_PRINTERS        = 0x0004,    // My Computer\Printers

.

        CSIDL_PERSONAL        = 0x0005,    // My Documents

.

        CSIDL_FAVORITES           = 0x0006,    // <user name>\Favorites

.

        CSIDL_STARTUP         = 0x0007,    // Start Menu\Programs\Startup

.

        CSIDL_RECENT          = 0x0008,    // <user name>\Recent

.

        CSIDL_SENDTO          = 0x0009,    // <user name>\SendTo

.

        CSIDL_BITBUCKET           = 0x000a,    // <desktop>\Recycle Bin

.

        CSIDL_STARTMENU           = 0x000b,    // <user name>\Start Menu

.

        CSIDL_DESKTOPDIRECTORY    = 0x0010,    // <user name>\Desktop

.

        CSIDL_DRIVES          = 0x0011,    // My Computer

.

        CSIDL_NETWORK         = 0x0012,    // Network Neighborhood

.

        CSIDL_NETHOOD         = 0x0013,    // <user name>\nethood

.

        CSIDL_FONTS           = 0x0014,    // windows\fonts

.

        CSIDL_TEMPLATES           = 0x0015,

.

        CSIDL_COMMON_STARTMENU    = 0x0016,    // All Users\Start Menu

.

        CSIDL_COMMON_PROGRAMS     = 0x0017,    // All Users\Programs

.

        CSIDL_COMMON_STARTUP      = 0x0018,    // All Users\Startup

.

        CSIDL_COMMON_DESKTOPDIRECTORY = 0x0019,    // All Users\Desktop

.

        CSIDL_APPDATA         = 0x001a,    // <user name>\Application Data

.

        CSIDL_PRINTHOOD           = 0x001b,    // <user name>\PrintHood

.

        CSIDL_LOCAL_APPDATA       = 0x001c,    // <user name>\Local Settings\Applicaiton Data (non roaming)

.

        CSIDL_ALTSTARTUP          = 0x001d,    // non localized startup

.

        CSIDL_COMMON_ALTSTARTUP       = 0x001e,    // non localized common startup

.

        CSIDL_COMMON_FAVORITES    = 0x001f,

.

        CSIDL_INTERNET_CACHE      = 0x0020,

.

        CSIDL_COOKIES         = 0x0021,

.

        CSIDL_HISTORY         = 0x0022,

.

        CSIDL_COMMON_APPDATA      = 0x0023,    // All Users\Application Data

.

        CSIDL_WINDOWS         = 0x0024,    // GetWindowsDirectory()

.

        CSIDL_SYSTEM          = 0x0025,    // GetSystemDirectory()

.

        CSIDL_PROGRAM_FILES       = 0x0026,    // C:\Program Files

.

        CSIDL_MYPICTURES          = 0x0027,    // C:\Program Files\My Pictures

.

        CSIDL_PROFILE         = 0x0028,    // USERPROFILE

.

        CSIDL_SYSTEMX86           = 0x0029,    // x86 system directory on RISC

.

        CSIDL_PROGRAM_FILESX86    = 0x002a,    // x86 C:\Program Files on RISC

.

        CSIDL_PROGRAM_FILES_COMMON    = 0x002b,    // C:\Program Files\Common

.

        CSIDL_PROGRAM_FILES_COMMONX86 = 0x002c,    // x86 Program Files\Common on RISC

.

        CSIDL_COMMON_TEMPLATES    = 0x002d,    // All Users\Templates

.

        CSIDL_COMMON_DOCUMENTS    = 0x002e,    // All Users\Documents

.

        CSIDL_COMMON_ADMINTOOLS       = 0x002f,    // All Users\Start Menu\Programs\Administrative Tools

.

        CSIDL_ADMINTOOLS          = 0x0030,    // <user name>\Start Menu\Programs\Administrative Tools

.

        CSIDL_CONNECTIONS         = 0x0031,    // Network and Dial-up Connections

.

        CSIDL_CDBURN_AREA         = 0x003B,    // Data for burning with interface ICDBurn

.

    Private Const CSIDL_WINDOWS As Integer = &H24

.

    If SHGetFolderPath(Nothing, CSIDL_WINDOWS, Nothing, 0, winPath) <> 0 Then

.

    /// <param name="folder">The special folder's CSIDL enumeration</param>

.

    public static string GetSpecialFolder(SpecialFolderCSIDL folder)

.

Public Enum CSIDL

.

    Private Function PIDLFromCSIDL(csidlInt As Integer) As IntPtr

.

        If Not [Enum].IsDefined(GetType(CSIDL), csidlInt) Then Return IntPtr.Zero

.

        SHGetFolderLocation(IntPtr.Zero, CInt(csidlInt), IntPtr.Zero, 0, ptr)

.

        Dim CplCsidl As CSIDL = CSIDL.CONTROLS

.

        SHGetFolderLocation(IntPtr.Zero, CInt(CplCsidl), IntPtr.Zero, 0, ptrLoc)

.

        Dim pcCsidl As CSIDL = CSIDL.DRIVES

.

        SHGetFolderLocation(IntPtr.Zero, CInt(pcCsidl), IntPtr.Zero, 0, ptrLoc)

.

static extern int SHGetSpecialFolderLocation(IntPtr hwndOwner, CSIDL nFolder,

.

                  <MarshalAs(UnmanagedType.I4)>nFolder As CSIDL, _

.

         ByVal prmlngFolderID As CSIDL, _

.

CSIDL, ITEMIDLIST

.

            SHGetSpecialFolderLocation(IntPtr.Zero, CSIDL.CSIDL_MYVIDEO, ref ptrDirVideo);

.

        static extern int SHGetSpecialFolderLocation(IntPtr hwndOwner, CSIDL nFolder, ref IntPtr ppidl);

.

        public enum CSIDL

.

        CSIDL_DESKTOP       = 0x0000,    // <desktop>

.

        CSIDL_INTERNET      = 0x0001,    // Internet Explorer (icon on desktop)

.

        CSIDL_PROGRAMS      = 0x0002,    // Start Menu\Programs

.

        CSIDL_CONTROLS      = 0x0003,    // My Computer\Control Panel

.

        CSIDL_PRINTERS      = 0x0004,    // My Computer\Printers

.

        CSIDL_PERSONAL      = 0x0005,    // My Documents

.

        CSIDL_FAVORITES     = 0x0006,    // <user name>\Favorites

.

        CSIDL_STARTUP       = 0x0007,    // Start Menu\Programs\Startup

.

        CSIDL_RECENT        = 0x0008,    // <user name>\Recent

.

        CSIDL_SENDTO        = 0x0009,    // <user name>\SendTo

.

        CSIDL_BITBUCKET     = 0x000a,    // <desktop>\Recycle Bin

.

        CSIDL_STARTMENU     = 0x000b,    // <user name>\Start Menu

.

        CSIDL_MYDOCUMENTS       = 0x000c,    // logical "My Documents" desktop icon

.

        CSIDL_MYMUSIC       = 0x000d,    // "My Music" folder

.

        CSIDL_MYVIDEO       = 0x000e,    // "My Videos" folder

.

        CSIDL_DESKTOPDIRECTORY      = 0x0010,    // <user name>\Desktop

.

        CSIDL_DRIVES        = 0x0011,    // My Computer

.

        CSIDL_NETWORK       = 0x0012,    // Network Neighborhood (My Network Places)

.

        CSIDL_NETHOOD       = 0x0013,    // <user name>\nethood

.

        CSIDL_FONTS         = 0x0014,    // windows\fonts

.

        CSIDL_TEMPLATES     = 0x0015,

.

        CSIDL_COMMON_STARTMENU      = 0x0016,    // All Users\Start Menu

.

        CSIDL_COMMON_PROGRAMS       = 0X0017,    // All Users\Start Menu\Programs

.

        CSIDL_COMMON_STARTUP    = 0x0018,    // All Users\Startup

.

        CSIDL_COMMON_DESKTOPDIRECTORY   = 0x0019,    // All Users\Desktop

.

        CSIDL_APPDATA       = 0x001a,    // <user name>\Application Data

.

        CSIDL_PRINTHOOD     = 0x001b,    // <user name>\PrintHood

.

        CSIDL_LOCAL_APPDATA     = 0x001c,    // <user name>\Local Settings\Applicaiton Data (non roaming)

.

        CSIDL_ALTSTARTUP    = 0x001d,    // non localized startup

.

        CSIDL_COMMON_ALTSTARTUP     = 0x001e,    // non localized common startup

.

        CSIDL_COMMON_FAVORITES      = 0x001f,

.

        CSIDL_INTERNET_CACHE    = 0x0020,

.

        CSIDL_COOKIES       = 0x0021,

.

        CSIDL_HISTORY       = 0x0022,

.

        CSIDL_COMMON_APPDATA    = 0x0023,    // All Users\Application Data

.

        CSIDL_WINDOWS       = 0x0024,    // GetWindowsDirectory()

.

        CSIDL_SYSTEM        = 0x0025,    // GetSystemDirectory()

.

        CSIDL_PROGRAM_FILES     = 0x0026,    // C:\Program Files

.

        CSIDL_MYPICTURES    = 0x0027,    // C:\Program Files\My Pictures

.

        CSIDL_PROFILE       = 0x0028,    // USERPROFILE

.

        CSIDL_SYSTEMX86     = 0x0029,    // x86 system directory on RISC

.

        CSIDL_PROGRAM_FILESX86      = 0x002a,    // x86 C:\Program Files on RISC

.

        CSIDL_PROGRAM_FILES_COMMON      = 0x002b,    // C:\Program Files\Common

.

        CSIDL_PROGRAM_FILES_COMMONX86   = 0x002c,    // x86 Program Files\Common on RISC

.

        CSIDL_COMMON_TEMPLATES      = 0x002d,    // All Users\Templates

.

        CSIDL_COMMON_DOCUMENTS      = 0x002e,    // All Users\Documents

.

        CSIDL_COMMON_ADMINTOOLS     = 0x002f,    // All Users\Start Menu\Programs\Administrative Tools

.

        CSIDL_ADMINTOOLS    = 0x0030,    // <user name>\Start Menu\Programs\Administrative Tools

.

        CSIDL_CONNECTIONS       = 0x0031,    // Network and Dial-up Connections

.

        CSIDL_COMMON_MUSIC      = 0x0035,    // All Users\My Music

.

        CSIDL_COMMON_PICTURES       = 0x0036,    // All Users\My Pictures

.

        CSIDL_COMMON_VIDEO      = 0x0037,    // All Users\My Video

.

        CSIDL_CDBURN_AREA       = 0x003b    // USERPROFILE\Local Settings\Application Data\Microsoft\CD Burning

.

   int CSIDL_MYMUSIC = 0x000d;

.

   SHGetSpecialFolderPath(parent.Handle, path, CSIDL_MYMUSIC, 0);

.

However not all of the enums are available (e.g. CSIDL_COMMON_DOCUMENTS missing on .NET 1.1) therefore this is needed sometimes.

.

    Public Shared Function SpecialFolderPathSH32(csidl As Integer, _

.

        If csidl <> CInt(Environment.SpecialFolder.MyComputer) _

.

         AndAlso [Enum].IsDefined(GetType(Environment.SpecialFolder), csidl) Then

.

            If csidl = 12 Then ' !!! MYDOCUMENTS

.

            ElseIf csidl = 17 Then ' !!! MYCOMPUTER

.

                folder = sh.NameSpace(csidl)

Enums

11: CSIDL
.

enum CSIDL {

.

    CSIDL_ADMINTOOLS        = 0x0030,

.

    CSIDL_ALTSTARTUP        = 0x001d,

.

    CSIDL_APPDATA           = 0x001a,

.

    CSIDL_BITBUCKET         = 0x000a,

.

    CSIDL_CDBURN_AREA           = 0x003b,

.

    CSIDL_COMMON_ADMINTOOLS     = 0x002f,

.

    CSIDL_COMMON_ALTSTARTUP     = 0x001e,

.

    CSIDL_COMMON_APPDATA        = 0x0023,

.

    CSIDL_COMMON_DESKTOPDIRECTORY   = 0x0019,

.

    CSIDL_COMMON_DOCUMENTS      = 0x002e,

.

    CSIDL_COMMON_FAVORITES      = 0x001f,

.

    CSIDL_COMMON_MUSIC          = 0x0035,

.

    CSIDL_COMMON_OEM_LINKS      = 0x003a,

.

    CSIDL_COMMON_PICTURES       = 0x0036,

.

    CSIDL_COMMON_PROGRAMS       = 0X0017,

.

    CSIDL_COMMON_STARTMENU      = 0x0016,

.

    CSIDL_COMMON_STARTUP        = 0x0018,

.

    CSIDL_COMMON_TEMPLATES      = 0x002d,

.

    CSIDL_COMMON_VIDEO          = 0x0037,

.

    CSIDL_COMPUTERSNEARME       = 0x003d,

.

    CSIDL_CONNECTIONS           = 0x0031,

.

    CSIDL_CONTROLS          = 0x0003,

.

    CSIDL_COOKIES           = 0x0021,

.

    CSIDL_DESKTOP           = 0x0000,

.

    CSIDL_DESKTOPDIRECTORY      = 0x0010,

.

    CSIDL_DRIVES            = 0x0011,

.

    CSIDL_FAVORITES         = 0x0006,

.

    CSIDL_FLAG_CREATE           = 0x8000,

.

    CSIDL_FLAG_DONT_VERIFY      = 0x4000,

.

    CSIDL_FLAG_MASK         = 0xFF00,

.

    CSIDL_FLAG_NO_ALIAS         = 0x1000,

.

    CSIDL_FLAG_PER_USER_INIT    = 0x0800,

.

    CSIDL_FONTS             = 0x0014,

.

    CSIDL_HISTORY           = 0x0022,

.

    CSIDL_INTERNET          = 0x0001,

.

    CSIDL_INTERNET_CACHE        = 0x0020,

.

    CSIDL_LOCAL_APPDATA         = 0x001c,

.

    CSIDL_MYDOCUMENTS           = 0x000c,

.

    CSIDL_MYMUSIC           = 0x000d,

.

    CSIDL_MYPICTURES        = 0x0027,

.

    CSIDL_MYVIDEO           = 0x000e,

.

    CSIDL_NETHOOD           = 0x0013,

.

    CSIDL_NETWORK           = 0x0012,

.

    CSIDL_PERSONAL          = 0x0005,

.

    CSIDL_PRINTERS          = 0x0004,

.

    CSIDL_PRINTHOOD         = 0x001b,

.

    CSIDL_PROFILE           = 0x0028,

.

    CSIDL_PROGRAM_FILES         = 0x0026,

.

    CSIDL_PROGRAM_FILES_COMMON      = 0x002b,

.

    CSIDL_PROGRAM_FILES_COMMONX86   = 0x002c,

.

    CSIDL_PROGRAM_FILESX86      = 0x002a,

.

    CSIDL_PROGRAMS          = 0x0002,

.

    CSIDL_RECENT            = 0x0008,

.

    CSIDL_RESOURCES         = 0x0038,

.

    CSIDL_RESOURCES_LOCALIZED       = 0x0039,

.

    CSIDL_SENDTO            = 0x0009,

.

    CSIDL_STARTMENU         = 0x000b,

.

    CSIDL_STARTUP           = 0x0007,

.

    CSIDL_SYSTEM            = 0x0025,

.

    CSIDL_SYSTEMX86         = 0x0029,

.

    CSIDL_TEMPLATES         = 0x0015,

.

    CSIDL_WINDOWS           = 0x0024  

.

Enum CSIDL

.

    CSIDL_ADMINTOOLS = &H30

.

    CSIDL_ALTSTARTUP = &H1D

.

    CSIDL_APPDATA = &H1A

.

    CSIDL_BITBUCKET = &HA

.

    CSIDL_CDBURN_AREA = &H3B

.

    CSIDL_COMMON_ADMINTOOLS = &H2F

.

    CSIDL_COMMON_ALTSTARTUP = &H1E

.

    CSIDL_COMMON_APPDATA = &H23

.

    CSIDL_COMMON_DESKTOPDIRECTORY = &H19

.

    CSIDL_COMMON_DOCUMENTS = &H2E

.

    CSIDL_COMMON_FAVORITES = &H1F

.

    CSIDL_COMMON_MUSIC = &H35

.

    CSIDL_COMMON_OEM_LINKS = &H3A

.

    CSIDL_COMMON_PICTURES = &H36

.

    CSIDL_COMMON_PROGRAMS = &H17

.

    CSIDL_COMMON_STARTMENU = &H16

.

    CSIDL_COMMON_STARTUP = &H18

.

    CSIDL_COMMON_TEMPLATES = &H2D

.

    CSIDL_COMMON_VIDEO = &H37

.

    CSIDL_COMPUTERSNEARME = &H3D

.

    CSIDL_CONNECTIONS = &H31

.

    CSIDL_CONTROLS = &H3

.

    CSIDL_COOKIES = &H21

.

    CSIDL_DESKTOP = &H0

.

    CSIDL_DESKTOPDIRECTORY = &H10

.

    CSIDL_DRIVES = &H11

.

    CSIDL_FAVORITES = &H6

.

    CSIDL_FLAG_CREATE = &H8000

.

    CSIDL_FLAG_DONT_VERIFY = &H4000

.

    CSIDL_FLAG_MASK = &HFF00

.

    CSIDL_FLAG_NO_ALIAS = &H1000

.

    CSIDL_FLAG_PER_USER_INIT = &H800

.

    CSIDL_FONTS = &H14

.

    CSIDL_HISTORY = &H22

.

    CSIDL_INTERNET = &H1

.

    CSIDL_INTERNET_CACHE = &H20

.

    CSIDL_LOCAL_APPDATA = &H1C

.

    CSIDL_MYDOCUMENTS = &HC

.

    CSIDL_MYMUSIC = &HD

.

    CSIDL_MYPICTURES = &H27

.

    CSIDL_MYVIDEO = &HE

.

    CSIDL_NETHOOD = &H13

.

    CSIDL_NETWORK = &H12

.

    CSIDL_PERSONAL = &H5

.

    CSIDL_PRINTERS = &H4

.

    CSIDL_PRINTHOOD = &H1B

.

    CSIDL_PROFILE = &H28

.

    CSIDL_PROGRAM_FILES = &H26

.

    CSIDL_PROGRAM_FILES_COMMON = &H2B

.

    CSIDL_PROGRAM_FILES_COMMONX86 = &H2C

.

    CSIDL_PROGRAM_FILESX86 = &H2A

.

    CSIDL_PROGRAMS = &H2

.

    CSIDL_RECENT = &H8

.

    CSIDL_RESOURCES = &H38

.

    CSIDL_RESOURCES_LOCALIZED = &H39

.

    CSIDL_SENDTO = &H9

.

    CSIDL_STARTMENU = &HB

.

    CSIDL_STARTUP = &H7

.

    CSIDL_SYSTEM = &H25

.

    CSIDL_SYSTEMX86 = &H29

.

    CSIDL_TEMPLATES = &H15

.

    CSIDL_WINDOWS = &H24

.
Documentation
[CSIDL] on MSDN

 
Access PInvoke.net directly from VS: