ReactOS  0.4.15-dev-5463-g138eb58
active.c File Reference
#include "diskpart.h"
#include <debug.h>
Include dependency graph for active.c:

Go to the source code of this file.

Macros

#define NDEBUG
 

Functions

BOOL active_main (_In_ INT argc, _In_ PWSTR *argv)
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 11 of file active.c.

Function Documentation

◆ active_main()

BOOL active_main ( _In_ INT  argc,
_In_ PWSTR argv 
)

Definition at line 16 of file active.c.

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
#define TRUE
Definition: types.h:120
#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
BOOLEAN Dirty
Definition: partlist.h:118
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