Go to the source code of this file.
◆ RunScript()
Definition at line 41 of file diskpart.c.
42{
46
47
50 {
51
54 }
55
56
58 {
61 {
64 }
65 }
66
67
69
71}
void ConResPrintf(FILE *fp, UINT nID,...)
#define IDS_ERROR_MSG_NO_SCRIPT
enum _EXIT_CODE EXIT_CODE
EXIT_CODE InterpretScript(_In_ LPWSTR line)
int CDECL fclose(FILE *file)
wchar_t *CDECL fgetws(wchar_t *s, int size, FILE *file)
FILE *CDECL _wfopen(const wchar_t *path, const wchar_t *mode)
_At_(*)(_In_ PWSK_CLIENT Client, _In_opt_ PUNICODE_STRING NodeName, _In_opt_ PUNICODE_STRING ServiceName, _In_opt_ ULONG NameSpace, _In_opt_ GUID *Provider, _In_opt_ PADDRINFOEXW Hints, _Outptr_ PADDRINFOEXW *Result, _In_opt_ PEPROCESS OwningProcess, _In_opt_ PETHREAD OwningThread, _Inout_ PIRP Irp Result)(Mem)) NTSTATUS(WSKAPI *PFN_WSK_GET_ADDRESS_INFO
Referenced by wmain().
◆ ShowHeader()
Definition at line 16 of file diskpart.c.
17{
20
21
23
24
25 ConPuts(
StdOut,
L"\n*WARNING*: This program is incomplete and may not work properly.\n");
26
27
33}
void ConPuts(FILE *fp, LPCWSTR psz)
void ConResPuts(FILE *fp, UINT nID)
#define IDS_APP_CURR_COMPUTER
BOOL WINAPI GetComputerNameW(LPWSTR lpBuffer, LPDWORD lpnSize)
Referenced by wmain().
◆ wmain()
Definition at line 77 of file diskpart.c.
78{
84
85
87
88
89
90
93
94
95
97
100
101
103 {
106 }
107
108 else
109 {
111 {
112
115 {
117 }
118 else
119 {
120
123 goto done;
124 }
125
126
127
129 {
132 goto done;
133 }
134
136 {
138 {
141 }
142 }
143
145 {
147 {
150
151
152
155 }
156 }
157 else
158 {
159
162 goto done;
163 }
164 }
165
166
168
169
171 {
172
173
176
179 goto done;
180 }
181 else
182 {
183
186 goto done;
187 }
188 }
189
190
192
193done:
196
198}
#define ConInitStdStreams()
#define IDS_ERROR_MSG_BAD_ARG
EXIT_CODE RunScript(LPCWSTR filename)
VOID DestroyVolumeList(VOID)
NTSTATUS CreateVolumeList(VOID)
BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleTitleW(LPCWSTR lpConsoleTitle)
_ACRTIMP int __cdecl _wtoi(const wchar_t *)
_ACRTIMP int __cdecl _wcsicmp(const wchar_t *, const wchar_t *)
INT WINAPI K32LoadStringW(IN HINSTANCE hInstance OPTIONAL, IN UINT uID, OUT LPWSTR lpBuffer, IN INT nBufferMax)
VOID NTAPI DestroyPartitionList(IN PPARTLIST List)
PPARTLIST NTAPI CreatePartitionList(VOID)
VOID WINAPI DECLSPEC_HOTPATCH Sleep(IN DWORD dwMilliseconds)