19{
24#if 0
27#endif
31
33 {
36 }
37
39 {
41 {
42
43 DPRINT(
"Size : %s\n", pszSuffix);
44
47 {
50 }
51 }
53 {
54
55 DPRINT(
"Offset : %s\n", pszSuffix);
57#if 0
60 {
63 }
64#endif
65 }
67 {
68
69 DPRINT(
"Align : %s\n", pszSuffix);
71#if 0
73#endif
74 }
76 {
77
78 DPRINT(
"NoErr\n", pszSuffix);
80#if 0
82#endif
83 }
84 else
85 {
88 }
89 }
90
91 DPRINT1(
"Size: %I64u\n", ullSize);
92#if 0
93 DPRINT1(
"Offset: %I64u\n", ullOffset);
94#endif
95
97 {
100 }
101
103 {
104 ConPuts(
StdOut,
L"We already have an extended partition on this disk!\n");
106 }
107
108 if (ullSize != 0)
110 else
111 ullSectorCount = 0;
112
113 DPRINT1(
"SectorCount: %I64u\n", ullSectorCount);
114
116
119 {
120 ConPuts(
StdOut,
L"No disk space left for an extended partition!\n");
122 }
123
124 if (ullSectorCount == 0)
125 {
131
134 }
135 else
136 {
138 {
144
147 }
149 {
151 if (NewPartEntry ==
NULL)
152 {
155 }
156
158
161
168
171
173
176 }
177 }
178
182 {
186 }
187
189
191}
void ConPuts(FILE *fp, LPCWSTR psz)
void ConResPuts(FILE *fp, UINT nID)
#define IDS_CREATE_PARTITION_FAIL
#define IDS_ERROR_INVALID_ARGS
#define IDS_SELECT_NO_DISK
#define IDS_CREATE_PARTITION_SUCCESS
#define PARTITION_EXTENDED
PVOID NTAPI RtlAllocateHeap(IN PVOID HeapHandle, IN ULONG Flags, IN SIZE_T Size)
BOOL HasPrefix(_In_ PWSTR pszString, _In_ PWSTR pszPrefix, _Out_opt_ PWSTR *pszSuffix)
#define NT_SUCCESS(StatCode)
#define InsertTailList(ListHead, Entry)
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)
#define GetPrimaryPartitionCount(DiskEntry)
NTSTATUS WritePartitions(IN PDISKENTRY DiskEntry)
PPARTENTRY ExtendedPartition
LIST_ENTRY PrimaryPartListHead
struct _LIST_ENTRY * Blink
ULARGE_INTEGER SectorCount
struct _DISKENTRY * DiskEntry
ULARGE_INTEGER StartSector
#define CONTAINING_RECORD(address, type, field)
static PPARTENTRY CurrentPartition
unsigned __int64 CDECL _wcstoui64(const wchar_t *nptr, wchar_t **endptr, int base)