#include "diskpart.h"
#include <debug.h>
Go to the source code of this file.
◆ NDEBUG
◆ assign_main()
Definition at line 15 of file assign.c.
18{
21 INT i, nExclusive = 0;
23
25
27 {
30 }
31
33 {
35 {
36
37 DPRINT(
"NoErr\n", pszSuffix);
39#if 0
41#endif
42 }
43 }
44
46 {
48 {
49 if (
wcslen(pszSuffix) == 1)
50 {
52 nExclusive++;
53 }
54 else
55 {
58 }
59 }
61 {
62 DPRINT(
"Mount\n", pszSuffix);
64 nExclusive++;
65 }
67 {
68
69 }
70 else
71 {
74 }
75 }
76
77 if (nExclusive > 1)
78 {
81 }
82
86
88 {
89 DPRINT1(
"DriveLetter: %C\n", DriveLetter);
90
91 if ((DriveLetter <
L'C') || (DriveLetter >
L'Z'))
92 {
95 }
96
98 {
101 }
102 }
103
105 {
106
108 if (bResult ==
FALSE)
109 {
112 }
113
115 }
116
118 {
119
121 DriveLetter);
122 if (bResult ==
FALSE)
123 {
126 }
127
129 }
130 else
131 {
134 if (bResult ==
FALSE)
135 {
138 }
139
141 {
144 }
145 }
146
148
150}
void ConPuts(FILE *fp, LPCWSTR psz)
void ConResPuts(FILE *fp, UINT nID)
#define IDS_SELECT_NO_VOLUME
#define IDS_ASSIGN_INVALID_LETTER
#define IDS_ASSIGN_NO_MORE_LETTER
#define IDS_ERROR_INVALID_ARGS
#define IDS_REMOVE_SUCCESS
#define IDS_ASSIGN_ALREADY_ASSIGNED
BOOL HasPrefix(_In_ PWSTR pszString, _In_ PWSTR pszPrefix, _Out_opt_ PWSTR *pszSuffix)
BOOL DeleteDriveLetter(_In_ WCHAR DriveLetter)
BOOL AssignNextDriveLetter(_In_ PWSTR DeviceName, _Out_ PWCHAR DriveLetter)
BOOL AssignDriveLetter(_In_ PWSTR DeviceName, _In_ WCHAR DriveLetter)
_ACRTIMP int __cdecl _wcsicmp(const wchar_t *, const wchar_t *)
_ACRTIMP size_t __cdecl wcslen(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
WCHAR VolumeName[MAX_PATH]
WCHAR DeviceName[MAX_PATH]