ReactOS  0.4.14-dev-57-g333b8f1
Fraginator.cpp File Reference
#include "Fraginator.h"
#include "Mutex.h"
#include "DriveVolume.h"
#include "Defragment.h"
#include "MainDialog.h"
#include "resource.h"
Include dependency graph for Fraginator.cpp:

Go to the source code of this file.

Macros

#define NDEBUG
 

Functions

INT WINAPI wWinMain (HINSTANCE HInstance, HINSTANCE hPrev, LPWSTR Cmd, int iCmd)
 

Variables

HINSTANCE GlobalHInstance = NULL
 
DefragmentDefrag = NULL
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 7 of file Fraginator.cpp.

Function Documentation

◆ wWinMain()

INT WINAPI wWinMain ( HINSTANCE  hInstance,
HINSTANCE  hPrevInstance,
LPWSTR  lpCmdLine,
int  nShowCmd 
)

This file has no copyright assigned and is placed in the Public Domain. This file is part of the w64 mingw-runtime package. No warranty is given; refer to the file DISCLAIMER.PD within this package.

Definition at line 23 of file Fraginator.cpp.

27 {
29 
30  // debugging crap
31 #ifndef NDEBUG
39 #endif
40 
41  GlobalHInstance = HInstance;
42 
43  // We want our progress bar! NOW!
44  InitControls.dwSize = sizeof (InitControls);
47 
48  if (!CheckWinVer())
49  {
50  MessageBox (GetDesktopWindow(), L"Sorry, this program requires Windows 2000.", L"Error", MB_OK);
51  return (0);
52  }
53 
55 
56 #if 0
57  AllocConsole ();
58  if (_CrtDumpMemoryLeaks ())
59  MessageBox (NULL, L"Click OK to quit", L"Leaks", MB_OK);
60 #endif
61 
62  return (0);
63 }
#define MAKEINTRESOURCE
Definition: winuser.h:591
BOOL WINAPI AllocConsole(VOID)
Definition: console.c:48
#define _CRT_WARN
Definition: crtdbg.h:27
#define _CrtDumpMemoryLeaks()
Definition: crtdbg.h:204
INT_PTR CALLBACK MainDialogProc(HWND Dlg, UINT Msg, WPARAM WParam, LPARAM LParam)
Definition: MainDialog.cpp:424
#define _CRT_ERROR
Definition: crtdbg.h:28
#define _CrtSetReportFile(t, f)
Definition: crtdbg.h:184
static VOID InitControls(HWND hwnd)
Definition: mplay32.c:303
#define IDD_MAIN
Definition: resource.h:106
#define DialogBox
Definition: winuser.h:5662
#define ICC_WIN95_CLASSES
Definition: commctrl.h:66
smooth NULL
Definition: ftsmooth.c:416
HINSTANCE GlobalHInstance
Definition: Fraginator.cpp:19
HWND WINAPI GetDesktopWindow(void)
Definition: window.c:652
#define _CRTDBG_FILE_STDOUT
Definition: crtdbg.h:39
#define _CRTDBG_REPORT_FLAG
Definition: crtdbg.h:68
#define _CRTDBG_LEAK_CHECK_DF
Definition: crtdbg.h:60
static const WCHAR L[]
Definition: oid.c:1250
#define _CRTDBG_MODE_FILE
Definition: crtdbg.h:32
BOOL WINAPI InitCommonControlsEx(const INITCOMMONCONTROLSEX *lpInitCtrls)
Definition: commctrl.c:893
#define MessageBox
Definition: winuser.h:5723
bool CheckWinVer(void)
Definition: Unfrag.cpp:19
#define MB_OK
Definition: winuser.h:784
#define _CRT_ASSERT
Definition: crtdbg.h:29
#define _CrtSetDbgFlag(f)
Definition: crtdbg.h:192
#define _CrtSetReportMode(t, f)
Definition: crtdbg.h:183

Variable Documentation

◆ Defrag

◆ GlobalHInstance

HINSTANCE GlobalHInstance = NULL

Definition at line 19 of file Fraginator.cpp.

Referenced by MainDialogProc(), and wWinMain().