ReactOS 0.4.15-dev-7924-g5949c20
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
#define DPRINT
Definition: sndvol32.h:71
Definition: shell.h:41
uint32_t ULONG
Definition: typedefs.h:59

◆ 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}
LONG NTSTATUS
Definition: precomp.h:26
static PPROGRESSBAR ChkdskProgressBar
Definition: chkdsk.c:34
VOID ProgressSetStepCount(IN PPROGRESSBAR Bar, IN ULONG StepCount)
Definition: progress.c:347
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
VOID DestroyProgressBar(IN OUT PPROGRESSBAR Bar)
Definition: progress.c:339
SHORT yScreen
Definition: consup.c:40
SHORT xScreen
Definition: consup.c:39
#define NULL
Definition: types.h:112
#define FALSE
Definition: types.h:117
Status
Definition: gdiplustypes.h:25
NTSTATUS ChkdskPartition(IN PPARTENTRY PartEntry, IN BOOLEAN FixErrors, IN BOOLEAN Verbose, IN BOOLEAN CheckOnlyIfDirty, IN BOOLEAN ScanDrive, IN PFMIFSCALLBACK Callback)
Definition: fsutil.c:757
PCSTR MUIGetString(ULONG Number)
Definition: mui.c:251
#define STRING_CHECKINGDISK
Definition: mui.h:169
PFMIFSCALLBACK ChkdskCallback
Definition: vfatlib.c:43

Referenced by CheckFileSystemPage().

Variable Documentation

◆ ChkdskProgressBar

PPROGRESSBAR ChkdskProgressBar = NULL
static

Definition at line 34 of file chkdsk.c.

Referenced by DoChkdsk().