Go to the source code of this file.
◆ MAX_CSIDL_DIRID
#define MAX_CSIDL_DIRID 0x403f |
◆ MAX_SYSTEM_DIRID
◆ MIN_CSIDL_DIRID
#define MIN_CSIDL_DIRID 0x4000 |
◆ create_system_dirid()
Definition at line 58 of file dirid.c.
59{
60 static const WCHAR Null[] = {0};
61 static const WCHAR C_Root[] = {
'C',
':',
'\\',0};
62 static const WCHAR Drivers[] = {
'\\',
'd',
'r',
'i',
'v',
'e',
'r',
's',0};
63 static const WCHAR Inf[] = {
'\\',
'i',
'n',
'f',0};
64 static const WCHAR Help[] = {
'\\',
'h',
'e',
'l',
'p',0};
65 static const WCHAR Fonts[] = {
'\\',
'f',
'o',
'n',
't',
's',0};
66 static const WCHAR Viewers[] = {
'\\',
'v',
'i',
'e',
'w',
'e',
'r',
's',0};
67 static const WCHAR System[] = {
'\\',
's',
'y',
's',
't',
'e',
'm',0};
68 static const WCHAR Spool[] = {
'\\',
's',
'p',
'o',
'o',
'l',0};
69 static const WCHAR UserProfile[] = {
'U',
'S',
'E',
'R',
'P',
'R',
'O',
'F',
'I',
'L',
'E',0};
70
74
75 switch(dirid)
76 {
78 return Null;
81 break;
84 break;
88 break;
92 break;
96 break;
100 break;
104 break;
106 return C_Root;
109 break;
111 return C_Root;
115 break;
120 break;
125 return C_Root;
128 {
129 WARN(
"cannot retrieve print processor directory\n" );
131 }
132 break;
134 default:
135 FIXME(
"unknown dirid %d\n", dirid );
137 }
141}
static const WCHAR * get_unknown_dirid(void)
static const WCHAR * get_csidl_dir(DWORD csidl)
#define GetEnvironmentVariableW(x, y, z)
UINT WINAPI GetSystemDirectoryW(OUT LPWSTR lpBuffer, IN UINT uSize)
UINT WINAPI GetWindowsDirectoryW(OUT LPWSTR lpBuffer, IN UINT uSize)
#define memcpy(s1, s2, n)
#define DIRID_USERPROFILE
#define DIRID_SPOOLDRIVERS
#define DIRID_PRINTPROCESSOR
WINBOOL WINAPI GetPrintProcessorDirectoryW(LPWSTR pName, LPWSTR pEnvironment, DWORD Level, LPBYTE pPrintProcessorInfo, DWORD cbBuf, LPDWORD pcbNeeded)
Referenced by DIRID_get_string().
◆ DIRID_get_string()
Definition at line 159 of file dirid.c.
160{
162
164
166 {
169 WARN(
"user id %d not found\n", dirid );
171 }
173 {
178 }
179 else
180 {
184 }
185}
static const WCHAR * create_system_dirid(int dirid)
static struct user_dirid * user_dirids
static const WCHAR * csidl_dirids[MAX_CSIDL_DIRID-MIN_CSIDL_DIRID+1]
static int nb_user_dirids
static const WCHAR * system_dirids[MAX_SYSTEM_DIRID+1]
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define DIRID_ABSOLUTE_16BIT
Referenced by Concatenate(), and get_dirid_subst().
◆ get_csidl_dir()
◆ get_unknown_dirid()
Definition at line 40 of file dirid.c.
41{
42 static WCHAR *unknown_dirid;
43 static const WCHAR unknown_str[] = {
'\\',
'u',
'n',
'k',
'n',
'o',
'w',
'n',0};
44
45 if (!unknown_dirid)
46 {
50 strcatW( unknown_dirid, unknown_str );
51 }
52 return unknown_dirid;
53}
Referenced by create_system_dirid(), DIRID_get_string(), and get_csidl_dir().
◆ SetupSetDirectoryIdA()
Definition at line 226 of file dirid.c.
227{
230
231 if (!id)
232 {
236 }
238 {
241 }
242
243
245 {
248 }
250}
#define ERROR_NOT_ENOUGH_MEMORY
static BOOL store_user_dirid(HINF hinf, int id, WCHAR *str)
#define ERROR_INVALID_PARAMETER
#define HeapFree(x, y, z)
NTSYSAPI BOOLEAN NTAPI RtlCreateUnicodeStringFromAsciiz(_Out_ PUNICODE_STRING Destination, _In_ PCSZ Source)
◆ SetupSetDirectoryIdW()
Definition at line 256 of file dirid.c.
257{
260
261 if (!id)
262 {
266 }
268 {
271 }
272
273
278}
Referenced by set_ldids().
◆ store_user_dirid()
◆ alloc_user_dirids
◆ csidl_dirids
◆ nb_user_dirids
◆ system_dirids
◆ user_dirids