~do-win/do/test-paths

38 by Chris S.
add windows paths service
1
using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
using System.Text;
5
6
namespace Do.Platform.Windows
7
{
8
	public enum WinAPIFolder
9
	{
10
		// Version 5.0. The file system directory that is used
11
		// to store administrative tools for an individual user.
12
		// The Microsoft Management Console (MMC) will save customized
13
		// consoles to this directory, and it will roam with the user.
14
		AdministrativeTools = 0x0030,
15
16
		// Version 5.0. The file system directory containing
17
		// administrative tools for all users of the computer.
18
		CommonAdministrativeTools = 0x002f,
19
20
		// Version 4.71. The file system directory that serves as
21
		// a common repository for application-specific data.
22
		// A typical path is C:\Documents and Settings\username\Application Data.
23
		// This CSIDL is supported by the redistributable Shfolder.dll
24
		// for systems that do not have the Microsoft Internet Explorer 4.0
25
		// integrated Shell installed
26
		ApplicationData = 0x001a,
27
28
		// Version 5.0. The file system directory containing
29
		// application data for all users. A typical path is
30
		// C:\Documents and Settings\All Users\Application Data.
31
		CommonAppData = 0x0023,
32
33
		// The file system directory that contains documents
34
		// that are common to all users. A typical paths is
35
		// C:\Documents and Settings\All Users\Documents.
36
		// Valid for Windows NT systems and Microsoft Windows 95 and
37
		// Windows 98 systems with Shfolder.dll installed.
38
		CommonDocuments = 0x002e,
39
40
		// The file system directory that serves as a common repository
41
		// for Internet cookies. A typical path is
42
		// C:\Documents and Settings\username\Cookies.
43
		Cookies = 0x0021,
44
45
		// Version 5.0. Combine this CSIDL with any of the following CSIDLs
46
		// to force the creation of the associated folder.
47
		CreateFlag = 0x8000,
48
49
		// The file system directory that serves as a common repository
50
		// for Internet history items.
51
		History = 0x0022,
52
53
		// Version 4.72. The file system directory that serves as
54
		// a common repository for temporary Internet files. A typical
55
		// path is C:\Documents and Settings\username\Local Settings\Temporary Internet Files.
56
		InternetCache = 0x0020,
57
58
		// Version 5.0. The file system directory that serves as a data
59
		// repository for local (nonroaming) applications. A typical path
60
		// is C:\Documents and Settings\username\Local Settings\Application Data.
61
		LocalApplicationData = 0x001c,
62
63
		// Version 5.0. The file system directory that serves as
64
		// a common repository for image files. A typical path is
65
		// C:\Documents and Settings\username\My Documents\My Pictures.
66
		MyPictures = 0x0027,
67
68
		// Version 6.0. The virtual folder representing the My Documents
69
		// desktop item. This is equivalent to CSIDL_MYDOCUMENTS.
70
		// Previous to Version 6.0. The file system directory used to
71
		// physically store a user's common repository of documents.
72
		// A typical path is C:\Documents and Settings\username\My Documents.
73
		// This should be distinguished from the virtual My Documents folder
74
		// in the namespace. To access that virtual folder,
75
		// use SHGetFolderLocation, which returns the ITEMIDLIST for the
76
		// virtual location, or refer to the technique described in
77
		// Managing the File System.
78
		Personal = 0x0005,
79
80
		// Version 5.0. The Program Files folder. A typical
81
		// path is C:\Program Files.
82
		ProgramFiles = 0x0026,
83
84
		// Version 5.0. A folder for components that are shared across
85
		// applications. A typical path is C:\Program Files\Common.
86
		// Valid only for Windows NT, Windows 2000, and Windows XP systems.
87
		// Not valid for Windows Millennium Edition (Windows Me).
88
		CommonProgramFiles = 0x002b,
89
90
		// Version 5.0. The Windows System folder. A typical
91
		// path is C:\Windows\System32.
92
		System = 0x0025,
93
94
		// Version 5.0. The Windows directory or SYSROOT.
95
		// This corresponds to the %windir% or %SYSTEMROOT% environment
96
		// variables. A typical path is C:\Windows.
97
		Windows = 0x0024,
98
99
		CommonStartMenu = 0x0016,
100
101
		/*
102
const int CSIDL_DESKTOP                     = 0x0000;        // <desktop>
103
const int CSIDL_INTERNET                    = 0x0001;        // Internet Explorer (icon on desktop)
104
const int CSIDL_PROGRAMS                      = 0x0002;        // Start Menu\Programs
105
const int CSIDL_CONTROLS                      = 0x0003;        // My Computer\Control Panel
106
const int CSIDL_PRINTERS                      = 0x0004;        // My Computer\Printers
107
const int CSIDL_PERSONAL                      = 0x0005;        // My Documents
108
const int CSIDL_FAVORITES                     = 0x0006;        // <user name>\Favorites
109
const int CSIDL_STARTUP                       = 0x0007;        // Start Menu\Programs\Startup
110
const int CSIDL_RECENT                      = 0x0008;        // <user name>\Recent
111
const int CSIDL_SENDTO                      = 0x0009;        // <user name>\SendTo
112
const int CSIDL_BITBUCKET                   = 0x000a;        // <desktop>\Recycle Bin
113
const int CSIDL_STARTMENU                   = 0x000b;        // <user name>\Start Menu
114
const int CSIDL_MYDOCUMENTS                 = CSIDL_PERSONAL; //  Personal was just a silly name for My Documents
115
const int CSIDL_MYMUSIC                     = 0x000d;        // "My Music" folder
116
const int CSIDL_MYVIDEO                     = 0x000e;        // "My Videos" folder
117
const int CSIDL_DESKTOPDIRECTORY            = 0x0010;        // <user name>\Desktop
118
const int CSIDL_DRIVES                      = 0x0011;        // My Computer
119
const int CSIDL_NETWORK                     = 0x0012;        // Network Neighborhood (My Network Places)
120
const int CSIDL_NETHOOD                     = 0x0013;        // <user name>\nethood
121
const int CSIDL_FONTS                       = 0x0014;        // windows\fonts
122
const int CSIDL_TEMPLATES                   = 0x0015;
123
const int CSIDL_COMMON_STARTMENU            = 0x0016;        // All Users\Start Menu
124
const int CSIDL_COMMON_PROGRAMS             = 0x0017;        // All Users\Start Menu\Programs
125
const int CSIDL_COMMON_STARTUP              = 0x0018;        // All Users\Startup
126
const int CSIDL_COMMON_DESKTOPDIRECTORY     = 0x0019;        // All Users\Desktop
127
const int CSIDL_APPDATA                     = 0x001a;        // <user name>\Application Data
128
const int CSIDL_PRINTHOOD                   = 0x001b;        // <user name>\PrintHood
129
const int CSIDL_LOCAL_APPDATA               = 0x001c;        // <user name>\Local Settings\Applicaiton Data (non roaming)
130
const int CSIDL_ALTSTARTUP                  = 0x001d;        // non localized startup
131
const int CSIDL_COMMON_ALTSTARTUP           = 0x001e;        // non localized common startup
132
const int CSIDL_COMMON_FAVORITES            = 0x001f;
133
const int CSIDL_INTERNET_CACHE              = 0x0020;
134
const int CSIDL_COOKIES                     = 0x0021;
135
const int CSIDL_HISTORY                     = 0x0022;
136
const int CSIDL_COMMON_APPDATA              = 0x0023;        // All Users\Application Data
137
const int CSIDL_WINDOWS                     = 0x0024;        // GetWindowsDirectory()
138
const int CSIDL_SYSTEM                      = 0x0025;        // GetSystemDirectory()
139
const int CSIDL_PROGRAM_FILES               = 0x0026;        // C:\Program Files
140
const int CSIDL_MYPICTURES                  = 0x0027;        // C:\Program Files\My Pictures
141
const int CSIDL_PROFILE                     = 0x0028;        // USERPROFILE
142
const int CSIDL_SYSTEMX86                   = 0x0029;        // x86 system directory on RISC
143
const int CSIDL_PROGRAM_FILESX86            = 0x002a;        // x86 C:\Program Files on RISC
144
const int CSIDL_PROGRAM_FILES_COMMON        = 0x002b;        // C:\Program Files\Common
145
const int CSIDL_PROGRAM_FILES_COMMONX86     = 0x002c;        // x86 Program Files\Common on RISC
146
const int CSIDL_COMMON_TEMPLATES            = 0x002d;        // All Users\Templates
147
const int CSIDL_COMMON_DOCUMENTS            = 0x002e;        // All Users\Documents
148
const int CSIDL_COMMON_ADMINTOOLS           = 0x002f;        // All Users\Start Menu\Programs\Administrative Tools
149
const int CSIDL_ADMINTOOLS                  = 0x0030;        // <user name>\Start Menu\Programs\Administrative Tools
150
const int CSIDL_CONNECTIONS                 = 0x0031;        // Network and Dial-up Connections
151
const int CSIDL_COMMON_MUSIC                = 0x0035;        // All Users\My Music
152
const int CSIDL_COMMON_PICTURES             = 0x0036;        // All Users\My Pictures
153
const int CSIDL_COMMON_VIDEO                = 0x0037;        // All Users\My Video
154
const int CSIDL_RESOURCES                   = 0x0038;        // Resource Direcotry
155
const int CSIDL_RESOURCES_LOCALIZED         = 0x0039;        // Localized Resource Direcotry
156
const int CSIDL_COMMON_OEM_LINKS            = 0x003a;        // Links to All Users OEM specific apps
157
const int CSIDL_CDBURN_AREA                 = 0x003b;        // USERPROFILE\Local Settings\Application Data\Microsoft\CD Burning
158
const int CSIDL_COMPUTERSNEARME             = 0x003d;        // Computers Near Me (computered from Workgroup membership)
159
		 * */
160
	}
161
}