136{
137 WCHAR szRootPath[] =
L" :\\";
140 WCHAR szOldLabel[80];
143
144
146
147
149 {
151 return 0;
152 }
153
155 {
158 {
162 }
163
165 {
167 return 1;
168 }
169
171 {
175 }
176 }
177
179 {
180 if (szBuffer[1] ==
L':')
181 {
182 szRootPath[0] =
towupper(szBuffer[0]);
183 wcscpy(szLabel, &szBuffer[2]);
184 }
185 else
186 {
187 wcscpy(szLabel, szBuffer);
188 }
189 }
190
192 {
194 return 1;
195 }
196
197 if (szRootPath[0] ==
L' ')
198 {
199
202 szRootPath[0] = szCurPath[0];
203 }
204
205
207 {
209 return 1;
210 }
211
213 {
216
217
219 {
221 }
222 else
223 {
225 }
226
227
229
231
234
236 {
238 return 0;
239 }
240 }
241
243 {
245 return 1;
246 }
247
248 return 0;
249}
#define STRING_LABEL_TEXT4
#define STRING_LABEL_HELP
#define STRING_ERROR_INVALID_LABEL
#define STRING_ERROR_INVALID_DRIVE
#define STRING_LABEL_TEXT3
#define STRING_LABEL_TEXT1
#define STRING_LABEL_TEXT2
#define ConInitStdStreams()
void ConResPrintf(FILE *fp, UINT nID,...)
BOOL WINAPI GetVolumeInformationW(IN LPCWSTR lpRootPathName, IN LPWSTR lpVolumeNameBuffer, IN DWORD nVolumeNameSize, OUT LPDWORD lpVolumeSerialNumber OPTIONAL, OUT LPDWORD lpMaximumComponentLength OPTIONAL, OUT LPDWORD lpFileSystemFlags OPTIONAL, OUT LPWSTR lpFileSystemNameBuffer OPTIONAL, IN DWORD nFileSystemNameSize)
BOOL WINAPI SetVolumeLabelW(IN LPCWSTR lpRootPathName, IN LPCWSTR lpVolumeName OPTIONAL)
_ACRTIMP size_t __cdecl wcslen(const wchar_t *)
_ACRTIMP int __cdecl wcscmp(const wchar_t *, const wchar_t *)
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
static VOID ConFormatMessage(PCON_STREAM Stream, DWORD MessageId,...)
static BOOL IsValidPathName(LPCWSTR pszPath)
static BOOL PromptYesNo(VOID)
DWORD WINAPI GetLastError(void)