ReactOS 0.4.15-dev-7934-g1dc8d80
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 ();
59 MessageBox (NULL, L"Click OK to quit", L"Leaks", MB_OK);
60#endif
61
62 return (0);
63}
HINSTANCE GlobalHInstance
Definition: Fraginator.cpp:19
INT_PTR CALLBACK MainDialogProc(HWND Dlg, UINT Msg, WPARAM WParam, LPARAM LParam)
Definition: MainDialog.cpp:424
bool CheckWinVer(void)
Definition: Unfrag.cpp:19
BOOL WINAPI AllocConsole(VOID)
Definition: console.c:74
#define IDD_MAIN
Definition: resource.h:106
BOOL WINAPI InitCommonControlsEx(const INITCOMMONCONTROLSEX *lpInitCtrls)
Definition: commctrl.c:893
#define _CRT_ASSERT
Definition: crtdbg.h:21
#define _CRTDBG_FILE_STDOUT
Definition: crtdbg.h:31
#define _CRTDBG_MODE_FILE
Definition: crtdbg.h:24
#define _CrtDumpMemoryLeaks()
Definition: crtdbg.h:257
#define _CRTDBG_LEAK_CHECK_DF
Definition: crtdbg.h:52
#define _CRTDBG_REPORT_FLAG
Definition: crtdbg.h:60
#define _CrtSetReportMode(t, f)
Definition: crtdbg.h:129
#define _CRT_ERROR
Definition: crtdbg.h:20
#define _CRT_WARN
Definition: crtdbg.h:19
#define _CrtSetDbgFlag(f)
Definition: crtdbg.h:245
#define _CrtSetReportFile(t, f)
Definition: crtdbg.h:130
#define NULL
Definition: types.h:112
static VOID InitControls(HWND hwnd)
Definition: mplay32.c:303
#define L(x)
Definition: ntvdm.h:50
#define ICC_WIN95_CLASSES
Definition: commctrl.h:66
HWND WINAPI GetDesktopWindow(void)
Definition: window.c:656
#define MB_OK
Definition: winuser.h:790
#define MessageBox
Definition: winuser.h:5822
#define MAKEINTRESOURCE
Definition: winuser.h:591
#define DialogBox
Definition: winuser.h:5761

Variable Documentation

◆ Defrag

◆ GlobalHInstance

HINSTANCE GlobalHInstance = NULL

Definition at line 19 of file Fraginator.cpp.

Referenced by MainDialogProc(), and wWinMain().