ReactOS  0.4.14-dev-554-g2f8d847
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 ChkdskPartition (IN PUNICODE_STRING DriveRoot, IN PCWSTR FileSystemName)
 

Variables

static PPROGRESSBAR ChkdskProgressBar = NULL
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 30 of file chkdsk.c.

Function Documentation

◆ ChkdskCallback()

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

Definition at line 40 of file chkdsk.c.

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

Referenced by ChkdskPartition().

◆ ChkdskPartition()

NTSTATUS ChkdskPartition ( IN PUNICODE_STRING  DriveRoot,
IN PCWSTR  FileSystemName 
)

Definition at line 57 of file chkdsk.c.

60 {
62 
64  yScreen - 14,
65  xScreen - 7,
66  yScreen - 10,
67  10,
68  24,
69  TRUE,
71 
73 
74  Status = ChkdskFileSystem_UStr(DriveRoot,
75  FileSystemName,
76  TRUE, /* FixErrors */
77  FALSE, /* Verbose */
78  TRUE, /* CheckOnlyIfDirty */
79  FALSE, /* ScanDrive */
80  ChkdskCallback); /* Callback */
81 
84 
85  DPRINT("ChkdskPartition() finished with status 0x%08lx\n", Status);
86 
87  return Status;
88 }
#define STRING_CHECKINGDISK
Definition: mui.h:111
#define TRUE
Definition: types.h:120
SHORT xScreen
Definition: consup.c:39
LONG NTSTATUS
Definition: precomp.h:26
VOID DestroyProgressBar(IN OUT PPROGRESSBAR Bar)
Definition: progress.c:339
VOID ProgressSetStepCount(IN PPROGRESSBAR Bar, IN ULONG StepCount)
Definition: progress.c:347
smooth NULL
Definition: ftsmooth.c:416
void DPRINT(...)
Definition: polytest.cpp:61
static PPROGRESSBAR ChkdskProgressBar
Definition: chkdsk.c:33
static BOOLEAN NTAPI ChkdskCallback(IN CALLBACKCOMMAND Command, IN ULONG Modifier, IN PVOID Argument)
Definition: chkdsk.c:40
NTSTATUS ChkdskFileSystem_UStr(IN PUNICODE_STRING DriveRoot, IN PCWSTR FileSystemName, IN BOOLEAN FixErrors, IN BOOLEAN Verbose, IN BOOLEAN CheckOnlyIfDirty, IN BOOLEAN ScanDrive, IN PFMIFSCALLBACK Callback)
Definition: fsutil.c:349
LPSTR MUIGetString(ULONG Number)
Definition: mui.c:230
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
Status
Definition: gdiplustypes.h:24

Referenced by CheckFileSystemPage().

Variable Documentation

◆ ChkdskProgressBar

PPROGRESSBAR ChkdskProgressBar = NULL
static

Definition at line 33 of file chkdsk.c.

Referenced by ChkdskPartition().