ReactOS  0.4.15-dev-4570-g4f8bbd1
detail.c File Reference
#include "diskpart.h"
#include <debug.h>
Include dependency graph for detail.c:

Go to the source code of this file.

Macros

#define NDEBUG
 

Functions

BOOL DetailDisk (INT argc, PWSTR *argv)
 
BOOL DetailPartition (INT argc, PWSTR *argv)
 
BOOL DetailVolume (INT argc, PWSTR *argv)
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 11 of file detail.c.

Function Documentation

◆ DetailDisk()

BOOL DetailDisk ( INT  argc,
PWSTR argv 
)

Definition at line 17 of file detail.c.

20 {
21  DPRINT("DetailDisk()\n");
22 
23  if (argc > 2)
24  {
26  return TRUE;
27  }
28 
29  if (CurrentDisk == NULL)
30  {
32  return TRUE;
33  }
34 
35  /* TODO: Print more disk details */
36  ConPuts(StdOut, L"\n");
41  ConPuts(StdOut, L"\n");
42 
43  return TRUE;
44 }
USHORT TargetId
Definition: diskpart.h:158
static int argc
Definition: ServiceArgs.c:12
#define TRUE
Definition: types.h:120
#define IDS_DETAIL_INFO_TARGET
Definition: resource.h:24
PDISKENTRY CurrentDisk
Definition: partlist.c:74
#define IDS_DETAIL_INFO_DISK_ID
Definition: resource.h:20
void ConPuts(FILE *fp, LPCWSTR psz)
Definition: fc.c:16
#define IDS_ERROR_INVALID_ARGS
Definition: resource.h:201
#define L(x)
Definition: ntvdm.h:50
void ConResPuts(FILE *fp, UINT nID)
Definition: fc.c:27
USHORT Lun
Definition: diskpart.h:159
void ConResPrintf(FILE *fp, UINT nID,...)
Definition: fc.c:33
#define IDS_SELECT_NO_DISK
Definition: resource.h:57
USHORT PathId
Definition: diskpart.h:157
#define IDS_DETAIL_INFO_LUN_ID
Definition: resource.h:25
#define NULL
Definition: types.h:112
#define StdOut
Definition: fc.c:14
#define IDS_DETAIL_INFO_PATH
Definition: resource.h:23
#define DPRINT
Definition: sndvol32.h:71
PDRIVE_LAYOUT_INFORMATION LayoutBuffer
Definition: partlist.h:125
#define StdErr
Definition: fc.c:15

◆ DetailPartition()

BOOL DetailPartition ( INT  argc,
PWSTR argv 
)

Definition at line 48 of file detail.c.

51 {
52  PPARTENTRY PartEntry;
53  ULONGLONG PartOffset;
54 
55  DPRINT("DetailPartition()\n");
56 
57  if (argc > 2)
58  {
60  return TRUE;
61  }
62 
63  if (CurrentDisk == NULL)
64  {
66  return TRUE;
67  }
68 
69  if (CurrentPartition == NULL)
70  {
72  return TRUE;
73  }
74 
75  PartEntry = CurrentPartition;
76  PartOffset = PartEntry->StartSector.QuadPart * CurrentDisk->BytesPerSector;
77 
78  /* TODO: Print more partition details */
79  ConPuts(StdOut, L"\n");
85  ConPuts(StdOut, L"\n");
86 
87  return TRUE;
88 }
#define IDS_SELECT_NO_PARTITION
Definition: resource.h:60
static int argc
Definition: ServiceArgs.c:12
#define IDS_DETAIL_PARTITION_ACTIVE
Definition: resource.h:38
ULONG PartitionNumber
Definition: partlist.h:55
ULARGE_INTEGER StartSector
Definition: partlist.h:49
#define TRUE
Definition: types.h:120
static PPARTENTRY CurrentPartition
Definition: usetup.c:76
PDISKENTRY CurrentDisk
Definition: partlist.c:74
#define IDS_DETAIL_PARTITION_NUMBER
Definition: resource.h:35
void ConPuts(FILE *fp, LPCWSTR psz)
Definition: fc.c:16
#define IDS_ERROR_INVALID_ARGS
Definition: resource.h:201
#define L(x)
Definition: ntvdm.h:50
ULONGLONG QuadPart
Definition: ms-dtyp.idl:185
#define IDS_DETAIL_PARTITION_TYPE
Definition: resource.h:36
void ConResPuts(FILE *fp, UINT nID)
Definition: fc.c:27
void ConResPrintf(FILE *fp, UINT nID,...)
Definition: fc.c:33
UCHAR PartitionType
Definition: partlist.h:53
ULONG BytesPerSector
Definition: partlist.h:95
#define IDS_DETAIL_PARTITION_OFFSET
Definition: resource.h:39
uint64_t ULONGLONG
Definition: typedefs.h:67
#define IDS_SELECT_PARTITION_NO_DISK
Definition: resource.h:62
#define NULL
Definition: types.h:112
BOOLEAN BootIndicator
Definition: partlist.h:52
#define StdOut
Definition: fc.c:14
#define IDS_DETAIL_PARTITION_HIDDEN
Definition: resource.h:37
#define DPRINT
Definition: sndvol32.h:71
#define StdErr
Definition: fc.c:15

◆ DetailVolume()

BOOL DetailVolume ( INT  argc,
PWSTR argv 
)

Definition at line 92 of file detail.c.

95 {
96  DPRINT("DetailVolume()\n");
97 
98  if (argc > 2)
99  {
101  return TRUE;
102  }
103 
104  if (CurrentVolume == NULL)
105  {
107  return TRUE;
108  }
109 
110  /* TODO: Print volume details */
111 
112  return TRUE;
113 }
static int argc
Definition: ServiceArgs.c:12
#define TRUE
Definition: types.h:120
#define IDS_SELECT_NO_VOLUME
Definition: resource.h:64
#define IDS_ERROR_INVALID_ARGS
Definition: resource.h:201
void ConResPuts(FILE *fp, UINT nID)
Definition: fc.c:27
#define NULL
Definition: types.h:112
#define StdOut
Definition: fc.c:14
PVOLENTRY CurrentVolume
Definition: partlist.c:76
#define DPRINT
Definition: sndvol32.h:71
#define StdErr
Definition: fc.c:15