ReactOS  0.4.15-dev-2771-g6d441f7
chkdsk.c File Reference
#include "usetup.h"
#include <debug.h>
Include dependency graph for chkdsk.c:

Go to the source code of this file.

Macros

#define NDEBUG
 

Functions

static BOOLEAN NTAPI ChkdskCallback (IN CALLBACKCOMMAND Command, IN ULONG Modifier, IN PVOID Argument)
 
NTSTATUS DoChkdsk (IN PPARTENTRY PartEntry)
 

Variables

static PPROGRESSBAR ChkdskProgressBar = NULL
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 31 of file chkdsk.c.

Function Documentation

◆ ChkdskCallback()

static BOOLEAN NTAPI ChkdskCallback ( IN CALLBACKCOMMAND  Command,
IN ULONG  Modifier,
IN PVOID  Argument 
)
static

Definition at line 41 of file chkdsk.c.

45 {
46  switch (Command)
47  {
48  default:
49  DPRINT("Unknown callback %lu\n", (ULONG)Command);
50  break;
51  }
52 
53  return TRUE;
54 }
#define TRUE
Definition: types.h:120
Definition: shell.h:41
unsigned int ULONG
Definition: retypes.h:1
#define DPRINT
Definition: sndvol32.h:71

Referenced by DoChkdsk().

◆ DoChkdsk()

NTSTATUS DoChkdsk ( IN PPARTENTRY  PartEntry)

Definition at line 57 of file chkdsk.c.

59 {
61 
63  yScreen - 14,
64  xScreen - 7,
65  yScreen - 10,
66  10,
67  24,
68  TRUE,
70 
72 
73  // TODO: Think about which values could be defaulted...
74  Status = ChkdskPartition(PartEntry,
75  TRUE, /* FixErrors */
76  FALSE, /* Verbose */
77  TRUE, /* CheckOnlyIfDirty */
78  FALSE, /* ScanDrive */
79  ChkdskCallback); /* Callback */
80 
83 
84  DPRINT("ChkdskPartition() finished with status 0x%08lx\n", Status);
85 
86  return Status;
87 }
#define STRING_CHECKINGDISK
Definition: mui.h:147
SHORT xScreen
Definition: consup.c:39
#define TRUE
Definition: types.h:120
LONG NTSTATUS
Definition: precomp.h:26
VOID DestroyProgressBar(IN OUT PPROGRESSBAR Bar)
Definition: progress.c:339
#define FALSE
Definition: types.h:117
VOID ProgressSetStepCount(IN PPROGRESSBAR Bar, IN ULONG StepCount)
Definition: progress.c:347
PCSTR MUIGetString(ULONG Number)
Definition: mui.c:230
Status
Definition: gdiplustypes.h:24
static PPROGRESSBAR ChkdskProgressBar
Definition: chkdsk.c:34
static BOOLEAN NTAPI ChkdskCallback(IN CALLBACKCOMMAND Command, IN ULONG Modifier, IN PVOID Argument)
Definition: chkdsk.c:41
SHORT yScreen
Definition: consup.c:40
PPROGRESSBAR CreateProgressBar(IN SHORT Left, IN SHORT Top, IN SHORT Right, IN SHORT Bottom, IN SHORT TextTop, IN SHORT TextRight, IN BOOLEAN DoubleEdge, IN PCSTR DescriptionText OPTIONAL)
Definition: progress.c:317
NTSTATUS ChkdskPartition(IN PPARTENTRY PartEntry, IN BOOLEAN FixErrors, IN BOOLEAN Verbose, IN BOOLEAN CheckOnlyIfDirty, IN BOOLEAN ScanDrive, IN PFMIFSCALLBACK Callback)
Definition: fsutil.c:670
#define NULL
Definition: types.h:112
#define DPRINT
Definition: sndvol32.h:71

Referenced by CheckFileSystemPage().

Variable Documentation

◆ ChkdskProgressBar

PPROGRESSBAR ChkdskProgressBar = NULL
static

Definition at line 34 of file chkdsk.c.

Referenced by DoChkdsk().