ReactOS  0.4.15-dev-4914-g2220e56
active.c
Go to the documentation of this file.
1 /*
2  * PROJECT: ReactOS DiskPart
3  * LICENSE: GPL - See COPYING in the top level directory
4  * FILE: base/system/diskpart/active.c
5  * PURPOSE: Manages all the partitions of the OS in an interactive way.
6  * PROGRAMMERS: Lee Schroeder
7  */
8 
9 #include "diskpart.h"
10 
11 #define NDEBUG
12 #include <debug.h>
13 
14 
15 BOOL
17  _In_ INT argc,
18  _In_ PWSTR *argv)
19 {
21 
22  DPRINT("Active()\n");
23 
24  if (CurrentDisk == NULL)
25  {
27  return TRUE;
28  }
29 
30  if (CurrentPartition == NULL)
31  {
33  return TRUE;
34  }
35 
37  {
39  return TRUE;
40  }
41 
46  if (NT_SUCCESS(Status))
47  {
49  }
50  else
51  {
53  }
54 
55  return TRUE;
56 }
#define IDS_SELECT_NO_PARTITION
Definition: resource.h:88
static int argc
Definition: ServiceArgs.c:12
#define TRUE
Definition: types.h:120
uint16_t * PWSTR
Definition: typedefs.h:56
BOOL active_main(_In_ INT argc, _In_ PWSTR *argv)
Definition: active.c:16
#define IDS_ACTIVE_SUCCESS
Definition: resource.h:22
LONG NTSTATUS
Definition: precomp.h:26
static PPARTENTRY CurrentPartition
Definition: usetup.c:76
PDISKENTRY CurrentDisk
Definition: partlist.c:74
#define argv
Definition: mplay32.c:18
int32_t INT
Definition: typedefs.h:58
unsigned int BOOL
Definition: ntddk_ex.h:94
BOOLEAN Dirty
Definition: partlist.h:118
#define _In_
Definition: ms_sal.h:308
void ConResPuts(FILE *fp, UINT nID)
Definition: fc.c:27
static VOID UpdateDiskLayout(IN PDISKENTRY DiskEntry)
Definition: partlist.c:2534
Status
Definition: gdiplustypes.h:24
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
#define IDS_SELECT_NO_DISK
Definition: resource.h:85
#define IDS_ACTIVE_ALREADY
Definition: resource.h:23
#define NULL
Definition: types.h:112
#define IDS_ACTIVE_FAIL
Definition: resource.h:21
BOOLEAN BootIndicator
Definition: partlist.h:52
#define StdOut
Definition: fc.c:14
NTSTATUS WritePartitions(IN PDISKENTRY DiskEntry)
Definition: partlist.c:3619
#define DPRINT
Definition: sndvol32.h:71