40{
48
49 DPRINT(
"DeletePartition()\n");
50
52 {
55 }
56
58 {
61 }
62
64
66 {
68 {
69
72#if 0
74#endif
75 }
77 {
78
81 }
82 else
83 {
86 }
87 }
88
89
90
91#if 0
92 if (
List->SystemPartition == PartEntry)
93 {
96 }
97#endif
98
100 {
103 }
104
105
107 {
108
110 {
113
114
116
117
118 RtlFreeHeap(RtlGetProcessHeap(), 0, LogicalPartEntry);
119 }
120
122 }
123 else
124 {
125
127 }
128
129
130
131
134
135 if (PrevPartEntry !=
NULL && NextPartEntry !=
NULL)
136 {
137
138
139
141
142
146 RtlFreeHeap(RtlGetProcessHeap(), 0, NextPartEntry);
147 }
148 else if (PrevPartEntry !=
NULL && NextPartEntry ==
NULL)
149 {
150
151
152
154
155
158 }
159 else if (PrevPartEntry ==
NULL && NextPartEntry !=
NULL)
160 {
161
162
163
166
167
170 }
171 else
172 {
173
177
184 }
185
187
191 {
194 }
195
197
199}
void ConPuts(FILE *fp, LPCWSTR psz)
void ConResPuts(FILE *fp, UINT nID)
static BOOL IsKnownPartition(_In_ PPARTENTRY PartEntry)
#define IDS_SELECT_NO_PARTITION
#define IDS_ERROR_INVALID_ARGS
#define IDS_DELETE_PARTITION_SUCCESS
#define IDS_DELETE_PARTITION_FAIL
#define IDS_SELECT_NO_DISK
#define PARTITION_ENTRY_UNUSED
BOOLEAN NTAPI RtlFreeHeap(IN PVOID HeapHandle, IN ULONG Flags, IN PVOID HeapBase)
PPARTENTRY GetPrevUnpartitionedEntry(_In_ PPARTENTRY PartEntry)
PPARTENTRY GetNextUnpartitionedEntry(_In_ PPARTENTRY PartEntry)
#define NT_SUCCESS(StatCode)
#define RemoveEntryList(Entry)
#define IsListEmpty(ListHead)
#define RemoveHeadList(ListHead)
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
_Check_return_ _CRTIMP int __cdecl _wcsicmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
static VOID UpdateDiskLayout(IN PDISKENTRY DiskEntry)
NTSTATUS WritePartitions(IN PDISKENTRY DiskEntry)
base of all file and directory entries
PPARTENTRY ExtendedPartition
LIST_ENTRY LogicalPartListHead
ULARGE_INTEGER SectorCount
ULONG OnDiskPartitionNumber
ULARGE_INTEGER StartSector
#define RtlZeroMemory(Destination, Length)
#define CONTAINING_RECORD(address, type, field)
static PPARTENTRY CurrentPartition
NTSTATUS DismountVolume(_Inout_ PVOLINFO Volume, _In_ BOOLEAN Force)
Attempts to dismount the designated volume.
_Must_inspect_result_ _In_ WDFCMRESLIST List